Function at 0x407320
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41c7cc
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [0x424614]
mov ebx, dword [esp + 0x29c]
mov ebp, dword [esp + 0x298]
mov edi, ecx
mov esi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x290], 0
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
test esi, esi
mov byte [esp + 0x290], 1
mov dword [ebx], 0
je 0x407523
test ebp, ebp
mov eax, dword [edi + 0x28]
je 0x407523
push ebp
push eax
mov ebx, esi
call fcn.00407790
test eax, eax
je 0x407523
push 0x25c
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040d460
add esp, 0xc
lea ecx, [ebp + 0x158]
push ecx
lea edx, [esp + 0x20]
lea ecx, [edi + 0x10]
push edx
call fcn.00408720
add esp, 8
lea ebx, [esp + 0x18]
mov byte [esp + 0x290], 2
call fcn.004085e0
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40743e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407443
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
call fcn.00409df0
lea edx, [esp + 0x1c]
push esi
lea ecx, [edi + 0x14]
push edx
call fcn.00408720
add esp, 8
lea ebx, [esp + 0x14]
mov byte [esp + 0x290], 3
call fcn.004085e0
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4074c6
xor ecx, ecx
lea eax, [esp + 0x14]
call fcn.004095e0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea edi, [esp + 0x24]
mov ecx, esi
jne 0x4074db
mov ecx, dword [esp + 0x18]
call fcn.00406770
lea ecx, [ebp + 0x124]
lea eax, [esp + 0x148]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407510
test dl, dl
je 0x40750c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407510
add eax, 2
add ecx, 2
test dl, dl
jne 0x4074f0
xor eax, eax
jmp 0x407515
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407523
mov ecx, dword [esp + 0x20]
mov dword [ecx], 1
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40754b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0040af86
add esp, 0x280
ret 8