// // sub_639314 from 0x639314 to 0x639450 (316 bytes) // // 0 xrefs: // // 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 // int __fastcall sub_639314(int *a1, int a2) { int v3; // r3 int v4; // r5 int v5; // r4 int result; // r0 int v7; // r9 int v8; // r10 char *v9; // r11 int v10; // r4 int v11; // r3 _BOOL4 v12; // r3 __time_t v13; // r1 __time_t v14[3]; // [sp+8h] [bp-14h] BYREF int v15; // [sp+14h] [bp-8h] BYREF v3 = *a1; v4 = *(_DWORD *)(*a1 + 332); if ( !v4 ) return 0; if ( !a1[283] ) return 0; v5 = a2; if ( a2 ) { sub_62E0A4((int)a1, 1); LABEL_5: off_ABAEB0(*(void **)(v4 + 4)); result = v5; *(_DWORD *)(v4 + 4) = 0; *(_DWORD *)v4 = 0; return result; } if ( *(_BYTE *)(v3 + 937) || !*(_BYTE *)(v3 + 905) || !*(_DWORD *)(v3 + 1216) ) goto LABEL_5; if ( !*(_BYTE *)(v4 + 16) && *(_QWORD *)(v3 + 34712) ) { v7 = 5; v8 = 5; v9 = off_ABAEB8("\r\n.\r\n"); } else { v7 = 3; v8 = 3; v9 = off_ABAEB8(".\r\n"); } result = 27; if ( v9 ) { v10 = sub_61831C((int)a1, a1[170], (int)v9, v7, &v15); if ( v10 ) { off_ABAEB0(v9); return v10; } if ( v15 == v8 ) { sub_60F990(v14); v13 = v14[1]; a1[280] = v14[0]; a1[281] = v13; off_ABAEB0(v9); } else { v11 = v8 - v15; a1[277] = (int)v9; a1[278] = v11; a1[279] = v7; } a1[286] = 11; do { v5 = sub_63A580(a1 + 272, 1); v12 = v5 == 0; if ( !a1[286] ) v12 = 0; } while ( v12 ); goto LABEL_5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source