Function at 0x4028fd
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 0x40296f
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x40296f
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 0x402a51
cmp eax, ebx
jl 0x402a51
cmp dword [ebp - 0x268], ebx
je 0x402a51
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040fc00
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 0x4029f4
and dword [ebp - 0xd0], 0xfff00000
cmp dword [ebp - 0x258], ebx
jl 0x402a51
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x402a51
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040fc00
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 0x402b00
cmp dword [ebp - 0x258], ebx
jl 0x402b00
cmp dword [ebp - 0x268], ebx
je 0x402b10
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040fc00
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 0x402ab5
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x402b00
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x402b00
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 0x402b10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x4032e8
mov ebx, 0x16c
push ebx
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.0040fc00
push 0x88
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.0040fc00
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 0x402b65
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0040fc00
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 0x402bbb
mov word [ebp - 0x428], ax
mov ax, word [esi + 8]
jmp 0x402bca
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 0x402bfc
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x64]
jmp 0x402c0b
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 0x402c82
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_config_to_be_applied
mov ecx, ebx
call fcn.004027e3
mov eax, dword [ebp - 0x44c]
cmp eax, 1
jne 0x402caa
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Single_display
jmp 0x402cc9
cmp eax, 8
jne 0x402cb8
push 0xffffffffffffffff
push str._n_tOperating_Mode:__Extended_display_mode
jmp 0x402cc9
cmp eax, 4
je 0x402cc2
cmp eax, 2
jne 0x402cd0
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Clone_display_mode
mov ecx, ebx
call fcn.004027e3
push 0xffffffffffffffff
push str._n_n_tPrimay_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_tPrimay_Device_horizontal_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x426]
push eax
push str._n_tPrimay_Device_vertical_resolution:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x422]
push eax
push str._n_tPrimay_Device_bits_per_pixel:
mov ecx, ebx
call fcn.004027e3
movzx eax, word [ebp - 0x424]
push eax
push str._n_tPrimay_Device_refresh_rate:
mov ecx, ebx
call fcn.004027e3
cmp dword [ebp - 0x44c], 8
je 0x402d51
cmp dword [ebp - 0x44c], 4
jne 0x402e0d
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 0x402e0d
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.0040fc00
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 0x4031d8
cmp dword [ebp + 0x68], 1
jne 0x402e7f
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 0x4031d8
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 0x4032d6
mov eax, dword [esi]
mov ebx, 0xf000
test al, 0xf
jne 0x402f62
test ebx, eax
jne 0x402f62
test al, 0xf0
je 0x402fcb
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 0x402fcb
cmp dword [ebp - 0x258], 0
je 0x402fcb
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040fc00
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x402f54
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x402f32
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 0x402fcb
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x402fcb
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 - 0x274], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [esi + 0x5c]
test al, 0xf
jne 0x40307e
test ebx, eax
jne 0x40307e
test al, 0xf0
je 0x4030f7
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 0x4030f9
cmp dword [ebp - 0x258], ebx
je 0x4030f9
push edi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040fc00
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, ebx
je 0x403070
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x40304d
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 0x4030f9
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4030f7
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], 1
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 0x4032c4
cmp dword [ebp - 0x258], ebx
je 0x4032d8
push 0x4c
pop edi
push edi
lea eax, [ebp - 0x4a8]
push ebx
push eax
call fcn.0040fc00
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040fc00
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x403248
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 0x4031bf
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x478]
je 0x4032c4
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x4a8]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x4032c4
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 0x403224
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 0x40321d
push str._n_tFailed_to_apply_saved_configuration_reverting_back_to_current_settings
jmp 0x40322c
push str._n_tFailed_to_revert_to_current_settings__note:_Login_screen_may_be_active
jmp 0x40322c
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 0x403241
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x4032ee
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x403285
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 0x403285
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 0x4032c4
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 0x4032c4
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 0x4032d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4032d8
xor ebx, ebx
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4032e8
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.0040fc7a
add ebp, 0x70
leave
ret 8