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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x684
mov eax, dword [0x426470]
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 0x4202b8
xor ebx, ebx
push 0x15
push ebx
push 0x420318
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 0x401908
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x401908
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 0x4202d8
push 0x15
push ebx
push 0x420338
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x4019ea
cmp eax, ebx
jl 0x4019ea
cmp dword [ebp - 0x268], ebx
je 0x4019ea
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410280
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 0x40198d
and dword [ebp - 0xd0], 0xfff00000
cmp dword [ebp - 0x258], ebx
jl 0x4019ea
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x4019ea
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410280
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 0x401a99
cmp dword [ebp - 0x258], ebx
jl 0x401a99
cmp dword [ebp - 0x268], ebx
je 0x401aa9
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410280
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 0x401a4e
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x401a99
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x401a99
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 0x401aa9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x402281
mov ebx, 0x16c
push ebx
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.00410280
push 0x88
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.00410280
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 0x401afe
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.00410280
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 0x401b54
mov word [ebp - 0x428], ax
mov ax, word [esi + 8]
jmp 0x401b63
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 0x401b95
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x64]
jmp 0x401ba4
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 0x401c1b
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.004010dc
mov eax, dword [ebp - 0x44c]
cmp eax, 1
jne 0x401c43
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Single_display
jmp 0x401c62
cmp eax, 8
jne 0x401c51
push 0xffffffffffffffff
push str._n_tOperating_Mode:__Extended_display_mode
jmp 0x401c62
cmp eax, 4
je 0x401c5b
cmp eax, 2
jne 0x401c69
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Clone_display_mode
mov ecx, ebx
call fcn.004010dc
push 0xffffffffffffffff
push str._n_n_tPrimay_Device:
mov ecx, ebx
call fcn.004010dc
push dword [ebp - 0x444]
mov ecx, ebx
call fcn.00401152
movzx eax, word [ebp - 0x428]
push eax
push str._n_tPrimay_Device_horizontal_resolution:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x426]
push eax
push str._n_tPrimay_Device_vertical_resolution:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x422]
push eax
push str._n_tPrimay_Device_bits_per_pixel:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x424]
push eax
push str._n_tPrimay_Device_refresh_rate:
mov ecx, ebx
call fcn.004010dc
cmp dword [ebp - 0x44c], 8
je 0x401cea
cmp dword [ebp - 0x44c], 4
jne 0x401da6
push 0xffffffffffffffff
push str._n_n_tSecondary_Device:
mov ecx, ebx
call fcn.004010dc
push dword [ebp - 0x400]
mov ecx, ebx
call fcn.00401152
movzx eax, word [ebp - 0x3e4]
push eax
push str._n_tSecondary_Device_horizontal_resolution:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x3e2]
push eax
push str._n_tSecondary_Device_vertical_resolution:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x3de]
push eax
push str._n_tSecondary_Device_bits_per_pixel:
mov ecx, ebx
call fcn.004010dc
movzx eax, word [ebp - 0x3e0]
push eax
push str._n_tSecondary_Device_refresh_rate:
mov ecx, ebx
call fcn.004010dc
cmp dword [ebp - 0x44c], 8
jne 0x401da6
push dword [ebp - 0x3c8]
mov ecx, ebx
push str._n_tSecondary_Device_position_top:
call fcn.004010dc
push dword [ebp - 0x3d0]
mov ecx, ebx
push str._n_tSecondary_Device_position_left:
call fcn.004010dc
push dword [ebp - 0x3cc]
mov ecx, ebx
push str._n_tSecondary_Device_position_right:
call fcn.004010dc
push dword [ebp - 0x3c4]
mov ecx, ebx
push str._n_tSecondary_Device_position_bottom:
call fcn.004010dc
mov ebx, 0x128
push ebx
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.00410280
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 0x402171
cmp dword [ebp + 0x68], 1
jne 0x401e18
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 0x402171
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push str._n_tMode_Set_was_successful_n
mov byte [ebp - 0x259], 1
call fcn.004010dc
cmp byte [ebp + 0x7c], 1
jne 0x40226f
mov eax, dword [esi]
mov ebx, 0xf000
test al, 0xf
jne 0x401efb
test ebx, eax
jne 0x401efb
test al, 0xf0
je 0x401f64
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x4202d8
push 0x15
push 0
push 0x420338
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401f64
cmp dword [ebp - 0x258], 0
je 0x401f64
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00410280
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x401eed
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x401ecb
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 0x401f64
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x401f64
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 0x402017
test ebx, eax
jne 0x402017
test al, 0xf0
je 0x402090
lea eax, [ebp - 0x258]
push eax
push 0x4202d8
push 0x15
xor ebx, ebx
push ebx
push 0x420338
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402092
cmp dword [ebp - 0x258], ebx
je 0x402092
push edi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00410280
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, ebx
je 0x402009
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x401fe6
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 0x402092
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x402090
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 0x4202c8
push 0x15
push ebx
push 0x420328
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40225d
cmp dword [ebp - 0x258], ebx
je 0x402271
push 0x4c
pop edi
push edi
lea eax, [ebp - 0x4a8]
push ebx
push eax
call fcn.00410280
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00410280
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x4021e1
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 0x402158
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x478]
je 0x40225d
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x4a8]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x40225d
mov esi, dword [ebp - 0x264]
or edi, 0xffffffff
push edi
push str._n_tMode_Set_was_not_successful_n
mov ecx, esi
call fcn.004010dc
cmp byte [ebp - 0x25a], 1
jne 0x4021bd
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 0x4021b6
push str._n_tFailed_to_apply_saved_configuration_reverting_back_to_current_settings
jmp 0x4021c5
push str._n_tFailed_to_revert_to_current_settings__note:_Login_screen_may_be_active
jmp 0x4021c5
push edi
push str._n_tFailed_to_revert_to_current_settings__since_current_settings_is_not_available
mov ecx, esi
call fcn.004010dc
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4021da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x402287
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x40221e
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 0x40221e
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 0x40225d
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 0x40225d
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 0x402271
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402271
xor ebx, ebx
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x402281
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.004102fa
add ebp, 0x70
leave
ret 8