{"type": "func", "start": 6442582048, "end": 6442582293, "name": "sub_180020020", "pseudocode": "// \n// sub_180020020 from 0x180020020 to 0x180020115 (245 bytes)\n// \n// 1 xrefs:\n// > sub_18001FF20 @ 0x18001ff70\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 10:52:57 +0000\n// \n\n__int64 __fastcall sub_180020020(_QWORD *a1, _DWORD *a2)\n{\n  BOOL v5; // eax\n  int v6; // ecx\n  int v7; // eax\n  int v8; // ecx\n  int v9; // eax\n  int v10; // ecx\n  int v11; // eax\n  int v12; // ecx\n  int v13; // eax\n  int v14; // ecx\n  int v15; // eax\n  int v16; // ecx\n  int v17; // eax\n  int v18; // ecx\n  int v19; // edx\n  int v20; // ecx\n\n  if ( !a2 )\n    return 31;\n  v5 = a1[136] != 0;\n  v6 = v5 + 1;\n  if ( !a1[247] )\n    v6 = v5;\n  v7 = v6 + 1;\n  if ( !a1[358] )\n    v7 = v6;\n  v8 = v7 + 1;\n  if ( !a1[469] )\n    v8 = v7;\n  v9 = v8 + 1;\n  if ( !a1[580] )\n    v9 = v8;\n  v10 = v9 + 1;\n  if ( !a1[691] )\n    v10 = v9;\n  v11 = v10 + 1;\n  if ( !a1[802] )\n    v11 = v10;\n  v12 = v11 + 1;\n  if ( !a1[913] )\n    v12 = v11;\n  v13 = v12 + 1;\n  if ( !a1[1024] )\n    v13 = v12;\n  v14 = v13 + 1;\n  if ( !a1[1135] )\n    v14 = v13;\n  v15 = v14 + 1;\n  if ( !a1[1246] )\n    v15 = v14;\n  v16 = v15 + 1;\n  if ( !a1[1357] )\n    v16 = v15;\n  v17 = v16 + 1;\n  if ( !a1[1468] )\n    v17 = v16;\n  v18 = v17 + 1;\n  if ( !a1[1579] )\n    v18 = v17;\n  v19 = v18 + 1;\n  if ( !a1[1690] )\n    v19 = v18;\n  v20 = v19 + 1;\n  if ( !a1[1801] )\n    v20 = v19;\n  *a2 = v20;\n  return 0;\n}", "assembly": "; \n; sub_180020020 from 0x180020020 to 0x180020115 (245 bytes)\n; \n; 1 xrefs:\n; > sub_18001FF20 @ 0x18001ff70\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 10:52:57 +0000\n; \nmov     r8, rdx                                                        ; +0x0, 0x180020020\nmov     r9, rcx                                                        ; +0x3, 0x180020023\ntest    rdx, rdx                                                       ; +0x6, 0x180020026\njnz     short loc_180020031                                            ; +0x9, 0x180020029\nmov     eax, 1Fh                                                       ; +0xb, 0x18002002b\nretn                                                                   ; +0x10, 0x180020030\nxor     eax, eax                                                       ; +0x11, 0x180020031\ncmp     [rcx+440h], rax                                                ; +0x13, 0x180020033\nsetnz   al                                                             ; +0x1a, 0x18002003a\ncmp     qword ptr [r9+7B8h], 0                                         ; +0x1d, 0x18002003d\nlea     ecx, [rax+1]                                                   ; +0x25, 0x180020045\ncmovz   ecx, eax                                                       ; +0x28, 0x180020048\ncmp     qword ptr [r9+0B30h], 0                                        ; +0x2b, 0x18002004b\nlea     eax, [rcx+1]                                                   ; +0x33, 0x180020053\ncmovz   eax, ecx                                                       ; +0x36, 0x180020056\ncmp     qword ptr [r9+0EA8h], 0                                        ; +0x39, 0x180020059\nlea     ecx, [rax+1]                                                   ; +0x41, 0x180020061\ncmovz   ecx, eax                                                       ; +0x44, 0x180020064\ncmp     qword ptr [r9+1220h], 0                                        ; +0x47, 0x180020067\nlea     eax, [rcx+1]                                                   ; +0x4f, 0x18002006f\ncmovz   eax, ecx                                                       ; +0x52, 0x180020072\ncmp     qword ptr [r9+1598h], 0                                        ; +0x55, 0x180020075\nlea     ecx, [rax+1]                                                   ; +0x5d, 0x18002007d\ncmovz   ecx, eax                                                       ; +0x60, 0x180020080\ncmp     qword ptr [r9+1910h], 0                                        ; +0x63, 0x180020083\nlea     eax, [rcx+1]                                                   ; +0x6b, 0x18002008b\ncmovz   eax, ecx                                                       ; +0x6e, 0x18002008e\ncmp     qword ptr [r9+1C88h], 0                                        ; +0x71, 0x180020091\nlea     ecx, [rax+1]                                                   ; +0x79, 0x180020099\ncmovz   ecx, eax                                                       ; +0x7c, 0x18002009c\ncmp     qword ptr [r9+2000h], 0                                        ; +0x7f, 0x18002009f\nlea     eax, [rcx+1]                                                   ; +0x87, 0x1800200a7\ncmovz   eax, ecx                                                       ; +0x8a, 0x1800200aa\ncmp     qword ptr [r9+2378h], 0                                        ; +0x8d, 0x1800200ad\nlea     ecx, [rax+1]                                                   ; +0x95, 0x1800200b5\ncmovz   ecx, eax                                                       ; +0x98, 0x1800200b8\ncmp     qword ptr [r9+26F0h], 0                                        ; +0x9b, 0x1800200bb\nlea     eax, [rcx+1]                                                   ; +0xa3, 0x1800200c3\ncmovz   eax, ecx                                                       ; +0xa6, 0x1800200c6\ncmp     qword ptr [r9+2A68h], 0                                        ; +0xa9, 0x1800200c9\nlea     ecx, [rax+1]                                                   ; +0xb1, 0x1800200d1\ncmovz   ecx, eax                                                       ; +0xb4, 0x1800200d4\ncmp     qword ptr [r9+2DE0h], 0                                        ; +0xb7, 0x1800200d7\nlea     eax, [rcx+1]                                                   ; +0xbf, 0x1800200df\ncmovz   eax, ecx                                                       ; +0xc2, 0x1800200e2\ncmp     qword ptr [r9+3158h], 0                                        ; +0xc5, 0x1800200e5\nlea     ecx, [rax+1]                                                   ; +0xcd, 0x1800200ed\ncmovz   ecx, eax                                                       ; +0xd0, 0x1800200f0\ncmp     qword ptr [r9+34D0h], 0                                        ; +0xd3, 0x1800200f3\nlea     edx, [rcx+1]                                                   ; +0xdb, 0x1800200fb\ncmovz   edx, ecx                                                       ; +0xde, 0x1800200fe\ncmp     qword ptr [r9+3848h], 0                                        ; +0xe1, 0x180020101\nlea     ecx, [rdx+1]                                                   ; +0xe9, 0x180020109\ncmovz   ecx, edx                                                       ; +0xec, 0x18002010c\nxor     eax, eax                                                       ; +0xef, 0x18002010f\nmov     [r8], ecx                                                      ; +0xf1, 0x180020111\nretn                                                                   ; +0xf4, 0x180020114", "xrefs": ["sub_18001FF20 @ 0x18001ff70"], "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"}