// // sub_812DAC from 0x812dac to 0x812ee8 (316 bytes) // // 5 xrefs: // > sub_812DAC @ 0x812e5e // > pugi::xml_node::append_copy @ 0x8131e2 // > pugi::xml_node::prepend_copy @ 0x81322e // > pugi::xml_node::insert_copy_after @ 0x81327e // > pugi::xml_node::insert_copy_before @ 0x8132ce // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:39 +0000 // void (*__fastcall sub_812DAC(pugi::xml_node *a1, pugi::xml_node *a2, _DWORD *a3))() { void (*result)(); // r0 char *v7; // r0 int v8; // r1 int v9; // r1 char *v10; // r0 int *v11; // r2 char *v12; // r0 int v13; // r1 int v14; // r1 _DWORD *v15; // r0 int v16; // r2 char *v17; // r0 char *v18; // r0 char *v19; // r0 int v20; // r1 char *v21; // r0 int *v22; // r2 char *v23; // r0 int v24; // r1 void (*i)(); // [sp+4h] [bp-10h] BYREF int *appended; // [sp+8h] [bp-Ch] BYREF result = (void (*)())((char *)pugi::xml_node::type(a2) - 2); switch ( (unsigned int)result ) { case 0u: v7 = (char *)pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v7); for ( i = (void (*)())pugi::xml_node::first_attribute(a2, v8); pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&i); i = (void (*)())pugi::xml_attribute::next_attribute((pugi::xml_attribute *)&i, v13) ) { v10 = (char *)pugi::xml_attribute::name((pugi::xml_attribute *)&i); appended = pugi::xml_node::append_attribute(a1, v10, v11); v12 = (char *)pugi::xml_attribute::value((pugi::xml_attribute *)&i); pugi::xml_attribute::set_value(&appended, v12); } for ( i = (void (*)())pugi::xml_node::first_child(a2, v9); ; i = (void (*)())pugi::xml_node::next_sibling((pugi::xml_node *)&i, v14) ) { result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); if ( !result ) break; if ( !pugi::xml_node::operator==(&i, a3) ) { v15 = pugi::xml_node::type((pugi::xml_node *)&i); appended = (int *)pugi::xml_node::append_child(a1, (unsigned int)v15, v16); sub_812DAC(&appended, &i, a3); } } break; case 1u: case 2u: case 3u: case 6u: goto LABEL_11; case 4u: v17 = (char *)pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v17); LABEL_11: v18 = (char *)pugi::xml_node::value(a2); result = (void (*)())pugi::xml_node::set_value(a1, v18); break; case 5u: v19 = (char *)pugi::xml_node::name(a2); pugi::xml_node::set_name(a1, v19); for ( i = (void (*)())pugi::xml_node::first_attribute(a2, v20); ; i = (void (*)())pugi::xml_attribute::next_attribute((pugi::xml_attribute *)&i, v24) ) { result = pugi::xml_attribute::operator void (*)(pugi::xml_attribute***)(&i); if ( !result ) break; v21 = (char *)pugi::xml_attribute::name((pugi::xml_attribute *)&i); appended = pugi::xml_node::append_attribute(a1, v21, v22); v23 = (char *)pugi::xml_attribute::value((pugi::xml_attribute *)&i); pugi::xml_attribute::set_value(&appended, v23); } break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source