{"type": "func", "start": 6443328640, "end": 6443329002, "name": "sub_1800D6480", "pseudocode": "// \n// sub_1800D6480 from 0x1800d6480 to 0x1800d65ea (362 bytes)\n// \n// 3 xrefs:\n// > sub_1800D44F0 @ 0x1800d4737\n// > <???> @ 0x1801ba8c0\n// > <???> @ 0x1801ba8cc\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_1800D6480(__int64 a1, _DWORD *a2, _DWORD *a3, __int64 a4)\n{\n  int v8; // eax\n  int v9; // eax\n\n  if ( !(unsigned int)sub_1800D7860((HANDLE)a1, a2) )\n    return 0;\n  if ( *a3 )\n  {\n    v8 = a3[1];\n    switch ( v8 )\n    {\n      case 221185:\n        if ( !(unsigned int)sub_1800DCD80() )\n          return 0;\n        v9 = sub_1800DC900(a1, a3, a4);\n        break;\n      case 221186:\n        if ( !(unsigned int)sub_1800DE0E0() )\n          return 0;\n        v9 = sub_1800DDC10(a1, a3, a4);\n        break;\n      case 221187:\n        if ( !(unsigned int)sub_1800DEF60() )\n          return 0;\n        v9 = sub_1800DED30(a1, a3, a4);\n        break;\n      default:\nLABEL_13:\n        if ( (unsigned int)sub_1800D2BC0(a1, a3) )\n          goto LABEL_14;\n        return 0;\n    }\n    if ( !v9 )\n      return 0;\n    goto LABEL_13;\n  }\nLABEL_14:\n  if ( *(_QWORD *)(a1 + 72) )\n  {\n    ShowWindow(*(HWND *)(a1 + 880), 8);\n    BringWindowToTop(*(HWND *)(a1 + 880));\n    SetForegroundWindow(*(HWND *)(a1 + 880));\n    SetFocus(*(HWND *)(a1 + 880));\n    sub_1800D7750(a1);\n    sub_1800D8050(a1);\n    if ( a2[11] )\n    {\n      sub_1800D5230(a1);\n      return 1;\n    }\n  }\n  else if ( a2[5] )\n  {\n    ShowWindow(*(HWND *)(a1 + 880), 8);\n    if ( a2[7] )\n      sub_1800D66D0(a1);\n  }\n  return 1;\n}", "assembly": "; \n; sub_1800D6480 from 0x1800d6480 to 0x1800d65ea (362 bytes)\n; \n; 3 xrefs:\n; > sub_1800D44F0 @ 0x1800d4737\n; > <???> @ 0x1801ba8c0\n; > <???> @ 0x1801ba8cc\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_0], rbx                                               ; +0x0, 0x1800d6480\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d6485\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d648a\npush    rdi                                                            ; +0xf, 0x1800d648f\nsub     rsp, 20h                                                       ; +0x10, 0x1800d6490\nmov     rdi, r8                                                        ; +0x14, 0x1800d6494\nmov     rbp, r9                                                        ; +0x17, 0x1800d6497\nmov     r8, r9                                                         ; +0x1a, 0x1800d649a\nmov     rsi, rdx                                                       ; +0x1d, 0x1800d649d\nmov     rbx, rcx                                                       ; +0x20, 0x1800d64a0\ncall    sub_1800D7860                                                  ; +0x23, 0x1800d64a3\ntest    eax, eax                                                       ; +0x28, 0x1800d64a8\njz      loc_1800D65D3                                                  ; +0x2a, 0x1800d64aa\ncmp     dword ptr [rdi], 0                                             ; +0x30, 0x1800d64b0\njz      loc_1800D6541                                                  ; +0x33, 0x1800d64b3\nmov     eax, [rdi+4]                                                   ; +0x39, 0x1800d64b9\ncmp     eax, 36001h                                                    ; +0x3c, 0x1800d64bc\njnz     short loc_1800D64E0                                            ; +0x41, 0x1800d64c1\ncall    sub_1800DCD80                                                  ; +0x43, 0x1800d64c3\ntest    eax, eax                                                       ; +0x48, 0x1800d64c8\njz      loc_1800D65D3                                                  ; +0x4a, 0x1800d64ca\nmov     r8, rbp                                                        ; +0x50, 0x1800d64d0\nmov     rdx, rdi                                                       ; +0x53, 0x1800d64d3\nmov     rcx, rbx                                                       ; +0x56, 0x1800d64d6\ncall    sub_1800DC900                                                  ; +0x59, 0x1800d64d9\njmp     short loc_1800D6526                                            ; +0x5e, 0x1800d64de\ncmp     eax, 36002h                                                    ; +0x60, 0x1800d64e0\njnz     short loc_1800D6504                                            ; +0x65, 0x1800d64e5\ncall    sub_1800DE0E0                                                  ; +0x67, 0x1800d64e7\ntest    eax, eax                                                       ; +0x6c, 0x1800d64ec\njz      loc_1800D65D3                                                  ; +0x6e, 0x1800d64ee\nmov     r8, rbp                                                        ; +0x74, 0x1800d64f4\nmov     rdx, rdi                                                       ; +0x77, 0x1800d64f7\nmov     rcx, rbx                                                       ; +0x7a, 0x1800d64fa\ncall    sub_1800DDC10                                                  ; +0x7d, 0x1800d64fd\njmp     short loc_1800D6526                                            ; +0x82, 0x1800d6502\ncmp     eax, 36003h                                                    ; +0x84, 0x1800d6504\njnz     short loc_1800D652E                                            ; +0x89, 0x1800d6509\ncall    sub_1800DEF60                                                  ; +0x8b, 0x1800d650b\ntest    eax, eax                                                       ; +0x90, 0x1800d6510\njz      loc_1800D65D3                                                  ; +0x92, 0x1800d6512\nmov     r8, rbp                                                        ; +0x98, 0x1800d6518\nmov     rdx, rdi                                                       ; +0x9b, 0x1800d651b\nmov     rcx, rbx                                                       ; +0x9e, 0x1800d651e\ncall    sub_1800DED30                                                  ; +0xa1, 0x1800d6521\ntest    eax, eax                                                       ; +0xa6, 0x1800d6526\njz      loc_1800D65D3                                                  ; +0xa8, 0x1800d6528\nmov     rdx, rdi                                                       ; +0xae, 0x1800d652e\nmov     rcx, rbx                                                       ; +0xb1, 0x1800d6531\ncall    sub_1800D2BC0                                                  ; +0xb4, 0x1800d6534\ntest    eax, eax                                                       ; +0xb9, 0x1800d6539\njz      loc_1800D65D3                                                  ; +0xbb, 0x1800d653b\ncmp     qword ptr [rbx+48h], 0                                         ; +0xc1, 0x1800d6541\njz      short loc_1800D65A6                                            ; +0xc6, 0x1800d6546\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xc8, 0x1800d6548\nmov     edx, 8; nCmdShow                                               ; +0xcf, 0x1800d654f\ncall    cs:ShowWindow                                                  ; +0xd4, 0x1800d6554\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xda, 0x1800d655a\ncall    cs:BringWindowToTop                                            ; +0xe1, 0x1800d6561\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xe7, 0x1800d6567\ncall    cs:SetForegroundWindow                                         ; +0xee, 0x1800d656e\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xf4, 0x1800d6574\ncall    cs:SetFocus                                                    ; +0xfb, 0x1800d657b\nmov     rcx, rbx                                                       ; +0x101, 0x1800d6581\ncall    sub_1800D7750                                                  ; +0x104, 0x1800d6584\nmov     rcx, rbx                                                       ; +0x109, 0x1800d6589\ncall    sub_1800D8050                                                  ; +0x10c, 0x1800d658c\ncmp     dword ptr [rsi+2Ch], 0                                         ; +0x111, 0x1800d6591\njz      short loc_1800D65CC                                            ; +0x115, 0x1800d6595\nmov     rcx, rbx                                                       ; +0x117, 0x1800d6597\ncall    sub_1800D5230                                                  ; +0x11a, 0x1800d659a\nmov     eax, 1                                                         ; +0x11f, 0x1800d659f\njmp     short loc_1800D65D5                                            ; +0x124, 0x1800d65a4\ncmp     dword ptr [rsi+14h], 0                                         ; +0x126, 0x1800d65a6\njz      short loc_1800D65CC                                            ; +0x12a, 0x1800d65aa\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x12c, 0x1800d65ac\nmov     edx, 8; nCmdShow                                               ; +0x133, 0x1800d65b3\ncall    cs:ShowWindow                                                  ; +0x138, 0x1800d65b8\ncmp     dword ptr [rsi+1Ch], 0                                         ; +0x13e, 0x1800d65be\njz      short loc_1800D65CC                                            ; +0x142, 0x1800d65c2\nmov     rcx, rbx                                                       ; +0x144, 0x1800d65c4\ncall    sub_1800D66D0                                                  ; +0x147, 0x1800d65c7\nmov     eax, 1                                                         ; +0x14c, 0x1800d65cc\njmp     short loc_1800D65D5                                            ; +0x151, 0x1800d65d1\nxor     eax, eax                                                       ; +0x153, 0x1800d65d3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x155, 0x1800d65d5\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x15a, 0x1800d65da\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x15f, 0x1800d65df\nadd     rsp, 20h                                                       ; +0x164, 0x1800d65e4\npop     rdi                                                            ; +0x168, 0x1800d65e8\nretn                                                                   ; +0x169, 0x1800d65e9", "xrefs": ["sub_1800D44F0 @ 0x1800d4737", "<???> @ 0x1801ba8c0", "<???> @ 0x1801ba8cc"], "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"}