{"type": "func", "start": 6442569296, "end": 6442569473, "name": "cocos2d::extension::CCHttpRequest::setRequestData", "pseudocode": "// \n// cocos2d::extension::CCHttpRequest::setRequestData from 0x18001ce50 to 0x18001cf01 (177 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180031e04\n// > <???> @ 0x180031e14\n// > <???> @ 0x180032408\n// > <???> @ 0x18004cecc\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:43 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCHttpRequest::setRequestData(\n        cocos2d::extension::CCHttpRequest *this,\n        const char *a2,\n        unsigned int a3)\n{\n  char *v3; // rbx\n  char *v4; // rsi\n  size_t v6; // rdi\n  char *v7; // rbx\n  char *v8; // rax\n  unsigned __int64 v9; // r14\n\n  v3 = *((char **)this + 12);\n  v4 = (char *)this + 96;\n  v6 = a3;\n  if ( (unsigned __int64)a3 <= *((_QWORD *)this + 14) - (_QWORD)v3 )\n  {\n    v9 = *((_QWORD *)this + 13) - (_QWORD)v3;\n    if ( a3 <= v9 )\n    {\n      memmove(v3, a2, a3);\n    }\n    else\n    {\n      memmove(v3, a2, *((_QWORD *)this + 13) - (_QWORD)v3);\n      v3 = *((char **)v4 + 1);\n      v6 -= v9;\n      memmove(v3, &a2[v9], v6);\n    }\n    v8 = &v3[v6];\n  }\n  else\n  {\n    sub_180018C60((__int64)this + 96, a3);\n    v7 = *(char **)v4;\n    memmove(*(void **)v4, a2, (unsigned int)v6);\n    v8 = &v7[v6];\n  }\n  *((_QWORD *)v4 + 1) = v8;\n}", "assembly": "; \n; cocos2d::extension::CCHttpRequest::setRequestData from 0x18001ce50 to 0x18001cf01 (177 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180031e04\n; > <???> @ 0x180031e14\n; > <???> @ 0x180032408\n; > <???> @ 0x18004cecc\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:43 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18001ce50\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18001ce55\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18001ce5a\npush    rdi                                                            ; +0xf, 0x18001ce5f\nsub     rsp, 20h                                                       ; +0x10, 0x18001ce60\nmov     rbx, [rcx+60h]                                                 ; +0x14, 0x18001ce64\nlea     rsi, [rcx+60h]                                                 ; +0x18, 0x18001ce68\nmov     rax, [rsi+10h]                                                 ; +0x1c, 0x18001ce6c\nmov     rbp, rdx                                                       ; +0x20, 0x18001ce70\nsub     rax, rbx                                                       ; +0x23, 0x18001ce73\nmov     edi, r8d                                                       ; +0x26, 0x18001ce76\ncmp     rdi, rax                                                       ; +0x29, 0x18001ce79\njbe     short loc_18001CE9F                                            ; +0x2c, 0x18001ce7c\nmov     edx, edi                                                       ; +0x2e, 0x18001ce7e\nmov     rcx, rsi                                                       ; +0x30, 0x18001ce80\ncall    sub_180018C60                                                  ; +0x33, 0x18001ce83\nmov     rbx, [rsi]                                                     ; +0x38, 0x18001ce88\nmov     r8d, edi; Size                                                 ; +0x3b, 0x18001ce8b\nmov     rcx, rbx; void *                                               ; +0x3e, 0x18001ce8e\nmov     rdx, rbp; Src                                                  ; +0x41, 0x18001ce91\ncall    memmove                                                        ; +0x44, 0x18001ce94\nlea     rax, [rbx+rdi]                                                 ; +0x49, 0x18001ce99\njmp     short loc_18001CEE8                                            ; +0x4d, 0x18001ce9d\nmov     [rsp+28h+arg_0], r14                                           ; +0x4f, 0x18001ce9f\nmov     rcx, rbx; void *                                               ; +0x54, 0x18001cea4\nmov     r14, [rsi+8]                                                   ; +0x57, 0x18001cea7\nsub     r14, rbx                                                       ; +0x5b, 0x18001ceab\ncmp     rdi, r14                                                       ; +0x5e, 0x18001ceae\njbe     short loc_18001CED7                                            ; +0x61, 0x18001ceb1\nmov     r8, r14; Size                                                  ; +0x63, 0x18001ceb3\ncall    memmove                                                        ; +0x66, 0x18001ceb6\nmov     rbx, [rsi+8]                                                   ; +0x6b, 0x18001cebb\nlea     rdx, [r14+rbp]; Src                                            ; +0x6f, 0x18001cebf\nsub     rdi, r14                                                       ; +0x73, 0x18001cec3\nmov     rcx, rbx; void *                                               ; +0x76, 0x18001cec6\nmov     r8, rdi; Size                                                  ; +0x79, 0x18001cec9\ncall    memmove                                                        ; +0x7c, 0x18001cecc\nlea     rax, [rdi+rbx]                                                 ; +0x81, 0x18001ced1\njmp     short loc_18001CEE3                                            ; +0x85, 0x18001ced5\nmov     r8, rdi; Size                                                  ; +0x87, 0x18001ced7\ncall    memmove                                                        ; +0x8a, 0x18001ceda\nlea     rax, [rbx+rdi]                                                 ; +0x8f, 0x18001cedf\nmov     r14, [rsp+28h+arg_0]                                           ; +0x93, 0x18001cee3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x98, 0x18001cee8\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x9d, 0x18001ceed\nmov     [rsi+8], rax                                                   ; +0xa2, 0x18001cef2\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xa6, 0x18001cef6\nadd     rsp, 20h                                                       ; +0xab, 0x18001cefb\npop     rdi                                                            ; +0xaf, 0x18001ceff\nretn                                                                   ; +0xb0, 0x18001cf00", "xrefs": ["<???> @ 0x180031e04", "<???> @ 0x180031e14", "<???> @ 0x180032408", "<???> @ 0x18004cecc"], "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"}