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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441e30
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x7c], 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 + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x44], 0xa0
mov byte [esp + 0x48], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x3c], vtable.CDriverDowngradeDlg.0
lea eax, [esp + 0x3c]
mov dword [esp + 0x128], ebx
call fcn.0041b310
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x40bcfe
push eax
call fcn.0042b948
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
lea ecx, [esp + 0xe0]
push ecx
mov ecx, 0x1f77
mov edx, 0x455c98
mov dword [esp + 0x12c], 1
call fcn.00412980
mov edi, 8
cmp dword [esp + 0xf4], edi
jb 0x40bd58
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x78], edx
jmp 0x40bd63
lea eax, [esp + 0xe0]
mov dword [esp + 0x78], eax
xor ecx, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
xor edx, edx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], dx
mov byte [esp + 0x128], 3
mov eax, dword [0x455c88]
call fcn.00408880
test al, al
jne 0x40bede
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x80]
push eax
mov ecx, 0x2067
mov edx, 0x455c98
mov dword [esp + 0xa0], 0x28
call fcn.00412980
cmp dword [esp + 0x94], edi
jb 0x40be30
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xac], ecx
jmp 0x40be3e
lea edx, [esp + 0x80]
mov dword [esp + 0xac], edx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, 0x455c98
mov dword [esp + 0xbc], 0x7f01
call fcn.00412e50
cmp dword [esp + 0xd8], edi
jb 0x40be79
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xa8], edx
jmp 0x40be87
lea eax, [esp + 0xc4]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], ebx
cmp dword [esp + 0xb4], ebx
je 0x40bea2
mov dword [esp + 0xb0], 0x80
mov cx, word [0x455c9a]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x40bebe
cmp eax, 0xd
jne 0x40bec9
or dword [esp + 0xb0], 0x180000
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xa4], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0xd8], edi
jb 0x40bef7
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0042b948
add esp, 4
xor edx, edx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], dx
cmp dword [esp + 0x94], edi
jb 0x40bf28
mov eax, dword [esp + 0x80]
push eax
call fcn.0042b948
add esp, 4
cmp dword [esp + 0xf4], edi
jb 0x40bf41
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0042b948
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x2062
mov edx, 0x455c98
mov dword [esp + 0x12c], 4
call fcn.00412980
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40bf92
lea esi, [esp + 0x9c]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
xor edx, edx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], dx
mov byte [esp + 0x128], 6
mov eax, dword [0x455c88]
call fcn.00408880
test al, al
jne 0x40c0cb
xor eax, eax
mov dword [esp + 0x14], eax
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
lea eax, [esp + 0xfc]
push eax
mov ecx, 0x2067
mov edx, 0x455c98
mov dword [esp + 0x18], 0x28
call fcn.00412980
cmp dword [esp + 0x110], edi
jb 0x40c040
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x24], ecx
jmp 0x40c04b
lea edx, [esp + 0xfc]
mov dword [esp + 0x24], edx
lea eax, [esp + 0xc4]
push eax
push esi
mov ecx, 0x455c98
mov dword [esp + 0x34], 0x7f01
call fcn.00412e50
cmp dword [esp + 0xd8], edi
jb 0x40c07c
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x20], ecx
jmp 0x40c087
lea edx, [esp + 0xc4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x2c], ebx
je 0x40c099
mov dword [esp + 0x28], 0x80
mov ax, word [0x455c9a]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x40c0b4
cmp eax, 0xd
jne 0x40c0bc
or dword [esp + 0x28], 0x180000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0xd8], edi
jb 0x40c0e4
mov eax, dword [esp + 0xc4]
push eax
call fcn.0042b948
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], cx
cmp dword [esp + 0x110], edi
jb 0x40c11a
mov edx, dword [esp + 0xfc]
push edx
call fcn.0042b948
add esp, 4
xor eax, eax
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], ax
cmp dword [esp + 0xb0], edi
jb 0x40c14b
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0042b948
add esp, 4
xor edx, edx
xor eax, eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
mov dword [esp + 0x128], esi
xor ecx, ecx
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], cx
mov byte [esp + 0x128], 8
mov eax, dword [0x455c88]
call fcn.00408880
test al, al
jne 0x40c2a7
xor eax, eax
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x40], eax
mov ecx, 0x2067
mov edx, 0x455c98
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], 0x28
call fcn.00412980
cmp dword [esp + 0x94], edi
jb 0x40c213
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
jmp 0x40c21e
lea ecx, [esp + 0x80]
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0xe0]
push edx
push str.8193_8320
mov ecx, 0x455c98
mov dword [esp + 0x5c], 0x7f02
call fcn.00412e50
cmp dword [esp + 0xf4], edi
jb 0x40c253
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x48], eax
jmp 0x40c25e
lea ecx, [esp + 0xe0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 4
cmp dword [esp + 0x54], ebx
je 0x40c274
mov dword [esp + 0x50], 0x84
mov dx, word [0x455c9a]
mov eax, 0x3ff
and dx, ax
movzx eax, dx
cmp eax, 1
je 0x40c290
cmp eax, 0xd
jne 0x40c298
or dword [esp + 0x50], 0x180000
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0xf4], edi
jb 0x40c2c0
mov edx, dword [esp + 0xe0]
push edx
call fcn.0042b948
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
cmp dword [esp + 0x94], edi
jb 0x40c2f1
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0042b948
add esp, 4
xor edx, edx
xor eax, eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], ax
mov dword [esp + 0x128], 9
xor ecx, ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], cx
mov byte [esp + 0x128], 0xa
mov eax, dword [0x455c88]
call fcn.00408880
test al, al
jne 0x40c44d
xor eax, eax
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0x18], eax
mov ecx, 0x2067
mov edx, 0x455c98
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 + 0x3c], eax
mov dword [esp + 0x18], 0x28
call fcn.00412980
cmp dword [esp + 0xd8], edi
jb 0x40c3bd
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], eax
jmp 0x40c3c8
lea ecx, [esp + 0xc4]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x9c]
push edx
push str.8180_8325
mov ecx, 0x455c98
mov dword [esp + 0x34], 0x7f01
call fcn.00412e50
cmp dword [esp + 0xb0], edi
jb 0x40c3fd
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
jmp 0x40c408
lea ecx, [esp + 0x9c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x2c], ebx
je 0x40c41a
mov dword [esp + 0x28], 0x80
mov dx, word [0x455c9a]
mov eax, 0x3ff
and dx, ax
movzx eax, dx
cmp eax, 1
je 0x40c436
cmp eax, 0xd
jne 0x40c43e
or dword [esp + 0x28], 0x180000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0xb0], edi
jb 0x40c466
mov edx, dword [esp + 0x9c]
push edx
call fcn.0042b948
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], ax
cmp dword [esp + 0xd8], edi
jb 0x40c497
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0042b948
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x2094
mov edx, 0x455c98
mov dword [esp + 0x12c], 0xb
call fcn.00412980
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40c4e8
lea esi, [esp + 0x9c]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], cx
xor edx, edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
mov byte [esp + 0x128], 0xd
mov eax, dword [0x455c88]
call fcn.00408880
test al, al
jne 0x40c621
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0xe0]
push eax
mov ecx, 0x2067
mov edx, 0x455c98
mov dword [esp + 0x40], 0x28
call fcn.00412980
cmp dword [esp + 0xf4], edi
jb 0x40c596
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x4c], ecx
jmp 0x40c5a1
lea edx, [esp + 0xe0]
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x80]
push eax
push esi
mov ecx, 0x455c98
mov dword [esp + 0x5c], 0x7f01
call fcn.00412e50
cmp dword [esp + 0x94], edi
jb 0x40c5d2
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
jmp 0x40c5dd
lea edx, [esp + 0x80]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x54], ebx
je 0x40c5ef
mov dword [esp + 0x50], 0x80
mov ax, word [0x455c9a]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x40c60a
cmp eax, 0xd
jne 0x40c612
or dword [esp + 0x50], 0x180000
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp dword [esp + 0x94], edi
jb 0x40c63a
mov eax, dword [esp + 0x80]
push eax
call fcn.0042b948
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
cmp dword [esp + 0xf4], edi
jb 0x40c670
mov edx, dword [esp + 0xe0]
push edx
call fcn.0042b948
add esp, 4
cmp dword [esp + 0xb0], edi
jb 0x40c689
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042b948
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
lea edx, [esp + 0x80]
push edx
mov ecx, 0x208f
mov edx, 0x455c98
mov dword [esp + 0x12c], 0xe
call fcn.00412980
mov edx, dword [esp + 0x80]
cmp dword [esp + 0x94], edi
jae 0x40c6da
lea edx, [esp + 0x80]
push ebx
push ebx
push 0x2067
push ebx
xor ecx, ecx
call fcn.0041b720
add esp, 0x10
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0x94], edi
jb 0x40c710
mov eax, dword [esp + 0x80]
push eax
call fcn.0042b948
add esp, 4
mov edi, dword [esp + 0x7c]
push 0x4462c0
mov ebx, str.IIF_ACCEPTED
lea ecx, [edi + 4]
call fcn.00404120
xor eax, eax
mov ecx, 9
lea ecx, [ecx]
cmp dword [eax*8 + 0x454898], ecx
je 0x40c741
inc eax
cmp eax, 0xe
jb 0x40c730
jmp 0x40c756
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.00404120
mov ecx, edi
call fcn.0040c8d0
xor eax, eax
nop
cmp dword [eax*8 + 0x454898], 0xa
je 0x40c772
inc eax
cmp eax, 0xe
jb 0x40c760
jmp 0x40c787
mov edx, dword [eax*8 + 0x45489c]
push edx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.00404120
mov ecx, edi
call fcn.0040c8d0
xor eax, eax
mov ecx, 0xc
cmp dword [eax*8 + 0x454898], ecx
je 0x40c7a6
inc eax
cmp eax, 0xe
jb 0x40c795
jmp 0x40c7bb
mov eax, dword [eax*8 + 0x45489c]
push eax
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.00404120
mov ecx, edi
call fcn.0040c8d0
xor eax, eax
mov ecx, 0xb
lea esp, [esp]
cmp dword [eax*8 + 0x454898], ecx
je 0x40c7e1
inc eax
cmp eax, 0xe
jb 0x40c7d0
jmp 0x40c7f6
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.00404120
mov ecx, edi
call fcn.0040c8d0
push 0xa
push 8
lea edx, [esp + 0x104]
push edx
push 0xbc2
call fcn.0042ccbf
add esp, 0x10
lea eax, [esp + 0xfc]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [edi + 4]
call fcn.00404120
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
xor eax, eax
cmp dword [eax*8 + 0x454898], 0xd
je 0x40c848
inc eax
cmp eax, 0xe
jb 0x40c836
jmp 0x40c85d
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.00404120
mov ecx, edi
call fcn.0040c8d0
push 0xa
push 8
lea edx, [esp + 0xcc]
push edx
push 5
call fcn.0042ccbf
add esp, 0x10
lea eax, [esp + 0xc4]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [edi + 4]
call fcn.00404120
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov ecx, edi
call fcn.0040c8d0
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042b939
mov esp, ebp
pop ebp
ret