{"type": "func", "start": 4300324736, "end": 4300325072, "name": "GameLevelManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// GameLevelManager::onProcessHttpRequestCompleted from 0x10051bf80 to 0x10051c0d0 (336 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::performNetworkTest @ 0x10051beca\n// > GameLevelManager::ProcessHttpRequest @ 0x10051c26f\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:31:41 +0000\n// \n\nvoid __fastcall GameLevelManager::onProcessHttpRequestCompleted(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rbx\n  __int64 v4; // rax\n  const char *v5; // r15\n  unsigned int v6; // r14d\n  size_t v7; // rax\n  size_t v8; // r12\n  char *v9; // r13\n  size_t v10; // rbx\n  __int128 v11; // [rsp+0h] [rbp-80h] BYREF\n  void *v12; // [rsp+10h] [rbp-70h]\n  __int128 v13; // [rsp+20h] [rbp-60h] BYREF\n  void *__p; // [rsp+30h] [rbp-50h]\n  _QWORD __dst[2]; // [rsp+38h] [rbp-48h] BYREF\n  void *v16; // [rsp+48h] [rbp-38h]\n  unsigned int v17; // [rsp+54h] [rbp-2Ch]\n\n  v3 = a1;\n  v4 = *(_QWORD *)(a3 + 56);\n  if ( (*(_BYTE *)(v4 + 112) & 1) != 0 )\n    v5 = *(const char **)(v4 + 128);\n  else\n    v5 = (const char *)(v4 + 113);\n  v6 = *(_DWORD *)(v4 + 192);\n  GameToolbox::getResponse((__int64)&v13, a3);\n  if ( (v13 & 1) != 0 )\n  {\n    sub_10001AD30(&v11, __p, *((unsigned __int64 *)&v13 + 1));\n  }\n  else\n  {\n    v12 = __p;\n    v11 = v13;\n  }\n  v7 = strlen(v5);\n  if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v8 = v7;\n  if ( v7 >= 0x17 )\n  {\n    v17 = v6;\n    v10 = 26;\n    if ( (v7 | 7) != 0x17 )\n      v10 = (v7 | 7) + 1;\n    v9 = (char *)operator new(v10);\n    v16 = v9;\n    __dst[0] = v10 | 1;\n    __dst[1] = v8;\n    v3 = a1;\n    v6 = v17;\n    goto LABEL_14;\n  }\n  LOBYTE(__dst[0]) = 2 * v7;\n  v9 = (char *)__dst + 1;\n  if ( v7 )\nLABEL_14:\n    memmove(v9, v5, v8);\n  v9[v8] = 0;\n  GameLevelManager::handleIt(v3, 1, &v11, __dst, v6);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    operator delete(v16);\n    if ( (v11 & 1) == 0 )\n    {\nLABEL_17:\n      if ( (v13 & 1) == 0 )\n        return;\n      goto LABEL_18;\n    }\n  }\n  else if ( (v11 & 1) == 0 )\n  {\n    goto LABEL_17;\n  }\n  operator delete(v12);\n  if ( (v13 & 1) != 0 )\nLABEL_18:\n    operator delete(__p);\n}", "assembly": "; \n; GameLevelManager::onProcessHttpRequestCompleted from 0x10051bf80 to 0x10051c0d0 (336 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::performNetworkTest @ 0x10051beca\n; > GameLevelManager::ProcessHttpRequest @ 0x10051c26f\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:31:41 +0000\n; \npush    rbp                                                            ; +0x0, 0x10051bf80\nmov     rbp, rsp                                                       ; +0x1, 0x10051bf81\npush    r15                                                            ; +0x4, 0x10051bf84\npush    r14                                                            ; +0x6, 0x10051bf86\npush    r13                                                            ; +0x8, 0x10051bf88\npush    r12                                                            ; +0xa, 0x10051bf8a\npush    rbx                                                            ; +0xc, 0x10051bf8c\nsub     rsp, 58h                                                       ; +0xd, 0x10051bf8d\nmov     rbx, rdi                                                       ; +0x11, 0x10051bf91\nmov     rax, [rdx+38h]                                                 ; +0x14, 0x10051bf94\ntest    byte ptr [rax+70h], 1                                          ; +0x18, 0x10051bf98\njnz     short loc_10051BFA4                                            ; +0x1c, 0x10051bf9c\nlea     r15, [rax+71h]                                                 ; +0x1e, 0x10051bf9e\njmp     short loc_10051BFAB                                            ; +0x22, 0x10051bfa2\nmov     r15, [rax+80h]                                                 ; +0x24, 0x10051bfa4\nmov     r14d, [rax+0C0h]                                               ; +0x2b, 0x10051bfab\nlea     rdi, [rbp+var_60]                                              ; +0x32, 0x10051bfb2\nmov     rsi, rdx                                                       ; +0x36, 0x10051bfb6\ncall    GameToolbox__getResponse                                       ; +0x39, 0x10051bfb9\ntest    byte ptr [rbp+var_60], 1                                       ; +0x3e, 0x10051bfbe\njnz     short loc_10051BFD6                                            ; +0x42, 0x10051bfc2\nmov     rax, [rbp+__p]                                                 ; +0x44, 0x10051bfc4\nmov     [rbp+var_70], rax                                              ; +0x48, 0x10051bfc8\nmovups  xmm0, [rbp+var_60]                                             ; +0x4c, 0x10051bfcc\nmovaps  [rbp+var_80], xmm0                                             ; +0x50, 0x10051bfd0\njmp     short loc_10051BFE7                                            ; +0x54, 0x10051bfd4\nmov     rdx, qword ptr [rbp+var_60+8]                                  ; +0x56, 0x10051bfd6\nmov     rsi, [rbp+__p]                                                 ; +0x5a, 0x10051bfda\nlea     rdi, [rbp+var_80]                                              ; +0x5e, 0x10051bfde\ncall    sub_10001AD30                                                  ; +0x62, 0x10051bfe2\nmov     rdi, r15; __s                                                  ; +0x67, 0x10051bfe7\ncall    _strlen                                                        ; +0x6a, 0x10051bfea\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x6f, 0x10051bfef\njnb     loc_10051C0CB                                                  ; +0x73, 0x10051bff3\nmov     r12, rax                                                       ; +0x79, 0x10051bff9\ncmp     rax, 17h                                                       ; +0x7c, 0x10051bffc\njnb     short loc_10051C014                                            ; +0x80, 0x10051c000\nlea     eax, [r12+r12]                                                 ; +0x82, 0x10051c002\nmov     byte ptr [rbp+__dst], al                                       ; +0x86, 0x10051c006\nlea     r13, [rbp+__dst+1]                                             ; +0x89, 0x10051c009\ntest    r12, r12                                                       ; +0x8d, 0x10051c00d\njnz     short loc_10051C055                                            ; +0x90, 0x10051c010\njmp     short loc_10051C063                                            ; +0x92, 0x10051c012\nmov     [rbp+var_2C], r14d                                             ; +0x94, 0x10051c014\nmov     r14, rbx                                                       ; +0x98, 0x10051c018\nmov     rax, r12                                                       ; +0x9b, 0x10051c01b\nor      rax, 7                                                         ; +0x9e, 0x10051c01e\nlea     rcx, [rax+1]                                                   ; +0xa2, 0x10051c022\ncmp     rax, 17h                                                       ; +0xa6, 0x10051c026\nmov     ebx, 1Ah                                                       ; +0xaa, 0x10051c02a\ncmovnz  rbx, rcx                                                       ; +0xaf, 0x10051c02f\nmov     rdi, rbx; __sz                                                 ; +0xb3, 0x10051c033\ncall    __Znwm; operator new(ulong)                                    ; +0xb6, 0x10051c036\nmov     r13, rax                                                       ; +0xbb, 0x10051c03b\nmov     [rbp+var_38], rax                                              ; +0xbe, 0x10051c03e\nor      rbx, 1                                                         ; +0xc2, 0x10051c042\nmov     [rbp+__dst], rbx                                               ; +0xc6, 0x10051c046\nmov     [rbp+var_40], r12                                              ; +0xca, 0x10051c04a\nmov     rbx, r14                                                       ; +0xce, 0x10051c04e\nmov     r14d, [rbp+var_2C]                                             ; +0xd1, 0x10051c051\nmov     rdi, r13; __dst                                                ; +0xd5, 0x10051c055\nmov     rsi, r15; __src                                                ; +0xd8, 0x10051c058\nmov     rdx, r12; __len                                                ; +0xdb, 0x10051c05b\ncall    _memmove                                                       ; +0xde, 0x10051c05e\nmov     byte ptr [r13+r12+0], 0                                        ; +0xe3, 0x10051c063\nlea     rdx, [rbp+var_80]                                              ; +0xe9, 0x10051c069\nlea     rcx, [rbp+__dst]                                               ; +0xed, 0x10051c06d\nmov     rdi, rbx                                                       ; +0xf1, 0x10051c071\nmov     esi, 1                                                         ; +0xf4, 0x10051c074\nmov     r8d, r14d                                                      ; +0xf9, 0x10051c079\ncall    GameLevelManager__handleIt                                     ; +0xfc, 0x10051c07c\ntest    byte ptr [rbp+__dst], 1                                        ; +0x101, 0x10051c081\njnz     short loc_10051C0AB                                            ; +0x105, 0x10051c085\ntest    byte ptr [rbp+var_80], 1                                       ; +0x107, 0x10051c087\njnz     short loc_10051C0BA                                            ; +0x10b, 0x10051c08b\ntest    byte ptr [rbp+var_60], 1                                       ; +0x10d, 0x10051c08d\njz      short loc_10051C09C                                            ; +0x111, 0x10051c091\nmov     rdi, [rbp+__p]; __p                                            ; +0x113, 0x10051c093\ncall    __ZdlPv; operator delete(void *)                               ; +0x117, 0x10051c097\nadd     rsp, 58h                                                       ; +0x11c, 0x10051c09c\npop     rbx                                                            ; +0x120, 0x10051c0a0\npop     r12                                                            ; +0x121, 0x10051c0a1\npop     r13                                                            ; +0x123, 0x10051c0a3\npop     r14                                                            ; +0x125, 0x10051c0a5\npop     r15                                                            ; +0x127, 0x10051c0a7\npop     rbp                                                            ; +0x129, 0x10051c0a9\nretn                                                                   ; +0x12a, 0x10051c0aa\nmov     rdi, [rbp+var_38]; __p                                         ; +0x12b, 0x10051c0ab\ncall    __ZdlPv; operator delete(void *)                               ; +0x12f, 0x10051c0af\ntest    byte ptr [rbp+var_80], 1                                       ; +0x134, 0x10051c0b4\njz      short loc_10051C08D                                            ; +0x138, 0x10051c0b8\nmov     rdi, [rbp+var_70]; __p                                         ; +0x13a, 0x10051c0ba\ncall    __ZdlPv; operator delete(void *)                               ; +0x13e, 0x10051c0be\ntest    byte ptr [rbp+var_60], 1                                       ; +0x143, 0x10051c0c3\njnz     short loc_10051C093                                            ; +0x147, 0x10051c0c7\njmp     short loc_10051C09C                                            ; +0x149, 0x10051c0c9\ncall    sub_100003630                                                  ; +0x14b, 0x10051c0cb", "xrefs": ["GameLevelManager::performNetworkTest @ 0x10051beca", "GameLevelManager::ProcessHttpRequest @ 0x10051c26f"], "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"}