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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push edi
mov eax, dword [0x4543e4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
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.00404180
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40d4b9
push eax
call fcn.0042e4d8
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, 0x456d68
mov dword [esp + 0xb4], 1
call fcn.00413ac0
mov edx, dword [esp + 0x68]
mov edi, 8
cmp dword [esp + 0x7c], edi
jae 0x40d4fe
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.00405820
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40d526
mov edx, dword [esp + 0x68]
push edx
call fcn.0042e4d8
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, 0x456d68
mov dword [esp + 0xb4], 2
call fcn.00413ac0
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x7c], edi
jae 0x40d566
lea edx, [esp + 0x68]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.00405820
add esp, 0x10
cmp dword [esp + 0x7c], edi
jb 0x40d58e
mov edx, dword [esp + 0x68]
push edx
call fcn.0042e4d8
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 [0x456d48]
call fcn.0040a090
test al, al
jne 0x40d6d5
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], eax
mov ecx, 0x2067
mov edx, 0x456d68
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.00413ac0
cmp dword [esp + 0x60], edi
jb 0x40d644
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
jmp 0x40d64c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x84]
push ecx
push str.8193_8320
mov ecx, 0x456d68
mov dword [esp + 0x30], 0x7f02
call fcn.00413f90
cmp dword [esp + 0x98], edi
jb 0x40d681
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
jmp 0x40d68c
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 4
cmp dword [esp + 0x28], ebx
je 0x40d6a2
mov dword [esp + 0x24], 0x84
mov cx, word [0x456d6a]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x40d6be
cmp eax, 0xd
jne 0x40d6c6
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 0x40d6ee
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042e4d8
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 0x40d728
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042e4d8
add esp, 4
push ebx
push ebx
push 0x2067
push ebx
mov edx, str.8180_8325
mov ecx, 2
call fcn.00405820
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, 0x456d68
mov dword [esp + 0xb4], 5
call fcn.00413ac0
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40d782
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
mov ecx, 2
call fcn.00405820
add esp, 0x10
cmp dword [esp + 0x60], edi
jb 0x40d7aa
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042e4d8
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, 0x456d68
mov dword [esp + 0xb4], 6
call fcn.00413ac0
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x40d7ea
lea edx, [esp + 0x4c]
push ebx
push ebx
push 0x2067
push ebx
xor ecx, ecx
call fcn.00405820
add esp, 0x10
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x60], edi
jb 0x40d81a
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042e4d8
add esp, 4
push 0x4483f8
mov ebx, str.IIF_ACCEPTED
lea ecx, [esi + 8]
call fcn.00415d90
push str.INSTALL
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 8]
mov dword [esi + 4], 9
call fcn.00415d90
mov ecx, esi
call fcn.0040d950
push str.UPDATE
lea ecx, [esi + 8]
mov dword [esi + 4], 0xa
call fcn.00415d90
mov ecx, esi
call fcn.0040d950
push str.REPAIR
lea ecx, [esi + 8]
mov dword [esi + 4], 0xc
call fcn.00415d90
mov ecx, esi
call fcn.0040d950
push str.MODIFY
lea ecx, [esi + 8]
mov dword [esi + 4], 0xb
call fcn.00415d90
mov ecx, esi
call fcn.0040d950
push 0xa
push 8
lea ecx, [esp + 0x8c]
push ecx
push 0xbc2
call fcn.0042f5d8
add esp, 0x10
lea edx, [esp + 0x84]
push edx
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 8]
call fcn.00415d90
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
push str.UNINSTALL
mov ebx, str.IIF_SETUPMODE
lea ecx, [esi + 8]
mov dword [esi + 4], 0xd
call fcn.00415d90
mov ecx, esi
call fcn.0040d950
push 0xa
push 8
lea eax, [esp + 0x70]
push eax
push 5
call fcn.0042f5d8
add esp, 0x10
lea ecx, [esp + 0x68]
push ecx
mov ebx, str.IIF_EXITCODE
lea ecx, [esi + 8]
call fcn.00415d90
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov ecx, esi
call fcn.0040d950
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.0042e4c9
mov esp, ebp
pop ebp
ret