Function at 0x406690
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 0x5c65e6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x6540c0]
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, edx
mov edi, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], 0
call fcn.00402580
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004062f0
test al, al
je 0x4068f8
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00405290
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x7c], 1
jbe 0x40675b
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, 0x5c
cmova ecx, dword [ebp - 0x2c]
cmp dx, word [ecx + eax*2 - 2]
je 0x40675b
push edx
lea ecx, [ebp - 0x5c]
call fcn.00409b90
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x406765
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00409e30
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x4067e8
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4067de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406989
push ecx
push edx
call fcn.004392c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 7
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4068be
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x406830
cmp dword [ebp - 0x18], 7
mov ecx, edi
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.00403f90
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40686a
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406860
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698e
push ecx
push edx
call fcn.004392c8
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x4068b8
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698e
push ecx
push edx
call fcn.004392c8
add esp, 8
mov byte [ebp - 0x75], 1
jmp 0x406932
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4068f8
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40698e
push ecx
push edx
call fcn.004392c8
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40692e
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406924
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406993
push ecx
push edx
call fcn.004392c8
add esp, 8
mov byte [ebp - 0x75], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 7
jbe 0x406968
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40695e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406998
push ecx
push edx
call fcn.004392c8
add esp, 8
mov al, byte [ebp - 0x75]
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.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049452a
call fcn.0049452a
call fcn.0049452a
call fcn.0049452a
int3