// // sub_31B360 from 0x31b360 to 0x31b444 (228 bytes) // // 2 xrefs: // > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_copy @ 0x31b458 // > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_copy @ 0x31b476 // // 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 // _DWORD *__fastcall sub_31B360(int *a1) { _DWORD *v2; // r0 int v3; // r5 _DWORD *v4; // r7 _DWORD *v5; // r3 int v6; // r0 int v7; // r1 int v8; // r3 signed int v9; // r5 unsigned int v10; // r4 unsigned int v11; // r5 int v12; // r9 int i; // r6 int v14; // r3 v2 = (_DWORD *)operator new(0x24u); v3 = a1[7]; v4 = v2; v5 = v2 + 4; v6 = a1[4]; v7 = a1[5]; *v5 = v6; v5[1] = v7; v8 = a1[6]; v4[6] = 0; v9 = v3 - v8; v4[7] = 0; v4[8] = 0; v10 = -1227133513 * (v9 >> 2); if ( v10 ) { if ( v10 > 0x9249249 ) sub_772FB4(v6); v10 = operator new(v9); } v4[6] = v10; v4[7] = v10; v4[8] = v9 + v10; v11 = v10; v12 = a1[7]; for ( i = a1[6] + 16; v12 != i - 16; i += 28 ) { if ( v11 ) { *(_DWORD *)v11 = *(_DWORD *)(i - 16); *(_DWORD *)(v11 + 4) = *(_DWORD *)(i - 12); *(_DWORD *)(v11 + 8) = *(_DWORD *)(i - 8); *(_BYTE *)(v11 + 12) = *(_BYTE *)(i - 4); std::vector::vector((unsigned int *)(v11 + 16), i); } v11 += 28; } v14 = *a1; v4[7] = v11; *v4 = v14; v4[2] = 0; v4[3] = 0; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source