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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x458
cmp dword [0x1400df34c], 8
mov r14d, 1
mov rbx, r9
mov rsi, r8
mov ebp, edx
mov rdi, rcx
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x98], 0x1e
jae 0x140027500
mov eax, dword [rcx + 0xb28]
bt eax, 0x1a
jae 0x1400274a1
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_state_is_EXCLUSIVEMODE_FORCED.
call fcn.14000cbb0
jmp 0x14002750a
bt eax, 8
jae 0x1400274b5
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Exclusive_Mode._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x14002750a
bt eax, 0xe
jae 0x1400274c9
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_No_connected_device._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x14002750a
cmp dword [rcx + 0x478], 0
jne 0x1400274f2
call fcn.1400335d0
test eax, eax
jne 0x1400274f2
test byte [0x1400df4d4], 4
je 0x140027500
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_this_is_NO_LOGON_process._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x14002750a
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Screen_is_locked._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x14002750a
or dword [rdi + 0xb28], 0x10000
xor r12d, r12d
mov dword [rbx], r12d
mov rcx, qword [rdi + 0x18]
call fcn.14001a1d0
test eax, eax
jne 0x14002753d
mov r9, rbx
mov r8, rsi
mov edx, ebp
mov rcx, rdi
call fcn.1400263b0
add rsp, 0x458
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x448], r15
mov r15d, 2
lea rcx, [rsp + 0x98]
mov edx, r15d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], r12d
call fcn.14000d930
test eax, eax
je 0x1400288d2
test rsi, rsi
mov qword [rsp + 0x450], r13
mov dword [rsp + 0x50], r12d
mov r13d, r12d
jne 0x14002758d
mov dword [rbx], 9
jmp 0x1400288c8
mov rdx, qword [rdi + 0x28]
lea r8, [rsp + 0x490]
lea rcx, [rsp + 0x98]
call fcn.140011320
test eax, eax
je 0x140027582
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x98]
mov r8d, r14d
mov edx, 4
mov qword [rsp + 0x20], r12
call fcn.140067260
test eax, eax
je 0x1400288b6
add rsi, 0x118
mov r12d, r14d
mov ebp, r14d
lea rbx, [rsp + 0xa1]
mov r14, r15
mov qword [rsp + 0x88], rsi
test bpl, 3
je 0x140027633
movzx eax, byte [rbx - 1]
test al, al
je 0x140027609
cmp dword [rbx], 0
jne 0x14002760c
cmp dword [rbx + 4], 0
jne 0x14002760c
add r13d, r12d
movzx eax, al
cmp eax, dword [rsi - 4]
jne 0x140027622
mov eax, dword [rsi]
cmp dword [rbx], eax
jne 0x140027622
mov eax, dword [rsi + 4]
cmp dword [rbx + 4], eax
je 0x140027633
lea rcx, str.CheckMappingChanges:_Reset_Mapping_Needed
mov dword [rsp + 0x50], r12d
call fcn.14000cbb0
rol ebp, 1
add rbx, 0xd
add rsi, 0x48
sub r14, r12
jne 0x1400275f0
cmp r13d, r15d
mov r12, r14
jb 0x140027669
lea rcx, str.CheckMappingChanges:_AdapterGetObjectMapping_gets_bogus_data._ADC_operation_exit
call fcn.14000cbb0
mov rax, qword [rsp + 0x4a8]
mov dword [rax], 0x18
jmp 0x1400288c8
mov dword [rsp + 0x90], 0xffffffff
mov dword [rsp + 0x94], 0xffffffff
lea rsi, [rsp + 0x90]
lea rbx, [rsp + 0xa0]
nop
movzx edx, byte [rbx]
or ecx, 0xffffffff
test edx, edx
je 0x1400276ad
test dl, 1
mov ecx, r12d
jne 0x1400276ad
add ecx, 1
mov eax, edx
shr eax, cl
test al, 1
je 0x1400276a2
mov edx, ecx
mov rcx, qword [rdi + 0x18]
call fcn.140019d30
add rsi, 4
add rbx, 0xd
sub r15, 1
mov dword [rsi - 4], eax
jne 0x140027690
mov eax, dword [rsp + 0x50]
or r15d, 0xffffffff
mov dword [rsp + 0x490], 0xffffffff
test eax, eax
jne 0x1400277f8
bt dword [rdi + 0xb28], 0x10
jae 0x14002779c
cmp dword [rsp + 0x498], 9
mov r13, qword [rsp + 0x4a0]
mov r9, qword [rsp + 0x4a8]
mov eax, r12d
setne al
lea r8, [rsp + 0x48]
mov rdx, r13
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140023580
test eax, eax
jne 0x140027739
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_exception
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 4
jne 0x14002774f
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_Apply_Sequence
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 1
jne 0x140027774
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed__use_non__logical
call fcn.14000cbb0
and dword [rdi + 0xb28], 0xfffeffff
mov esi, 1
jmp 0x1400281fe
cmp eax, 3
je 0x1400281a6
cmp eax, 2
jne 0x1400281f2
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_success__followup_setmode_is_needed
call fcn.14000cbb0
mov esi, 1
jmp 0x1400281fe
bt dword [rdi + 0x3c], 0x1a
jae 0x1400281dc
mov r14, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x4a0]
mov ebx, r12d
nop
nop
mov eax, ebx
mov r8, r13
mov edx, ebx
lea r9, [rsp + rax*4 + 0x48]
mov rcx, rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call fcn.140023070
test eax, eax
je 0x1400288c8
add ebx, 1
cmp ebx, 2
jb 0x1400277c0
mov esi, 1
jmp 0x1400281fe
cmp dword [0x1400df34c], 7
ja 0x14002813b
xor edx, edx
lea rcx, [rsp + 0xc0]
lea r8d, [rdx + 0x68]
call fcn.14007cd30
mov r13, qword [rsp + 0x4a0]
mov ebx, r12d
lea rbp, [r13 + 0x114]
mov rsi, rbp
nop
cmp dword [rsi], r12d
je 0x1400278c1
mov rcx, qword [rdi + 0x28]
xor eax, eax
lea rdx, [rsp + 0x54]
mov word [rsp + 0x58], ax
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x5a], al
movzx eax, byte [rsi]
xor r9d, r9d
mov dword [rsp + 0x54], 7
mov byte [rsp + 0x58], al
movzx eax, byte [rsi + 4]
mov byte [rsp + 0x59], al
movzx eax, byte [rsi + 8]
mov byte [rsp + 0x5a], al
mov eax, ebx
imul rax, rax, 0x34
lea r8, [rsp + rax + 0xc0]
call fcn.140066620
test eax, eax
jne 0x1400278a9
lea rcx, str.ApplyProfileSettings._ControllerGetBestView_failed_for_drv__d
mov edx, ebx
call fcn.14000cbb0
mov r14, qword [rsp + 0x4a8]
mov dword [r14], 9
jmp 0x1400278c9
lea rcx, str.ApplyProfileSettings._Get_Best_View_Success__d
mov edx, ebx
call fcn.14000cbb0
mov r14, qword [rsp + 0x4a8]
jmp 0x1400278c9
mov r14, qword [rsp + 0x4a8]
add ebx, 1
add rsi, 0x48
cmp ebx, 2
jb 0x140027830
mov r9, qword [rsp + 0x88]
mov r8d, r12d
mov edx, r12d
cmp dword [r9 - 4], r12d
je 0x140027913
mov eax, r12d
mov rcx, r9
cmp dword [rcx], r12d
jne 0x140027906
add eax, 1
add rcx, 4
cmp eax, 2
jb 0x1400278f3
jmp 0x14002790a
add r8d, 1
cmp eax, 2
je 0x140027b06
add edx, 1
add r9, 0x48
cmp edx, 2
jb 0x1400278e7
cmp r8d, 1
jbe 0x140027b06
bt dword [rdi + 0xb28], 0x10
jae 0x1400279c7
lea r8, [rsp + 0x48]
mov r9, r14
mov rdx, r13
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.140023580
test eax, eax
jne 0x140027964
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_exception
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 4
jne 0x14002797a
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_Apply_Sequence
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 1
jne 0x14002799f
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed__use_non__logical
call fcn.14000cbb0
and dword [rdi + 0xb28], 0xfffeffff
mov esi, 1
jmp 0x1400281fe
cmp eax, 3
je 0x1400281a6
cmp eax, 2
jne 0x1400281eb
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_success__followup_setmode_is_needed
call fcn.14000cbb0
mov esi, 1
jmp 0x1400281fe
mov rdx, r13
xor ecx, ecx
call fcn.14002fa80
lea rdx, [rsp + 0x98]
xor ecx, ecx
mov ebx, eax
call fcn.14002fb80
cmp eax, ebx
jne 0x140027a19
lea rax, [rsp + 0xf4]
mov esi, 1
mov r9, r14
mov r8, r13
mov rcx, rdi
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.140022780
test eax, eax
je 0x1400288c8
mov dword [rsp + 0x4c], esi
jmp 0x1400281fe
mov esi, 1
mov rdx, r13
mov ecx, esi
call fcn.14002fa80
lea rdx, [rsp + 0x98]
mov ecx, esi
mov ebx, eax
call fcn.14002fb80
cmp eax, ebx
jne 0x140027a6b
lea rax, [rsp + 0xc0]
mov r9, r14
mov r8, r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140022780
test eax, eax
je 0x1400288c8
mov dword [rsp + 0x48], esi
jmp 0x1400281fe
lea rcx, [rdi + 0x40]
mov edx, esi
call fcn.140040ab0
xor r8d, r8d
lea edx, [r8 + 3]
mov rcx, rax
call fcn.1400307f0
test eax, eax
jne 0x140027aaf
lea rcx, [rdi + 0x40]
mov edx, esi
call fcn.140040ab0
lea rcx, str.ApplyProfileSettings:_DisableControllers_failed_on__s_n
mov rdx, rax
call fcn.14000cbb0
mov dword [r14], 9
jmp 0x1400288c8
lea rax, [rsp + 0xc0]
mov r9, r14
mov r8, r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140022780
test eax, eax
je 0x1400288c8
lea rax, [rsp + 0xf4]
mov r9, r14
mov r8, r13
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140022780
test eax, eax
je 0x1400288c8
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x48], esi
jmp 0x1400281fe
mov eax, dword [rdi + 0xb28]
bt eax, 0x1a
jae 0x140027b20
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_state_is_EXCLUSIVEMODE_FORCED.
call fcn.14000cbb0
jmp 0x140027b81
bt eax, 8
jae 0x140027b34
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Exclusive_Mode._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x140027b81
bt eax, 0xe
jae 0x140027b48
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_No_connected_device._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x140027b81
cmp dword [rdi + 0x478], r12d
jne 0x140027b75
call fcn.1400335d0
test eax, eax
jne 0x140027b75
test byte [0x1400df4d4], 4
je 0x140027cbc
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_this_is_NO_LOGON_process._Set_Mode_not_allowed.
call fcn.14000cbb0
jmp 0x140027b81
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Screen_is_locked._Set_Mode_not_allowed.
call fcn.14000cbb0
bt dword [rdi + 0xb28], 0xe
jb 0x140027cbc
lea rcx, str.CAutoDisplay::ApplyProfileSettings:_Set_Mode_not_allowed.
call fcn.14000cbb0
mov rcx, rdi
call fcn.140021c30
test eax, eax
je 0x140027c09
cmp eax, 2
jne 0x140027cb0
mov ebx, r12d
lea rsi, [rsp + 0x90]
lea ebp, [rax - 1]
nop
mov eax, dword [0x1400e1a8c]
cmp dword [rsi], eax
jne 0x140027bf3
mov eax, ebx
mov r9, r14
mov r8, r13
mov edx, ebx
mov rcx, rdi
imul rax, rax, 0x34
lea rax, [rsp + rax + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.140022780
test eax, eax
cmovne r12d, ebp
add ebx, ebp
add rsi, 4
cmp ebx, 2
jb 0x140027bc0
test r12d, r12d
je 0x140027cb0
jmp 0x140027c0e
mov ebp, 1
mov rcx, qword [rdi + 0x7d0]
or edx, 0xffffffff
call fcn.14002cdc0
cmp eax, 0xfffffffb
je 0x140027c27
cmp eax, 0xffffffff
jne 0x140027ca6
cmp dword [rdi + 0xb40], 1
jne 0x140027c79
mov ecx, dword [rdi + 0xb44]
test ecx, ecx
je 0x140027c67
cmp ecx, 0x14
ja 0x140027c67
cmp ecx, 0xe
jne 0x140027c55
cmp dword [rdi + 0xb48], 0
jne 0x140027c94
mov dword [rdi + 0xb48], ebp
jmp 0x140027c94
mov dword [rdi + 0xb48], ebp
mov dword [rdi + 0xb44], 0xe
jmp 0x140027c94
mov dword [rdi + 0xb44], 0xe
mov dword [rdi + 0xb48], ebp
jmp 0x140027c94
mov ecx, 1
mov dword [rdi + 0xb44], 0xe
mov dword [rdi + 0xb40], ecx
mov dword [rdi + 0xb48], ecx
cmp eax, 0xfffffffb
jne 0x140027ca6
lea rcx, [rdi + 0x7c8]
mov rax, qword [rcx]
call qword [rax + 0x18]
or dword [rdi + 0xb28], 0x4000000
mov dword [r14], 0xf
jmp 0x1400288c8
mov r13d, dword [rsp + 0x490]
mov eax, r12d
cmp dword [rbp], r12d
jne 0x140027cd2
mov r13d, eax
jmp 0x140027cd5
mov r15d, eax
add eax, 1
add rbp, 0x48
cmp eax, 2
jb 0x140027cc7
mov esi, r13d
lea rcx, [0x1400e0890]
mov dword [rsp + 0x490], r13d
mov r14d, dword [rsp + rsi*4 + 0x90]
mov edx, r14d
call fcn.14003da90
mov r13, qword [rsp + 0x4a0]
mov ecx, r15d
mov rdx, r13
mov rbp, rax
call fcn.14002fa80
lea rdx, [rsp + 0x98]
mov ecx, r15d
mov ebx, eax
call fcn.14002fb80
cmp eax, ebx
jne 0x140027d57
movsxd rcx, r15d
mov eax, r15d
imul rcx, rcx, 0xd
movzx edx, byte [rsp + rcx + 0xa0]
lea rcx, [rax + rax*8]
cmp edx, dword [r13 + rcx*8 + 0x114]
jne 0x140027d57
mov r13d, 1
jmp 0x140027d5a
mov r13d, r12d
mov rdx, qword [rsp + 0x4a0]
xor ecx, ecx
call fcn.14002fa80
lea rdx, [rsp + 0x98]
mov ecx, 1
mov ebx, eax
call fcn.14002fb80
test eax, ebx
jne 0x140027fc0
mov rdx, qword [rsp + 0x4a0]
mov ecx, 1
call fcn.14002fa80
lea rdx, [rsp + 0x98]
xor ecx, ecx
mov ebx, eax
call fcn.14002fb80
test eax, ebx
jne 0x140027fb6
or dword [rdi + 0xb28], 0x40000
bt dword [rdi + 0xb28], 0x10
jae 0x140027fac
mov rdx, qword [rsp + 0x4a0]
lea rcx, [rsp + 0x2a0]
mov r8d, 0x1a0
call fcn.14007d090
cmp dword [0x1400df34c], 7
ja 0x140027e27
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsi + rsi*8]
imul rdx, rdx, 0xd
movzx eax, byte [rsp + rdx + 0xa0]
mov dword [rsp + rcx*8 + 0x3b4], eax
mov eax, dword [rsp + rdx + 0xa1]
mov dword [rsp + rcx*8 + 0x3b8], eax
mov eax, dword [rsp + rdx + 0xa5]
mov dword [rsp + rcx*8 + 0x3bc], eax
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x9c
call fcn.14007cd30
lea r8, [rsp + 0x160]
or edx, 0xffffffff
mov rcx, rbp
mov word [rsp + 0x184], 0x9c
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x140027f8a
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x40], r12d
call fcn.140065e40
mov edx, dword [rsp + 0x40]
test eax, eax
cmove edx, r12d
cmp dword [0x1400df34c], 7
mov dword [rsp + 0x40], edx
ja 0x140027ef1
test edx, edx
mov eax, dword [rsp + 0x1c8]
lea rcx, [rsi + rsi*8]
mov dword [rsp + rcx*8 + 0x3d4], eax
mov eax, dword [rsp + 0x1d8]
mov dword [rsp + rcx*8 + 0x3d8], eax
je 0x140027ed5
cmp edx, 2
je 0x140027ed5
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + rcx*8 + 0x3cc], eax
mov eax, dword [rsp + 0x1cc]
mov dword [rsp + rcx*8 + 0x3d0], eax
jmp 0x140027ef1
mov eax, dword [rsp + 0x1cc]
mov dword [rsp + rcx*8 + 0x3cc], eax
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + rcx*8 + 0x3d0], eax
mov rbx, qword [rsp + 0x4a8]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x2a0]
mov rcx, rdi
mov r9, rbx
mov dword [rsp + 0x20], r12d
call fcn.140023580
test eax, eax
jne 0x140027f2b
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_exception
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 4
jne 0x140027f41
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_Apply_Sequence
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 1
jne 0x140027f5e
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed__use_non__logical
call fcn.14000cbb0
and dword [rdi + 0xb28], 0xfffeffff
jmp 0x140027fc8
cmp eax, 3
je 0x1400281a6
cmp eax, 2
jne 0x140027fc8
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_success__followup_setmode_is_needed
call fcn.14000cbb0
mov r14, qword [rsp + 0x4a8]
mov esi, 1
jmp 0x1400280b6
lea rcx, str.ApplyProfileSettings:_EnumDisplaySettings_failed_on__s
mov rdx, rbp
call fcn.14000cbb0
mov rax, qword [rsp + 0x4a8]
mov dword [rax], 9
jmp 0x1400288c8
mov rbx, qword [rsp + 0x4a8]
jmp 0x140027fc8
mov rbx, qword [rsp + 0x4a8]
jmp 0x140027fc8
mov rbx, qword [rsp + 0x4a8]
and dword [rdi + 0xb28], 0xfffbffff
mov esi, 1
lea rcx, [0x1400e0890]
mov r8d, esi
xor r9d, r9d
mov edx, r14d
call fcn.14003e6a0
test eax, eax
jne 0x140028025
lea rcx, str.Failed_to_remove_large_desktop.
call fcn.14000cbb0
lea rcx, str.ulConfigFailure_d
mov edx, esi
mov dword [rbx], esi
call fcn.14000cbb0
cmp dword [rsp + 0x498], 3
jne 0x1400288c8
mov dword [rdi + 0x478], esi
jmp 0x14002885d
lea rcx, [0x1400e0890]
mov edx, 0x14
call fcn.140040770
bt dword [rdi + 0xb28], 0x10
jae 0x1400280ae
mov r14, qword [rsp + 0x4a8]
mov rdx, qword [rsp + 0x4a0]
lea r8, [rsp + 0x48]
mov r9, r14
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.140023580
test eax, eax
je 0x140028164
cmp eax, 4
je 0x14002817a
cmp eax, esi
jne 0x140028092
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed__use_non__logical
call fcn.14000cbb0
and dword [rdi + 0xb28], 0xfffeffff
jmp 0x1400280b6
cmp eax, 3
je 0x1400288b2
cmp eax, 2
jne 0x1400280b6
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_success__followup_setmode_is_needed
call fcn.14000cbb0
jmp 0x1400280b6
mov r14, qword [rsp + 0x4a8]
bt dword [rdi + 0xb28], 0x10
jb 0x1400281d2
test r13d, r13d
je 0x140028109
bt dword [rdi + 0x3c], 0x1a
jae 0x1400281c8
mov r13, qword [rsp + 0x4a0]
mov eax, r15d
mov edx, r15d
lea r9, [rsp + rax*4 + 0x48]
mov rcx, rdi
mov r8, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call fcn.140023070
test eax, eax
jne 0x1400281fe
jmp 0x1400288c8
mov r13, qword [rsp + 0x4a0]
mov r9, r14
mov edx, r15d
mov rcx, rdi
mov r8, r13
mov qword [rsp + 0x20], r12
call fcn.140022780
test eax, eax
je 0x1400288c8
mov eax, r15d
mov dword [rsp + rax*4 + 0x48], esi
jmp 0x1400281fe
mov r13, qword [rsp + 0x4a0]
mov r9, qword [rsp + 0x4a8]
lea r8, [rsp + 0x48]
mov rdx, r13
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.140023580
test eax, eax
jne 0x140028175
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_exception
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 4
jne 0x14002818b
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed_with_Apply_Sequence
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 1
jne 0x1400281a1
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_failed__use_logical_failed
call fcn.14000cbb0
jmp 0x1400288c8
cmp eax, 3
jne 0x1400281b0
mov eax, 1
jmp 0x1400288ca
cmp eax, 2
jne 0x1400281f9
lea rcx, str.ApplyProfileSettings:_SetLogicalMappingAndValidate_success__followup_setmode_is_needed
call fcn.14000cbb0
mov esi, 1
jmp 0x1400281fe
mov r13, qword [rsp + 0x4a0]
jmp 0x1400281fe
mov r13, qword [rsp + 0x4a0]
jmp 0x1400281fe
mov r13, qword [rsp + 0x4a0]
mov esi, 1
jmp 0x1400281fe
mov esi, 1
jmp 0x1400281fe
mov esi, 1
jmp 0x1400281fe
mov esi, 1
mov eax, dword [rdi + 0xb28]
bt eax, 0x1a
jae 0x140028229
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_state_is_EXCLUSIVEMODE_FORCED.
call fcn.14000cbb0
lea rcx, str.ApplyProfileSettings_Exit:_IsLocked_____g_ulProcessFlag__EEU_PROCESS_CLIENT_NO_LOGON___m_bExclusiveMode
call fcn.14000cbb0
mov eax, esi
jmp 0x1400288ca
bt eax, 8
jae 0x14002824e
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Exclusive_Mode._Set_Mode_not_allowed.
call fcn.14000cbb0
lea rcx, str.ApplyProfileSettings_Exit:_IsLocked_____g_ulProcessFlag__EEU_PROCESS_CLIENT_NO_LOGON___m_bExclusiveMode
call fcn.14000cbb0
mov eax, esi
jmp 0x1400288ca
bt eax, 0xe
jae 0x140028273
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_No_connected_device._Set_Mode_not_allowed.
call fcn.14000cbb0
lea rcx, str.ApplyProfileSettings_Exit:_IsLocked_____g_ulProcessFlag__EEU_PROCESS_CLIENT_NO_LOGON___m_bExclusiveMode
call fcn.14000cbb0
mov eax, esi
jmp 0x1400288ca
cmp dword [rdi + 0x478], r12d
jne 0x14002889a
call fcn.1400335d0
test eax, eax
jne 0x14002889a
test byte [0x1400df4d4], 4
je 0x1400282b5
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_this_is_NO_LOGON_process._Set_Mode_not_allowed.
call fcn.14000cbb0
lea rcx, str.ApplyProfileSettings_Exit:_IsLocked_____g_ulProcessFlag__EEU_PROCESS_CLIENT_NO_LOGON___m_bExclusiveMode
call fcn.14000cbb0
mov eax, esi
jmp 0x1400288ca
mov eax, dword [rdi + 0xb28]
mov esi, r12d
and eax, 0x40000
sete sil
cdqe
cmp esi, 2
movsxd rcx, esi
mov qword [rsp + 0xb8], rax
jae 0x14002881b
lea rax, [rcx + rcx*8]
lea r14, [rsp + rcx*4 + 0x48]
lea rdx, [rsp + rcx*4 + 0x90]
lea rbx, [r13 + rax*8 + 0x12c]
lea rbp, [r13 + rax*8 + 0x134]
lea r15, [r13 + rax*8 + 0x130]
lea r13, [r13 + rax*8 + 0x138]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], r13
nop
cmp esi, dword [rsp + 0x490]
jne 0x140028380
mov eax, dword [rdi + 0xb28]
bt eax, 0x12
jae 0x140028380
mov edx, dword [rdx]
xor r9d, r9d
btr eax, 0x12
lea r8d, [r9 + 1]
lea rcx, [0x1400e0890]
mov dword [rdi + 0xb28], eax
call fcn.14003e6a0
test eax, eax
jne 0x140028824
lea edx, [rax + 0x14]
lea rcx, [0x1400e0890]
call fcn.140040770
jmp 0x140028782
lea rcx, [rdi + 0x40]
mov edx, esi
mov dword [rsp + 0x40], r12d
call fcn.140040ab0
mov rcx, qword [rdi + 0x18]
mov ebx, 1
mov dword [rsp + 0x5c], r12d
mov ebp, ebx
mov dword [rsp + 0x50], ebx
mov r13, rax
mov dword [rsp + 0x54], r12d
call fcn.140047300
cmp eax, 2
je 0x1400283c4
mov rcx, qword [rdi + 0x18]
call fcn.140047300
cmp eax, 3
jne 0x140028406
mov rcx, qword [rdi + 0x18]
call fcn.140047180
bt eax, 0x15
jae 0x140028406
lea rdx, [rsp + 0x5c]
xor r8d, r8d
mov rcx, r13
call fcn.140065e40
test eax, eax
je 0x140028406
lea rcx, [rdi + 0x40]
mov edx, esi
call fcn.140040b30
cmp dword [rsp + 0x5c], eax
je 0x140028402
mov ebp, r12d
mov dword [rsp + 0x50], r12d
jmp 0x140028406
mov dword [rsp + 0x54], ebx
test byte [rdi + 0xb28], 0x20
jne 0x140028443
bt dword [rdi + 0x3c], 0x19
jae 0x140028443
mov r8, qword [rsp + 0x4a0]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14001efb0
test eax, eax
je 0x14002887e
mov ebp, dword [rsp + 0x50]
test ebp, ebp
je 0x1400286f2
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x9c
call fcn.14007cd30
lea r8, [rsp + 0xc0]
or edx, 0xffffffff
mov rcx, r13
mov word [rsp + 0xe4], 0x9c
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x1400286b9
mov rax, qword [rsp + 0x80]
mov ebx, dword [rax]
cmp ebx, 0x32
jne 0x140028588
lea r8d, [rbx + 0x6a]
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.14007cd30
mov rax, qword [rsp + 0x70]
lea r8d, [rbx + 0x6a]
mov eax, dword [rax]
lea rcx, [rsp + 0x200]
xor edx, edx
mov dword [rsp + 0x1c8], eax
mov rax, qword [rsp + 0x68]
mov word [rsp + 0x184], 0x9c
mov eax, dword [rax]
mov dword [rsp + 0x1d8], ebx
mov dword [rsp + 0x188], 0x5c0000
mov dword [rsp + 0x1cc], eax
mov eax, dword [r15]
mov dword [rsp + 0x1d0], eax
call fcn.14007cd30
lea rcx, [rdi + 0x40]
mov edx, esi
mov word [rsp + 0x224], 0x9c
call fcn.140040ab0
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x160]
mov rcx, rax
mov edx, 0x80000004
call fcn.14006ad80
test eax, eax
je 0x140028583
mov eax, dword [rsp + 0x268]
cmp dword [rsp + 0x1c8], eax
jne 0x140028583
mov eax, dword [rsp + 0x270]
cmp dword [rsp + 0x1d0], eax
jne 0x140028583
mov eax, dword [rsp + 0x26c]
cmp dword [rsp + 0x1cc], eax
jne 0x140028583
mov eax, dword [rsp + 0x278]
cmp dword [rsp + 0x1d8], eax
jne 0x140028583
mov rax, qword [rsp + 0x80]
mov ebx, dword [rax]
jmp 0x140028588
mov ebx, 0x3c
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x1400285de
cmp eax, 2
je 0x1400285de
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x128], eax
jne 0x1400285ca
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
cmp dword [rsp + 0x130], eax
jne 0x1400285ca
mov eax, dword [r15]
cmp dword [rsp + 0x12c], eax
jne 0x1400285ca
cmp dword [rsp + 0x138], ebx
je 0x140028625
lea rcx, str.ApplyProfileSettings:_mode_changed_for__s_n
mov rdx, r13
mov ebp, r12d
call fcn.14000cbb0
jmp 0x140028625
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x128], eax
jne 0x140028613
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
cmp dword [rsp + 0x12c], eax
jne 0x140028613
mov eax, dword [r15]
cmp dword [rsp + 0x130], eax
jne 0x140028613
cmp dword [rsp + 0x138], ebx
je 0x140028625
lea rcx, str.ApplyProfileSettings:_mode_changed_for__s_n
mov rdx, r13
mov ebp, r12d
call fcn.14000cbb0
mov edx, esi
mov rcx, rdi
call fcn.14001fe20
test eax, eax
je 0x1400286ca
test ebp, ebp
je 0x140028700
lea rcx, [rdi + 0x40]
mov edx, esi
call fcn.140040a70
mov ecx, dword [rax + 0x2c]
test ecx, ecx
jne 0x140028689
cmp dword [rax + 0x30], r12d
jne 0x140028689
cmp dword [rsp + 0xec], r12d
jle 0x14002866b
cmp dword [rsp + 0xf0], r12d
je 0x1400286d1
lea rcx, str.ApplyProfileSettings:_position_force_default_for__s_n
mov rdx, r13
call fcn.14000cbb0
mov r14, qword [rsp + 0x60]
mov ebx, 1
jmp 0x14002870a
cmp dword [rsp + 0xec], ecx
jne 0x14002869e
mov eax, dword [rax + 0x30]
cmp dword [rsp + 0xf0], eax
je 0x1400286d8
lea rcx, str.ApplyProfileSettings:_position_changed_for__s_n
mov rdx, r13
call fcn.14000cbb0
mov r14, qword [rsp + 0x60]
mov ebx, 1
jmp 0x14002870a
lea rcx, str.ApplyProfileSettingsOnSingleDriver:_FAILURE:_EnumDisplaySettings_failed_on_device__s_n
mov rdx, r13
call fcn.14000cbb0
jmp 0x1400286dd
mov ebx, 1
jmp 0x1400286dd
mov ebx, 1
jmp 0x1400286dd
mov ebx, 1
test ebp, ebp
je 0x1400286f9
mov r14, qword [rsp + 0x60]
cmp dword [r14], r12d
jne 0x14002870a
mov eax, 0x1d
jmp 0x140028752
mov r14, qword [rsp + 0x60]
jmp 0x14002870a
mov r14, qword [rsp + 0x60]
jmp 0x14002870a
mov r14, qword [rsp + 0x60]
mov ebx, 1
mov eax, dword [rsp + 0x54]
mov ecx, esi
mov edx, ebx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x5c]
shl edx, cl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x4a0]
lea r8, [rsp + 0x40]
mov r9d, ebx
mov rcx, rdi
call fcn.1400254b0
mov ecx, dword [rsp + 0x78]
test eax, eax
mov eax, dword [rsp + 0x40]
cmove ecx, r12d
test eax, eax
mov dword [rsp + 0x78], ecx
je 0x140028770
mov rcx, qword [rsp + 0x4a8]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x80]
mov dword [rcx], eax
jmp 0x140028782
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x80]
cmp qword [rsp + 0xb8], r12
je 0x1400287d0
mov rdx, qword [rsp + 0x88]
add r13, 0x48
add rbp, 0x48
add rbx, 0x48
add rdx, 4
add esi, 1
add r15, 0x48
add r14, 4
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x60], r14
jmp 0x140028812
mov rdx, qword [rsp + 0x88]
sub r13, 0x48
sub rbp, 0x48
sub rbx, 0x48
sub rdx, 4
add esi, 0xffffffff
sub r15, 0x48
sub r14, 4
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x60], r14
cmp esi, 2
jb 0x140028330
mov eax, dword [rsp + 0x78]
jmp 0x1400288ca
lea rcx, str.Failed_to_remove_large_desktop.
call fcn.14000cbb0
mov rax, qword [rsp + 0x4a8]
mov ebx, 1
lea rcx, str.ulConfigFailure_d
mov edx, ebx
mov dword [rax], ebx
call fcn.14000cbb0
cmp dword [rsp + 0x498], 3
jne 0x1400288c8
mov dword [rdi + 0x478], ebx
lea rcx, [rdi + 0x480]
call fcn.14001b1f0
or dword [rdi + 0xb28], 2
lea rcx, str.CAutoDisplay::SetLock._Session_locked._AutoDisplay_request_not_allowed_n
call fcn.14000cbb0
jmp 0x1400288c8
mov rcx, qword [rsp + 0x4a8]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
lea rcx, str.ApplyProfileSettings:_ERROR___PrepareSetModeForDeviceTypeBasedProfile_failed_n
call fcn.14000cbb0
jmp 0x1400288c8
lea rcx, str.CAutoDisplay::IsSetModeAllowed:_Screen_is_locked._Set_Mode_not_allowed.
call fcn.14000cbb0
lea rcx, str.ApplyProfileSettings_Exit:_IsLocked_____g_ulProcessFlag__EEU_PROCESS_CLIENT_NO_LOGON___m_bExclusiveMode
call fcn.14000cbb0
mov eax, esi
jmp 0x1400288ca
lea rcx, str.CheckMappingChanges:_Failed_to_AdapterGetObjectMapping
call fcn.14000cbb0
mov dword [rbx], 8
xor eax, eax
mov r13, qword [rsp + 0x450]
mov r15, qword [rsp + 0x448]
add rsp, 0x458
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret