Function at 0x607d90
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dbe49
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
mov eax, 1
mov dword [ebp - 0x4c], eax
call fcn.00607c50
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x607e6f
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x607e34
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004271d0
cmp dword [ebp - 0x18], 8
mov eax, 3
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x45], 1
test eax, eax
jne 0x607e73
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x4c]
test al, 2
je 0x607e88
and eax, 0xfffffffd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.00427170
cmp byte [ebp - 0x45], 0
je 0x607f38
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.005cd700
add esp, 4
test al, al
je 0x607f2c
cmp dword [ebp - 0x1c], 0x26
jb 0x607f2c
xor eax, eax
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x64]
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x26
push eax
mov dword [ebp - 0x50], 7
call fcn.004271d0
or dword [ebp - 0x4c], 4
lea eax, [ebp - 0x64]
cmp esi, eax
je 0x607f24
mov ecx, esi
call fcn.00427170
movups xmm0, xmmword [ebp - 0x64]
xor eax, eax
mov word [ebp - 0x64], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
lea ecx, [ebp - 0x64]
call fcn.00427170
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00427170
cmp dword [esi + 0x10], 0
jne 0x608000
mov ecx, esi
call fcn.005cf280
test al, al
jne 0x607f5b
push 0x26
push str.WDEFAULT_D7CA_4F31_B4C0_15DB86C98250
mov ecx, esi
call fcn.004271d0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x607f65
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x607f80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.004271d0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x607fc1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004271d0
push 1
push 0
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.005cd3f0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00427170
lea ecx, [ebp - 0x64]
call fcn.00427170
lea ecx, [ebp - 0x44]
call fcn.00427170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret