Function at 0x409ec0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422706
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40a16b
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x40a16b
push str.CreatePCMgrInstallDirShortCut
push 0x42e7e0
call fcn.0040b840
add esp, 8
lea ecx, [ebp - 0x44]
push esi
call fcn.00401ff0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00408f70
push 0x428144
lea ecx, [ebp - 0x44]
call fcn.004092a0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00408f70
push 0x429d50
lea ecx, [ebp - 0x2c]
call fcn.004092a0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x409f8e
xor esi, esi
jmp 0x40a12f
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call edi
test eax, eax
je 0x409faa
mov esi, 1
jmp 0x40a12f
lea ecx, [ebp - 0x270]
call fcn.0040bc50
mov byte [ebp - 4], 2
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x270]
cmovae esi, dword [ebp - 0x44]
call fcn.0040bde0
test eax, eax
js 0x40a122
push esi
lea eax, [ebp - 0x258]
mov dword [ebp - 0x25c], 2
push 0x104
push eax
call fcn.00416168
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x270]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040c030
test eax, eax
js 0x40a122
push 0x429d6c
lea ecx, [ebp - 0x270]
call fcn.0040bf40
test eax, eax
js 0x40a122
push str._showui
lea ecx, [ebp - 0x270]
call fcn.0040be50
test eax, eax
js 0x40a122
mov edx, dword [ebp - 0x264]
xor ecx, ecx
mov dword [ebp - 0x274], ecx
test edx, edx
je 0x40a07b
mov eax, dword [edx]
lea ecx, [ebp - 0x274]
push ecx
push 0x429e64
push edx
call dword [eax]
mov ecx, dword [ebp - 0x274]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40a0b5
mov eax, 0x1f
mov word [ebp - 0x288], ax
lea eax, [ebp - 0x280]
push eax
push 0x429d8c
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
test eax, eax
jns 0x40a0c7
xorps xmm0, xmm0
movups xmmword [ebp - 0x288], xmm0
mov ecx, dword [ebp - 0x274]
xor esi, esi
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40a124
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40a124
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x288]
push edx
push 0x429e74
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x40a0af
mov eax, dword [ebp - 0x274]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x40a0af
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
lea ecx, [ebp - 0x270]
call fcn.0040c120
mov ecx, dword [ebp - 0x274]
xor edx, edx
test eax, eax
setns dl
mov dword [ebp - 0x278], edx
mov esi, edx
jmp 0x40a0b7
xor esi, esi
lea ecx, [ebp - 0x270]
call fcn.0040bd50
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40a141
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00402450
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x40a167
inc ecx
push ecx
push dword [ebp - 0x44]
call fcn.00402450
mov eax, esi
jmp 0x40a16d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret