// // sub_100966200 from 0x100966200 to 0x10096648b (651 bytes) // // 1 xrefs: // > sub_100291A50 @ 0x100291a5b // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:38:48 +0000 // _QWORD *__fastcall sub_100966200(__int64 a1, __int64 a2) { int v2; // r14d __int64 v3; // rax __int128 *v4; // r15 __int64 *v5; // rax __int64 v6; // r14 _QWORD *result; // rax _DWORD *v8; // rbx _QWORD *v9; // rbx __int128 v10; // [rsp+0h] [rbp-B0h] BYREF _BYTE __str[80]; // [rsp+10h] [rbp-A0h] BYREF void *v12[2]; // [rsp+60h] [rbp-50h] char *v13; // [rsp+70h] [rbp-40h] std::string v14; // [rsp+80h] [rbp-30h] BYREF if ( !a1 ) return nullptr; v2 = *(_DWORD *)(a1 + 320); v3 = GJAccountManager::sharedState(a1, a2); if ( v2 == *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356) ) return nullptr; v4 = (__int128 *)(a1 + 328); if ( (*(_BYTE *)(a1 + 328) & 1) != 0 ) { sub_10001AD30(&v10, *(const void **)(a1 + 344), *(_QWORD *)(a1 + 336)); } else { *(_QWORD *)__str = *(_QWORD *)(a1 + 344); v10 = *v4; } if ( (v10 & 1) == 0 ) { if ( (unsigned __int8)v10 >> 1 ) goto LABEL_8; return nullptr; } v6 = *((_QWORD *)&v10 + 1); operator delete(*(void **)__str); if ( !v6 ) return nullptr; LABEL_8: DWORD2(v10) = 0; memset(__str, 0, sizeof(__str)); *(_OWORD *)v12 = 0; v13 = nullptr; LODWORD(v10) = 6; DWORD1(v10) = *(_DWORD *)(a1 + 316); v5 = (__int64 *)GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v14, v5, *(_DWORD *)(a1 + 320)); if ( (__str[0] & 1) != 0 ) operator delete(*(void **)&__str[16]); *(std::string *)__str = v14; std::string::operator=((std::string *)&__str[56], (const std::string *)__str); if ( (*(_BYTE *)v4 & 1) != 0 ) { sub_10001AD30(&v14, *(const void **)(a1 + 344), *(_QWORD *)(a1 + 336)); } else { v14.__r_.__value_.__r.__words[2] = *(_QWORD *)(a1 + 344); *(_OWORD *)&v14.__r_.__value_.__l.0 = *v4; } if ( (__str[24] & 1) != 0 ) operator delete(*(void **)&__str[40]); *(std::string *)&__str[24] = v14; v8 = operator new(0x14u); *(_OWORD *)v8 = xmmword_100A14718; v8[4] = 7; if ( v12[0] ) { v12[1] = v12[0]; operator delete(v12[0]); } v12[0] = v8; v12[1] = v8 + 5; v13 = (char *)(v8 + 5); result = sub_1009649F0((__int64)&v10); v9 = result; if ( v12[0] ) { v12[1] = v12[0]; operator delete(v12[0]); result = v9; } if ( (__str[56] & 1) != 0 ) { operator delete(*(void **)&__str[72]); result = v9; if ( (__str[24] & 1) == 0 ) { LABEL_24: if ( (__str[0] & 1) != 0 ) goto LABEL_28; return result; } } else if ( (__str[24] & 1) == 0 ) { goto LABEL_24; } operator delete(*(void **)&__str[40]); result = v9; if ( (__str[0] & 1) != 0 ) { LABEL_28: operator delete(*(void **)&__str[16]); return v9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source