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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x684
mov eax, dword [0x42a6e0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x260]
push eax
push 0x421668
xor ebx, ebx
push 0x15
push ebx
push 0x4216c8
mov dword [ebp - 0x264], ecx
mov byte [ebp - 0x259], bl
mov byte [ebp - 0x25a], bl
mov dword [ebp - 0x268], ebx
call edi
test eax, eax
jl 0x402a60
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x402a60
lea edx, [ebp - 0x258]
push edx
mov dword [ebp - 0x258], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x268]
push eax
push 0x421688
push 0x15
push ebx
push 0x4216e8
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x402b42
cmp eax, ebx
jl 0x402b42
cmp dword [ebp - 0x268], ebx
je 0x402b42
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040feb0
mov eax, dword [ebp - 0x268]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi]
mov byte [ebp - 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [ebp - 0x93], 1
mov dword [ebp - 0x258], eax
jne 0x402ae5
and dword [ebp - 0xd0], 0xfff00000
cmp dword [ebp - 0x258], ebx
jl 0x402b42
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x402b42
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040feb0
mov al, byte [esi + 0x30]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
mov byte [ebp - 0x93], al
mov eax, dword [esi + 0x1c]
push edi
push dword [esi]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x268]
mov byte [ebp - 0x92], 0xf9
mov dword [ebp - 0xe0], 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test byte [esi + 0x5c], 0xf0
je 0x402bf1
cmp dword [ebp - 0x258], ebx
jl 0x402bf1
cmp dword [ebp - 0x268], ebx
je 0x402c01
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040feb0
mov eax, dword [ebp - 0x268]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi + 0x5c]
mov byte [ebp - 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [ebp - 0x93], 1
jne 0x402ba6
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x402bf1
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x402bf1
mov cl, byte [esi + 0x8c]
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi + 0x5c]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x268]
mov byte [ebp - 0x93], cl
mov byte [ebp - 0x92], 0xf9
mov dword [ebp - 0xe0], 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x402c01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x4033de
mov ebx, 0x16c
push ebx
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.0040feb0
push 0x88
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.0040feb0
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x614]
push edx
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x402c56
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0040feb0
mov eax, dword [esi + 0x170]
mov ecx, dword [esi]
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x2d0], eax
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x400], edx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2dc], edx
cmp eax, dword [esi + 8]
jbe 0x402cac
mov word [ebp - 0x428], ax
mov ax, word [esi + 8]
jmp 0x402cbb
mov ax, word [esi + 8]
mov word [ebp - 0x428], ax
mov ax, word [esi + 4]
mov word [ebp - 0x426], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x424], ax
mov ax, word [esi + 0x10]
mov word [ebp - 0x422], ax
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x64]
jbe 0x402ced
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x64]
jmp 0x402cfc
mov ax, word [esi + 0x64]
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x60]
cmp dword [esi + 0x170], 8
mov word [ebp - 0x3e2], ax
mov ax, word [esi + 0x68]
mov word [ebp - 0x3e0], ax
mov ax, word [esi + 0x6c]
mov word [ebp - 0x3de], ax
jne 0x402d73
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x410], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x40c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x408], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x3d0], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x3cc], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x3c8], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x3c4], eax
mov ebx, dword [ebp - 0x264]
push 0xffffffffffffffff
push str._n_n_tDetails_of_configuration_to_be_applied
mov ecx, ebx
call fcn.004027e3
mov eax, dword [ebp - 0x44c]
cmp eax, 1
jne 0x402d9b
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Single_display
jmp 0x402dba
cmp eax, 8
jne 0x402da9
push 0xffffffffffffffff
push str._n_tOperating_Mode:__Extended_display_mode
jmp 0x402dba
cmp eax, 4
je 0x402db3
cmp eax, 2
jne 0x402dc1
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Clone_display_mode
mov ecx, ebx
call fcn.004027e3
push 0xffffffffffffffff
push str._n_n_tPrimary_Device:
mov ecx, ebx
call fcn.004027e3
push dword [ebp - 0x444]
mov ecx, ebx
call fcn.00402820
movzx eax, word [ebp - 0x428]
push eax
push str._n_tPrimary_Device_horizontal_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x426]
push eax
push str._n_tPrimary_Device_vertical_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x422]
push eax
push str._n_tPrimary_Device_bits_per_pixel:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x424]
push eax
push str._n_tPrimary_Device_refresh_rate:
mov ecx, ebx
call fcn.004027e3
cmp dword [ebp - 0x44c], 8
je 0x402e42
cmp dword [ebp - 0x44c], 4
jne 0x402efe
push 0xffffffffffffffff
push str._n_n_tSecondary_Device:
mov ecx, ebx
call fcn.004027e3
push dword [ebp - 0x400]
mov ecx, ebx
call fcn.00402820
movzx eax, word [ebp - 0x3e4]
push eax
push str._n_tSecondary_Device_horizontal_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x3e2]
push eax
push str._n_tSecondary_Device_vertical_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x3de]
push eax
push str._n_tSecondary_Device_bits_per_pixel:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x3e0]
push eax
push str._n_tSecondary_Device_refresh_rate:
mov ecx, ebx
call fcn.004027e3
cmp dword [ebp - 0x44c], 8
jne 0x402efe
push dword [ebp - 0x3c8]
mov ecx, ebx
push str._n_tSecondary_Device_position_top:
call fcn.004027e3
push dword [ebp - 0x3d0]
mov ecx, ebx
push str._n_tSecondary_Device_position_left:
call fcn.004027e3
push dword [ebp - 0x3cc]
mov ecx, ebx
push str._n_tSecondary_Device_position_right:
call fcn.004027e3
push dword [ebp - 0x3c4]
mov ecx, ebx
push str._n_tSecondary_Device_position_bottom:
call fcn.004027e3
mov ebx, 0x128
push ebx
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.0040feb0
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x444]
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x400]
lea edx, [ebp - 0xbc]
push edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x4032ce
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x68], ebx
jne 0x402f72
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x45c]
push edx
push 0x16c
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4032ce
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push str._n_tMode_Set_was_successful_n
mov byte [ebp - 0x259], 1
call fcn.004027e3
cmp byte [ebp + 0x7c], 1
jne 0x4033cc
mov eax, dword [esi]
test al, 0xf
jne 0x403053
test eax, 0xf000
jne 0x403053
test al, 0xf0
je 0x4030c2
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x421688
push 0x15
push 0
push 0x4216e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4030c2
cmp dword [ebp - 0x258], 0
je 0x4030c2
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040feb0
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x403045
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x403023
mov eax, 0x1f4
lea edx, [ebp - 0x254]
push edx
push edi
push dword [esi]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4030c2
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4030c2
mov dword [ebp - 0x2bc], eax
mov ax, word [esi + 4]
mov word [ebp - 0x2b8], ax
mov ax, word [esi + 8]
mov word [ebp - 0x2b6], ax
mov ax, word [esi + 0xc]
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [esi + 0x38]
mov word [ebp - 0x2b4], ax
mov ax, word [esi + 0x10]
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x288], ecx
mov ecx, dword [esi + 0x3c]
push edx
mov word [ebp - 0x2b2], ax
mov eax, dword [ebp - 0x260]
push 0x88
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x274], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [esi + 0x5c]
test al, 0xf
jne 0x403178
test eax, 0xf000
jne 0x403178
test al, 0xf0
je 0x4031ed
lea eax, [ebp - 0x258]
push eax
push 0x421688
push 0x15
xor ebx, ebx
push ebx
push 0x4216e8
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4031ef
cmp dword [ebp - 0x258], ebx
je 0x4031ef
push edi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040feb0
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, ebx
je 0x40316a
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x403147
mov eax, 0x1f4
lea edx, [ebp - 0x254]
push edx
push edi
push dword [esi + 0x5c]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4031ef
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4031ed
mov dword [ebp - 0x2bc], eax
mov ax, word [esi + 0x60]
mov word [ebp - 0x2b8], ax
mov ax, word [esi + 0x64]
mov word [ebp - 0x2b6], ax
mov ax, word [esi + 0x68]
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [esi + 0x94]
mov word [ebp - 0x2b4], ax
mov ax, word [esi + 0x6c]
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x288], ecx
mov ecx, dword [esi + 0x98]
push edx
mov word [ebp - 0x2b2], ax
mov eax, dword [ebp - 0x260]
push 0x88
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x274], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
xor ebx, ebx
lea eax, [ebp - 0x258]
push eax
push 0x421678
push 0x15
push ebx
push 0x4216d8
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4033ba
cmp dword [ebp - 0x258], ebx
je 0x4033ce
push 0x4c
pop edi
push edi
lea eax, [ebp - 0x4a8]
push ebx
push eax
call fcn.0040feb0
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040feb0
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x40333e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x47c], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x478], eax
mov eax, dword [esi]
mov esi, dword [esi + 0x5c]
lea edx, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x258]
push edi
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x294], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x288]
cmp eax, dword [ebp - 0x47c]
jne 0x4032b5
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x478]
je 0x4033ba
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x4a8]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x4033ba
mov esi, dword [ebp - 0x264]
or edi, 0xffffffff
push edi
push str._n_tMode_Set_was_not_successful_n
mov ecx, esi
call fcn.004027e3
cmp byte [ebp - 0x25a], 1
jne 0x40331a
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x614]
push edx
push 0x16c
push eax
call dword [ecx + 0x14]
push edi
mov ecx, esi
test eax, eax
jl 0x403313
push str._n_tFailed_to_apply_saved_configuration_reverting_back_to_current_settings
jmp 0x403322
push str._n_tFailed_to_revert_to_current_settings__note:_Login_screen_may_be_active
jmp 0x403322
push edi
push str._n_tFailed_to_revert_to_current_settings__since_current_settings_is_not_available
mov ecx, esi
call fcn.004027e3
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x403337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x4033e4
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x40337b
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x264]
push edi
push ecx
mov dword [ebp - 0x264], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x264], eax
je 0x40337b
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx]
push eax
push dword [esi]
push ecx
call dword [edx + 0x14]
mov ecx, dword [esi + 0x5c]
movzx eax, cx
test eax, eax
je 0x4033ba
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x264]
push edi
push ecx
mov dword [ebp - 0x264], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x74]
cmp dword [ebp - 0x264], eax
je 0x4033ba
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx]
push eax
push dword [esi + 0x5c]
push ecx
call dword [edx + 0x14]
mov eax, dword [ebp - 0x258]
cmp eax, ebx
je 0x4033ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4033ce
xor ebx, ebx
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4033de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 0x259]
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff2a
add ebp, 0x70
leave
ret 8