{"type": "func", "start": 6443335184, "end": 6443335546, "name": "sub_1800D7E10", "pseudocode": "// \n// sub_1800D7E10 from 0x1800d7e10 to 0x1800d7f7a (362 bytes)\n// \n// 3 xrefs:\n// > sub_1800DC220 @ 0x1800dc467\n// > <???> @ 0x1801c4980\n// > <???> @ 0x1801c498c\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 11:22:33 +0000\n// \n\n__int64 __fastcall sub_1800D7E10(__int64 a1, _DWORD *a2, _DWORD *a3, __int64 a4)\n{\n  int v8; // eax\n  int v9; // eax\n\n  if ( !(unsigned int)sub_1800D91F0((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_1800DF3F0() )\n          return 0;\n        v9 = sub_1800DEF70(a1, a3, a4);\n        break;\n      case 221186:\n        if ( !(unsigned int)sub_1800E0750() )\n          return 0;\n        v9 = sub_1800E0280(a1, a3, a4);\n        break;\n      case 221187:\n        if ( !(unsigned int)sub_1800E15D0() )\n          return 0;\n        v9 = sub_1800E13A0(a1, a3, a4);\n        break;\n      default:\nLABEL_13:\n        if ( (unsigned int)sub_1800D7320(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_1800D90E0(a1);\n    sub_1800D99E0(a1);\n    if ( a2[11] )\n    {\n      sub_1800DCF60(a1);\n      return 1;\n    }\n  }\n  else if ( a2[5] )\n  {\n    ShowWindow(*(HWND *)(a1 + 880), 8);\n    if ( a2[7] )\n      sub_1800D8060(a1);\n  }\n  return 1;\n}", "assembly": "; \n; sub_1800D7E10 from 0x1800d7e10 to 0x1800d7f7a (362 bytes)\n; \n; 3 xrefs:\n; > sub_1800DC220 @ 0x1800dc467\n; > <???> @ 0x1801c4980\n; > <???> @ 0x1801c498c\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 11:22:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800d7e10\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d7e15\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d7e1a\npush    rdi                                                            ; +0xf, 0x1800d7e1f\nsub     rsp, 20h                                                       ; +0x10, 0x1800d7e20\nmov     rdi, r8                                                        ; +0x14, 0x1800d7e24\nmov     rbp, r9                                                        ; +0x17, 0x1800d7e27\nmov     r8, r9                                                         ; +0x1a, 0x1800d7e2a\nmov     rsi, rdx                                                       ; +0x1d, 0x1800d7e2d\nmov     rbx, rcx                                                       ; +0x20, 0x1800d7e30\ncall    sub_1800D91F0                                                  ; +0x23, 0x1800d7e33\ntest    eax, eax                                                       ; +0x28, 0x1800d7e38\njz      loc_1800D7F63                                                  ; +0x2a, 0x1800d7e3a\ncmp     dword ptr [rdi], 0                                             ; +0x30, 0x1800d7e40\njz      loc_1800D7ED1                                                  ; +0x33, 0x1800d7e43\nmov     eax, [rdi+4]                                                   ; +0x39, 0x1800d7e49\ncmp     eax, 36001h                                                    ; +0x3c, 0x1800d7e4c\njnz     short loc_1800D7E70                                            ; +0x41, 0x1800d7e51\ncall    sub_1800DF3F0                                                  ; +0x43, 0x1800d7e53\ntest    eax, eax                                                       ; +0x48, 0x1800d7e58\njz      loc_1800D7F63                                                  ; +0x4a, 0x1800d7e5a\nmov     r8, rbp                                                        ; +0x50, 0x1800d7e60\nmov     rdx, rdi                                                       ; +0x53, 0x1800d7e63\nmov     rcx, rbx                                                       ; +0x56, 0x1800d7e66\ncall    sub_1800DEF70                                                  ; +0x59, 0x1800d7e69\njmp     short loc_1800D7EB6                                            ; +0x5e, 0x1800d7e6e\ncmp     eax, 36002h                                                    ; +0x60, 0x1800d7e70\njnz     short loc_1800D7E94                                            ; +0x65, 0x1800d7e75\ncall    sub_1800E0750                                                  ; +0x67, 0x1800d7e77\ntest    eax, eax                                                       ; +0x6c, 0x1800d7e7c\njz      loc_1800D7F63                                                  ; +0x6e, 0x1800d7e7e\nmov     r8, rbp                                                        ; +0x74, 0x1800d7e84\nmov     rdx, rdi                                                       ; +0x77, 0x1800d7e87\nmov     rcx, rbx                                                       ; +0x7a, 0x1800d7e8a\ncall    sub_1800E0280                                                  ; +0x7d, 0x1800d7e8d\njmp     short loc_1800D7EB6                                            ; +0x82, 0x1800d7e92\ncmp     eax, 36003h                                                    ; +0x84, 0x1800d7e94\njnz     short loc_1800D7EBE                                            ; +0x89, 0x1800d7e99\ncall    sub_1800E15D0                                                  ; +0x8b, 0x1800d7e9b\ntest    eax, eax                                                       ; +0x90, 0x1800d7ea0\njz      loc_1800D7F63                                                  ; +0x92, 0x1800d7ea2\nmov     r8, rbp                                                        ; +0x98, 0x1800d7ea8\nmov     rdx, rdi                                                       ; +0x9b, 0x1800d7eab\nmov     rcx, rbx                                                       ; +0x9e, 0x1800d7eae\ncall    sub_1800E13A0                                                  ; +0xa1, 0x1800d7eb1\ntest    eax, eax                                                       ; +0xa6, 0x1800d7eb6\njz      loc_1800D7F63                                                  ; +0xa8, 0x1800d7eb8\nmov     rdx, rdi                                                       ; +0xae, 0x1800d7ebe\nmov     rcx, rbx                                                       ; +0xb1, 0x1800d7ec1\ncall    sub_1800D7320                                                  ; +0xb4, 0x1800d7ec4\ntest    eax, eax                                                       ; +0xb9, 0x1800d7ec9\njz      loc_1800D7F63                                                  ; +0xbb, 0x1800d7ecb\ncmp     qword ptr [rbx+48h], 0                                         ; +0xc1, 0x1800d7ed1\njz      short loc_1800D7F36                                            ; +0xc6, 0x1800d7ed6\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xc8, 0x1800d7ed8\nmov     edx, 8; nCmdShow                                               ; +0xcf, 0x1800d7edf\ncall    cs:ShowWindow                                                  ; +0xd4, 0x1800d7ee4\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xda, 0x1800d7eea\ncall    cs:BringWindowToTop                                            ; +0xe1, 0x1800d7ef1\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xe7, 0x1800d7ef7\ncall    cs:SetForegroundWindow                                         ; +0xee, 0x1800d7efe\nmov     rcx, [rbx+370h]; hWnd                                          ; +0xf4, 0x1800d7f04\ncall    cs:SetFocus                                                    ; +0xfb, 0x1800d7f0b\nmov     rcx, rbx                                                       ; +0x101, 0x1800d7f11\ncall    sub_1800D90E0                                                  ; +0x104, 0x1800d7f14\nmov     rcx, rbx                                                       ; +0x109, 0x1800d7f19\ncall    sub_1800D99E0                                                  ; +0x10c, 0x1800d7f1c\ncmp     dword ptr [rsi+2Ch], 0                                         ; +0x111, 0x1800d7f21\njz      short loc_1800D7F5C                                            ; +0x115, 0x1800d7f25\nmov     rcx, rbx                                                       ; +0x117, 0x1800d7f27\ncall    sub_1800DCF60                                                  ; +0x11a, 0x1800d7f2a\nmov     eax, 1                                                         ; +0x11f, 0x1800d7f2f\njmp     short loc_1800D7F65                                            ; +0x124, 0x1800d7f34\ncmp     dword ptr [rsi+14h], 0                                         ; +0x126, 0x1800d7f36\njz      short loc_1800D7F5C                                            ; +0x12a, 0x1800d7f3a\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x12c, 0x1800d7f3c\nmov     edx, 8; nCmdShow                                               ; +0x133, 0x1800d7f43\ncall    cs:ShowWindow                                                  ; +0x138, 0x1800d7f48\ncmp     dword ptr [rsi+1Ch], 0                                         ; +0x13e, 0x1800d7f4e\njz      short loc_1800D7F5C                                            ; +0x142, 0x1800d7f52\nmov     rcx, rbx                                                       ; +0x144, 0x1800d7f54\ncall    sub_1800D8060                                                  ; +0x147, 0x1800d7f57\nmov     eax, 1                                                         ; +0x14c, 0x1800d7f5c\njmp     short loc_1800D7F65                                            ; +0x151, 0x1800d7f61\nxor     eax, eax                                                       ; +0x153, 0x1800d7f63\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x155, 0x1800d7f65\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x15a, 0x1800d7f6a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x15f, 0x1800d7f6f\nadd     rsp, 20h                                                       ; +0x164, 0x1800d7f74\npop     rdi                                                            ; +0x168, 0x1800d7f78\nretn                                                                   ; +0x169, 0x1800d7f79", "xrefs": ["sub_1800DC220 @ 0x1800dc467", "<???> @ 0x1801c4980", "<???> @ 0x1801c498c"], "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"}