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

Disassembly:
push 0xffffffffffffffff
push 0x480de1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x980
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x20], ebp
call fcn.00441cf0
test eax, eax
je 0x407f05
push 0
lea eax, [esp + 0x894]
push str.CInstall_::_ReviewInstallCompletionStatus_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 + 0x690]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x690]
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 + 0x890]
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 + 0x690]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [0x4a6844]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x998], ebx
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
push 0x403560
push 0x403540
push 5
lea ecx, [esp + 0x4c]
push 8
push ecx
mov byte [esp + 0x9ac], 6
call fcn.00466040
mov eax, dword [0x4a6844]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov ebp, dword [ebp + 0x42c]
mov dword [esp + 0x998], 7
cmp ebp, ebx
je 0x4080ed
mov esi, ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebp]
add esi, 8
push esi
lea ecx, [esp + 0x28]
call fcn.00475f95
lea edx, [esi + 4]
lea ecx, [esp + 0x28]
push edx
call fcn.00475f95
lea eax, [esi + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.00475f95
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x34]
call fcn.00475f95
lea edx, [esi + 0x10]
lea ecx, [esp + 0x34]
push edx
call fcn.00475f95
lea eax, [esi + 0x14]
lea ecx, [esp + 0x38]
push eax
call fcn.00475f95
lea ecx, [esi + 0x18]
push ecx
lea ecx, [esp + 0x40]
call fcn.00475f95
mov eax, esi
lea edx, [esp + 0x24]
sub eax, edx
lea ebx, [esi + 0x1c]
lea edi, [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 5
push ebx
lea ecx, [edi - 4]
call fcn.00475f95
mov eax, dword [esp + 0x18]
mov ecx, edi
add eax, edi
push eax
call fcn.00475f95
mov eax, dword [esp + 0x14]
add ebx, 8
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x407ffc
lea ecx, [esi + 0x44]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00475f95
lea edx, [esi + 0x48]
lea ecx, [esp + 0x6c]
push edx
call fcn.00475f95
lea eax, [esi + 0x4c]
lea ecx, [esp + 0x70]
push eax
call fcn.00475f95
mov ecx, dword [esi + 0x50]
add esi, 0x54
mov dword [esp + 0x74], ecx
mov ecx, 0x146
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0xe70]
test byte [edx + 0x5c], 0x40
jne 0x408096
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004079f0
test eax, eax
jne 0x408096
mov edx, dword [esi + 0xe70]
test byte [edx + 0x5c], 1
jne 0x408096
mov dword [esp + 0x74], 5
jmp 0x4080b2
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], 1
sub eax, 3
neg eax
sbb eax, eax
and al, 0xfe
add eax, 4
mov dword [esp + 0x74], eax
sub esp, 0x56c
lea edx, [esp + 0x590]
mov ecx, esp
mov dword [esp + 0x584], esp
push edx
call fcn.00408280
mov eax, dword [esp + 0x588]
lea ecx, [esi + 0x428]
push eax
call fcn.0040bb50
test ebp, ebp
jne 0x407f7d
mov ebx, dword [esp + 0x10]
call fcn.00441cf0
test eax, eax
je 0x40818c
push ebx
lea ecx, [esp + 0x794]
push str.CInstall_::_ReviewInstallCompletionStatus_:_bRetVal___d_n
push ecx
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 + 0x590]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x590]
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 + 0x790]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x590]
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 + 0x70]
mov dword [esp + 0x998], 0x11
call fcn.00475ea8
lea ecx, [esp + 0x6c]
mov byte [esp + 0x998], 0x10
call fcn.00475ea8
lea ecx, [esp + 0x68]
mov byte [esp + 0x998], 0xf
call fcn.00475ea8
push 0x403560
push 5
lea ecx, [esp + 0x48]
push 8
push ecx
mov byte [esp + 0x9a8], 0xe
call fcn.00465d50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x998], 0xd
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x998], 0xc
call fcn.00475ea8
lea ecx, [esp + 0x34]
mov byte [esp + 0x998], 0xb
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x998], 0xa
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x998], 9
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x998], 8
call fcn.00475ea8
lea ecx, [esp + 0x24]
mov dword [esp + 0x998], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x990]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98c
ret