// // sub_B54BF0 from 0xb54bf0 to 0xb54df0 (512 bytes) // // 5 xrefs: // > sub_B54BF0 @ 0xb54d70 // > pugi::xml_node::append_copy @ 0xb55474 // > pugi::xml_node::prepend_copy @ 0xb55500 // > pugi::xml_node::insert_copy_after @ 0xb55594 // > pugi::xml_node::insert_copy_before @ 0xb55628 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_B54BF0(pugi::xml_node *a1, pugi::xml_node *a2, _QWORD *a3) { char *v6; // x0 char *v7; // x0 char *v9; // x0 char *v10; // x0 char *v11; // x0 unsigned int v12; // w0 char *v13; // x0 char *v14; // x0 char *v15; // x0 pugi::xml_attribute v16; // [xsp+48h] [xbp+48h] BYREF pugi::xml_attribute v17; // [xsp+50h] [xbp+50h] BYREF switch ( (unsigned int)pugi::xml_node::type(a2) ) { case 2u: v9 = pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v9); for ( v16._attr = pugi::xml_node::first_attribute(a2); pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v16); v16._attr = pugi::xml_attribute::next_attribute(&v16) ) { v10 = pugi::xml_attribute::name(&v16); v17._attr = pugi::xml_node::append_attribute(a1, v10); v11 = pugi::xml_attribute::value(&v16); pugi::xml_attribute::set_value(&v17, v11); } for ( v16._attr = pugi::xml_node::first_child(a2); pugi::xml_node::operator void (*)(pugi::xml_node***)(&v16); v16._attr = pugi::xml_node::next_sibling((pugi::xml_node *)&v16) ) { if ( !pugi::xml_node::operator==(&v16, a3) ) { v12 = pugi::xml_node::type((pugi::xml_node *)&v16); v17._attr = pugi::xml_node::append_child(a1, v12); sub_B54BF0(&v17, &v16, a3); } } break; case 3u: case 4u: case 5u: case 8u: goto LABEL_3; case 6u: v6 = pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v6); LABEL_3: v7 = pugi::xml_node::value(a2); pugi::xml_node::set_value(a1, v7); break; case 7u: v13 = pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v13); for ( v16._attr = pugi::xml_node::first_attribute(a2); pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&v16); v16._attr = pugi::xml_attribute::next_attribute(&v16) ) { v14 = pugi::xml_attribute::name(&v16); v17._attr = pugi::xml_node::append_attribute(a1, v14); v15 = pugi::xml_attribute::value(&v16); pugi::xml_attribute::set_value(&v17, v15); } break; default: return _stack_chk_guard; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source