Function at 0x40676f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push 4
lea eax, [ebp - 0x83c]
pop ecx
and dword [eax], 0
add eax, 0x20c
dec ecx
jne 0x406781
and dword [ebp - 4], 0
and word [ebp - 8], 0
push ebx
push esi
push edi
mov esi, 0x4014f8
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
call fcn.004091f0
push dword [ebp + 0xc]
call fcn.004091f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4067ba
push 0x10
pop edi
push dword [ebp + 0x14]
call fcn.004091f0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4067cc
push 0x10
pop ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x83c]
push eax
call fcn.00406996
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406924
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40683b
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40683b
push 0
push dword [ebp + 0xc]
call fcn.0040a45d
test eax, eax
jge 0x40683b
push 4
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
pop edi
mov eax, dword [esi - 0x20c]
sub esi, 0x20c
test eax, eax
je 0x406833
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
jne 0x40681d
jmp 0x406920
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00406fdc
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4068aa
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0040951e
test eax, eax
jne 0x4068a8
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00406fdc
push 4
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
pop edi
mov eax, dword [esi - 0x20c]
sub esi, 0x20c
test eax, eax
je 0x4068a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
jne 0x40688d
jmp 0x406920
mov edi, ebx
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406fdc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040951e
test eax, eax
jne 0x406924
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00406fdc
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0040951e
test eax, eax
je 0x4068fe
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00406fdc
push 4
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
pop edi
mov eax, dword [esi - 0x20c]
sub esi, 0x20c
test eax, eax
je 0x40691d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
jne 0x406907
xor eax, eax
jmp 0x40698f
lea eax, [ebp - 0x83c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00406fdc
or edi, 6
push edi
push dword [ebp + 0xc]
call fcn.004092f1
or ebx, 6
push ebx
push dword [ebp + 0x14]
call fcn.004092f1
cmp dword [ebp - 4], 0
push 1
pop edi
je 0x406963
push edi
push edi
push 0x3e
lea ecx, [ebp - 0xc]
call fcn.00406732
push edi
push 0x3d
call fcn.00407d05
push 4
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
pop ebx
mov eax, dword [esi - 0x20c]
sub esi, 0x20c
test eax, eax
je 0x40698a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec ebx
jne 0x406974
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14