{"type": "func", "start": 6443346944, "end": 6443347194, "name": "sub_1800DAC00", "pseudocode": "// \n// sub_1800DAC00 from 0x1800dac00 to 0x1800dacfa (250 bytes)\n// \n// 2 xrefs:\n// > sub_1800D7860 @ 0x1800d7ae5\n// > <???> @ 0x1801bac2c\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\nint __fastcall sub_1800DAC00(__int64 a1, float *a2, float *a3)\n{\n  int result; // eax\n  HDC DC; // rbx\n  int DeviceCaps; // [rsp+38h] [rbp+10h] BYREF\n  int v9; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( a2 )\n    *a2 = 0.0;\n  if ( a3 )\n    *a3 = 0.0;\n  if ( sub_1800D9D60(6u, 3u, 0) )\n  {\n    result = GetDpiForMonitor(a1, 0, &DeviceCaps, &v9);\n    if ( result )\n      return (unsigned int)sub_1800D3530(0x10008u, \"Win32: Failed to query monitor DPI\");\n  }\n  else\n  {\n    DC = GetDC(nullptr);\n    DeviceCaps = GetDeviceCaps(DC, 88);\n    v9 = GetDeviceCaps(DC, 90);\n    result = ReleaseDC(nullptr, DC);\n  }\n  if ( a2 )\n  {\n    result = DeviceCaps;\n    *a2 = (float)DeviceCaps / 96.0;\n  }\n  if ( a3 )\n  {\n    result = v9;\n    *a3 = (float)v9 / 96.0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DAC00 from 0x1800dac00 to 0x1800dacfa (250 bytes)\n; \n; 2 xrefs:\n; > sub_1800D7860 @ 0x1800d7ae5\n; > <???> @ 0x1801bac2c\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, 0x1800dac00\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800dac05\npush    rdi                                                            ; +0xa, 0x1800dac0a\nsub     rsp, 20h                                                       ; +0xb, 0x1800dac0b\nxor     eax, eax                                                       ; +0xf, 0x1800dac0f\nmov     rdi, r8                                                        ; +0x11, 0x1800dac11\nmov     rsi, rdx                                                       ; +0x14, 0x1800dac14\nmov     rbx, rcx                                                       ; +0x17, 0x1800dac17\ntest    rdx, rdx                                                       ; +0x1a, 0x1800dac1a\njz      short loc_1800DAC21                                            ; +0x1d, 0x1800dac1d\nmov     [rdx], eax                                                     ; +0x1f, 0x1800dac1f\ntest    rdi, rdi                                                       ; +0x21, 0x1800dac21\njz      short loc_1800DAC29                                            ; +0x24, 0x1800dac24\nmov     [r8], eax                                                      ; +0x26, 0x1800dac26\nxor     r8d, r8d                                                       ; +0x29, 0x1800dac29\nlea     edx, [r8+3]                                                    ; +0x2c, 0x1800dac2c\nlea     ecx, [rdx+3]                                                   ; +0x30, 0x1800dac30\ncall    sub_1800D9D60                                                  ; +0x33, 0x1800dac33\ntest    eax, eax                                                       ; +0x38, 0x1800dac38\njz      short loc_1800DAC76                                            ; +0x3a, 0x1800dac3a\nlea     r9, [rsp+28h+arg_10]                                           ; +0x3c, 0x1800dac3c\nxor     edx, edx                                                       ; +0x41, 0x1800dac41\nlea     r8, [rsp+28h+arg_8]                                            ; +0x43, 0x1800dac43\nmov     rcx, rbx                                                       ; +0x48, 0x1800dac48\ncall    cs:GetDpiForMonitor                                            ; +0x4b, 0x1800dac4b\ntest    eax, eax                                                       ; +0x51, 0x1800dac51\njz      short loc_1800DACB0                                            ; +0x53, 0x1800dac53\nlea     rdx, aWin32FailedToQ; \"Win32: Failed to query monitor DPI\"     ; +0x55, 0x1800dac55\nmov     ecx, 10008h                                                    ; +0x5c, 0x1800dac5c\ncall    sub_1800D3530                                                  ; +0x61, 0x1800dac61\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x1800dac66\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x6b, 0x1800dac6b\nadd     rsp, 20h                                                       ; +0x70, 0x1800dac70\npop     rdi                                                            ; +0x74, 0x1800dac74\nretn                                                                   ; +0x75, 0x1800dac75\nxor     ecx, ecx; hWnd                                                 ; +0x76, 0x1800dac76\ncall    cs:GetDC                                                       ; +0x78, 0x1800dac78\nmov     rcx, rax; hdc                                                  ; +0x7e, 0x1800dac7e\nmov     edx, 58h ; 'X'; index                                          ; +0x81, 0x1800dac81\nmov     rbx, rax                                                       ; +0x86, 0x1800dac86\ncall    cs:GetDeviceCaps                                               ; +0x89, 0x1800dac89\nmov     edx, 5Ah ; 'Z'; index                                          ; +0x8f, 0x1800dac8f\nmov     rcx, rbx; hdc                                                  ; +0x94, 0x1800dac94\nmov     [rsp+28h+arg_8], eax                                           ; +0x97, 0x1800dac97\ncall    cs:GetDeviceCaps                                               ; +0x9b, 0x1800dac9b\nmov     rdx, rbx; hDC                                                  ; +0xa1, 0x1800daca1\nxor     ecx, ecx; hWnd                                                 ; +0xa4, 0x1800daca4\nmov     [rsp+28h+arg_10], eax                                          ; +0xa6, 0x1800daca6\ncall    cs:ReleaseDC                                                   ; +0xaa, 0x1800dacaa\nmovss   xmm1, cs:dword_180120D60                                       ; +0xb0, 0x1800dacb0\ntest    rsi, rsi                                                       ; +0xb8, 0x1800dacb8\njz      short loc_1800DACD1                                            ; +0xbb, 0x1800dacbb\nmov     eax, [rsp+28h+arg_8]                                           ; +0xbd, 0x1800dacbd\nxorps   xmm0, xmm0                                                     ; +0xc1, 0x1800dacc1\ncvtsi2ss xmm0, rax                                                     ; +0xc4, 0x1800dacc4\ndivss   xmm0, xmm1                                                     ; +0xc9, 0x1800dacc9\nmovss   dword ptr [rsi], xmm0                                          ; +0xcd, 0x1800daccd\ntest    rdi, rdi                                                       ; +0xd1, 0x1800dacd1\njz      short loc_1800DACEA                                            ; +0xd4, 0x1800dacd4\nmov     eax, [rsp+28h+arg_10]                                          ; +0xd6, 0x1800dacd6\nxorps   xmm0, xmm0                                                     ; +0xda, 0x1800dacda\ncvtsi2ss xmm0, rax                                                     ; +0xdd, 0x1800dacdd\ndivss   xmm0, xmm1                                                     ; +0xe2, 0x1800dace2\nmovss   dword ptr [rdi], xmm0                                          ; +0xe6, 0x1800dace6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xea, 0x1800dacea\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xef, 0x1800dacef\nadd     rsp, 20h                                                       ; +0xf4, 0x1800dacf4\npop     rdi                                                            ; +0xf8, 0x1800dacf8\nretn                                                                   ; +0xf9, 0x1800dacf9", "xrefs": ["sub_1800D7860 @ 0x1800d7ae5", "<???> @ 0x1801bac2c"], "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"}