Function at 0x403770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c84d1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00490580
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.004165a0
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x4037e7
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x1c], edx
je 0x40386c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40380c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x40386c
mov dword [ebx + 0x14], edi
xor eax, eax
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.004165a0
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x403853
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jmp 0x403980
lea ecx, [ebp - 0x48]
call fcn.00477320
mov byte [ebp - 4], 3
push 0x4cdc90
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041d5e0
add esp, 0xc
mov byte [ebp - 4], 4
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.004165a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], 8
jb 0x4038ae
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049ca60
add esp, 4
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x4038d7
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
add esp, 4
push 0xb
push 0x4cdc94
lea edx, [ebp - 0x2c]
xor ecx, ecx
push edx
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
call fcn.00416930
cmp eax, 0xffffffff
je 0x403914
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
xor eax, eax
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.004165a0
jmp 0x403836
call fcn.00414840
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.00478cd0
mov byte [ebp - 4], 5
push 0x4cdc94
push eax
push ebx
call fcn.0041d5e0
add esp, 0xc
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x403953
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x18], 8
jb 0x403974
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret