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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x481497
push eax
mov eax, 0x1f18
mov dword fs:[0], esp
call fcn.004660e0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00441cf0
test eax, eax
je 0x40a9b5
push 0
lea eax, [esp + 0x61c]
push str.CInstall_::_CleanUpFailedInstall_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x718]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x718]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x618]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x718]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
lea ecx, [esp + 0xa18]
call fcn.0040d740
mov eax, dword [0x4a6844]
mov dword [esp + 0x1f30], 0
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 + 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
mov dword [esp + 0x64], 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
mov dword [esp + 0xc4], eax
push 0x403560
push 0x403540
push 5
lea ecx, [esp + 0xd4]
push 8
push ecx
mov byte [esp + 0x1f44], 8
call fcn.00466040
mov eax, dword [0x4a6844]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x1f34], 9
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x1c]
add eax, 4
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 8
push ecx
lea ecx, [esp + 0x24]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x24]
add edx, 0xc
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x28]
add eax, 0x10
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x30]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x30]
add edx, 0x18
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x34]
add eax, 0x1c
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x20
push ecx
lea ecx, [esp + 0x3c]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x3c]
add edx, 0x24
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x40]
add eax, 0x28
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x2c
push ecx
lea ecx, [esp + 0x48]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x48]
add edx, 0x30
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x4c]
add eax, 0x34
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x38
push ecx
lea ecx, [esp + 0x54]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x54]
add edx, 0x3c
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
mov ebp, dword [ebp + 0x42c]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x64]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x68]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x6c]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x70]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 0x74]
or ch, 0x44
mov dword [esp + 0x8c], eax
test ebp, ebp
mov dword [esp + 0x74], ecx
je 0x40adfa
mov esi, ebp
mov ebp, dword [ebp]
add esi, 8
lea ecx, [esp + 0xac]
push esi
call fcn.00475f95
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0xb4]
call fcn.00475f95
lea edx, [esi + 8]
lea ecx, [esp + 0xb4]
push edx
call fcn.00475f95
lea eax, [esi + 0xc]
lea ecx, [esp + 0xb8]
push eax
call fcn.00475f95
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00475f95
lea edx, [esi + 0x14]
lea ecx, [esp + 0xc0]
push edx
call fcn.00475f95
lea eax, [esi + 0x18]
lea ecx, [esp + 0xc4]
push eax
call fcn.00475f95
mov eax, esi
lea ecx, [esp + 0xac]
sub eax, ecx
lea ebx, [esi + 0x1c]
lea edi, [esp + 0xcc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 5
push ebx
lea ecx, [edi - 4]
call fcn.00475f95
mov edx, dword [esp + 0x14]
mov ecx, edi
add edx, edi
push edx
call fcn.00475f95
mov eax, dword [esp + 0x10]
add ebx, 8
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x40acc7
lea eax, [esi + 0x44]
lea ecx, [esp + 0xf0]
push eax
call fcn.00475f95
lea ecx, [esi + 0x48]
push ecx
lea ecx, [esp + 0xf8]
call fcn.00475f95
lea edx, [esi + 0x4c]
lea ecx, [esp + 0xf8]
push edx
call fcn.00475f95
mov eax, dword [esi + 0x50]
add esi, 0x54
mov ecx, 0x146
lea edi, [esp + 0x100]
mov dword [esp + 0xfc], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0xfc], 5
jne 0x40adf2
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x30]
call fcn.00475f95
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x28]
push edx
call fcn.00475f95
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x24]
push eax
call fcn.00475f95
call fcn.00441cf0
test eax, eax
je 0x40adbc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x624]
push str.csDeviceID___s__csBusType___s__csClassType___s_n
push ecx
call fcn.00465850
add esp, 0x14
lea edx, [esp + 0x618]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
test ebp, ebp
jne 0x40adcb
mov eax, dword [esp + 0x74]
or ah, 0x80
mov dword [esp + 0x74], eax
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x98]
call fcn.0044c620
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0xa1c]
call fcn.00411870
test ebp, ebp
jne 0x40ac31
call fcn.00441cf0
test eax, eax
je 0x40ae9a
push 0
lea edx, [esp + 0x91c]
push str.CInstall_::_CleanUpFailedInstall_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x818]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x818]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x918]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x818]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1f30], 0x13
call fcn.00475ea8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x1f30], 0x12
call fcn.00475ea8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x1f30], 0x11
call fcn.00475ea8
push 0x403560
push 5
lea ecx, [esp + 0xd0]
push 8
push ecx
mov byte [esp + 0x1f40], 0x10
call fcn.00465d50
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1f30], 0xf
call fcn.00475ea8
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1f30], 0xe
call fcn.00475ea8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1f30], 0xd
call fcn.00475ea8
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1f30], 0xc
call fcn.00475ea8
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1f30], 0xb
call fcn.00475ea8
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1f30], 0xa
call fcn.00475ea8
lea ecx, [esp + 0xac]
mov byte [esp + 0x1f30], 1
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f30], 0
call fcn.004064c0
lea ecx, [esp + 0xa18]
mov dword [esp + 0x1f30], 0xffffffff
call fcn.0040daa0
mov ecx, dword [esp + 0x1f28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f24
ret