{"type": "func", "start": 4300607808, "end": 4300608531, "name": "GameLevelManager::updateLevel", "pseudocode": "// \n// GameLevelManager::updateLevel from 0x100561140 to 0x100561413 (723 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1002ac368\n// > LevelInfoLayer::onUpdate @ 0x1002ae539\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:32:09 +0000\n// \n\nvoid __fastcall GameLevelManager::updateLevel(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rax\n  const char *CString; // r14\n  __int64 v4; // rax\n  __int64 v5; // rax\n  const std::string::value_type *v6; // rax\n  const char *data; // r15\n  size_t v8; // rax\n  size_t v9; // r12\n  char *v10; // r13\n  size_t v11; // rbx\n  size_t v12; // rax\n  size_t v13; // r15\n  char *v14; // r12\n  __int64 v15; // r13\n  size_t v16; // rbx\n  char v17; // [rsp+0h] [rbp-A0h]\n  char v18; // [rsp+0h] [rbp-A0h]\n  std::string v19; // [rsp+18h] [rbp-88h] BYREF\n  std::string v20; // [rsp+30h] [rbp-70h] BYREF\n  _QWORD __dst[2]; // [rsp+48h] [rbp-58h] BYREF\n  void *v22; // [rsp+58h] [rbp-48h]\n  __int128 v23; // [rsp+60h] [rbp-40h] BYREF\n  void *__p; // [rsp+70h] [rbp-30h]\n\n  v1 = a1;\n  v2 = sub_10088E820(\"%i_%i_%i\", v17);\n  CString = (const char *)cocos2d::CCString::getCString(v2);\n  if ( GameLevelManager::isDLActive(a1, CString) )\n    return;\n  GameLevelManager::addDLToActive(a1, CString);\n  GameLevelManager::getBasePostString(&v20);\n  v4 = sub_10088E820(\"%c%s%s%c%c%s\", (char)\"7\");\n  cocos2d::CCString::getCString(v4);\n  v5 = sub_10088E820(\"&levelID=%i&gameVersion=%i&secret=%s\", v18);\n  v6 = (const std::string::value_type *)cocos2d::CCString::getCString(v5);\n  std::string::append(&v20, v6);\n  v19.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u);\n  v19.__r_.__value_.__r.__words[0] = 65;\n  v19.__r_.__value_.__l.__size_ = 56;\n  strcpy(v19.__r_.__value_.__l.__data_, \"https://www.boomlings.com/database/downloadGJLevel22.php\");\n  if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 )\n    data = v20.__r_.__value_.__l.__data_;\n  else\n    data = v20.__r_.__value_.__s.__data_;\n  v8 = strlen(data);\n  if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v9 = v8;\n  if ( v8 >= 0x17 )\n  {\n    v11 = 26;\n    if ( (v8 | 7) != 0x17 )\n      v11 = (v8 | 7) + 1;\n    v10 = (char *)operator new(v11);\n    v22 = v10;\n    __dst[0] = v11 | 1;\n    __dst[1] = v9;\n    v1 = a1;\n    goto LABEL_12;\n  }\n  LOBYTE(__dst[0]) = 2 * v8;\n  v10 = (char *)__dst + 1;\n  if ( v8 )\nLABEL_12:\n    memmove(v10, data, v9);\n  v10[v9] = 0;\n  v12 = strlen(CString);\n  if ( v12 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v13 = v12;\n  if ( v12 >= 0x17 )\n  {\n    v15 = v1;\n    v16 = 26;\n    if ( (v12 | 7) != 0x17 )\n      v16 = (v12 | 7) + 1;\n    v14 = (char *)operator new(v16);\n    __p = v14;\n    *(_QWORD *)&v23 = v16 | 1;\n    *((_QWORD *)&v23 + 1) = v13;\n    v1 = v15;\n    goto LABEL_20;\n  }\n  LOBYTE(v23) = 2 * v12;\n  v14 = (char *)&v23 + 1;\n  if ( v12 )\nLABEL_20:\n    memmove(v14, CString, v13);\n  v14[v13] = 0;\n  GameLevelManager::ProcessHttpRequest(v1, &v19, (__int64)__dst, &v23, 5u);\n  if ( (v23 & 1) == 0 )\n  {\n    if ( (__dst[0] & 1) == 0 )\n      goto LABEL_23;\nLABEL_28:\n    operator delete(v22);\n    if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 )\n    {\nLABEL_24:\n      if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) == 0 )\n        return;\n      goto LABEL_25;\n    }\n    goto LABEL_29;\n  }\n  operator delete(__p);\n  if ( (__dst[0] & 1) != 0 )\n    goto LABEL_28;\nLABEL_23:\n  if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 )\n    goto LABEL_24;\nLABEL_29:\n  operator delete(v19.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 )\nLABEL_25:\n    operator delete(v20.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameLevelManager::updateLevel from 0x100561140 to 0x100561413 (723 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1002ac368\n; > LevelInfoLayer::onUpdate @ 0x1002ae539\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:32:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x100561140\nmov     rbp, rsp                                                       ; +0x1, 0x100561141\npush    r15                                                            ; +0x4, 0x100561144\npush    r14                                                            ; +0x6, 0x100561146\npush    r13                                                            ; +0x8, 0x100561148\npush    r12                                                            ; +0xa, 0x10056114a\npush    rbx                                                            ; +0xc, 0x10056114c\nsub     rsp, 78h                                                       ; +0xd, 0x10056114d\nmov     rbx, rdi                                                       ; +0x11, 0x100561151\nmov     r15d, [rsi+148h]                                               ; +0x14, 0x100561154\nsub     r15d, [rsi+14Ch]                                               ; +0x1b, 0x10056115b\nmovzx   edx, byte ptr [rsi+289h]                                       ; +0x22, 0x100561162\nmov     ecx, [rsi+398h]                                                ; +0x29, 0x100561169\nsub     ecx, [rsi+39Ch]                                                ; +0x2f, 0x10056116f\nlea     rdi, aIII_0; \"%i_%i_%i\"                                        ; +0x35, 0x100561175\nmov     esi, r15d                                                      ; +0x3c, 0x10056117c\nxor     eax, eax                                                       ; +0x3f, 0x10056117f\ncall    sub_10088E820                                                  ; +0x41, 0x100561181\nmov     rdi, rax                                                       ; +0x46, 0x100561186\ncall    cocos2d__CCString__getCString                                  ; +0x49, 0x100561189\nmov     r14, rax                                                       ; +0x4e, 0x10056118e\nmov     rdi, rbx                                                       ; +0x51, 0x100561191\nmov     rsi, rax                                                       ; +0x54, 0x100561194\ncall    GameLevelManager__isDLActive                                   ; +0x57, 0x100561197\ntest    al, al                                                         ; +0x5c, 0x10056119c\njnz     loc_1005613C4                                                  ; +0x5e, 0x10056119e\nmov     rdi, rbx                                                       ; +0x64, 0x1005611a4\nmov     rsi, r14                                                       ; +0x67, 0x1005611a7\ncall    GameLevelManager__addDLToActive                                ; +0x6a, 0x1005611aa\nlea     rdi, [rbp+var_70]; this                                        ; +0x6f, 0x1005611af\ncall    GameLevelManager__getBasePostString                            ; +0x73, 0x1005611b3\nlea     rax, a7; \"7\"                                                   ; +0x78, 0x1005611b8\nmov     qword ptr [rsp+0A0h+var_A0], rax; char                         ; +0x7f, 0x1005611bf\nlea     rdi, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x83, 0x1005611c3\nlea     rdx, aMfd; \"mfd\"                                               ; +0x8a, 0x1005611ca\nlea     rcx, a2893; \"2893\"                                             ; +0x91, 0x1005611d1\nmov     esi, 57h ; 'W'                                                 ; +0x98, 0x1005611d8\nmov     r8d, 67h ; 'g'                                                 ; +0x9d, 0x1005611dd\nmov     r9d, 62h ; 'b'                                                 ; +0xa3, 0x1005611e3\nxor     eax, eax                                                       ; +0xa9, 0x1005611e9\ncall    sub_10088E820                                                  ; +0xab, 0x1005611eb\nmov     rdi, rax                                                       ; +0xb0, 0x1005611f0\ncall    cocos2d__CCString__getCString                                  ; +0xb3, 0x1005611f3\nlea     rdi, aLevelidIGameve; \"&levelID=%i&gameVersion=%i&secret=%s\"   ; +0xb8, 0x1005611f8\nmov     esi, r15d                                                      ; +0xbf, 0x1005611ff\nmov     edx, 16h                                                       ; +0xc2, 0x100561202\nmov     rcx, rax                                                       ; +0xc7, 0x100561207\nxor     eax, eax                                                       ; +0xca, 0x10056120a\ncall    sub_10088E820                                                  ; +0xcc, 0x10056120c\nmov     rdi, rax                                                       ; +0xd1, 0x100561211\ncall    cocos2d__CCString__getCString                                  ; +0xd4, 0x100561214\nlea     rdi, [rbp+var_70]; this                                        ; +0xd9, 0x100561219\nmov     rsi, rax; __s                                                  ; +0xdd, 0x10056121d\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xe0, 0x100561220\nmov     edi, 40h ; '@'; __sz                                           ; +0xe5, 0x100561225\ncall    __Znwm; operator new(ulong)                                    ; +0xea, 0x10056122a\nmov     [rbp+var_78], rax                                              ; +0xef, 0x10056122f\nmov     [rbp+var_88], 41h ; 'A'                                        ; +0xf3, 0x100561233\nmov     [rbp+var_80], 38h ; '8'                                        ; +0xfe, 0x10056123e\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_34+20h; \"se/downloadGJLevel22.php\" ; +0x106, 0x100561246\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x10d, 0x10056124d\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_34+10h; \"lings.com/database/downloadGJLevel22.ph\"... ; +0x111, 0x100561251\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x118, 0x100561258\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_34; \"https://www.boomlings.com/database/down\"... ; +0x11c, 0x10056125c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x123, 0x100561263\nmov     rcx, 7068702E32326C65h                                         ; +0x126, 0x100561266\nmov     [rax+30h], rcx                                                 ; +0x130, 0x100561270\nmov     byte ptr [rax+38h], 0                                          ; +0x134, 0x100561274\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x138, 0x100561278\njz      short loc_100561284                                            ; +0x13c, 0x10056127c\nmov     r15, qword ptr [rbp+var_70.__r_.__value_+10h]                  ; +0x13e, 0x10056127e\njmp     short loc_100561288                                            ; +0x142, 0x100561282\nlea     r15, [rbp+var_70.__r_.__value_+1]                              ; +0x144, 0x100561284\nmov     rdi, r15; __s                                                  ; +0x148, 0x100561288\ncall    _strlen                                                        ; +0x14b, 0x10056128b\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x150, 0x100561290\njnb     loc_100561405                                                  ; +0x154, 0x100561294\nmov     r12, rax                                                       ; +0x15a, 0x10056129a\ncmp     rax, 17h                                                       ; +0x15d, 0x10056129d\njnb     short loc_1005612B5                                            ; +0x161, 0x1005612a1\nlea     eax, [r12+r12]                                                 ; +0x163, 0x1005612a3\nmov     byte ptr [rbp+__dst], al                                       ; +0x167, 0x1005612a7\nlea     r13, [rbp+__dst+1]                                             ; +0x16a, 0x1005612aa\ntest    r12, r12                                                       ; +0x16e, 0x1005612ae\njnz     short loc_1005612F6                                            ; +0x171, 0x1005612b1\njmp     short loc_100561304                                            ; +0x173, 0x1005612b3\nmov     [rbp+var_90], rbx                                              ; +0x175, 0x1005612b5\nmov     rax, r12                                                       ; +0x17c, 0x1005612bc\nor      rax, 7                                                         ; +0x17f, 0x1005612bf\nlea     rcx, [rax+1]                                                   ; +0x183, 0x1005612c3\ncmp     rax, 17h                                                       ; +0x187, 0x1005612c7\nmov     ebx, 1Ah                                                       ; +0x18b, 0x1005612cb\ncmovnz  rbx, rcx                                                       ; +0x190, 0x1005612d0\nmov     rdi, rbx; __sz                                                 ; +0x194, 0x1005612d4\ncall    __Znwm; operator new(ulong)                                    ; +0x197, 0x1005612d7\nmov     r13, rax                                                       ; +0x19c, 0x1005612dc\nmov     [rbp+var_48], rax                                              ; +0x19f, 0x1005612df\nor      rbx, 1                                                         ; +0x1a3, 0x1005612e3\nmov     [rbp+__dst], rbx                                               ; +0x1a7, 0x1005612e7\nmov     [rbp+var_50], r12                                              ; +0x1ab, 0x1005612eb\nmov     rbx, [rbp+var_90]                                              ; +0x1af, 0x1005612ef\nmov     rdi, r13; __dst                                                ; +0x1b6, 0x1005612f6\nmov     rsi, r15; __src                                                ; +0x1b9, 0x1005612f9\nmov     rdx, r12; __len                                                ; +0x1bc, 0x1005612fc\ncall    _memmove                                                       ; +0x1bf, 0x1005612ff\nmov     byte ptr [r13+r12+0], 0                                        ; +0x1c4, 0x100561304\nmov     rdi, r14; __s                                                  ; +0x1ca, 0x10056130a\ncall    _strlen                                                        ; +0x1cd, 0x10056130d\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1d2, 0x100561312\njnb     loc_10056140C                                                  ; +0x1d6, 0x100561316\nmov     r15, rax                                                       ; +0x1dc, 0x10056131c\ncmp     rax, 17h                                                       ; +0x1df, 0x10056131f\njnb     short loc_100561337                                            ; +0x1e3, 0x100561323\nlea     eax, [r15+r15]                                                 ; +0x1e5, 0x100561325\nmov     byte ptr [rbp+var_40], al                                      ; +0x1e9, 0x100561329\nlea     r12, [rbp+var_40+1]                                            ; +0x1ec, 0x10056132c\ntest    r15, r15                                                       ; +0x1f0, 0x100561330\njnz     short loc_100561370                                            ; +0x1f3, 0x100561333\njmp     short loc_10056137E                                            ; +0x1f5, 0x100561335\nmov     r13, rbx                                                       ; +0x1f7, 0x100561337\nmov     rax, r15                                                       ; +0x1fa, 0x10056133a\nor      rax, 7                                                         ; +0x1fd, 0x10056133d\nlea     rcx, [rax+1]                                                   ; +0x201, 0x100561341\ncmp     rax, 17h                                                       ; +0x205, 0x100561345\nmov     ebx, 1Ah                                                       ; +0x209, 0x100561349\ncmovnz  rbx, rcx                                                       ; +0x20e, 0x10056134e\nmov     rdi, rbx; __sz                                                 ; +0x212, 0x100561352\ncall    __Znwm; operator new(ulong)                                    ; +0x215, 0x100561355\nmov     r12, rax                                                       ; +0x21a, 0x10056135a\nmov     [rbp+__p], rax                                                 ; +0x21d, 0x10056135d\nor      rbx, 1                                                         ; +0x221, 0x100561361\nmov     [rbp+var_40], rbx                                              ; +0x225, 0x100561365\nmov     [rbp+var_38], r15                                              ; +0x229, 0x100561369\nmov     rbx, r13                                                       ; +0x22d, 0x10056136d\nmov     rdi, r12; __dst                                                ; +0x230, 0x100561370\nmov     rsi, r14; __src                                                ; +0x233, 0x100561373\nmov     rdx, r15; __len                                                ; +0x236, 0x100561376\ncall    _memmove                                                       ; +0x239, 0x100561379\nmov     byte ptr [r12+r15], 0                                          ; +0x23e, 0x10056137e\nlea     rsi, [rbp+var_88]                                              ; +0x243, 0x100561383\nlea     rdx, [rbp+__dst]                                               ; +0x24a, 0x10056138a\nlea     rcx, [rbp+var_40]                                              ; +0x24e, 0x10056138e\nmov     rdi, rbx                                                       ; +0x252, 0x100561392\nmov     r8d, 5                                                         ; +0x255, 0x100561395\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x25b, 0x10056139b\ntest    byte ptr [rbp+var_40], 1                                       ; +0x260, 0x1005613a0\njnz     short loc_1005613D3                                            ; +0x264, 0x1005613a4\ntest    byte ptr [rbp+__dst], 1                                        ; +0x266, 0x1005613a6\njnz     short loc_1005613E2                                            ; +0x26a, 0x1005613aa\ntest    byte ptr [rbp+var_88], 1                                       ; +0x26c, 0x1005613ac\njnz     short loc_1005613F4                                            ; +0x273, 0x1005613b3\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x275, 0x1005613b5\njz      short loc_1005613C4                                            ; +0x279, 0x1005613b9\nmov     rdi, qword ptr [rbp+var_70.__r_.__value_+10h]; __p             ; +0x27b, 0x1005613bb\ncall    __ZdlPv; operator delete(void *)                               ; +0x27f, 0x1005613bf\nadd     rsp, 78h                                                       ; +0x284, 0x1005613c4\npop     rbx                                                            ; +0x288, 0x1005613c8\npop     r12                                                            ; +0x289, 0x1005613c9\npop     r13                                                            ; +0x28b, 0x1005613cb\npop     r14                                                            ; +0x28d, 0x1005613cd\npop     r15                                                            ; +0x28f, 0x1005613cf\npop     rbp                                                            ; +0x291, 0x1005613d1\nretn                                                                   ; +0x292, 0x1005613d2\nmov     rdi, [rbp+__p]; __p                                            ; +0x293, 0x1005613d3\ncall    __ZdlPv; operator delete(void *)                               ; +0x297, 0x1005613d7\ntest    byte ptr [rbp+__dst], 1                                        ; +0x29c, 0x1005613dc\njz      short loc_1005613AC                                            ; +0x2a0, 0x1005613e0\nmov     rdi, [rbp+var_48]; __p                                         ; +0x2a2, 0x1005613e2\ncall    __ZdlPv; operator delete(void *)                               ; +0x2a6, 0x1005613e6\ntest    byte ptr [rbp+var_88], 1                                       ; +0x2ab, 0x1005613eb\njz      short loc_1005613B5                                            ; +0x2b2, 0x1005613f2\nmov     rdi, [rbp+var_78]; __p                                         ; +0x2b4, 0x1005613f4\ncall    __ZdlPv; operator delete(void *)                               ; +0x2b8, 0x1005613f8\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x2bd, 0x1005613fd\njnz     short loc_1005613BB                                            ; +0x2c1, 0x100561401\njmp     short loc_1005613C4                                            ; +0x2c3, 0x100561403\ncall    sub_100003630                                                  ; +0x2c5, 0x100561405\njmp     short loc_100561411                                            ; +0x2ca, 0x10056140a\ncall    sub_100003630                                                  ; +0x2cc, 0x10056140c\nud2                                                                    ; +0x2d1, 0x100561411", "xrefs": ["LevelInfoLayer::init @ 0x1002ac368", "LevelInfoLayer::onUpdate @ 0x1002ae539"], "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"}