{"type": "func", "start": 6442547008, "end": 6442547371, "name": "sub_180017740", "pseudocode": "// \n// sub_180017740 from 0x180017740 to 0x1800178ab (363 bytes)\n// \n// 6 xrefs:\n// > sub_180017B30 @ 0x180017bfb\n// > sub_180017B30 @ 0x180017cf1\n// > sub_180017B30 @ 0x180017dbd\n// > sub_180017B30 @ 0x180017e6c\n// > sub_180017B30 @ 0x180017eef\n// > <???> @ 0x18004c9bc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:42 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar __fastcall sub_180017740(__int64 a1, __int64 a2)\n{\n  int v3; // edi\n  cocos2d::extension::CCHttpClient *v4; // rax\n  cocos2d::extension::CCHttpClient *v6; // [rsp+30h] [rbp+8h]\n  cocos2d::extension::CCHttpClient *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !a1 || !a2 )\n    return 0;\n  v3 = *(_DWORD *)(a2 + 212);\n  v4 = (cocos2d::extension::CCHttpClient *)qword_18004A778;\n  if ( *(int *)(a2 + 216) <= 0 && !qword_18004A778 )\n  {\n    v6 = (cocos2d::extension::CCHttpClient *)sub_18001F040(0x48u);\n    v4 = cocos2d::extension::CCHttpClient::CCHttpClient(v6);\n    qword_18004A778 = (__int64)v4;\n  }\n  if ( v3 <= 0 && !v4 )\n  {\n    v7 = (cocos2d::extension::CCHttpClient *)sub_18001F040(0x48u);\n    qword_18004A778 = (__int64)cocos2d::extension::CCHttpClient::CCHttpClient(v7);\n  }\n  curl_easy_setopt(a1, 10010);\n  curl_easy_setopt(a1, 99);\n  curl_easy_setopt(a1, 78);\n  curl_easy_setopt(a1, 13);\n  curl_easy_setopt(a1, 64);\n  curl_easy_setopt(a1, 81);\n  curl_easy_setopt(a1, 52);\n  curl_easy_setopt(a1, 75);\n  curl_easy_setopt(a1, 213);\n  curl_easy_setopt(a1, 92);\n  return 1;\n}", "assembly": "; \n; sub_180017740 from 0x180017740 to 0x1800178ab (363 bytes)\n; \n; 6 xrefs:\n; > sub_180017B30 @ 0x180017bfb\n; > sub_180017B30 @ 0x180017cf1\n; > sub_180017B30 @ 0x180017dbd\n; > sub_180017B30 @ 0x180017e6c\n; > sub_180017B30 @ 0x180017eef\n; > <???> @ 0x18004c9bc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:42 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180017740\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180017745\npush    rdi                                                            ; +0xa, 0x18001774a\nsub     rsp, 20h                                                       ; +0xb, 0x18001774b\nmov     rbx, rcx                                                       ; +0xf, 0x18001774f\ntest    rcx, rcx                                                       ; +0x12, 0x180017752\njz      loc_180017899                                                  ; +0x15, 0x180017755\ntest    rdx, rdx                                                       ; +0x1b, 0x18001775b\njz      loc_180017899                                                  ; +0x1e, 0x18001775e\nmov     esi, [rdx+0D8h]                                                ; +0x24, 0x180017764\nmov     edi, [rdx+0D4h]                                                ; +0x2a, 0x18001776a\nmov     rax, cs:qword_18004A778                                        ; +0x30, 0x180017770\ntest    esi, esi                                                       ; +0x37, 0x180017777\njg      short loc_1800177A2                                            ; +0x39, 0x180017779\ntest    rax, rax                                                       ; +0x3b, 0x18001777b\njnz     short loc_18001779F                                            ; +0x3e, 0x18001777e\nmov     ecx, 48h ; 'H'; Size                                           ; +0x40, 0x180017780\ncall    sub_18001F040                                                  ; +0x45, 0x180017785\nmov     [rsp+28h+arg_0], rax                                           ; +0x4a, 0x18001778a\nmov     rcx, rax; this                                                 ; +0x4f, 0x18001778f\ncall    ??0CCHttpClient@extension@cocos2d@@AEAA@XZ; cocos2d::extension::CCHttpClient::CCHttpClient(void) ; +0x52, 0x180017792\nnop                                                                    ; +0x57, 0x180017797\nmov     cs:qword_18004A778, rax                                        ; +0x58, 0x180017798\nmov     esi, [rax+40h]                                                 ; +0x5f, 0x18001779f\ntest    edi, edi                                                       ; +0x62, 0x1800177a2\njg      short loc_1800177CD                                            ; +0x64, 0x1800177a4\ntest    rax, rax                                                       ; +0x66, 0x1800177a6\njnz     short loc_1800177CA                                            ; +0x69, 0x1800177a9\nmov     ecx, 48h ; 'H'; Size                                           ; +0x6b, 0x1800177ab\ncall    sub_18001F040                                                  ; +0x70, 0x1800177b0\nmov     [rsp+28h+arg_0], rax                                           ; +0x75, 0x1800177b5\nmov     rcx, rax; this                                                 ; +0x7a, 0x1800177ba\ncall    ??0CCHttpClient@extension@cocos2d@@AEAA@XZ; cocos2d::extension::CCHttpClient::CCHttpClient(void) ; +0x7d, 0x1800177bd\nnop                                                                    ; +0x82, 0x1800177c2\nmov     cs:qword_18004A778, rax                                        ; +0x83, 0x1800177c3\nmov     edi, [rax+44h]                                                 ; +0x8a, 0x1800177ca\nlea     r8, unk_18004A670                                              ; +0x8d, 0x1800177cd\nmov     edx, 271Ah                                                     ; +0x94, 0x1800177d4\nmov     rcx, rbx                                                       ; +0x99, 0x1800177d9\ncall    cs:curl_easy_setopt                                            ; +0x9c, 0x1800177dc\nmov     edx, 63h ; 'c'                                                 ; +0xa2, 0x1800177e2\nmov     r8d, 1                                                         ; +0xa7, 0x1800177e7\nmov     rcx, rbx                                                       ; +0xad, 0x1800177ed\ncall    cs:curl_easy_setopt                                            ; +0xb0, 0x1800177f0\nmov     r8d, esi                                                       ; +0xb6, 0x1800177f6\nmov     edx, 4Eh ; 'N'                                                 ; +0xb9, 0x1800177f9\nmov     rcx, rbx                                                       ; +0xbe, 0x1800177fe\ncall    cs:curl_easy_setopt                                            ; +0xc1, 0x180017801\nmov     r8d, edi                                                       ; +0xc7, 0x180017807\nmov     edx, 0Dh                                                       ; +0xca, 0x18001780a\nmov     rcx, rbx                                                       ; +0xcf, 0x18001780f\ncall    cs:curl_easy_setopt                                            ; +0xd2, 0x180017812\nxor     r8d, r8d                                                       ; +0xd8, 0x180017818\nmov     edx, 40h ; '@'                                                 ; +0xdb, 0x18001781b\nmov     rcx, rbx                                                       ; +0xe0, 0x180017820\ncall    cs:curl_easy_setopt                                            ; +0xe3, 0x180017823\nxor     r8d, r8d                                                       ; +0xe9, 0x180017829\nmov     edx, 51h ; 'Q'                                                 ; +0xec, 0x18001782c\nmov     rcx, rbx                                                       ; +0xf1, 0x180017831\ncall    cs:curl_easy_setopt                                            ; +0xf4, 0x180017834\nmov     edx, 34h ; '4'                                                 ; +0xfa, 0x18001783a\nmov     r8d, 1                                                         ; +0xff, 0x18001783f\nmov     rcx, rbx                                                       ; +0x105, 0x180017845\ncall    cs:curl_easy_setopt                                            ; +0x108, 0x180017848\nxor     r8d, r8d                                                       ; +0x10e, 0x18001784e\nmov     edx, 4Bh ; 'K'                                                 ; +0x111, 0x180017851\nmov     rcx, rbx                                                       ; +0x116, 0x180017856\ncall    cs:curl_easy_setopt                                            ; +0x119, 0x180017859\nmov     edx, 0D5h                                                      ; +0x11f, 0x18001785f\nmov     r8d, 1                                                         ; +0x124, 0x180017864\nmov     rcx, rbx                                                       ; +0x12a, 0x18001786a\ncall    cs:curl_easy_setopt                                            ; +0x12d, 0x18001786d\nmov     edx, 5Ch ; '\\'                                                 ; +0x133, 0x180017873\nmov     r8d, 3Ch ; '<'                                                 ; +0x138, 0x180017878\nmov     rcx, rbx                                                       ; +0x13e, 0x18001787e\ncall    cs:curl_easy_setopt                                            ; +0x141, 0x180017881\nmov     al, 1                                                          ; +0x147, 0x180017887\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x149, 0x180017889\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x14e, 0x18001788e\nadd     rsp, 20h                                                       ; +0x153, 0x180017893\npop     rdi                                                            ; +0x157, 0x180017897\nretn                                                                   ; +0x158, 0x180017898\nxor     al, al                                                         ; +0x159, 0x180017899\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x15b, 0x18001789b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x160, 0x1800178a0\nadd     rsp, 20h                                                       ; +0x165, 0x1800178a5\npop     rdi                                                            ; +0x169, 0x1800178a9\nretn                                                                   ; +0x16a, 0x1800178aa", "xrefs": ["sub_180017B30 @ 0x180017bfb", "sub_180017B30 @ 0x180017cf1", "sub_180017B30 @ 0x180017dbd", "sub_180017B30 @ 0x180017e6c", "sub_180017B30 @ 0x180017eef", "<???> @ 0x18004c9bc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}