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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44454b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4563e4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push edi
mov eax, dword [0x4563e4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
xor ebx, ebx
mov eax, SysReAllocString
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], 0xa0
mov byte [esp + 0x1c], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], vtable.CDriverDowngradeDlg.0
lea eax, [esp + 0x10]
mov dword [esp + 0xb0], ebx
call fcn.004041e0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40d319
push eax
call fcn.0042ee58
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x1f77
mov edx, 0x458de8
mov dword [esp + 0xb4], 1
call fcn.00413990
mov edx, dword [esp + 0x68]
mov edi, 8
cmp dword [esp + 0x7c], edi
jae 0x40d35e
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004058e0
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40d386
mov edx, dword [esp + 0x68]
push edx
call fcn.0042ee58
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x2062
mov edx, 0x458de8
mov dword [esp + 0xb4], 2
call fcn.00413990
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x7c], edi
jae 0x40d3c6
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004058e0
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40d3ee
mov edx, dword [esp + 0x68]
push edx
call fcn.0042ee58
add esp, 4
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], cx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0xb0], 3
mov dword [esp + 0x98], eax
xor eax, eax
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], ax
mov byte [esp + 0xb0], 4
mov eax, dword [0x458dc8]
call fcn.00409f50
test al, al
jne 0x40d535
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], eax
mov ecx, 0x2067
mov edx, 0x458de8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], 0x28
call fcn.00413990
cmp dword [esp + 0x60], edi
jb 0x40d4a4
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
jmp 0x40d4ac
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x84]
push ecx
push str.8193_8320
mov ecx, 0x458de8
mov dword [esp + 0x30], 0x7f02
call fcn.00413e60
cmp dword [esp + 0x98], edi
jb 0x40d4e1
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
jmp 0x40d4ec
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 4
cmp dword [esp + 0x28], ebx
je 0x40d502
mov dword [esp + 0x24], 0x84
mov cx, word [0x458dea]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x40d51e
cmp eax, 0xd
jne 0x40d526
or dword [esp + 0x24], 0x180000
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0x98], edi
jb 0x40d54e
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042ee58
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
cmp dword [esp + 0x60], edi
jb 0x40d588
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042ee58
add esp, 4
push ebx
push ebx
push 0x2067
push ebx
mov edx, str.8180_8325
mov ecx, 2
call fcn.004058e0
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x2094
mov edx, 0x458de8
mov dword [esp + 0xb4], 5
call fcn.00413990
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40d5e2
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004058e0
add esp, 0x10
cmp dword [esp + 0x60], edi
jb 0x40d60a
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042ee58
add esp, 4
xor ecx, ecx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x208f
mov edx, 0x458de8
mov dword [esp + 0xb4], 6
call fcn.00413990
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40d64a
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
xor ecx, ecx
call fcn.004058e0
add esp, 0x10
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x60], edi
jb 0x40d67a
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042ee58
add esp, 4
push 0x4493f8
mov ebx, str.IIF_ACCEPTED
lea ecx, [esi + 4]
call fcn.00416670
xor eax, eax
mov ecx, 9
cmp dword [eax*8 + 0x457990], ecx
je 0x40d6a4
inc eax
cmp eax, 0xe
jb 0x40d693
jmp 0x40d6b9
mov ecx, dword [eax*8 + 0x457994]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00416670
mov ecx, esi
call fcn.0040d820
xor eax, eax
cmp dword [eax*8 + 0x457990], 0xa
je 0x40d6d4
inc eax
cmp eax, 0xe
jb 0x40d6c2
jmp 0x40d6e9
mov edx, dword [eax*8 + 0x457994]
push edx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00416670
mov ecx, esi
call fcn.0040d820
xor eax, eax
mov ecx, 0xc
cmp dword [eax*8 + 0x457990], ecx
je 0x40d708
inc eax
cmp eax, 0xe
jb 0x40d6f7
jmp 0x40d71d
mov eax, dword [eax*8 + 0x457994]
push eax
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00416670
mov ecx, esi
call fcn.0040d820
xor eax, eax
mov ecx, 0xb
jmp 0x40d730
cmp dword [eax*8 + 0x457990], ecx
je 0x40d741
inc eax
cmp eax, 0xe
jb 0x40d730
jmp 0x40d756
mov ecx, dword [eax*8 + 0x457994]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00416670
mov ecx, esi
call fcn.0040d820
push 0xa
push 8
lea edx, [esp + 0x8c]
push edx
push 0xbc2
call fcn.0042fd54
add esp, 0x10
lea eax, [esp + 0x84]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 4]
call fcn.00416670
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
xor eax, eax
cmp dword [eax*8 + 0x457990], 0xd
je 0x40d7a8
inc eax
cmp eax, 0xe
jb 0x40d796
jmp 0x40d7bd
mov ecx, dword [eax*8 + 0x457994]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00416670
mov ecx, esi
call fcn.0040d820
push 0xa
push 8
lea edx, [esp + 0x70]
push edx
push 5
call fcn.0042fd54
add esp, 0x10
lea eax, [esp + 0x68]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 4]
call fcn.00416670
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov ecx, esi
call fcn.0040d820
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ee49
mov esp, ebp
pop ebp
ret