// // sub_100481144 from 0x100481144 to 0x1004812d4 (400 bytes) // // 5 xrefs: // > sub_100481004 @ 0x10048107c // > sub_1004810C0 @ 0x1004810cc // > sub_1004810DC @ 0x10048110c // > sub_10048454C @ 0x1004845fc // > sub_1004847D8 @ 0x100484850 // // 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_100481144(__int64 a1, __int64 a2) { int v4; // w8 int v5; // w8 int v6; // w8 int v7; // w9 __int64 v8; // x8 int v9; // w8 int v10; // w9 int v11; // w9 if ( !*(_DWORD *)(a1 + 3052) ) { if ( *(_BYTE *)(a1 + 3049) && !*(_BYTE *)(a1 + 3050) ) { sub_1004B2E70(a1); v4 = *(_DWORD *)(a1 + 3056); if ( v4 ) goto LABEL_16; LABEL_29: *(_BYTE *)(a1 + 3049) = 1; goto LABEL_30; } v5 = *(_DWORD *)(a1 + 3084); if ( v5 < 0 ) { v6 = *(_DWORD *)(a1 + 3080); if ( v6 < 0 ) { LABEL_10: sub_100481C14(a1, a2); if ( *(_DWORD *)(a1 + 3080) == -1 ) { v7 = *(_DWORD *)(a1 + 3064) + 1; *(_DWORD *)(a1 + 3080) = v7; v8 = *(int *)(a1 + 3068); if ( v7 >= *(_DWORD *)(*(_QWORD *)(a1 + 632) + 16LL * *(unsigned __int8 *)(a1 + v8 + 656)) ) { v9 = v8 + 1; *(_DWORD *)(a1 + 3084) = v9; if ( v9 >= *(_DWORD *)(a1 + 2284) ) *(_DWORD *)(a1 + 3084) = *(_DWORD *)(a1 + 3024); *(_DWORD *)(a1 + 3080) = 0; } } LABEL_15: v4 = *(_DWORD *)(a1 + 3056); if ( v4 ) goto LABEL_16; goto LABEL_29; } } else { LABEL_19: *(_DWORD *)(a1 + 3068) = v5; while ( 1 ) { v11 = *(unsigned __int8 *)(a1 + v5 + 656); if ( v11 != 254 ) break; *(_DWORD *)(a1 + 3068) = ++v5; if ( v5 >= *(_DWORD *)(a1 + 2284) ) { if ( !*(_BYTE *)(a1 + 3050) ) sub_1004B2E70(a1); v5 = *(_DWORD *)(a1 + 3024); goto LABEL_19; } } if ( v11 == 255 ) *(_DWORD *)(a1 + 3068) = *(_DWORD *)(a1 + 3024); *(_DWORD *)(a1 + 3084) = -1; v6 = *(_DWORD *)(a1 + 3080); if ( v6 < 0 ) goto LABEL_10; } *(_DWORD *)(a1 + 3064) = v6; *(_DWORD *)(a1 + 3080) = -1; goto LABEL_10; } if ( !(_DWORD)a2 ) goto LABEL_15; sub_1004825A8(a1); v4 = *(_DWORD *)(a1 + 3056); if ( !v4 ) goto LABEL_29; LABEL_16: v10 = *(_DWORD *)(a1 + 3052) + 1; *(_DWORD *)(a1 + 3052) = v10; if ( v10 >= *(_DWORD *)(a1 + 3072) + v4 ) { *(_DWORD *)(a1 + 3072) = 0; *(_DWORD *)(a1 + 3052) = 0; } LABEL_30: *(_DWORD *)(a1 + 2136) += *(_DWORD *)(a1 + 2132); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source