{"type": "func", "start": 6443347216, "end": 6443347396, "name": "sub_1800DAD10", "pseudocode": "// \n// sub_1800DAD10 from 0x1800dad10 to 0x1800dadc4 (180 bytes)\n// \n// 4 xrefs:\n// > sub_1800D41F0 @ 0x1800d421f\n// > sub_1800DADD0 @ 0x1800dafb2\n// > sub_1800DB550 @ 0x1800db582\n// > <???> @ 0x1801bac38\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_1800DAD10(__int64 a1, int *a2)\n{\n  DWORD dmBitsPerPel; // ecx\n  DEVMODEW DevMode; // [rsp+20h] [rbp-F8h] BYREF\n\n  memset(&DevMode, 0, sizeof(DevMode));\n  DevMode.dmSize = 220;\n  EnumDisplaySettingsW((LPCWSTR)(a1 + 264), 0xFFFFFFFF, &DevMode);\n  dmBitsPerPel = DevMode.dmBitsPerPel;\n  *a2 = DevMode.dmPelsWidth;\n  a2[1] = DevMode.dmPelsHeight;\n  a2[5] = DevMode.dmDisplayFrequency;\n  return sub_1800D40E0(dmBitsPerPel, a2 + 2, a2 + 3, a2 + 4);\n}", "assembly": "; \n; sub_1800DAD10 from 0x1800dad10 to 0x1800dadc4 (180 bytes)\n; \n; 4 xrefs:\n; > sub_1800D41F0 @ 0x1800d421f\n; > sub_1800DADD0 @ 0x1800dafb2\n; > sub_1800DB550 @ 0x1800db582\n; > <???> @ 0x1801bac38\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, 0x1800dad10\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800dad15\npush    rdi                                                            ; +0xa, 0x1800dad1a\nsub     rsp, 110h                                                      ; +0xb, 0x1800dad1b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800dad22\nxor     rax, rsp                                                       ; +0x19, 0x1800dad29\nmov     [rsp+118h+var_18], rax                                         ; +0x1c, 0x1800dad2c\nmov     rdi, rdx                                                       ; +0x24, 0x1800dad34\nmov     rbx, rcx                                                       ; +0x27, 0x1800dad37\nmov     esi, 0DCh                                                      ; +0x2a, 0x1800dad3a\nlea     rcx, [rsp+118h+DevMode]; void *                                ; +0x2f, 0x1800dad3f\nmov     r8d, esi; Size                                                 ; +0x34, 0x1800dad44\nxor     edx, edx; Val                                                  ; +0x37, 0x1800dad47\ncall    memset                                                         ; +0x39, 0x1800dad49\nlea     rcx, [rbx+108h]; lpszDeviceName                                ; +0x3e, 0x1800dad4e\nmov     [rsp+118h+DevMode.dmSize], si                                  ; +0x45, 0x1800dad55\nlea     r8, [rsp+118h+DevMode]; lpDevMode                              ; +0x4a, 0x1800dad5a\nmov     edx, 0FFFFFFFFh; iModeNum                                      ; +0x4f, 0x1800dad5f\ncall    cs:EnumDisplaySettingsW                                        ; +0x54, 0x1800dad64\nmov     eax, [rsp+118h+DevMode.dmPelsWidth]                            ; +0x5a, 0x1800dad6a\nlea     r9, [rdi+10h]                                                  ; +0x61, 0x1800dad71\nmov     ecx, [rsp+118h+DevMode.dmBitsPerPel]                           ; +0x65, 0x1800dad75\nlea     r8, [rdi+0Ch]                                                  ; +0x6c, 0x1800dad7c\nmov     [rdi], eax                                                     ; +0x70, 0x1800dad80\nlea     rdx, [rdi+8]                                                   ; +0x72, 0x1800dad82\nmov     eax, [rsp+118h+DevMode.dmPelsHeight]                           ; +0x76, 0x1800dad86\nmov     [rdi+4], eax                                                   ; +0x7d, 0x1800dad8d\nmov     eax, [rsp+118h+DevMode.dmDisplayFrequency]                     ; +0x80, 0x1800dad90\nmov     [rdi+14h], eax                                                 ; +0x87, 0x1800dad97\ncall    sub_1800D40E0                                                  ; +0x8a, 0x1800dad9a\nmov     rcx, [rsp+118h+var_18]                                         ; +0x8f, 0x1800dad9f\nxor     rcx, rsp; StackCookie                                          ; +0x97, 0x1800dada7\ncall    __security_check_cookie                                        ; +0x9a, 0x1800dadaa\nlea     r11, [rsp+118h+var_8]                                          ; +0x9f, 0x1800dadaf\nmov     rbx, [r11+20h]                                                 ; +0xa7, 0x1800dadb7\nmov     rsi, [r11+28h]                                                 ; +0xab, 0x1800dadbb\nmov     rsp, r11                                                       ; +0xaf, 0x1800dadbf\npop     rdi                                                            ; +0xb2, 0x1800dadc2\nretn                                                                   ; +0xb3, 0x1800dadc3", "xrefs": ["sub_1800D41F0 @ 0x1800d421f", "sub_1800DADD0 @ 0x1800dafb2", "sub_1800DB550 @ 0x1800db582", "<???> @ 0x1801bac38"], "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"}