Function at 0x40f2d0
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.0040b1e0
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp esi, 7
jbe 0x40f32b
test edx, edx
je 0x40f563
cmp esi, 7
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp word [eax], 0
je 0x40f563
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 0x40f55d
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40f392
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f388
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5bb
push ecx
push edx
call fcn.004256de
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0040bab0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp edx, 7
jbe 0x40f3ad
test ecx, ecx
je 0x40f533
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, ecx
cmp word [eax], 0
je 0x40f533
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, ecx
push eax
call esi
test eax, eax
je 0x40f52d
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40f40e
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f404
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b6
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 0x40f47b
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.0040a490
test eax, eax
jg 0x40f4b6
mov edx, 3
call fcn.0040a490
mov dword [ebp - 0x30], eax
test eax, eax
jg 0x40f4b6
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0
call fcn.0040d4c0
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x40f529
cmp edi, eax
jle 0x40f529
cmp dword [0x47b20c], 0
jne 0x40f50f
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.0040a360
add esp, 4
mov ecx, edi
push 3
call fcn.0040a360
add esp, 4
jmp 0x40f593
xor al, al
jmp 0x40f598
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp edx, 7
jbe 0x40f593
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f559
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5b6
push edx
push ecx
jmp 0x40f58b
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp esi, 7
jbe 0x40f593
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x40f589
mov edx, dword [eax - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5bb
push esi
push edx
call fcn.004256de
add esp, 8
call fcn.00408c30
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