{"type": "func", "start": 5371100096, "end": 5371100526, "name": "GameLevelManager::adminCloseCase", "pseudocode": "// \n// GameLevelManager::adminCloseCase from 0x140247bc0 to 0x140247d6e (430 bytes)\n// \n// 2 xrefs:\n// > AccountReviewPopup::reviewChoicePicked @ 0x1400ba595\n// > <???> @ 0x14091c2ec\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 11:28:39 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar __fastcall GameLevelManager::adminCloseCase(__int64 a1, int a2, unsigned int a3, __int64 a4)\n{\n  cocos2d::CCString *v8; // rax\n  char *CString; // r14\n  cocos2d::CCString *v10; // rax\n  const char *v11; // rax\n  size_t v12; // r8\n  char v13; // bl\n  void *v14; // rcx\n  void *v15; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int64 v18; // [rsp+50h] [rbp-58h]\n  void *v19[2]; // [rsp+58h] [rbp-50h] BYREF\n  __int128 v20; // [rsp+68h] [rbp-40h]\n\n  if ( a3 > 2 )\n    return 0;\n  v8 = cocos2d::CCString::createWithFormat(\"adminCase_%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v8);\n  v10 = cocos2d::CCString::createWithFormat(\"&outcome=%i\", a3);\n  v11 = cocos2d::CCString::getCString(v10);\n  *(_OWORD *)v19 = 0;\n  v20 = 0;\n  v12 = -1;\n  do\n    ++v12;\n  while ( v11[v12] );\n  sub_14003D230(v19, v11, v12);\n  *(_OWORD *)Block = 0;\n  v18 = 0;\n  v13 = GameLevelManager::sendAdminAction(\n          a1,\n          CString,\n          \"https://www.boomlings.com/database/adminCloseCase.php\",\n          0x5Au,\n          a2,\n          (size_t *)v19,\n          a4,\n          (__int64)Block);\n  v14 = Block[0];\n  if ( Block[0] )\n  {\n    if ( ((v18 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )\n    {\n      v14 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v14);\n  }\n  if ( *((_QWORD *)&v20 + 1) > 0xFu )\n  {\n    v15 = v19[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 )\n    {\n      v15 = *((void **)v19[0] - 1);\n      if ( (unsigned __int64)((char *)v19[0] - (char *)v15 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v15);\n  }\n  return v13;\n}", "assembly": "; \n; GameLevelManager::adminCloseCase from 0x140247bc0 to 0x140247d6e (430 bytes)\n; \n; 2 xrefs:\n; > AccountReviewPopup::reviewChoicePicked @ 0x1400ba595\n; > <???> @ 0x14091c2ec\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 11:28:39 +0000\n; \npush    rbx                                                            ; +0x0, 0x140247bc0\npush    rbp                                                            ; +0x2, 0x140247bc2\npush    rsi                                                            ; +0x3, 0x140247bc3\npush    rdi                                                            ; +0x4, 0x140247bc4\npush    r14                                                            ; +0x5, 0x140247bc5\nsub     rsp, 80h                                                       ; +0x7, 0x140247bc7\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x140247bce\nxor     rax, rsp                                                       ; +0x15, 0x140247bd5\nmov     [rsp+0A8h+var_30], rax                                         ; +0x18, 0x140247bd8\nmov     rbp, r9                                                        ; +0x1d, 0x140247bdd\nmov     ebx, r8d                                                       ; +0x20, 0x140247be0\nmov     edi, edx                                                       ; +0x23, 0x140247be3\nmov     rsi, rcx                                                       ; +0x25, 0x140247be5\ncmp     r8d, 2                                                         ; +0x28, 0x140247be8\nja      loc_140247D51                                                  ; +0x2c, 0x140247bec\nlea     rcx, aAdmincaseI; \"adminCase_%i\"                               ; +0x32, 0x140247bf2\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x39, 0x140247bf9\nmov     rcx, rax                                                       ; +0x3f, 0x140247bff\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x42, 0x140247c02\nmov     r14, rax                                                       ; +0x48, 0x140247c08\nmov     edx, ebx                                                       ; +0x4b, 0x140247c0b\nlea     rcx, aOutcomeI; \"&outcome=%i\"                                  ; +0x4d, 0x140247c0d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x54, 0x140247c14\nmov     rcx, rax                                                       ; +0x5a, 0x140247c1a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x5d, 0x140247c1d\nxorps   xmm0, xmm0                                                     ; +0x63, 0x140247c23\nmovups  xmmword ptr [rsp+0A8h+var_50], xmm0                            ; +0x66, 0x140247c26\nxorps   xmm1, xmm1                                                     ; +0x6b, 0x140247c2b\nmovdqu  [rsp+0A8h+var_40], xmm1                                        ; +0x6e, 0x140247c2e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x74, 0x140247c34\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x140247c3b\ninc     r8                                                             ; +0x80, 0x140247c40\ncmp     byte ptr [rax+r8], 0                                           ; +0x83, 0x140247c43\njnz     short loc_140247C40                                            ; +0x88, 0x140247c48\nmov     rdx, rax                                                       ; +0x8a, 0x140247c4a\nlea     rcx, [rsp+0A8h+var_50]                                         ; +0x8d, 0x140247c4d\ncall    sub_14003D230                                                  ; +0x92, 0x140247c52\nnop                                                                    ; +0x97, 0x140247c57\nxorps   xmm0, xmm0                                                     ; +0x98, 0x140247c58\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x9b, 0x140247c5b\nmov     [rsp+0A8h+var_58], 0                                           ; +0xa1, 0x140247c61\nlea     rax, [rsp+0A8h+Block]                                          ; +0xaa, 0x140247c6a\nmov     [rsp+0A8h+var_70], rax                                         ; +0xaf, 0x140247c6f\nmov     [rsp+0A8h+var_78], rbp                                         ; +0xb4, 0x140247c74\nlea     rax, [rsp+0A8h+var_50]                                         ; +0xb9, 0x140247c79\nmov     [rsp+0A8h+var_80], rax                                         ; +0xbe, 0x140247c7e\nmov     dword ptr [rsp+0A8h+Reserved], edi                             ; +0xc3, 0x140247c83\nmov     r9d, 5Ah ; 'Z'                                                 ; +0xc7, 0x140247c87\nlea     r8, aHttpsWwwBoomli_23; \"https://www.boomlings.com/database/admi\"... ; +0xcd, 0x140247c8d\nmov     rdx, r14                                                       ; +0xd4, 0x140247c94\nmov     rcx, rsi                                                       ; +0xd7, 0x140247c97\ncall    GameLevelManager__sendAdminAction                              ; +0xda, 0x140247c9a\nmovzx   ebx, al                                                        ; +0xdf, 0x140247c9f\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0xe2, 0x140247ca2\ntest    rcx, rcx                                                       ; +0xe7, 0x140247ca7\njz      short loc_140247CF9                                            ; +0xea, 0x140247caa\nmov     rdx, [rsp+0A8h+var_58]                                         ; +0xec, 0x140247cac\nsub     rdx, rcx                                                       ; +0xf1, 0x140247cb1\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0xf4, 0x140247cb4\nmov     rax, rcx                                                       ; +0xf8, 0x140247cb8\ncmp     rdx, 1000h                                                     ; +0xfb, 0x140247cbb\njb      short loc_140247CF3                                            ; +0x102, 0x140247cc2\nadd     rdx, 27h ; '''                                                 ; +0x104, 0x140247cc4\nmov     rcx, [rcx-8]                                                   ; +0x108, 0x140247cc8\nsub     rax, rcx                                                       ; +0x10c, 0x140247ccc\nsub     rax, 8                                                         ; +0x10f, 0x140247ccf\ncmp     rax, 1Fh                                                       ; +0x113, 0x140247cd3\njbe     short loc_140247CF3                                            ; +0x117, 0x140247cd7\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0x119, 0x140247cd9\nxor     r9d, r9d; LineNo                                               ; +0x122, 0x140247ce2\nxor     r8d, r8d; FileName                                             ; +0x125, 0x140247ce5\nxor     edx, edx; FunctionName                                         ; +0x128, 0x140247ce8\nxor     ecx, ecx; Expression                                           ; +0x12a, 0x140247cea\ncall    cs:_invoke_watson                                              ; +0x12c, 0x140247cec\ndb 0CCh                                                                ; +0x132, 0x140247cf2\ncall    j_j_free                                                       ; +0x133, 0x140247cf3\nnop                                                                    ; +0x138, 0x140247cf8\nmov     rdx, qword ptr [rsp+0A8h+var_40+8]                             ; +0x139, 0x140247cf9\ncmp     rdx, 0Fh                                                       ; +0x13e, 0x140247cfe\njbe     short loc_140247D4C                                            ; +0x142, 0x140247d02\ninc     rdx                                                            ; +0x144, 0x140247d04\nmov     rcx, [rsp+0A8h+var_50]; Block                                  ; +0x147, 0x140247d07\nmov     rax, rcx                                                       ; +0x14c, 0x140247d0c\ncmp     rdx, 1000h                                                     ; +0x14f, 0x140247d0f\njb      short loc_140247D47                                            ; +0x156, 0x140247d16\nadd     rdx, 27h ; '''                                                 ; +0x158, 0x140247d18\nmov     rcx, [rcx-8]                                                   ; +0x15c, 0x140247d1c\nsub     rax, rcx                                                       ; +0x160, 0x140247d20\nsub     rax, 8                                                         ; +0x163, 0x140247d23\ncmp     rax, 1Fh                                                       ; +0x167, 0x140247d27\njbe     short loc_140247D47                                            ; +0x16b, 0x140247d2b\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0x16d, 0x140247d2d\nxor     r9d, r9d; LineNo                                               ; +0x176, 0x140247d36\nxor     r8d, r8d; FileName                                             ; +0x179, 0x140247d39\nxor     edx, edx; FunctionName                                         ; +0x17c, 0x140247d3c\nxor     ecx, ecx; Expression                                           ; +0x17e, 0x140247d3e\ncall    cs:_invoke_watson                                              ; +0x180, 0x140247d40\ndb 0CCh                                                                ; +0x186, 0x140247d46\ncall    j_j_free                                                       ; +0x187, 0x140247d47\nmovzx   eax, bl                                                        ; +0x18c, 0x140247d4c\njmp     short loc_140247D53                                            ; +0x18f, 0x140247d4f\nxor     al, al                                                         ; +0x191, 0x140247d51\nmov     rcx, [rsp+0A8h+var_30]                                         ; +0x193, 0x140247d53\nxor     rcx, rsp; StackCookie                                          ; +0x198, 0x140247d58\ncall    __security_check_cookie                                        ; +0x19b, 0x140247d5b\nadd     rsp, 80h                                                       ; +0x1a0, 0x140247d60\npop     r14                                                            ; +0x1a7, 0x140247d67\npop     rdi                                                            ; +0x1a9, 0x140247d69\npop     rsi                                                            ; +0x1aa, 0x140247d6a\npop     rbp                                                            ; +0x1ab, 0x140247d6b\npop     rbx                                                            ; +0x1ac, 0x140247d6c\nretn                                                                   ; +0x1ad, 0x140247d6d", "xrefs": ["AccountReviewPopup::reviewChoicePicked @ 0x1400ba595", "<???> @ 0x14091c2ec"], "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"}