Function at 0x40ef50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458995
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.0040ac20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp esi, 7
jbe 0x40ef9e
test edx, edx
je 0x40f135
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, edx
cmp word [eax], 0
je 0x40f135
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f12f
xorps xmm0, xmm0
lea ecx, [ebp - 0x58]
push 0
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call fcn.004505c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 1
cmova eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0042b880
add esp, 0xc
lea eax, [ebp - 0x58]
push str.version
push eax
call fcn.0042b9b0
test al, al
je 0x40f037
push str.common
lea eax, [ebp - 0x58]
push eax
call fcn.0042b9b0
test al, al
je 0x40f037
push str.default
lea eax, [ebp - 0x58]
push eax
call fcn.0042b9b0
mov byte [ebp - 0x59], 1
test al, al
jne 0x40f03b
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x58]
call fcn.004509f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40f084
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f07a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2b3
push ecx
push edx
call fcn.004256de
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp byte [ebp - 0x59], al
je 0x40f170
test edi, edi
jle 0x40f296
mov eax, dword [0x47b20c]
test eax, eax
jne 0x40f0fe
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 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push ecx
mov ecx, eax
call fcn.0040d4c0
mov eax, dword [ebp - 0x60]
test eax, eax
jle 0x40f296
cmp edi, eax
jle 0x40f262
jmp 0x40f170
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp esi, 7
jbe 0x40f170
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x40f166
mov edx, dword [eax - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2b8
push esi
push edx
call fcn.004256de
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.0040e7d0
add esp, 4
test al, al
je 0x40f266
mov ecx, dword [0x47b20c]
test ecx, ecx
jne 0x40f1fd
push 0x34
call fcn.00425349
mov ecx, eax
add esp, 4
xor eax, eax
xorps xmm0, xmm0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov word [ecx + 0x31], ax
mov byte [ecx + 0x33], al
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
mov byte [ecx], al
movups xmmword [ecx + 0x18], xmm0
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 0xf
mov byte [ecx + 0x18], al
mov byte [ecx + 0x30], al
mov dword [0x47b20c], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x40f232
cmp dword [ebp - 0x2c], 0xf
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00404ea0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40f262
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f258
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2bd
push ecx
push edx
call fcn.004256de
add esp, 8
mov al, 1
jmp 0x40f298
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40f296
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f28c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2bd
push ecx
push edx
call fcn.004256de
add esp, 8
xor al, al
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.00425278
mov esp, ebp
pop ebp
ret
call fcn.004313ba
call fcn.004313ba
call fcn.004313ba
int3