{"type": "func", "start": 6443043904, "end": 6443044218, "name": "sub_180090C40", "pseudocode": "// \n// sub_180090C40 from 0x180090c40 to 0x180090d7a (314 bytes)\n// \n// 2 xrefs:\n// > sub_180090FD0 @ 0x180090fe8\n// > <???> @ 0x1801fa758\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_180090C40(__int64 *a1, int a2, _DWORD *a3, _DWORD *a4)\n{\n  __int64 v4; // rdi\n  __int64 v7; // r10\n\n  v4 = *a1;\n  if ( a2 == 8 )\n  {\n    v7 = *(_QWORD *)(v4 + 552);\n    if ( (*(_BYTE *)(v7 + 56) & 1) != 0 )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD, _DWORD *, _DWORD))(v7 + 8))(\n        v7,\n        15 - (unsigned int)(a4 != nullptr),\n        0,\n        0,\n        a3,\n        0);\n      *(_BYTE *)(v4 + 544) = a4 != nullptr;\n      return 0;\n    }\n  }\n  else if ( a2 == 32 )\n  {\n    if ( a3 || a4 )\n    {\n      (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(*(_QWORD *)(v4 + 552) + 8LL))(*(_QWORD *)(v4 + 552), 13, 0);\n      if ( a3 )\n        *a3 = MEMORY[6] - MEMORY[2];\n      if ( a4 )\n      {\n        *a4 = MEMORY[4] - MEMORY[0];\n        return 0;\n      }\n    }\n  }\n  else if ( a2 == 4 && *(_BYTE *)(v4 + 544) )\n  {\n    (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(*(_QWORD *)(v4 + 552) + 8LL))(*(_QWORD *)(v4 + 552), 19, 0);\n  }\n  return 0;\n}", "assembly": "; \n; sub_180090C40 from 0x180090c40 to 0x180090d7a (314 bytes)\n; \n; 2 xrefs:\n; > sub_180090FD0 @ 0x180090fe8\n; > <???> @ 0x1801fa758\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_8], rbx                                               ; +0x0, 0x180090c40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180090c45\npush    rdi                                                            ; +0xa, 0x180090c4a\nsub     rsp, 30h                                                       ; +0xb, 0x180090c4b\nmov     rdi, [rcx]                                                     ; +0xf, 0x180090c4f\nmov     rbx, r9                                                        ; +0x12, 0x180090c52\nmov     rsi, r8                                                        ; +0x15, 0x180090c55\ncmp     edx, 8                                                         ; +0x18, 0x180090c58\njnz     short loc_180090CB3                                            ; +0x1b, 0x180090c5b\nmov     r10, [rdi+228h]                                                ; +0x1d, 0x180090c5d\ntest    byte ptr [r10+38h], 1                                          ; +0x24, 0x180090c64\njz      loc_180090D68                                                  ; +0x29, 0x180090c69\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x180090c6f\nmov     rax, rbx                                                       ; +0x32, 0x180090c72\nneg     rax                                                            ; +0x35, 0x180090c75\nmovss   [rsp+38h+var_10], xmm0                                         ; +0x38, 0x180090c78\nmov     [rsp+38h+var_18], r8                                           ; +0x3e, 0x180090c7e\nmov     rcx, r10                                                       ; +0x43, 0x180090c83\nsbb     edx, edx                                                       ; +0x46, 0x180090c86\nxor     r9d, r9d                                                       ; +0x48, 0x180090c88\nadd     edx, 0Fh                                                       ; +0x4b, 0x180090c8b\nxor     r8d, r8d                                                       ; +0x4e, 0x180090c8e\ncall    qword ptr [r10+8]                                              ; +0x51, 0x180090c91\ntest    rbx, rbx                                                       ; +0x55, 0x180090c95\nsetnz   al                                                             ; +0x58, 0x180090c98\nmov     [rdi+220h], al                                                 ; +0x5b, 0x180090c9b\nxor     eax, eax                                                       ; +0x61, 0x180090ca1\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x63, 0x180090ca3\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x68, 0x180090ca8\nadd     rsp, 30h                                                       ; +0x6d, 0x180090cad\npop     rdi                                                            ; +0x71, 0x180090cb1\nretn                                                                   ; +0x72, 0x180090cb2\ncmp     edx, 20h ; ' '                                                 ; +0x73, 0x180090cb3\njnz     short loc_180090D31                                            ; +0x76, 0x180090cb6\ntest    rsi, rsi                                                       ; +0x78, 0x180090cb8\njnz     short loc_180090CC6                                            ; +0x7b, 0x180090cbb\ntest    rbx, rbx                                                       ; +0x7d, 0x180090cbd\njz      loc_180090D68                                                  ; +0x80, 0x180090cc0\nmov     rax, [rdi+228h]                                                ; +0x86, 0x180090cc6\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x8d, 0x180090ccd\nxor     r9d, r9d                                                       ; +0x92, 0x180090cd2\nmov     [rsp+38h+arg_0], 0                                             ; +0x95, 0x180090cd5\nxorps   xmm0, xmm0                                                     ; +0x9e, 0x180090cde\nxor     r8d, r8d                                                       ; +0xa1, 0x180090ce1\nmovss   [rsp+38h+var_10], xmm0                                         ; +0xa4, 0x180090ce4\nmov     [rsp+38h+var_18], rcx                                          ; +0xaa, 0x180090cea\nmov     rcx, rax                                                       ; +0xaf, 0x180090cef\nlea     edx, [r9+0Dh]                                                  ; +0xb2, 0x180090cf2\ncall    qword ptr [rax+8]                                              ; +0xb6, 0x180090cf6\nmov     rdx, [rsp+38h+arg_0]                                           ; +0xb9, 0x180090cf9\ntest    rsi, rsi                                                       ; +0xbe, 0x180090cfe\njz      short loc_180090D0F                                            ; +0xc1, 0x180090d01\nmovsx   ecx, word ptr [rdx+6]                                          ; +0xc3, 0x180090d03\nmovsx   eax, word ptr [rdx+2]                                          ; +0xc7, 0x180090d07\nsub     ecx, eax                                                       ; +0xcb, 0x180090d0b\nmov     [rsi], ecx                                                     ; +0xcd, 0x180090d0d\ntest    rbx, rbx                                                       ; +0xcf, 0x180090d0f\njz      short loc_180090D68                                            ; +0xd2, 0x180090d12\nmovsx   eax, word ptr [rdx]                                            ; +0xd4, 0x180090d14\nmovsx   ecx, word ptr [rdx+4]                                          ; +0xd7, 0x180090d17\nsub     ecx, eax                                                       ; +0xdb, 0x180090d1b\nmov     [rbx], ecx                                                     ; +0xdd, 0x180090d1d\nxor     eax, eax                                                       ; +0xdf, 0x180090d1f\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe1, 0x180090d21\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe6, 0x180090d26\nadd     rsp, 30h                                                       ; +0xeb, 0x180090d2b\npop     rdi                                                            ; +0xef, 0x180090d2f\nretn                                                                   ; +0xf0, 0x180090d30\ncmp     edx, 4                                                         ; +0xf1, 0x180090d31\njnz     short loc_180090D68                                            ; +0xf4, 0x180090d34\ncmp     byte ptr [rdi+220h], 0                                         ; +0xf6, 0x180090d36\njz      short loc_180090D68                                            ; +0xfd, 0x180090d3d\nmov     rax, [rdi+228h]                                                ; +0xff, 0x180090d3f\nxor     r9d, r9d                                                       ; +0x106, 0x180090d46\nxorps   xmm0, xmm0                                                     ; +0x109, 0x180090d49\nxor     r8d, r8d                                                       ; +0x10c, 0x180090d4c\nmovss   [rsp+38h+var_10], xmm0                                         ; +0x10f, 0x180090d4f\nmov     rcx, rax                                                       ; +0x115, 0x180090d55\nmov     [rsp+38h+var_18], 0                                            ; +0x118, 0x180090d58\nlea     edx, [r9+13h]                                                  ; +0x121, 0x180090d61\ncall    qword ptr [rax+8]                                              ; +0x125, 0x180090d65\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x128, 0x180090d68\nxor     eax, eax                                                       ; +0x12d, 0x180090d6d\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x12f, 0x180090d6f\nadd     rsp, 30h                                                       ; +0x134, 0x180090d74\npop     rdi                                                            ; +0x138, 0x180090d78\nretn                                                                   ; +0x139, 0x180090d79", "xrefs": ["sub_180090FD0 @ 0x180090fe8", "<???> @ 0x1801fa758"], "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"}