Function at 0x40f770
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 0x4589c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0040aef0
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp esi, 7
jbe 0x40f7cb
test edx, edx
je 0x40fa0a
cmp esi, 7
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp word [eax], 0
je 0x40fa0a
cmp esi, 7
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmova eax, edx
push eax
call esi
test eax, eax
je 0x40fa04
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40f832
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f828
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa62
push ecx
push edx
call fcn.004256de
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0040b7c0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp edx, 7
jbe 0x40f84d
test ecx, ecx
je 0x40f9da
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, ecx
cmp word [eax], 0
je 0x40f9da
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, ecx
push eax
call esi
test eax, eax
je 0x40f9d4
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40f8ae
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f8a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa5d
push ecx
push edx
call fcn.004256de
add esp, 8
mov esi, dword [0x47b20c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test esi, esi
jne 0x40f91b
push 0x34
call fcn.00425349
mov esi, eax
add esp, 4
xor eax, eax
xorps xmm0, xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov word [esi + 0x31], ax
mov byte [esi + 0x33], al
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], al
mov byte [esi + 0x30], al
mov dword [0x47b20c], esi
mov edx, 1
call fcn.0040a990
test eax, eax
jg 0x40f956
mov edx, 3
call fcn.0040a990
mov dword [ebp - 0x30], eax
test eax, eax
jg 0x40f956
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0
push 0
push 0
push 0
push 0
call fcn.0040d4c0
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x40f9d0
cmp edi, eax
jg 0x40f961
mov al, 1
jmp 0x40fa3f
cmp dword [0x47b20c], 0
jne 0x40f9b6
push 0x34
call fcn.00425349
add esp, 4
xorps xmm0, xmm0
xor ecx, ecx
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov word [eax + 0x31], cx
mov byte [eax + 0x33], cl
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0xf
mov byte [eax], cl
movups xmmword [eax + 0x18], xmm0
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 0xf
mov byte [eax + 0x18], cl
mov byte [eax + 0x30], cl
mov dword [0x47b20c], eax
push 1
mov ecx, edi
call fcn.0040a860
add esp, 4
mov ecx, edi
push 3
call fcn.0040a860
add esp, 4
jmp 0x40fa3a
xor al, al
jmp 0x40fa3f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp edx, 7
jbe 0x40fa3a
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa00
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa5d
push edx
push ecx
jmp 0x40fa32
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp esi, 7
jbe 0x40fa3a
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x40fa30
mov edx, dword [eax - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa62
push esi
push edx
call fcn.004256de
add esp, 8
call fcn.00408630
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.00425278
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004313ba
call fcn.004313ba
int3