Function at 0x40f450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c43bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x6b0
call fcn.0049caff
add esp, 4
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40f49e
mov ecx, dword [ebp + 8]
add ecx, 0x18
mov ebx, eax
call fcn.0040cda0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
mov dword [edi + 0x698], ecx
push 0x42
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx + 0xc4]
push esi
mov ecx, edi
call eax
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
lea ebx, [esi + 8]
jle 0x40f4e2
mov ecx, dword [eax - 0xc]
push ecx
push ebx
call fcn.00402820
mov ecx, dword [edi + 0x4ec]
mov edx, dword [ecx]
mov eax, dword [ebx]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40f50d
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x40f5f4
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x40f5f4
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
add esi, 0x14
mov word [ecx + eax*2], dx
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40f538
mov eax, dword [eax - 0xc]
push eax
push esi
call fcn.00402820
mov ebx, dword [esi]
push edi
call fcn.0040d1d0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40f55b
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x40f5f4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40f5f4
mov ebx, dword [ebp + 0xc]
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f5d0
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40f597
mov eax, dword [eax - 0xc]
push eax
push esi
call fcn.00402820
mov eax, dword [esi]
mov ebx, dword [edi + 0x4e8]
call fcn.0045b080
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40f5bb
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x40f5f4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40f5f4
mov ebx, dword [ebp + 0xc]
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x24]
call fcn.0040d520
mov ebx, dword [ebx + 0x28]
mov dword [edi + 0x69c], ebx
cmp ebx, 2
je 0x40f5fe
cmp ebx, 3
je 0x40f5fe
cmp ebx, 5
je 0x40f5fe
push 1
jmp 0x40f612
push 0x80070057
call fcn.00401000
mov ecx, dword [edi + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x134]
push 0
call edx
push 0
mov ecx, dword [edi + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
call edx
mov ecx, edi
call fcn.0040d6b0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x284]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0x10]
add ecx, 0x4a0
push edi
call edx
mov eax, dword [esi + 0x298]
cmp byte [eax + 0x958], 0
je 0x40f661
mov edx, dword [edi]
mov eax, dword [edx + 0xcc]
push 0
mov ecx, edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8