{"type": "func", "start": 6442730992, "end": 6442731236, "name": "sub_1800445F0", "pseudocode": "// \n// sub_1800445F0 from 0x1800445f0 to 0x1800446e4 (244 bytes)\n// \n// 2 xrefs:\n// > sub_180015E10 @ 0x180015ebd\n// > <???> @ 0x1801f8160\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:53:12 +0000\n// \n\n_BOOL8 __fastcall sub_1800445F0(__int64 a1, unsigned int **a2)\n{\n  unsigned int v4; // r8d\n  int v6; // [rsp+38h] [rbp+10h] BYREF\n\n  v4 = **a2;\n  while ( 2 )\n  {\n    switch ( v4 )\n    {\n      case 0u:\n        if ( (unsigned int)sub_180044980(a1, a2) )\n          goto LABEL_9;\n        return 0;\n      case 1u:\n        return (unsigned int)sub_180045B60(a1, a2) != 0;\n      case 2u:\n        if ( (unsigned int)sub_180044B90(a1, a2) )\n          goto LABEL_9;\n        return 1;\n      case 3u:\n        if ( !(unsigned int)sub_180044E10(a1, a2, &v6, 1) )\n          return 0;\n        if ( !v6 )\n        {\nLABEL_9:\n          v4 = **a2;\n          if ( v4 > 7 )\n            return 0;\n          continue;\n        }\n        return 1;\n      case 4u:\n      case 7u:\n        return 1;\n      default:\n        return 0;\n    }\n  }\n}", "assembly": "; \n; sub_1800445F0 from 0x1800445f0 to 0x1800446e4 (244 bytes)\n; \n; 2 xrefs:\n; > sub_180015E10 @ 0x180015ebd\n; > <???> @ 0x1801f8160\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:53:12 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800445f0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800445f5\npush    rdi                                                            ; +0xa, 0x1800445fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800445fb\nmov     rax, [rdx]                                                     ; +0xf, 0x1800445ff\nmov     rbx, rdx                                                       ; +0x12, 0x180044602\nmov     rdi, rcx                                                       ; +0x15, 0x180044605\nmov     r8d, [rax]                                                     ; +0x18, 0x180044608\ncmp     r8d, 7; switch 8 cases                                         ; +0x1b, 0x18004460b\nja      short def_18004462D; jumptable 000000018004462D default case, cases 5,6 ; +0x1f, 0x18004460f\nlea     rsi, cs:180000000h                                             ; +0x21, 0x180044611\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x180044618\nmovsxd  rax, r8d                                                       ; +0x30, 0x180044620\nmov     edx, ds:(jpt_18004462D - 180000000h)[rsi+rax*4]                ; +0x33, 0x180044623\nadd     rdx, rsi                                                       ; +0x3a, 0x18004462a\njmp     rdx; switch jump                                               ; +0x3d, 0x18004462d\nmov     rdx, rbx; jumptable 000000018004462D case 0                    ; +0x3f, 0x18004462f\nmov     rcx, rdi                                                       ; +0x42, 0x180044632\ncall    sub_180044980                                                  ; +0x45, 0x180044635\ntest    eax, eax                                                       ; +0x4a, 0x18004463a\njnz     short loc_180044682                                            ; +0x4c, 0x18004463c\nxor     eax, eax; jumptable 000000018004462D default case, cases 5,6   ; +0x4e, 0x18004463e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x50, 0x180044640\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x55, 0x180044645\nadd     rsp, 20h                                                       ; +0x5a, 0x18004464a\npop     rdi                                                            ; +0x5e, 0x18004464e\nretn                                                                   ; +0x5f, 0x18004464f\nmov     rdx, rbx; jumptable 000000018004462D case 2                    ; +0x60, 0x180044650\nmov     rcx, rdi                                                       ; +0x63, 0x180044653\ncall    sub_180044B90                                                  ; +0x66, 0x180044656\ntest    eax, eax                                                       ; +0x6b, 0x18004465b\njz      short loc_1800446AF; jumptable 000000018004462D cases 4,7      ; +0x6d, 0x18004465d\njmp     short loc_180044682                                            ; +0x6f, 0x18004465f\nmov     r9d, 1; jumptable 000000018004462D case 3                      ; +0x71, 0x180044661\nlea     r8, [rsp+28h+arg_8]                                            ; +0x77, 0x180044667\nmov     rdx, rbx                                                       ; +0x7c, 0x18004466c\nmov     rcx, rdi                                                       ; +0x7f, 0x18004466f\ncall    sub_180044E10                                                  ; +0x82, 0x180044672\ntest    eax, eax                                                       ; +0x87, 0x180044677\njz      short def_18004462D; jumptable 000000018004462D default case, cases 5,6 ; +0x89, 0x180044679\ncmp     [rsp+28h+arg_8], 0                                             ; +0x8b, 0x18004467b\njnz     short loc_1800446AF; jumptable 000000018004462D cases 4,7      ; +0x90, 0x180044680\nmov     rax, [rbx]                                                     ; +0x92, 0x180044682\nmov     r8d, [rax]                                                     ; +0x95, 0x180044685\ncmp     r8d, 7                                                         ; +0x98, 0x180044688\njbe     short loc_180044620                                            ; +0x9c, 0x18004468c\nxor     eax, eax                                                       ; +0x9e, 0x18004468e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa0, 0x180044690\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa5, 0x180044695\nadd     rsp, 20h                                                       ; +0xaa, 0x18004469a\npop     rdi                                                            ; +0xae, 0x18004469e\nretn                                                                   ; +0xaf, 0x18004469f\nmov     rdx, rbx; jumptable 000000018004462D case 1                    ; +0xb0, 0x1800446a0\nmov     rcx, rdi                                                       ; +0xb3, 0x1800446a3\ncall    sub_180045B60                                                  ; +0xb6, 0x1800446a6\ntest    eax, eax                                                       ; +0xbb, 0x1800446ab\njz      short def_18004462D; jumptable 000000018004462D default case, cases 5,6 ; +0xbd, 0x1800446ad\nmov     rbx, [rsp+28h+arg_0]; jumptable 000000018004462D cases 4,7     ; +0xbf, 0x1800446af\nmov     eax, 1                                                         ; +0xc4, 0x1800446b4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc9, 0x1800446b9\nadd     rsp, 20h                                                       ; +0xce, 0x1800446be\npop     rdi                                                            ; +0xd2, 0x1800446c2\nretn                                                                   ; +0xd3, 0x1800446c3\ndd offset loc_18004462F - 180000000h; jump table for switch statement  ; +0xd4, 0x1800446c4", "xrefs": ["sub_180015E10 @ 0x180015ebd", "<???> @ 0x1801f8160"], "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"}