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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44299b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push edi
mov eax, dword [0x4553d4]
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.00404f90
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40cbd9
push eax
call fcn.0042c691
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, 0x457d28
mov dword [esp + 0xb4], 1
call fcn.00418a80
mov edx, dword [esp + 0x68]
mov edi, 8
cmp dword [esp + 0x7c], edi
jae 0x40cc1e
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004053a0
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40cc46
mov edx, dword [esp + 0x68]
push edx
call fcn.0042c691
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, 0x457d28
mov dword [esp + 0xb4], 2
call fcn.00418a80
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x7c], edi
jae 0x40cc86
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004053a0
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40ccae
mov edx, dword [esp + 0x68]
push edx
call fcn.0042c691
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 [0x457d08]
call fcn.00409740
test al, al
jne 0x40cdf5
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], eax
mov ecx, 0x2067
mov edx, 0x457d28
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.00418a80
cmp dword [esp + 0x60], edi
jb 0x40cd64
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
jmp 0x40cd6c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x84]
push ecx
push str.8193_8320
mov ecx, 0x457d28
mov dword [esp + 0x30], 0x7f02
call fcn.00418f50
cmp dword [esp + 0x98], edi
jb 0x40cda1
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
jmp 0x40cdac
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 4
cmp dword [esp + 0x28], ebx
je 0x40cdc2
mov dword [esp + 0x24], 0x84
mov cx, word [0x457d2a]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x40cdde
cmp eax, 0xd
jne 0x40cde6
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 0x40ce0e
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042c691
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 0x40ce48
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042c691
add esp, 4
push ebx
push ebx
push 0x2067
push ebx
mov edx, str.8180_8325
mov ecx, 2
call fcn.004053a0
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, 0x457d28
mov dword [esp + 0xb4], 5
call fcn.00418a80
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40cea2
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.004053a0
add esp, 0x10
cmp dword [esp + 0x60], edi
jb 0x40ceca
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042c691
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, 0x457d28
mov dword [esp + 0xb4], 6
call fcn.00418a80
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40cf0a
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
xor ecx, ecx
call fcn.004053a0
add esp, 0x10
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x60], edi
jb 0x40cf3a
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042c691
add esp, 4
push 0x4479b8
mov ebx, str.IIF_ACCEPTED
lea ecx, [esi + 4]
call fcn.00414ab0
xor eax, eax
mov ecx, 9
cmp dword [eax*8 + 0x456860], ecx
je 0x40cf64
inc eax
cmp eax, 0xe
jb 0x40cf53
jmp 0x40cf79
mov ecx, dword [eax*8 + 0x456864]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov ecx, esi
call fcn.0040d0e0
xor eax, eax
cmp dword [eax*8 + 0x456860], 0xa
je 0x40cf94
inc eax
cmp eax, 0xe
jb 0x40cf82
jmp 0x40cfa9
mov edx, dword [eax*8 + 0x456864]
push edx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov ecx, esi
call fcn.0040d0e0
xor eax, eax
mov ecx, 0xc
cmp dword [eax*8 + 0x456860], ecx
je 0x40cfc8
inc eax
cmp eax, 0xe
jb 0x40cfb7
jmp 0x40cfdd
mov eax, dword [eax*8 + 0x456864]
push eax
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov ecx, esi
call fcn.0040d0e0
xor eax, eax
mov ecx, 0xb
jmp 0x40cff0
cmp dword [eax*8 + 0x456860], ecx
je 0x40d001
inc eax
cmp eax, 0xe
jb 0x40cff0
jmp 0x40d016
mov ecx, dword [eax*8 + 0x456864]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov ecx, esi
call fcn.0040d0e0
push 0xa
push 8
lea edx, [esp + 0x8c]
push edx
push 0xbc2
call fcn.0042d95b
add esp, 0x10
lea eax, [esp + 0x84]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
xor eax, eax
cmp dword [eax*8 + 0x456860], 0xd
je 0x40d068
inc eax
cmp eax, 0xe
jb 0x40d056
jmp 0x40d07d
mov ecx, dword [eax*8 + 0x456864]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov ecx, esi
call fcn.0040d0e0
push 0xa
push 8
lea edx, [esp + 0x70]
push edx
push 5
call fcn.0042d95b
add esp, 0x10
lea eax, [esp + 0x68]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 4]
call fcn.00414ab0
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov ecx, esi
call fcn.0040d0e0
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.0042c682
mov esp, ebp
pop ebp
ret