{"type": "func", "start": 5371275424, "end": 5371276104, "name": "GJLevelList::parseListLevels", "pseudocode": "// \n// GJLevelList::parseListLevels from 0x1402728a0 to 0x140272b48 (680 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::updateSavedLevelList @ 0x140230c9a\n// > GJLevelList::create @ 0x1402723ef\n// > GJLevelList::dataLoaded @ 0x140273d43\n// > <???> @ 0x14091cb44\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:54 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GJLevelList::parseListLevels(__int64 a1, void **a2)\n{\n  __int64 *v2; // rbx\n  void **v4; // rcx\n  __int64 v5; // rsi\n  unsigned __int64 v6; // rdx\n  unsigned __int64 v7; // rdi\n  __int64 v8; // rcx\n  unsigned __int64 v9; // rdx\n  __int64 v10; // r8\n  __int64 v11; // r9\n  __int64 v12; // r14\n  __int64 v13; // r15\n  unsigned __int64 v14; // rcx\n  size_t v15; // r8\n  size_t v16; // rcx\n  __int64 *v17; // rax\n  const char *v18; // rcx\n  int v19; // eax\n  _BYTE *v20; // rdx\n  unsigned __int8 *v21; // r9\n  __int64 v22; // rcx\n  char *v23; // rcx\n  char *v24; // rcx\n  void *v25; // rcx\n  int v26; // [rsp+30h] [rbp-29h] BYREF\n  void **v27; // [rsp+38h] [rbp-21h]\n  char *String[2]; // [rsp+40h] [rbp-19h] BYREF\n  __int64 v29; // [rsp+50h] [rbp-9h]\n  unsigned __int64 v30; // [rsp+58h] [rbp-1h]\n  void *Block[2]; // [rsp+60h] [rbp+7h] BYREF\n  __int64 v32; // [rsp+70h] [rbp+17h]\n  unsigned __int64 v33; // [rsp+78h] [rbp+1Fh]\n\n  v2 = (__int64 *)a2;\n  v27 = a2;\n  v4 = (void **)(a1 + 504);\n  if ( v4 != a2 )\n  {\n    if ( (unsigned __int64)a2[3] > 0xF )\n      a2 = (void **)*a2;\n    sub_1400405A0(v4, a2, v2[2]);\n  }\n  v5 = a1 + 320;\n  if ( *(_QWORD *)v5 != *(_QWORD *)(v5 + 8) )\n    *(_QWORD *)(v5 + 8) = *(_QWORD *)v5;\n  v6 = v2[2];\n  if ( v6 )\n  {\n    *(_OWORD *)Block = 0;\n    v32 = 1;\n    v33 = 15;\n    LOWORD(Block[0]) = 44;\n    v7 = 0;\n    v8 = (__int64)v2;\n    if ( (unsigned __int64)v2[3] > 0xF )\n      v8 = *v2;\n    v12 = sub_140045BF0(v8, v6, 0, (unsigned __int8 *)Block, 1);\n    v13 = *((unsigned int *)v2 + 4);\n    while ( 1 )\n    {\n      *(_OWORD *)String = 0;\n      v29 = 0;\n      v30 = 0;\n      v14 = v2[2];\n      if ( v14 < v7 )\n        sub_14003F4D0(v14, v9, v10, v11);\n      v15 = v12 - v7;\n      v16 = v14 - v7;\n      if ( v16 < v12 - v7 )\n        v15 = v16;\n      v17 = v2;\n      if ( (unsigned __int64)v2[3] > 0xF )\n        v17 = (__int64 *)*v2;\n      sub_14003D230(String, (char *)v17 + v7, v15);\n      if ( v29 || v7 != v13 )\n      {\n        v18 = (const char *)String;\n        if ( v30 > 0xF )\n          v18 = String[0];\n        v19 = atoi(v18);\n        v26 = v19;\n        v20 = *(_BYTE **)(v5 + 8);\n        if ( v20 == *(_BYTE **)(v5 + 16) )\n        {\n          sub_140069B30((const void **)v5, v20, &v26);\n        }\n        else\n        {\n          *(_DWORD *)v20 = v19;\n          *(_QWORD *)(v5 + 8) += 4LL;\n        }\n      }\n      if ( v12 == -1 )\n        break;\n      v7 = v12 + 1;\n      v21 = (unsigned __int8 *)Block;\n      if ( v33 > 0xF )\n        v21 = (unsigned __int8 *)Block[0];\n      v22 = (__int64)v2;\n      if ( (unsigned __int64)v2[3] > 0xF )\n        v22 = *v2;\n      v12 = sub_140045BF0(v22, v2[2], v12 + 1, v21, v32);\n      v9 = v30;\n      if ( v30 > 0xF )\n      {\n        v23 = String[0];\n        if ( v30 + 1 >= 0x1000 )\n        {\n          v23 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v23 - 8) > 0x1F )\n            goto LABEL_35;\n        }\n        j_j_free(v23);\n      }\n    }\n    if ( v30 > 0xF )\n    {\n      v24 = String[0];\n      if ( v30 + 1 >= 0x1000 )\n      {\n        v24 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v24 - 8) > 0x1F )\nLABEL_35:\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v24);\n    }\n    if ( v33 > 0xF )\n    {\n      v25 = Block[0];\n      if ( v33 + 1 >= 0x1000 )\n      {\n        v25 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v25 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v25);\n    }\n  }\n  sub_14003D310((__int64)v2);\n}", "assembly": "; \n; GJLevelList::parseListLevels from 0x1402728a0 to 0x140272b48 (680 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::updateSavedLevelList @ 0x140230c9a\n; > GJLevelList::create @ 0x1402723ef\n; > GJLevelList::dataLoaded @ 0x140273d43\n; > <???> @ 0x14091cb44\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:54 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x1402728a0\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x1402728a5\npush    rbp                                                            ; +0xa, 0x1402728aa\npush    rdi                                                            ; +0xb, 0x1402728ab\npush    r12                                                            ; +0xc, 0x1402728ac\npush    r14                                                            ; +0xe, 0x1402728ae\npush    r15                                                            ; +0x10, 0x1402728b0\nlea     rbp, [rsp-37h]                                                 ; +0x12, 0x1402728b2\nsub     rsp, 90h                                                       ; +0x17, 0x1402728b7\nmov     rax, cs:__security_cookie                                      ; +0x1e, 0x1402728be\nxor     rax, rsp                                                       ; +0x25, 0x1402728c5\nmov     [rbp+57h+var_30], rax                                          ; +0x28, 0x1402728c8\nmov     rbx, rdx                                                       ; +0x2c, 0x1402728cc\nmov     rsi, rcx                                                       ; +0x2f, 0x1402728cf\nmov     [rbp+57h+var_78], rdx                                          ; +0x32, 0x1402728d2\nxor     r12d, r12d                                                     ; +0x36, 0x1402728d6\nadd     rcx, 1F8h; void *                                              ; +0x39, 0x1402728d9\ncmp     rcx, rdx                                                       ; +0x40, 0x1402728e0\njz      short loc_1402728F8                                            ; +0x43, 0x1402728e3\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x45, 0x1402728e5\njbe     short loc_1402728EF                                            ; +0x4a, 0x1402728ea\nmov     rdx, [rdx]; Src                                                ; +0x4c, 0x1402728ec\nmov     r8, [rbx+10h]; Size                                            ; +0x4f, 0x1402728ef\ncall    sub_1400405A0                                                  ; +0x53, 0x1402728f3\nadd     rsi, 140h                                                      ; +0x58, 0x1402728f8\nmov     rax, [rsi]                                                     ; +0x5f, 0x1402728ff\ncmp     rax, [rsi+8]                                                   ; +0x62, 0x140272902\njz      short loc_14027290C                                            ; +0x66, 0x140272906\nmov     [rsi+8], rax                                                   ; +0x68, 0x140272908\nmov     rdx, [rbx+10h]                                                 ; +0x6c, 0x14027290c\ntest    rdx, rdx                                                       ; +0x70, 0x140272910\njz      loc_140272B12                                                  ; +0x73, 0x140272913\nxorps   xmm0, xmm0                                                     ; +0x79, 0x140272919\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x7c, 0x14027291c\nmov     [rbp+57h+var_40], 1                                            ; +0x80, 0x140272920\nmov     [rbp+57h+var_38], 0Fh                                          ; +0x88, 0x140272928\nmov     word ptr [rbp+57h+Block], 2Ch ; ','                            ; +0x90, 0x140272930\nmov     rdi, r12                                                       ; +0x96, 0x140272936\nmov     rcx, rbx                                                       ; +0x99, 0x140272939\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x9c, 0x14027293c\njbe     short loc_140272946                                            ; +0xa1, 0x140272941\nmov     rcx, [rbx]                                                     ; +0xa3, 0x140272943\nmov     [rsp+0B0h+Reserved], 1                                         ; +0xa6, 0x140272946\nlea     r9, [rbp+57h+Block]                                            ; +0xaf, 0x14027294f\nxor     r8d, r8d                                                       ; +0xb3, 0x140272953\ncall    sub_140045BF0                                                  ; +0xb6, 0x140272956\nmov     r14, rax                                                       ; +0xbb, 0x14027295b\nmov     r15d, [rbx+10h]                                                ; +0xbe, 0x14027295e\nnop     dword ptr [rax+00h]                                            ; +0xc2, 0x140272962\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc6, 0x140272966\nxorps   xmm0, xmm0                                                     ; +0xd0, 0x140272970\nmovups  xmmword ptr [rbp+57h+String], xmm0                             ; +0xd3, 0x140272973\nmov     [rbp+57h+var_60], r12                                          ; +0xd7, 0x140272977\nmov     [rbp+57h+var_58], r12                                          ; +0xdb, 0x14027297b\nmov     rcx, [rbx+10h]                                                 ; +0xdf, 0x14027297f\ncmp     rcx, rdi                                                       ; +0xe3, 0x140272983\njb      loc_140272B42                                                  ; +0xe6, 0x140272986\nmov     r8, r14                                                        ; +0xec, 0x14027298c\nsub     r8, rdi                                                        ; +0xef, 0x14027298f\nsub     rcx, rdi                                                       ; +0xf2, 0x140272992\ncmp     rcx, r8                                                        ; +0xf5, 0x140272995\ncmovb   r8, rcx                                                        ; +0xf8, 0x140272998\nmov     rax, rbx                                                       ; +0xfc, 0x14027299c\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xff, 0x14027299f\njbe     short loc_1402729A9                                            ; +0x104, 0x1402729a4\nmov     rax, [rbx]                                                     ; +0x106, 0x1402729a6\nlea     rdx, [rax+rdi]                                                 ; +0x109, 0x1402729a9\nlea     rcx, [rbp+57h+String]                                          ; +0x10d, 0x1402729ad\ncall    sub_14003D230                                                  ; +0x111, 0x1402729b1\nnop                                                                    ; +0x116, 0x1402729b6\ncmp     [rbp+57h+var_60], 0                                            ; +0x117, 0x1402729b7\njnz     short loc_1402729C3                                            ; +0x11c, 0x1402729bc\ncmp     rdi, r15                                                       ; +0x11e, 0x1402729be\njz      short loc_1402729F9                                            ; +0x121, 0x1402729c1\nlea     rcx, [rbp+57h+String]                                          ; +0x123, 0x1402729c3\ncmp     [rbp+57h+var_58], 0Fh                                          ; +0x127, 0x1402729c7\ncmova   rcx, [rbp+57h+String]; String                                  ; +0x12c, 0x1402729cc\ncall    cs:atoi                                                        ; +0x131, 0x1402729d1\nmov     [rbp+57h+var_80], eax                                          ; +0x137, 0x1402729d7\nmov     rdx, [rsi+8]                                                   ; +0x13a, 0x1402729da\ncmp     rdx, [rsi+10h]                                                 ; +0x13e, 0x1402729de\njz      short loc_1402729ED                                            ; +0x142, 0x1402729e2\nmov     [rdx], eax                                                     ; +0x144, 0x1402729e4\nadd     qword ptr [rsi+8], 4                                           ; +0x146, 0x1402729e6\njmp     short loc_1402729F9                                            ; +0x14b, 0x1402729eb\nlea     r8, [rbp+57h+var_80]                                           ; +0x14d, 0x1402729ed\nmov     rcx, rsi                                                       ; +0x151, 0x1402729f1\ncall    sub_140069B30                                                  ; +0x154, 0x1402729f4\ncmp     r14, 0FFFFFFFFFFFFFFFFh                                        ; +0x159, 0x1402729f9\njz      short loc_140272A76                                            ; +0x15d, 0x1402729fd\nlea     rdi, [r14+1]                                                   ; +0x15f, 0x1402729ff\nlea     r9, [rbp+57h+Block]                                            ; +0x163, 0x140272a03\ncmp     [rbp+57h+var_38], 0Fh                                          ; +0x167, 0x140272a07\ncmova   r9, [rbp+57h+Block]                                            ; +0x16c, 0x140272a0c\nmov     rcx, rbx                                                       ; +0x171, 0x140272a11\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x174, 0x140272a14\njbe     short loc_140272A1E                                            ; +0x179, 0x140272a19\nmov     rcx, [rbx]                                                     ; +0x17b, 0x140272a1b\nmov     rax, [rbp+57h+var_40]                                          ; +0x17e, 0x140272a1e\nmov     [rsp+0B0h+Reserved], rax                                       ; +0x182, 0x140272a22\nmov     r8, rdi                                                        ; +0x187, 0x140272a27\nmov     rdx, [rbx+10h]                                                 ; +0x18a, 0x140272a2a\ncall    sub_140045BF0                                                  ; +0x18e, 0x140272a2e\nmov     r14, rax                                                       ; +0x193, 0x140272a33\nmov     rdx, [rbp+57h+var_58]                                          ; +0x196, 0x140272a36\ncmp     rdx, 0Fh                                                       ; +0x19a, 0x140272a3a\njbe     loc_140272970                                                  ; +0x19e, 0x140272a3e\ninc     rdx                                                            ; +0x1a4, 0x140272a44\nmov     rcx, [rbp+57h+String]                                          ; +0x1a7, 0x140272a47\nmov     rax, rcx                                                       ; +0x1ab, 0x140272a4b\ncmp     rdx, 1000h                                                     ; +0x1ae, 0x140272a4e\njb      short loc_140272A6C                                            ; +0x1b5, 0x140272a55\nadd     rdx, 27h ; '''                                                 ; +0x1b7, 0x140272a57\nmov     rcx, [rcx-8]; Block                                            ; +0x1bb, 0x140272a5b\nsub     rax, rcx                                                       ; +0x1bf, 0x140272a5f\nsub     rax, 8                                                         ; +0x1c2, 0x140272a62\ncmp     rax, 1Fh                                                       ; +0x1c6, 0x140272a66\nja      short loc_140272AA8                                            ; +0x1ca, 0x140272a6a\ncall    j_j_free                                                       ; +0x1cc, 0x140272a6c\njmp     loc_140272970                                                  ; +0x1d1, 0x140272a71\nmov     rdx, [rbp+57h+var_58]                                          ; +0x1d6, 0x140272a76\ncmp     rdx, 0Fh                                                       ; +0x1da, 0x140272a7a\njbe     short loc_140272AC4                                            ; +0x1de, 0x140272a7e\ninc     rdx                                                            ; +0x1e0, 0x140272a80\nmov     rcx, [rbp+57h+String]; Block                                   ; +0x1e3, 0x140272a83\nmov     rax, rcx                                                       ; +0x1e7, 0x140272a87\ncmp     rdx, 1000h                                                     ; +0x1ea, 0x140272a8a\njb      short loc_140272ABE                                            ; +0x1f1, 0x140272a91\nadd     rdx, 27h ; '''                                                 ; +0x1f3, 0x140272a93\nmov     rcx, [rcx-8]                                                   ; +0x1f7, 0x140272a97\nsub     rax, rcx                                                       ; +0x1fb, 0x140272a9b\nsub     rax, 8                                                         ; +0x1fe, 0x140272a9e\ncmp     rax, 1Fh                                                       ; +0x202, 0x140272aa2\njbe     short loc_140272ABE                                            ; +0x206, 0x140272aa6\nmov     [rsp+0B0h+Reserved], r12; Reserved                             ; +0x208, 0x140272aa8\nxor     r9d, r9d; LineNo                                               ; +0x20d, 0x140272aad\nxor     r8d, r8d; FileName                                             ; +0x210, 0x140272ab0\nxor     edx, edx; FunctionName                                         ; +0x213, 0x140272ab3\nxor     ecx, ecx; Expression                                           ; +0x215, 0x140272ab5\ncall    cs:_invoke_watson                                              ; +0x217, 0x140272ab7\nalign 2                                                                ; +0x21d, 0x140272abd\ncall    j_j_free                                                       ; +0x21e, 0x140272abe\nnop                                                                    ; +0x223, 0x140272ac3\nmov     rdx, [rbp+57h+var_38]                                          ; +0x224, 0x140272ac4\ncmp     rdx, 0Fh                                                       ; +0x228, 0x140272ac8\njbe     short loc_140272B12                                            ; +0x22c, 0x140272acc\ninc     rdx                                                            ; +0x22e, 0x140272ace\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x231, 0x140272ad1\nmov     rax, rcx                                                       ; +0x235, 0x140272ad5\ncmp     rdx, 1000h                                                     ; +0x238, 0x140272ad8\njb      short loc_140272B0C                                            ; +0x23f, 0x140272adf\nadd     rdx, 27h ; '''                                                 ; +0x241, 0x140272ae1\nmov     rcx, [rcx-8]                                                   ; +0x245, 0x140272ae5\nsub     rax, rcx                                                       ; +0x249, 0x140272ae9\nsub     rax, 8                                                         ; +0x24c, 0x140272aec\ncmp     rax, 1Fh                                                       ; +0x250, 0x140272af0\njbe     short loc_140272B0C                                            ; +0x254, 0x140272af4\nmov     [rsp+0B0h+Reserved], r12; Reserved                             ; +0x256, 0x140272af6\nxor     r9d, r9d; LineNo                                               ; +0x25b, 0x140272afb\nxor     r8d, r8d; FileName                                             ; +0x25e, 0x140272afe\nxor     edx, edx; FunctionName                                         ; +0x261, 0x140272b01\nxor     ecx, ecx; Expression                                           ; +0x263, 0x140272b03\ncall    cs:_invoke_watson                                              ; +0x265, 0x140272b05\nalign 4                                                                ; +0x26b, 0x140272b0b\ncall    j_j_free                                                       ; +0x26c, 0x140272b0c\nnop                                                                    ; +0x271, 0x140272b11\nmov     rcx, rbx                                                       ; +0x272, 0x140272b12\ncall    sub_14003D310                                                  ; +0x275, 0x140272b15\nmov     rcx, [rbp+57h+var_30]                                          ; +0x27a, 0x140272b1a\nxor     rcx, rsp; StackCookie                                          ; +0x27e, 0x140272b1e\ncall    __security_check_cookie                                        ; +0x281, 0x140272b21\nlea     r11, [rsp+0B0h+var_20]                                         ; +0x286, 0x140272b26\nmov     rbx, [r11+40h]                                                 ; +0x28e, 0x140272b2e\nmov     rsi, [r11+48h]                                                 ; +0x292, 0x140272b32\nmov     rsp, r11                                                       ; +0x296, 0x140272b36\npop     r15                                                            ; +0x299, 0x140272b39\npop     r14                                                            ; +0x29b, 0x140272b3b\npop     r12                                                            ; +0x29d, 0x140272b3d\npop     rdi                                                            ; +0x29f, 0x140272b3f\npop     rbp                                                            ; +0x2a0, 0x140272b40\nretn                                                                   ; +0x2a1, 0x140272b41\ncall    sub_14003F4D0                                                  ; +0x2a2, 0x140272b42\nalign 8                                                                ; +0x2a7, 0x140272b47", "xrefs": ["GameLevelManager::updateSavedLevelList @ 0x140230c9a", "GJLevelList::create @ 0x1402723ef", "GJLevelList::dataLoaded @ 0x140273d43", "<???> @ 0x14091cb44"], "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"}