// // sub_100438410 from 0x100438410 to 0x10043851a (266 bytes) // // 1 xrefs: // > cocos2d::extension::CCHttpClient::send @ 0x10043894a // // 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 // void __fastcall sub_100438410(__int64 a1, __int64 a2) { std::mutex *v4; // r14 __int64 v5; // rsi __int64 v6; // rax __int64 v7; // rdx unsigned __int64 v8; // r12 __int64 v9; // rdi __int64 v10; // rax v4 = (std::mutex *)(a1 + 72); std::mutex::lock((std::mutex *)(a1 + 72)); if ( *(_BYTE *)(a1 + 184) ) { std::mutex::unlock(v4); return; } v5 = *(_QWORD *)(a1 + 32); v6 = *(_QWORD *)(a1 + 40); v7 = 0; if ( v6 != v5 ) v7 = 85 * ((*(_QWORD *)(a1 + 40) - v5) >> 3) - 1; if ( v7 == *(_QWORD *)(a1 + 56) + *(_QWORD *)(a1 + 64) ) { sub_100439150(a1 + 24); v5 = *(_QWORD *)(a1 + 32); v6 = *(_QWORD *)(a1 + 40); } if ( v6 == v5 ) { v8 = 0; v9 = *(_QWORD *)(a2 + 32); if ( v9 ) goto LABEL_9; LABEL_12: v10 = 0; goto LABEL_13; } v8 = *(_QWORD *)(v5 + 8 * ((*(_QWORD *)(a1 + 56) + *(_QWORD *)(a1 + 64)) / 0x55uLL)) + 48 * ((*(_QWORD *)(a1 + 56) + *(_QWORD *)(a1 + 64)) % 0x55uLL); v9 = *(_QWORD *)(a2 + 32); if ( !v9 ) goto LABEL_12; LABEL_9: if ( v9 == a2 ) { *(_QWORD *)(v8 + 32) = v8; (*(void (__fastcall **)(_QWORD, unsigned __int64))(**(_QWORD **)(a2 + 32) + 24LL))(*(_QWORD *)(a2 + 32), v8); goto LABEL_15; } v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 16LL))(v9); LABEL_13: *(_QWORD *)(v8 + 32) = v10; LABEL_15: ++*(_QWORD *)(a1 + 64); std::mutex::unlock(v4); std::condition_variable::notify_one((std::condition_variable *)(a1 + 136)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source