Function at 0x4015f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606a03
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x278], 0
push 0xfc
push 0
lea eax, [ebp - 0x16c]
push eax
call fcn.0050e710
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
call fcn.004029e0
mov ecx, eax
call fcn.0049e4c7
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
push edx
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00404d50
lea ecx, [ebp - 0x28]
call fcn.00404fc0
push 0x685920
lea eax, [ebp - 0x40]
push eax
call fcn.004a1b6f
add esp, 8
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28c]
push edx
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00402ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404fc0
push 0x68594c
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00404c50
push 0x685950
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00404c50
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00404670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40183c
mov ecx, dword [ebp - 0x274]
add ecx, 8
call fcn.00404670
push eax
call fcn.004a4bad
add esp, 4
call fcn.004a9f50
mov dword [ebp - 0x290], eax
call fcn.004a9f50
mov dword [ebp - 0x294], eax
call fcn.004aa4b0
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x290]
push eax
push 0x68596c
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.004aa5d0
add esp, 0xc
mov edx, dword [ebp - 0x294]
push edx
push 0x685974
mov eax, dword [ebp - 0x27c]
push eax
call fcn.004aa5d0
add esp, 0xc
call fcn.004a9f50
mov dword [ebp - 0x298], eax
call fcn.004aa4b0
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x27c]
push ecx
push 0x68597c
mov edx, dword [ebp - 0x280]
push edx
call fcn.004aa5d0
add esp, 0xc
mov eax, dword [ebp - 0x298]
push eax
push 0x685988
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.004aa5d0
add esp, 0xc
push 0x20
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c4], esp
mov edx, dword [ebp - 0x274]
add edx, 8
push edx
call fcn.00404530
lea eax, [ebp - 0x58]
push eax
call fcn.004a5348
add esp, 0x20
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
mov ecx, dword [ebp - 0x2a0]
call fcn.004045e0
push eax
mov edx, dword [ebp - 0x280]
push edx
call fcn.004ab3d0
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.004043e0
lea eax, [ebp - 0x16c]
push eax
push 0x20
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c8], esp
mov edx, dword [ebp - 0x274]
add edx, 8
push edx
call fcn.00404530
lea eax, [ebp - 0x70]
push eax
call fcn.004a5348
add esp, 0x20
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [ebp - 0x2a8]
call fcn.004045e0
push eax
call fcn.004ab780
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x2ac]
mov dword [edx + 0x20], eax
lea ecx, [ebp - 0x70]
call fcn.004043e0
mov ecx, dword [ebp - 0x274]
cmp dword [ecx + 0x20], 0
je 0x4018ca
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x4018d1
xor eax, eax
jmp 0x401974
push 0x685990
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004aa510
add esp, 8
mov dword [ebp - 0x278], eax
push 0x68599c
mov eax, dword [ebp - 0x278]
push eax
call fcn.004aa510
add esp, 8
mov dword [ebp - 0x278], eax
push 0xfde9
push 0x20
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.004ab470
add esp, 8
push eax
lea ecx, [ebp - 0x270]
call fcn.00402be0
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2b4]
call fcn.00402b70
push eax
mov ecx, dword [ebp - 0x274]
add ecx, 0x24
call fcn.00404210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.00402b80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6256
mov esp, ebp
pop ebp
ret