Function at 0x14003ed10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
sub rsp, 0x60
xor r15d, r15d
lea r8, [rax + 0x10]
mov rdi, rcx
mov dword [rax + 0x18], r15d
lea rdx, [rax + 0x18]
mov dword [rax + 0x10], r15d
xor bpl, bpl
lea ecx, [r15 + 0x42]
call qword [sym.imp.USER32.dll_GetDisplayConfigBufferSizes]
test eax, eax
jne 0x14003ef99
mov ecx, dword [rsp + 0x90]
mov eax, 0x48
mov qword [rsp + 0x80], rbx
mov rbx, 0xffffffffffffffff
mul rcx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], r12
cmovo rax, rbx
mov qword [rsp + 0x50], r14
mov rcx, rax
call fcn.14004feec
mov edx, dword [rsp + 0x88]
mov rsi, rax
mov eax, 0x40
mul rdx
cmovo rax, rbx
mov rcx, rax
call fcn.14004feec
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], r15
mov r8, rsi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov r14, rax
lea ecx, [rbx + 0x43]
call qword [sym.imp.USER32.dll_QueryDisplayConfig]
test eax, eax
jne 0x14003ef31
mov eax, dword [rdi + 0x58]
mov r9d, dword [rsi + 0x20]
mov edx, dword [rsi + 0xc]
mov r8d, r9d
mov r15d, dword [rsi + 8]
mov ecx, edx
mov rbx, qword [rsi + 0x14]
shl r8, 6
shl rcx, 6
shl rdx, 6
shl r9, 6
mov r12d, dword [r8 + r14 + 4]
mov dword [rcx + r14 + 0x14], eax
mov eax, dword [rdi + 0x54]
mov dword [rdx + r14 + 0x10], eax
mov eax, dword [rdi + 0x5c]
mov dword [r9 + r14 + 0x20], eax
mov eax, dword [rdi + 0x60]
mov dword [r8 + r14 + 0x24], eax
mov eax, dword [rdi + 0x64]
mov dword [r8 + r14 + 0x18], eax
mov eax, dword [rdi + 0x68]
mov dword [r8 + r14 + 0x1c], eax
mov eax, dword [rdi + 0x3c]
mov dword [rsi + 0x28], eax
mov eax, dword [rdi + 0x44]
mov dword [rsi + 0x30], eax
mov eax, dword [rdi + 0x48]
mov dword [rsi + 0x34], eax
test byte [rdi + 0x4c], 2
mov eax, dword [rsi + 0x44]
je 0x14003ee51
or eax, 0x10
mov dword [rsi + 0x44], eax
and dword [rdi + 0x4c], 0xfffffffd
jmp 0x14003ee57
and eax, 0xffffffef
mov dword [rsi + 0x44], eax
mov r8d, dword [rsp + 0x88]
mov r9, r14
mov ecx, dword [rsp + 0x90]
mov rdx, rsi
mov dword [rsp + 0x20], 0x202a0
call qword [sym.imp.USER32.dll_SetDisplayConfig]
test eax, eax
jne 0x14003ef18
mov r9d, dword [rdi + 0x38]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.14003f4e0
mov edx, dword [rdi + 0x40]
movzx ebp, al
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x44]
xor edx, ecx
mov qword [rsp + 0x30], rax
and edx, 1
xor ecx, edx
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x44], ecx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0x18
mov dword [rsp + 0x40], r12d
call qword [sym.imp.USER32.dll_DisplayConfigSetDeviceInfo]
test eax, eax
je 0x14003ef0e
cmp qword [0x1400da5d8], 0
je 0x14003ef09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400da5d8]
lea r8, str.DisplaySettingsManager::SetHDRSetting:_DisplayConfigSetDeviceInfo_failed_with_error_code__d
mov r9d, eax
mov edx, 2
call fcn.140040750
xor bpl, bpl
jmp 0x14003ef62
test bpl, bpl
je 0x14003ef09
mov bpl, 1
jmp 0x14003ef62
cmp qword [0x1400da5d8], 0
je 0x14003ef62
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.DisplaySettingsManager::ApplyDisplaySettings:_SetDisplayConfig_failed_with_error_code__d
jmp 0x14003ef47
cmp qword [0x1400da5d8], r15
je 0x14003ef62
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.DisplaySettingsManager::ApplyDisplaySettings:_QueryDisplayConfig_failed_with_error_code__d
mov rcx, qword [0x1400da5d8]
mov r8d, 1
mov edx, 0x60004004
mov dword [rsp + 0x20], eax
call fcn.140040490
mov rcx, rsi
call fcn.14004fef4
mov rcx, r14
call fcn.14004fef4
mov r14, qword [rsp + 0x50]
movzx eax, bpl
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r15
pop rdi
pop rbp
ret
cmp qword [0x1400da5d8], r15
je 0x14003efca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400da5d8]
lea r9, str.DisplaySettingsManager::ApplyDisplaySettings:_GetDisplayConfigBufferSizes_failed_with_error_code__d
mov edx, 0x60004004
mov dword [rsp + 0x20], eax
mov r8d, 1
call fcn.140040490
movzx eax, bpl
add rsp, 0x60
pop r15
pop rdi
pop rbp
ret