{"type": "func", "start": 6442732432, "end": 6442732844, "name": "sub_180044B90", "pseudocode": "// \n// sub_180044B90 from 0x180044b90 to 0x180044d2c (412 bytes)\n// \n// 3 xrefs:\n// > sub_1800445F0 @ 0x180044656\n// > sub_180047910 @ 0x180047c41\n// > <???> @ 0x1801f81c0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_180044B90(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rcx\n  int v5; // edi\n  unsigned __int64 v6; // rdx\n  unsigned int v8; // eax\n  __int64 v9; // rdx\n  __int64 v10; // rax\n  unsigned int v11; // [rsp+38h] [rbp+10h] BYREF\n\n  v4 = *(_QWORD *)(a2 + 8);\n  v5 = 1;\n  if ( *(_DWORD *)(v4 + 472) )\n  {\n    v6 = *(_QWORD *)(v4 + 528);\n    if ( v6 )\n    {\n      if ( *(_QWORD *)(v4 + 464) >= v6 )\n      {\n        **(_DWORD **)a2 = 4;\n        return 1;\n      }\n    }\n  }\n  if ( sub_180041B90(*(_QWORD *)(v4 + 120))\n    || (v8 = sub_1800419A0(*(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL)),\n        (unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v11, v8)) )\n  {\n    while ( 1 )\n    {\n      v9 = *(_QWORD *)(a2 + 8);\n      if ( *(_DWORD *)(v9 + 3976) )\n      {\n        v11 = *(unsigned __int8 *)(v9 + 4038);\n        *(_DWORD *)(v9 + 3976) = 0;\n      }\n      else if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(v9 + 120), &v11, 8u) )\n      {\n        return 0;\n      }\n      if ( v11 == 255 )\n      {\n        *(_BYTE *)(*(_QWORD *)(a2 + 8) + 4036LL) = -1;\n        if ( !(unsigned int)sub_180041D20(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL), &v11, 8u) )\n          return 0;\n        if ( v11 == 255 )\n        {\n          *(_BYTE *)(*(_QWORD *)(a2 + 8) + 4038LL) = -1;\n          *(_DWORD *)(*(_QWORD *)(a2 + 8) + 3976LL) = 1;\n        }\n        else if ( (v11 & 0xFFFFFFFC) == 0xF8 )\n        {\n          *(_BYTE *)(*(_QWORD *)(a2 + 8) + 4037LL) = v11;\n          **(_DWORD **)a2 = 3;\n          return 1;\n        }\n      }\n      if ( v5 )\n      {\n        v10 = *(_QWORD *)(a2 + 8);\n        if ( !*(_DWORD *)(v10 + 4112) )\n          (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(v10 + 56))(a2, 0, *(_QWORD *)(v10 + 104));\n        v5 = 0;\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_180044B90 from 0x180044b90 to 0x180044d2c (412 bytes)\n; \n; 3 xrefs:\n; > sub_1800445F0 @ 0x180044656\n; > sub_180047910 @ 0x180047c41\n; > <???> @ 0x1801f81c0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180044b90\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x180044b95\npush    rdi                                                            ; +0xa, 0x180044b9a\nsub     rsp, 20h                                                       ; +0xb, 0x180044b9b\nmov     rsi, rcx                                                       ; +0xf, 0x180044b9f\nmov     rbx, rdx                                                       ; +0x12, 0x180044ba2\nmov     rcx, [rdx+8]                                                   ; +0x15, 0x180044ba5\nmov     edi, 1                                                         ; +0x19, 0x180044ba9\ncmp     dword ptr [rcx+1D8h], 0                                        ; +0x1e, 0x180044bae\njz      short loc_180044BE7                                            ; +0x25, 0x180044bb5\nmov     rdx, [rcx+210h]                                                ; +0x27, 0x180044bb7\ntest    rdx, rdx                                                       ; +0x2e, 0x180044bbe\njz      short loc_180044BE7                                            ; +0x31, 0x180044bc1\ncmp     [rcx+1D0h], rdx                                                ; +0x33, 0x180044bc3\njb      short loc_180044BE7                                            ; +0x3a, 0x180044bca\nmov     rcx, [rbx]                                                     ; +0x3c, 0x180044bcc\nmov     eax, edi                                                       ; +0x3f, 0x180044bcf\nmov     dword ptr [rcx], 4                                             ; +0x41, 0x180044bd1\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x47, 0x180044bd7\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x4c, 0x180044bdc\nadd     rsp, 20h                                                       ; +0x51, 0x180044be1\npop     rdi                                                            ; +0x55, 0x180044be5\nretn                                                                   ; +0x56, 0x180044be6\nmov     rcx, [rcx+78h]                                                 ; +0x57, 0x180044be7\nmov     [rsp+28h+arg_0], rbp                                           ; +0x5b, 0x180044beb\ncall    sub_180041B90                                                  ; +0x60, 0x180044bf0\ntest    eax, eax                                                       ; +0x65, 0x180044bf5\njnz     short loc_180044C26                                            ; +0x67, 0x180044bf7\nmov     rcx, [rbx+8]                                                   ; +0x69, 0x180044bf9\nmov     rcx, [rcx+78h]                                                 ; +0x6d, 0x180044bfd\ncall    sub_1800419A0                                                  ; +0x71, 0x180044c01\nmov     rdx, [rbx+8]                                                   ; +0x76, 0x180044c06\nlea     r8, [rsp+28h+arg_8]                                            ; +0x7a, 0x180044c0a\nmov     r9d, eax                                                       ; +0x7f, 0x180044c0f\nmov     rcx, rsi                                                       ; +0x82, 0x180044c12\nmov     rdx, [rdx+78h]                                                 ; +0x85, 0x180044c15\ncall    sub_180041D20                                                  ; +0x89, 0x180044c19\ntest    eax, eax                                                       ; +0x8e, 0x180044c1e\njz      loc_180044D15                                                  ; +0x90, 0x180044c20\nxor     ebp, ebp                                                       ; +0x96, 0x180044c26\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x98, 0x180044c28\nmov     rdx, [rbx+8]                                                   ; +0xa0, 0x180044c30\ncmp     [rdx+0F88h], ebp                                               ; +0xa4, 0x180044c34\njz      short loc_180044C4F                                            ; +0xaa, 0x180044c3a\nmovzx   eax, byte ptr [rdx+0FC6h]                                      ; +0xac, 0x180044c3c\nmov     [rsp+28h+arg_8], eax                                           ; +0xb3, 0x180044c43\nmov     [rdx+0F88h], ebp                                               ; +0xb7, 0x180044c47\njmp     short loc_180044C6E                                            ; +0xbd, 0x180044c4d\nmov     rdx, [rdx+78h]                                                 ; +0xbf, 0x180044c4f\nlea     r8, [rsp+28h+arg_8]                                            ; +0xc3, 0x180044c53\nmov     r9d, 8                                                         ; +0xc8, 0x180044c58\nmov     rcx, rsi                                                       ; +0xce, 0x180044c5e\ncall    sub_180041D20                                                  ; +0xd1, 0x180044c61\ntest    eax, eax                                                       ; +0xd6, 0x180044c66\njz      loc_180044D15                                                  ; +0xd8, 0x180044c68\ncmp     [rsp+28h+arg_8], 0FFh                                          ; +0xde, 0x180044c6e\njnz     short loc_180044CD4                                            ; +0xe6, 0x180044c76\nmov     rax, [rbx+8]                                                   ; +0xe8, 0x180044c78\nlea     r8, [rsp+28h+arg_8]                                            ; +0xec, 0x180044c7c\nmov     r9d, 8                                                         ; +0xf1, 0x180044c81\nmov     rcx, rsi                                                       ; +0xf7, 0x180044c87\nmov     byte ptr [rax+0FC4h], 0FFh                                     ; +0xfa, 0x180044c8a\nmov     rdx, [rbx+8]                                                   ; +0x101, 0x180044c91\nmov     rdx, [rdx+78h]                                                 ; +0x105, 0x180044c95\ncall    sub_180041D20                                                  ; +0x109, 0x180044c99\ntest    eax, eax                                                       ; +0x10e, 0x180044c9e\njz      short loc_180044D15                                            ; +0x110, 0x180044ca0\nmov     ecx, [rsp+28h+arg_8]                                           ; +0x112, 0x180044ca2\ncmp     ecx, 0FFh                                                      ; +0x116, 0x180044ca6\njnz     short loc_180044CC8                                            ; +0x11c, 0x180044cac\nmov     rax, [rbx+8]                                                   ; +0x11e, 0x180044cae\nmov     [rax+0FC6h], cl                                                ; +0x122, 0x180044cb2\nmov     rax, [rbx+8]                                                   ; +0x128, 0x180044cb8\nmov     dword ptr [rax+0F88h], 1                                       ; +0x12c, 0x180044cbc\njmp     short loc_180044CD4                                            ; +0x136, 0x180044cc6\nmov     eax, ecx                                                       ; +0x138, 0x180044cc8\nand     eax, 0FFFFFFFCh                                                ; +0x13a, 0x180044cca\ncmp     eax, 0F8h                                                      ; +0x13d, 0x180044ccd\njz      short loc_180044CFB                                            ; +0x142, 0x180044cd2\ntest    edi, edi                                                       ; +0x144, 0x180044cd4\njz      loc_180044C30                                                  ; +0x146, 0x180044cd6\nmov     rax, [rbx+8]                                                   ; +0x14c, 0x180044cdc\ncmp     [rax+1010h], ebp                                               ; +0x150, 0x180044ce0\njnz     short loc_180044CF4                                            ; +0x156, 0x180044ce6\nmov     r8, [rax+68h]                                                  ; +0x158, 0x180044ce8\nxor     edx, edx                                                       ; +0x15c, 0x180044cec\nmov     rcx, rbx                                                       ; +0x15e, 0x180044cee\ncall    qword ptr [rax+38h]                                            ; +0x161, 0x180044cf1\nmov     edi, ebp                                                       ; +0x164, 0x180044cf4\njmp     loc_180044C30                                                  ; +0x166, 0x180044cf6\nmov     rax, [rbx+8]                                                   ; +0x16b, 0x180044cfb\nmov     [rax+0FC5h], cl                                                ; +0x16f, 0x180044cff\nmov     rax, [rbx]                                                     ; +0x175, 0x180044d05\nmov     dword ptr [rax], 3                                             ; +0x178, 0x180044d08\nmov     eax, 1                                                         ; +0x17e, 0x180044d0e\njmp     short loc_180044D17                                            ; +0x183, 0x180044d13\nxor     eax, eax                                                       ; +0x185, 0x180044d15\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x187, 0x180044d17\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x18c, 0x180044d1c\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x191, 0x180044d21\nadd     rsp, 20h                                                       ; +0x196, 0x180044d26\npop     rdi                                                            ; +0x19a, 0x180044d2a\nretn                                                                   ; +0x19b, 0x180044d2b", "xrefs": ["sub_1800445F0 @ 0x180044656", "sub_180047910 @ 0x180047c41", "<???> @ 0x1801f81c0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}