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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a5dce
push eax
mov eax, 0x226c
mov dword fs:[0], esp
call fcn.0049d320
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x34], ebp
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x409447
mov ebx, dword [esp + 0x228c]
mov eax, dword [0x4bc080]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x409084
mov ecx, ebx
shr ecx, 0x10
jne 0x409052
mov eax, ebx
lea ecx, [esp + 0x10]
and eax, 0xffff
push eax
call fcn.00403800
jmp 0x409084
push ebx
call dword [0x4ab204]
mov esi, eax
test esi, esi
je 0x409084
push esi
lea ecx, [esp + 0x14]
call fcn.00403bd0
test eax, eax
je 0x409084
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push ebx
push eax
push ecx
call fcn.00403330
add esp, 0x10
mov edx, dword [0x4bc080]
mov dword [esp + 0x2284], 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.Q360InstallerProduct__s
push ecx
mov byte [esp + 0x2290], 1
call fcn.004056d0
lea edx, [esp + 0x20]
push edx
call fcn.00404ac0
add esp, 0x10
test eax, eax
je 0x40910d
cmp dword [esp + 0x2290], 2
jne 0x4090da
mov ecx, dword [ebp + 0x1c]
push 0
call fcn.00432f80
mov eax, dword [esp + 0x14]
mov edx, dword [0x4bc084]
mov esi, dword [0x4ab208]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40918f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40918f
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
jmp 0x409187
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x27c]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x280]
push 0x1000
push ecx
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00408500
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40915e
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40915e
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40915e
mov edx, dword [esp + 0x30]
cmp edx, 0x80
jg 0x4091c9
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4bc084]
mov esi, dword [0x4ab208]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40918f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40918f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004985d0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4bc084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409447
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x409447
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004985d0
add esp, 4
xor eax, eax
jmp 0x4096ae
mov ebp, dword [0x4ab118]
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
push str.TargetDir
push esi
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4bc080]
mov si, word [eax]
mov dword [esp + 0x18], ecx
neg si
sbb esi, esi
and esi, eax
test esi, esi
je 0x409246
mov edx, esi
shr edx, 0x10
jne 0x409214
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.00403800
jmp 0x409246
push esi
call dword [0x4ab204]
mov edi, eax
test edi, edi
je 0x409246
push edi
lea ecx, [esp + 0x1c]
call fcn.00403bd0
test eax, eax
je 0x409246
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00403330
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2284], 2
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x4bd0b0
push ecx
mov byte [esp + 0x229c], 3
call ebp
mov eax, dword [esp + 0x2c]
cmp word [eax], 0
jne 0x40928f
xor esi, esi
xor eax, eax
jmp 0x40929c
test eax, eax
mov esi, eax
je 0x40929c
push eax
call dword [0x4ab204]
push esi
push eax
lea ecx, [esp + 0x5c]
call fcn.00403c30
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00409b60
mov eax, dword [esp + 0xb8]
test eax, eax
jne 0x40944e
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00432650
mov edx, dword [eax]
lea eax, [esp + 0x64]
push edx
push str._s_s
push eax
call fcn.004056d0
mov edi, dword [esp + 0x22a0]
add esp, 0x10
cmp edi, 2
jne 0x40930f
mov ecx, dword [esi + 0x1c]
call fcn.00432f90
test eax, eax
je 0x40930f
mov ecx, dword [esi + 0x1c]
push 0
call fcn.00432f80
push 0
push str.SaveToTemp
lea ecx, [esp + 0x28]
call fcn.004096d0
dec eax
push ebx
neg eax
sbb eax, eax
lea ecx, [esp + 0x40]
inc eax
mov dword [esp + 0xd4], eax
call fcn.00403510
lea ecx, [esp + 0x3c]
push edi
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0040a3b0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040aa10
mov edx, dword [0x4bc080]
mov dword [esp + 0x1c], edx
mov ebp, dword [0x4ab4ac]
mov byte [esp + 0x2284], 0x19
mov esi, 1
push esi
lea eax, [esp + 0xf0]
push str.Description_d
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408b60
push eax
lea ecx, [esp + 0x20]
call fcn.00403510
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
je 0x4093ce
mov ecx, dword [esp + 0xa0]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0xa0]
call fcn.0040b350
inc esi
cmp esi, 0x64
jl 0x409376
mov edx, dword [esp + 0x5c]
mov eax, dword [edx - 8]
test eax, eax
jne 0x409623
mov eax, dword [esp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409623
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2284], 3
call fcn.00403ba0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2284], 2
call fcn.004096f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2284], 1
call fcn.00403ba0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2284], 0
call fcn.00403ba0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2284], 0xffffffff
call fcn.00403ba0
xor eax, eax
jmp 0x4096ae
mov edi, dword [esp + 0x2290]
cmp edi, 2
je 0x409305
test edi, edi
jne 0x40930f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ecx
push edx
call dword [0x4ab47c]
add esp, 8
test eax, eax
setge al
and eax, 0xff
mov dword [esp + 0x38], eax
je 0x40930f
lea ecx, [esp + 0xe8]
mov byte [esp + 0x2284], 0x18
call fcn.00403ba0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x2284], 0x17
call fcn.00403ba0
lea ecx, [esp + 0x98]
mov byte [esp + 0x2284], 0x16
call fcn.0040b2b0
lea ecx, [esp + 0x94]
mov byte [esp + 0x2284], 0x15
call fcn.00403ba0
lea ecx, [esp + 0x90]
mov byte [esp + 0x2284], 0x14
call fcn.00403ba0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2284], 0x13
call fcn.00403ba0
lea ecx, [esp + 0x88]
mov byte [esp + 0x2284], 0x12
call fcn.00403ba0
lea ecx, [esp + 0x84]
mov byte [esp + 0x2284], 0x11
call fcn.00403ba0
lea ecx, [esp + 0x80]
mov byte [esp + 0x2284], 0x10
call fcn.00403ba0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2284], 0xf
call fcn.00403ba0
lea ecx, [esp + 0x78]
mov byte [esp + 0x2284], 0xe
call fcn.00403ba0
lea ecx, [esp + 0x74]
mov byte [esp + 0x2284], 0xd
call fcn.00403ba0
lea ecx, [esp + 0x70]
mov byte [esp + 0x2284], 0xc
call fcn.00403ba0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2284], 0xb
call fcn.00403ba0
lea ecx, [esp + 0x68]
mov byte [esp + 0x2284], 0xa
call fcn.00403ba0
lea ecx, [esp + 0x60]
mov byte [esp + 0x2284], 9
call fcn.00403ba0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2284], 8
call fcn.00403ba0
lea ecx, [esp + 0x58]
mov byte [esp + 0x2284], 7
call fcn.00403ba0
lea ecx, [esp + 0x54]
mov byte [esp + 0x2284], 6
call fcn.00403ba0
lea ecx, [esp + 0x50]
mov byte [esp + 0x2284], 5
call fcn.00403ba0
lea ecx, [esp + 0x40]
mov byte [esp + 0x2284], 4
call fcn.00430ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2284], 2
call fcn.00403ba0
jmp 0x409411
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xec]
call fcn.00405600
mov edx, dword [esp + 0x34]
push edi
mov ecx, dword [edx + 0x1c]
call fcn.00432630
mov ecx, dword [eax + 8]
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, eax
call fcn.0040b5a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2284], 3
call fcn.00403ba0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2284], 2
call fcn.004096f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2284], 1
call fcn.00403ba0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2284], 0
call fcn.00403ba0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2284], 0xffffffff
call fcn.00403ba0
mov eax, 1
mov ecx, dword [esp + 0x227c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2278
ret 8