// // sub_845F08 from 0x845f08 to 0x845fc0 (184 bytes) // // 1 xrefs: // > sub_82066C @ 0x820714 // // 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:02:24 +0000 // void **__fastcall sub_845F08(char *cp, unsigned __int16 a2) { void **result; // r0 _DWORD *v5; // r4 char *v6; // r9 int v7; // r0 void **v8; // r6 int v9; // [sp+4h] [bp+0h] BYREF char *buf[5]; // [sp+8h] [bp+4h] BYREF if ( inet_pton(2, cp, &v9) <= 0 ) { if ( inet_pton(10, cp, buf) <= 0 ) return nullptr; else return sub_845E34(10, buf, cp, a2); } else { result = (void **)off_D200AC(0x2Cu); v5 = result; if ( result ) { v6 = off_D200B8(cp); if ( v6 ) { v7 = v9; v5[1] = 0; v5[9] = v5 + 5; v5[5] = v7; v5[3] = 4; v5[10] = 0; v5[2] = 2; v5[4] = v5 + 9; *v5 = v6; v8 = sub_845CD0((int)v5, a2); off_D200B0(v6); off_D200B0(v5); return v8; } else { off_D200B0(v5); return nullptr; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source