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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x68c
mov eax, dword [0x427470]
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 0x4212c8
xor ebx, ebx
push 0x15
push ebx
push 0x421328
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 0x4019ac
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4019ac
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 0x4212e8
push 0x15
push ebx
push 0x421348
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x401a8e
cmp eax, ebx
jl 0x401a8e
cmp dword [ebp - 0x268], ebx
je 0x401a8e
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410ca0
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 0x401a31
and dword [ebp - 0xd0], 0xfff00000
cmp dword [ebp - 0x258], ebx
jl 0x401a8e
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x401a8e
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410ca0
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 0x401b3d
cmp dword [ebp - 0x258], ebx
jl 0x401b3d
cmp dword [ebp - 0x268], ebx
je 0x401b4d
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.00410ca0
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 0x401af2
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x401b3d
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x401b3d
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 0x401b4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x4023a1
mov ebx, 0x170
push ebx
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00410ca0
push 0x88
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.00410ca0
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x61c]
push edx
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x401ba2
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00410ca0
mov eax, dword [esi + 0x170]
mov ecx, dword [esi]
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x2d0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x2dc], edx
cmp eax, ecx
jbe 0x401bfe
mov ax, word [esi + 4]
mov word [ebp - 0x42c], ax
mov ax, word [esi + 8]
jmp 0x401c1e
push dword [esi + 0x18]
push ecx
push eax
call fcn.0040114f
add esp, 0xc
test eax, eax
jne 0x401bed
mov ax, word [esi + 8]
mov word [ebp - 0x42c], ax
mov ax, word [esi + 4]
mov ecx, dword [esi + 0x64]
mov word [ebp - 0x42a], ax
mov ax, word [esi + 0x34]
mov word [ebp - 0x41c], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x428], ax
mov ax, word [esi + 0x10]
mov word [ebp - 0x426], ax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x33c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x32c], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x31c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30c], eax
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x401c85
mov ax, word [esi + 0x60]
mov word [ebp - 0x3e8], ax
mov ax, word [esi + 0x64]
jmp 0x401ca5
push dword [esi + 0x74]
push ecx
push eax
call fcn.0040114f
add esp, 0xc
test eax, eax
jne 0x401c74
mov ax, word [esi + 0x64]
mov word [ebp - 0x3e8], ax
mov ax, word [esi + 0x60]
cmp dword [esi + 0x170], 8
mov word [ebp - 0x3e6], ax
mov ax, word [esi + 0x90]
mov word [ebp - 0x3d8], ax
mov ax, word [esi + 0x68]
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x6c]
mov word [ebp - 0x3e2], ax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x338], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x328], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x318], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x308], eax
jne 0x401d54
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x418], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x410], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x40c], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x3d4], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x3d0], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x3cc], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x3c8], eax
mov ebx, dword [ebp - 0x264]
push 0xffffffffffffffff
push str._n_n_tDetails_of_config_to_be_applied
mov ecx, ebx
call fcn.0040117b
mov eax, dword [ebp - 0x450]
cmp eax, 1
jne 0x401d7c
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Single_display
jmp 0x401d9b
cmp eax, 8
jne 0x401d8a
push 0xffffffffffffffff
push str._n_tOperating_Mode:__Extended_display_mode
jmp 0x401d9b
cmp eax, 4
je 0x401d94
cmp eax, 2
jne 0x401da2
push 0xffffffffffffffff
push str._n_tOperating_Mode:_Clone_display_mode
mov ecx, ebx
call fcn.0040117b
push 0xffffffffffffffff
push str._n_n_tPrimay_Device:
mov ecx, ebx
call fcn.0040117b
push dword [ebp - 0x448]
mov ecx, ebx
call fcn.004011f1
movzx eax, word [ebp - 0x42c]
push eax
push str._n_tPrimay_Device_horizontal_resolution:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x42a]
push eax
push str._n_tPrimay_Device_vertical_resolution:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x426]
push eax
push str._n_tPrimay_Device_bits_per_pixel:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x428]
push eax
push str._n_tPrimay_Device_refresh_rate:
mov ecx, ebx
call fcn.0040117b
cmp dword [ebp - 0x450], 8
je 0x401e23
cmp dword [ebp - 0x450], 4
jne 0x401edf
push 0xffffffffffffffff
push str._n_n_tSecondary_Device:
mov ecx, ebx
call fcn.0040117b
push dword [ebp - 0x404]
mov ecx, ebx
call fcn.004011f1
movzx eax, word [ebp - 0x3e8]
push eax
push str._n_tSecondary_Device_horizontal_resolution:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x3e6]
push eax
push str._n_tSecondary_Device_vertical_resolution:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x3e2]
push eax
push str._n_tSecondary_Device_bits_per_pixel:
mov ecx, ebx
call fcn.0040117b
movzx eax, word [ebp - 0x3e4]
push eax
push str._n_tSecondary_Device_refresh_rate:
mov ecx, ebx
call fcn.0040117b
cmp dword [ebp - 0x450], 8
jne 0x401edf
push dword [ebp - 0x3cc]
mov ecx, ebx
push str._n_tSecondary_Device_position_top:
call fcn.0040117b
push dword [ebp - 0x3d4]
mov ecx, ebx
push str._n_tSecondary_Device_position_left:
call fcn.0040117b
push dword [ebp - 0x3d0]
mov ecx, ebx
push str._n_tSecondary_Device_position_right:
call fcn.0040117b
push dword [ebp - 0x3c8]
mov ecx, ebx
push str._n_tSecondary_Device_position_bottom:
call fcn.0040117b
mov ebx, 0x128
push ebx
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.00410ca0
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x448]
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x404]
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 0x402291
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x68], ebx
jne 0x401f53
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x460]
push edx
push 0x170
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x402291
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push str._n_tMode_Set_was_successful_n
mov byte [ebp - 0x259], 1
call fcn.0040117b
cmp byte [ebp + 0x7c], 1
jne 0x40238f
mov eax, dword [esi]
test al, 0xf0
je 0x402021
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x4212e8
push 0x15
push 0
push 0x421348
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402097
cmp dword [ebp - 0x258], 0
je 0x402097
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00410ca0
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x402013
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x401ff1
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 0x402097
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x402097
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]
and dword [ebp - 0x2c0], 0
mov ecx, dword [esi + 0x5c]
test cl, 0xf0
je 0x40213b
lea eax, [ebp - 0x258]
push eax
push 0x4212e8
push 0x15
xor ebx, ebx
push ebx
push 0x421348
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4021b2
cmp dword [ebp - 0x258], ebx
je 0x4021b2
push edi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00410ca0
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, ebx
je 0x40212d
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x40210a
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 0x4021b2
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4021b0
mov dword [ebp - 0x2a4], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x274], 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 word [ebp - 0x2b4], ax
mov ax, word [esi + 0x6c]
lea edx, [ebp - 0x2f0]
push edx
mov word [ebp - 0x2b2], ax
mov eax, dword [ebp - 0x260]
push 0x88
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2bc], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
xor ebx, ebx
lea eax, [ebp - 0x258]
push eax
push 0x4212d8
push 0x15
push ebx
push 0x421338
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40237d
cmp dword [ebp - 0x258], ebx
je 0x402391
push 0x4c
pop edi
push edi
lea eax, [ebp - 0x4ac]
push ebx
push eax
call fcn.00410ca0
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00410ca0
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x402301
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x480], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x47c], eax
mov eax, dword [esi]
mov esi, dword [esi + 0x5c]
lea edx, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x258]
push edi
mov dword [ebp - 0x48c], 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 - 0x480]
jne 0x402278
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x47c]
je 0x40237d
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x40237d
mov esi, dword [ebp - 0x264]
or edi, 0xffffffff
push edi
push str._n_tMode_Set_was_not_successful_n
mov ecx, esi
call fcn.0040117b
cmp byte [ebp - 0x25a], 1
jne 0x4022dd
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x61c]
push edx
push 0x170
push eax
call dword [ecx + 0x14]
push edi
mov ecx, esi
test eax, eax
jl 0x4022d6
push str._n_tFailed_to_apply_saved_configuration_reverting_back_to_current_settings
jmp 0x4022e5
push str._n_tFailed_to_revert_to_current_settings__note:_Login_screen_may_be_active
jmp 0x4022e5
push edi
push str._n_tFailed_to_revert_to_current_settings__since_current_settings_is_not_available
mov ecx, esi
call fcn.0040117b
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4022fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x4023a7
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x40233e
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 0x40233e
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 0x40237d
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 0x40237d
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 0x402391
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402391
xor ebx, ebx
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4023a1
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.00410d1a
add ebp, 0x70
leave
ret 8