{"type": "func", "start": 6442739728, "end": 6442740315, "name": "sub_180046810", "pseudocode": "// \n// sub_180046810 from 0x180046810 to 0x180046a5b (587 bytes)\n// \n// 2 xrefs:\n// > sub_180045B60 @ 0x180045c24\n// > <???> @ 0x1801f8214\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:13 +0000\n// \n\n_BOOL8 __fastcall sub_180046810(__int64 a1, __int64 a2, int a3, int a4)\n{\n  _BOOL8 result; // rax\n  unsigned int v8; // [rsp+50h] [rbp+18h] BYREF\n\n  *(_DWORD *)(*(_QWORD *)(a2 + 8) + 480LL) = 0;\n  *(_DWORD *)(*(_QWORD *)(a2 + 8) + 484LL) = a3;\n  *(_DWORD *)(*(_QWORD *)(a2 + 8) + 488LL) = a4;\n  result = false;\n  if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 0x10u) )\n  {\n    *(_DWORD *)(*(_QWORD *)(a2 + 8) + 496LL) = v8;\n    if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 0x10u) )\n    {\n      *(_DWORD *)(*(_QWORD *)(a2 + 8) + 500LL) = v8;\n      if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 0x18u) )\n      {\n        *(_DWORD *)(*(_QWORD *)(a2 + 8) + 504LL) = v8;\n        if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 0x18u) )\n        {\n          *(_DWORD *)(*(_QWORD *)(a2 + 8) + 508LL) = v8;\n          if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 0x14u) )\n          {\n            *(_DWORD *)(*(_QWORD *)(a2 + 8) + 512LL) = v8;\n            if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 3u) )\n            {\n              *(_DWORD *)(*(_QWORD *)(a2 + 8) + 516LL) = v8 + 1;\n              if ( (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v8, 5u) )\n              {\n                *(_DWORD *)(*(_QWORD *)(a2 + 8) + 520LL) = v8 + 1;\n                if ( (unsigned int)sub_180041EA0(\n                                     a1,\n                                     *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL),\n                                     (unsigned __int64 *)(*(_QWORD *)(a2 + 8) + 528LL),\n                                     0x24u) )\n                {\n                  if ( (unsigned int)sub_180041BB0(\n                                       a1,\n                                       *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL),\n                                       (_BYTE *)(*(_QWORD *)(a2 + 8) + 536LL),\n                                       0x10u)\n                    && (unsigned int)sub_180042920(a1, *(_DWORD **)(*(_QWORD *)(a2 + 8) + 120LL), a4 - 34) )\n                  {\n                    return true;\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180046810 from 0x180046810 to 0x180046a5b (587 bytes)\n; \n; 2 xrefs:\n; > sub_180045B60 @ 0x180045c24\n; > <???> @ 0x1801f8214\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:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180046810\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180046815\npush    rsi                                                            ; +0xa, 0x18004681a\npush    rdi                                                            ; +0xb, 0x18004681b\npush    r14                                                            ; +0xc, 0x18004681c\nsub     rsp, 20h                                                       ; +0xe, 0x18004681e\nmov     rax, [rdx+8]                                                   ; +0x12, 0x180046822\nmov     rbx, rdx                                                       ; +0x16, 0x180046826\nmov     ebp, r9d                                                       ; +0x19, 0x180046829\nmov     rsi, rcx                                                       ; +0x1c, 0x18004682c\nmov     dword ptr [rax+1E0h], 0                                        ; +0x1f, 0x18004682f\nmov     rax, [rdx+8]                                                   ; +0x29, 0x180046839\nmov     [rax+1E4h], r8d                                                ; +0x2d, 0x18004683d\nlea     r8, [rsp+38h+arg_10]                                           ; +0x34, 0x180046844\nmov     rax, [rdx+8]                                                   ; +0x39, 0x180046849\nmov     [rax+1E8h], r9d                                                ; +0x3d, 0x18004684d\nmov     rdx, [rdx+8]                                                   ; +0x44, 0x180046854\nmov     edi, cs:dword_180165930                                        ; +0x48, 0x180046858\nmov     r9d, edi                                                       ; +0x4e, 0x18004685e\nmov     rdx, [rdx+78h]                                                 ; +0x51, 0x180046861\ncall    sub_180041D20                                                  ; +0x55, 0x180046865\ntest    eax, eax                                                       ; +0x5a, 0x18004686a\njz      loc_180046A46                                                  ; +0x5c, 0x18004686c\nmov     rcx, [rbx+8]                                                   ; +0x62, 0x180046872\nlea     r8, [rsp+38h+arg_10]                                           ; +0x66, 0x180046876\nmov     eax, [rsp+38h+arg_10]                                          ; +0x6b, 0x18004687b\nmov     [rcx+1F0h], eax                                                ; +0x6f, 0x18004687f\nmov     rcx, rsi                                                       ; +0x75, 0x180046885\nmov     rdx, [rbx+8]                                                   ; +0x78, 0x180046888\nmov     r14d, cs:dword_180165934                                       ; +0x7c, 0x18004688c\nmov     r9d, r14d                                                      ; +0x83, 0x180046893\nmov     rdx, [rdx+78h]                                                 ; +0x86, 0x180046896\ncall    sub_180041D20                                                  ; +0x8a, 0x18004689a\ntest    eax, eax                                                       ; +0x8f, 0x18004689f\njz      loc_180046A46                                                  ; +0x91, 0x1800468a1\nmov     rcx, [rbx+8]                                                   ; +0x97, 0x1800468a7\nlea     r8, [rsp+38h+arg_10]                                           ; +0x9b, 0x1800468ab\nmov     eax, [rsp+38h+arg_10]                                          ; +0xa0, 0x1800468b0\nadd     edi, r14d                                                      ; +0xa4, 0x1800468b4\nmov     [rcx+1F4h], eax                                                ; +0xa7, 0x1800468b7\nmov     rcx, rsi                                                       ; +0xad, 0x1800468bd\nmov     rdx, [rbx+8]                                                   ; +0xb0, 0x1800468c0\nmov     r14d, cs:dword_180165938                                       ; +0xb4, 0x1800468c4\nmov     r9d, r14d                                                      ; +0xbb, 0x1800468cb\nmov     rdx, [rdx+78h]                                                 ; +0xbe, 0x1800468ce\ncall    sub_180041D20                                                  ; +0xc2, 0x1800468d2\ntest    eax, eax                                                       ; +0xc7, 0x1800468d7\njz      loc_180046A46                                                  ; +0xc9, 0x1800468d9\nmov     rcx, [rbx+8]                                                   ; +0xcf, 0x1800468df\nlea     r8, [rsp+38h+arg_10]                                           ; +0xd3, 0x1800468e3\nmov     eax, [rsp+38h+arg_10]                                          ; +0xd8, 0x1800468e8\nadd     edi, r14d                                                      ; +0xdc, 0x1800468ec\nmov     [rcx+1F8h], eax                                                ; +0xdf, 0x1800468ef\nmov     rcx, rsi                                                       ; +0xe5, 0x1800468f5\nmov     rdx, [rbx+8]                                                   ; +0xe8, 0x1800468f8\nmov     r14d, cs:dword_18016593C                                       ; +0xec, 0x1800468fc\nmov     r9d, r14d                                                      ; +0xf3, 0x180046903\nmov     rdx, [rdx+78h]                                                 ; +0xf6, 0x180046906\ncall    sub_180041D20                                                  ; +0xfa, 0x18004690a\ntest    eax, eax                                                       ; +0xff, 0x18004690f\njz      loc_180046A46                                                  ; +0x101, 0x180046911\nmov     rcx, [rbx+8]                                                   ; +0x107, 0x180046917\nlea     r8, [rsp+38h+arg_10]                                           ; +0x10b, 0x18004691b\nmov     eax, [rsp+38h+arg_10]                                          ; +0x110, 0x180046920\nadd     edi, r14d                                                      ; +0x114, 0x180046924\nmov     [rcx+1FCh], eax                                                ; +0x117, 0x180046927\nmov     rcx, rsi                                                       ; +0x11d, 0x18004692d\nmov     rdx, [rbx+8]                                                   ; +0x120, 0x180046930\nmov     r14d, cs:dword_180165940                                       ; +0x124, 0x180046934\nmov     r9d, r14d                                                      ; +0x12b, 0x18004693b\nmov     rdx, [rdx+78h]                                                 ; +0x12e, 0x18004693e\ncall    sub_180041D20                                                  ; +0x132, 0x180046942\ntest    eax, eax                                                       ; +0x137, 0x180046947\njz      loc_180046A46                                                  ; +0x139, 0x180046949\nmov     rcx, [rbx+8]                                                   ; +0x13f, 0x18004694f\nlea     r8, [rsp+38h+arg_10]                                           ; +0x143, 0x180046953\nmov     eax, [rsp+38h+arg_10]                                          ; +0x148, 0x180046958\nadd     edi, r14d                                                      ; +0x14c, 0x18004695c\nmov     [rcx+200h], eax                                                ; +0x14f, 0x18004695f\nmov     rcx, rsi                                                       ; +0x155, 0x180046965\nmov     rdx, [rbx+8]                                                   ; +0x158, 0x180046968\nmov     r14d, cs:dword_180165944                                       ; +0x15c, 0x18004696c\nmov     r9d, r14d                                                      ; +0x163, 0x180046973\nmov     rdx, [rdx+78h]                                                 ; +0x166, 0x180046976\ncall    sub_180041D20                                                  ; +0x16a, 0x18004697a\ntest    eax, eax                                                       ; +0x16f, 0x18004697f\njz      loc_180046A46                                                  ; +0x171, 0x180046981\nmov     ecx, [rsp+38h+arg_10]                                          ; +0x177, 0x180046987\nlea     r8, [rsp+38h+arg_10]                                           ; +0x17b, 0x18004698b\nmov     rax, [rbx+8]                                                   ; +0x180, 0x180046990\ninc     ecx                                                            ; +0x184, 0x180046994\nadd     edi, r14d                                                      ; +0x186, 0x180046996\nmov     [rax+204h], ecx                                                ; +0x189, 0x180046999\nmov     rcx, rsi                                                       ; +0x18f, 0x18004699f\nmov     rdx, [rbx+8]                                                   ; +0x192, 0x1800469a2\nmov     r14d, cs:dword_180165948                                       ; +0x196, 0x1800469a6\nmov     r9d, r14d                                                      ; +0x19d, 0x1800469ad\nmov     rdx, [rdx+78h]                                                 ; +0x1a0, 0x1800469b0\ncall    sub_180041D20                                                  ; +0x1a4, 0x1800469b4\ntest    eax, eax                                                       ; +0x1a9, 0x1800469b9\njz      loc_180046A46                                                  ; +0x1ab, 0x1800469bb\nmov     ecx, [rsp+38h+arg_10]                                          ; +0x1b1, 0x1800469c1\nadd     edi, r14d                                                      ; +0x1b5, 0x1800469c5\nmov     rax, [rbx+8]                                                   ; +0x1b8, 0x1800469c8\ninc     ecx                                                            ; +0x1bc, 0x1800469cc\nmov     [rax+208h], ecx                                                ; +0x1be, 0x1800469ce\nmov     rcx, rsi                                                       ; +0x1c4, 0x1800469d4\nmov     rdx, [rbx+8]                                                   ; +0x1c7, 0x1800469d7\nmov     r14d, cs:dword_18016594C                                       ; +0x1cb, 0x1800469db\nmov     r9d, r14d                                                      ; +0x1d2, 0x1800469e2\nlea     r8, [rdx+210h]                                                 ; +0x1d5, 0x1800469e5\nmov     rdx, [rdx+78h]                                                 ; +0x1dc, 0x1800469ec\ncall    sub_180041EA0                                                  ; +0x1e0, 0x1800469f0\ntest    eax, eax                                                       ; +0x1e5, 0x1800469f5\njz      short loc_180046A46                                            ; +0x1e7, 0x1800469f7\nmov     rdx, [rbx+8]                                                   ; +0x1e9, 0x1800469f9\nmov     r9d, 10h                                                       ; +0x1ed, 0x1800469fd\nmov     rcx, rsi                                                       ; +0x1f3, 0x180046a03\nlea     r8, [rdx+218h]                                                 ; +0x1f6, 0x180046a06\nmov     rdx, [rdx+78h]                                                 ; +0x1fd, 0x180046a0d\ncall    sub_180041BB0                                                  ; +0x201, 0x180046a11\ntest    eax, eax                                                       ; +0x206, 0x180046a16\njz      short loc_180046A46                                            ; +0x208, 0x180046a18\nmov     rdx, [rbx+8]                                                   ; +0x20a, 0x180046a1a\nlea     eax, [r14+80h]                                                 ; +0x20e, 0x180046a1e\nadd     eax, edi                                                       ; +0x215, 0x180046a25\nmov     rcx, rsi                                                       ; +0x217, 0x180046a27\nshr     eax, 3                                                         ; +0x21a, 0x180046a2a\nsub     ebp, eax                                                       ; +0x21d, 0x180046a2d\nmov     rdx, [rdx+78h]                                                 ; +0x21f, 0x180046a2f\nmov     r8d, ebp                                                       ; +0x223, 0x180046a33\ncall    sub_180042920                                                  ; +0x226, 0x180046a36\ntest    eax, eax                                                       ; +0x22b, 0x180046a3b\njz      short loc_180046A46                                            ; +0x22d, 0x180046a3d\nmov     eax, 1                                                         ; +0x22f, 0x180046a3f\njmp     short loc_180046A48                                            ; +0x234, 0x180046a44\nxor     eax, eax                                                       ; +0x236, 0x180046a46\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x238, 0x180046a48\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x23d, 0x180046a4d\nadd     rsp, 20h                                                       ; +0x242, 0x180046a52\npop     r14                                                            ; +0x246, 0x180046a56\npop     rdi                                                            ; +0x248, 0x180046a58\npop     rsi                                                            ; +0x249, 0x180046a59\nretn                                                                   ; +0x24a, 0x180046a5a", "xrefs": ["sub_180045B60 @ 0x180045c24", "<???> @ 0x1801f8214"], "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"}