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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442490
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.0041bbc0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x40bb7e
push eax
call fcn.0042c048
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, 0x455cb8
mov dword [esp + 0x12c], 1
call fcn.00412860
mov edi, 8
cmp dword [esp + 0xf4], edi
jb 0x40bbd8
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x78], edx
jmp 0x40bbe3
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 [0x455ca8]
call fcn.004085d0
test al, al
jne 0x40bd5e
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, 0x455cb8
mov dword [esp + 0xa0], 0x28
call fcn.00412860
cmp dword [esp + 0x94], edi
jb 0x40bcb0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xac], ecx
jmp 0x40bcbe
lea edx, [esp + 0x80]
mov dword [esp + 0xac], edx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, 0x455cb8
mov dword [esp + 0xbc], 0x7f01
call fcn.00412d30
cmp dword [esp + 0xd8], edi
jb 0x40bcf9
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xa8], edx
jmp 0x40bd07
lea eax, [esp + 0xc4]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], ebx
cmp dword [esp + 0xb4], ebx
je 0x40bd22
mov dword [esp + 0xb0], 0x80
mov cx, word [0x455cba]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x40bd3e
cmp eax, 0xd
jne 0x40bd49
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 0x40bd77
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0042c048
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 0x40bda8
mov eax, dword [esp + 0x80]
push eax
call fcn.0042c048
add esp, 4
cmp dword [esp + 0xf4], edi
jb 0x40bdc1
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0042c048
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, 0x455cb8
mov dword [esp + 0x12c], 4
call fcn.00412860
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40be12
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 [0x455ca8]
call fcn.004085d0
test al, al
jne 0x40bf4b
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, 0x455cb8
mov dword [esp + 0x18], 0x28
call fcn.00412860
cmp dword [esp + 0x110], edi
jb 0x40bec0
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x24], ecx
jmp 0x40becb
lea edx, [esp + 0xfc]
mov dword [esp + 0x24], edx
lea eax, [esp + 0xc4]
push eax
push esi
mov ecx, 0x455cb8
mov dword [esp + 0x34], 0x7f01
call fcn.00412d30
cmp dword [esp + 0xd8], edi
jb 0x40befc
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x20], ecx
jmp 0x40bf07
lea edx, [esp + 0xc4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x2c], ebx
je 0x40bf19
mov dword [esp + 0x28], 0x80
mov ax, word [0x455cba]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x40bf34
cmp eax, 0xd
jne 0x40bf3c
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 0x40bf64
mov eax, dword [esp + 0xc4]
push eax
call fcn.0042c048
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 0x40bf9a
mov edx, dword [esp + 0xfc]
push edx
call fcn.0042c048
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 0x40bfcb
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0042c048
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 [0x455ca8]
call fcn.004085d0
test al, al
jne 0x40c127
xor eax, eax
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x40], eax
mov ecx, 0x2067
mov edx, 0x455cb8
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.00412860
cmp dword [esp + 0x94], edi
jb 0x40c093
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
jmp 0x40c09e
lea ecx, [esp + 0x80]
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0xe0]
push edx
push str.8193_8320
mov ecx, 0x455cb8
mov dword [esp + 0x5c], 0x7f02
call fcn.00412d30
cmp dword [esp + 0xf4], edi
jb 0x40c0d3
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x48], eax
jmp 0x40c0de
lea ecx, [esp + 0xe0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 4
cmp dword [esp + 0x54], ebx
je 0x40c0f4
mov dword [esp + 0x50], 0x84
mov dx, word [0x455cba]
mov eax, 0x3ff
and dx, ax
movzx eax, dx
cmp eax, 1
je 0x40c110
cmp eax, 0xd
jne 0x40c118
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 0x40c140
mov edx, dword [esp + 0xe0]
push edx
call fcn.0042c048
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 0x40c171
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0042c048
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 [0x455ca8]
call fcn.004085d0
test al, al
jne 0x40c2cd
xor eax, eax
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0x18], eax
mov ecx, 0x2067
mov edx, 0x455cb8
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.00412860
cmp dword [esp + 0xd8], edi
jb 0x40c23d
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], eax
jmp 0x40c248
lea ecx, [esp + 0xc4]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x9c]
push edx
push str.8180_8325
mov ecx, 0x455cb8
mov dword [esp + 0x34], 0x7f01
call fcn.00412d30
cmp dword [esp + 0xb0], edi
jb 0x40c27d
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
jmp 0x40c288
lea ecx, [esp + 0x9c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x2c], ebx
je 0x40c29a
mov dword [esp + 0x28], 0x80
mov dx, word [0x455cba]
mov eax, 0x3ff
and dx, ax
movzx eax, dx
cmp eax, 1
je 0x40c2b6
cmp eax, 0xd
jne 0x40c2be
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 0x40c2e6
mov edx, dword [esp + 0x9c]
push edx
call fcn.0042c048
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 0x40c317
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0042c048
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, 0x455cb8
mov dword [esp + 0x12c], 0xb
call fcn.00412860
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40c368
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 [0x455ca8]
call fcn.004085d0
test al, al
jne 0x40c4a1
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, 0x455cb8
mov dword [esp + 0x40], 0x28
call fcn.00412860
cmp dword [esp + 0xf4], edi
jb 0x40c416
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x4c], ecx
jmp 0x40c421
lea edx, [esp + 0xe0]
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x80]
push eax
push esi
mov ecx, 0x455cb8
mov dword [esp + 0x5c], 0x7f01
call fcn.00412d30
cmp dword [esp + 0x94], edi
jb 0x40c452
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
jmp 0x40c45d
lea edx, [esp + 0x80]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x54], ebx
je 0x40c46f
mov dword [esp + 0x50], 0x80
mov ax, word [0x455cba]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x40c48a
cmp eax, 0xd
jne 0x40c492
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 0x40c4ba
mov eax, dword [esp + 0x80]
push eax
call fcn.0042c048
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 0x40c4f0
mov edx, dword [esp + 0xe0]
push edx
call fcn.0042c048
add esp, 4
cmp dword [esp + 0xb0], edi
jb 0x40c509
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042c048
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, 0x455cb8
mov dword [esp + 0x12c], 0xe
call fcn.00412860
mov edx, dword [esp + 0x80]
cmp dword [esp + 0x94], edi
jae 0x40c55a
lea edx, [esp + 0x80]
push ebx
push ebx
push 0x2067
push ebx
xor ecx, ecx
call fcn.0041bfd0
add esp, 0x10
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0x94], edi
jb 0x40c590
mov eax, dword [esp + 0x80]
push eax
call fcn.0042c048
add esp, 4
mov edi, dword [esp + 0x7c]
push 0x4462c0
mov ebx, str.IIF_ACCEPTED
lea ecx, [edi + 4]
call fcn.004040d0
xor eax, eax
mov ecx, 9
lea ecx, [ecx]
cmp dword [eax*8 + 0x454898], ecx
je 0x40c5c1
inc eax
cmp eax, 0xe
jb 0x40c5b0
jmp 0x40c5d6
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.004040d0
mov ecx, edi
call fcn.0040c750
xor eax, eax
nop
cmp dword [eax*8 + 0x454898], 0xa
je 0x40c5f2
inc eax
cmp eax, 0xe
jb 0x40c5e0
jmp 0x40c607
mov edx, dword [eax*8 + 0x45489c]
push edx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.004040d0
mov ecx, edi
call fcn.0040c750
xor eax, eax
mov ecx, 0xc
cmp dword [eax*8 + 0x454898], ecx
je 0x40c626
inc eax
cmp eax, 0xe
jb 0x40c615
jmp 0x40c63b
mov eax, dword [eax*8 + 0x45489c]
push eax
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.004040d0
mov ecx, edi
call fcn.0040c750
xor eax, eax
mov ecx, 0xb
lea esp, [esp]
cmp dword [eax*8 + 0x454898], ecx
je 0x40c661
inc eax
cmp eax, 0xe
jb 0x40c650
jmp 0x40c676
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.004040d0
mov ecx, edi
call fcn.0040c750
push 0xa
push 8
lea edx, [esp + 0x104]
push edx
push 0xbc2
call fcn.0042d3bf
add esp, 0x10
lea eax, [esp + 0xfc]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [edi + 4]
call fcn.004040d0
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
xor eax, eax
cmp dword [eax*8 + 0x454898], 0xd
je 0x40c6c8
inc eax
cmp eax, 0xe
jb 0x40c6b6
jmp 0x40c6dd
mov ecx, dword [eax*8 + 0x45489c]
push ecx
mov ebx, str.IIF_SETUPMODE
lea ecx, [edi + 4]
call fcn.004040d0
mov ecx, edi
call fcn.0040c750
push 0xa
push 8
lea edx, [esp + 0xcc]
push edx
push 5
call fcn.0042d3bf
add esp, 0x10
lea eax, [esp + 0xc4]
push eax
mov ebx, str.IIF_EXITCODE
lea ecx, [edi + 4]
call fcn.004040d0
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov ecx, edi
call fcn.0040c750
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.0042c039
mov esp, ebp
pop ebp
ret