// // sub_10043A2A0 from 0x10043a2a0 to 0x10043a411 (369 bytes) // // 5 xrefs: // > sub_100439970 @ 0x100439a1a // > sub_100439970 @ 0x100439a70 // > sub_100439970 @ 0x100439ac6 // > sub_100439970 @ 0x100439b1c // > sub_100439970 @ 0x100439b72 // // 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 // bool __fastcall sub_10043A2A0(CURL *curl, __int64 a2) { int v2; // r15d int v3; // r12d _DWORD *v4; // r14 _DWORD *v5; // r14 if ( a2 ) { v2 = *(_DWORD *)(a2 + 204); v3 = *(_DWORD *)(a2 + 208); if ( v3 <= 0 ) { if ( qword_1009A1778 ) { v3 = *(_DWORD *)(qword_1009A1778 + 64); if ( v2 <= 0 ) goto LABEL_9; } else { v4 = operator new(0x48u); cocos2d::extension::CCHttpClient::CCHttpClient((__int64)v4, a2); qword_1009A1778 = (__int64)v4; v3 = v4[16]; if ( v2 <= 0 ) { LABEL_9: v5 = (_DWORD *)qword_1009A1778; if ( !qword_1009A1778 ) { v5 = operator new(0x48u); cocos2d::extension::CCHttpClient::CCHttpClient((__int64)v5, a2); qword_1009A1778 = (__int64)v5; } v2 = v5[17]; } } } else if ( v2 <= 0 ) { goto LABEL_9; } curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &unk_1009A1780); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, (unsigned int)v3); curl_easy_setopt(curl, CURLOPT_TIMEOUT, (unsigned int)v2); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 0); curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1); curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 60); } return a2 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source