Function at 0x4cfa00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x634254]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 0x18
mov ebx, esp
mov dword [esp + 0x38], ecx
mov ecx, esi
mov dword [esp + 0x28], esi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
jb 0x4cfa53
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov edx, SysReAllocString
cmp eax, 8
jae 0x4cfa6d
movups xmm0, xmmword [ecx]
mov eax, 7
movups xmmword [ebx], xmm0
jmp 0x4cfaf2
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [esp + 0x2c], eax
inc eax
cmp eax, 0x7fffffff
ja 0x4cff98
add eax, eax
cmp eax, 0x1000
jb 0x4cfab8
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cff98
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4cff2f
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4cfad3
test eax, eax
je 0x4cfad1
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4cff3e
jmp 0x4cfad3
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x2c]
push ecx
call fcn.00570780
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004d7210
mov ebx, eax
add esp, 0x1c
cmp esi, ebx
je 0x4cfb78
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4cfb48
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4cfb3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cff4d
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [ebx]
movups xmmword [esi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x38]
cmp edx, 8
jb 0x4cfbb4
mov ecx, dword [esp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cfbaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cff4d
push edx
push ecx
call fcn.0056d0c8
add esp, 8
sub esp, 0x18
mov dword [esp + 0x30], edi
mov ebx, esp
lea eax, [edi + 0x10]
mov dword [esp + 0x28], eax
mov ecx, edi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
cmp dword [edi + 0x14], 8
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jb 0x4cfbec
mov ecx, dword [edi]
mov dword [esp + 0x30], ecx
cmp eax, 8
jae 0x4cfc01
movups xmm0, xmmword [ecx]
mov eax, 7
movups xmmword [ebx], xmm0
jmp 0x4cfc8b
or eax, 7
mov ecx, SysReAllocString
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [esp + 0x34], eax
inc eax
cmp eax, 0x7fffffff
ja 0x4cff98
add eax, eax
cmp eax, 0x1000
jb 0x4cfc51
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cff98
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4cff52
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4cfc6c
test eax, eax
je 0x4cfc6a
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4cff61
jmp 0x4cfc6c
xor ecx, ecx
mov eax, dword [esp + 0x2c]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x34]
push ecx
call fcn.00570780
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x54]
push eax
call fcn.004d7210
mov ebx, eax
add esp, 0x1c
cmp edi, ebx
je 0x4cfd14
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x4cfce1
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4cfcd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cff70
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [edi + 0x14], 7
mov dword [eax], 0
xor eax, eax
mov word [edi], ax
movups xmm0, xmmword [ebx]
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x50]
cmp edx, 8
jb 0x4cfd50
mov ecx, dword [esp + 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cfd46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cff70
push edx
push ecx
call fcn.0056d0c8
add esp, 8
cmp dword [esi + 0x10], 0
je 0x4cfdfa
cmp dword [esi + 0x14], 8
jb 0x4cfd62
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4cfdfa
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x4cfdfa
cmp dword [ebp + 0x10], 0
jne 0x4cff16
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4cfd90
mov eax, dword [edi]
push eax
call esi
test eax, eax
je 0x4cff16
mov ebx, dword [esp + 0x20]
add ebx, 8
cmp ebx, edi
je 0x4cfdef
cmp dword [edi + 0x14], 8
jb 0x4cfdae
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp eax, ecx
ja 0x4cfe10
mov dword [esp + 0x14], ebx
mov edx, ebx
cmp ecx, 8
jb 0x4cfdd4
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
lea esi, [eax + eax]
mov dword [ebx + 0x10], eax
push esi
push edi
push edx
call fcn.00570d00
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov ebx, dword [esp + 0x20]
mov dword [ebx + 4], 0x50
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x7ffffffe
ja 0x4cff75
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4cfe34
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4cfe6d
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4cfe4f
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4cfe6d
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4cff98
add eax, eax
cmp eax, 0x1000
jb 0x4cfe96
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cff98
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4cff7a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4cfeb3
test eax, eax
je 0x4cfeb1
push eax
call fcn.005a1c68
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4cff89
jmp 0x4cfeb7
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push edi
push eax
call fcn.00570780
mov edi, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [esp + 0x14]
cmp eax, 8
jb 0x4cff0f
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x4cff05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cff4d
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov dword [ebx], edi
jmp 0x4cfdef
mov ecx, dword [esp + 0x54]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret 0xc
push 0x630328
lea eax, [esp + 0x2a]
push eax
call fcn.0057134b
push 0x630328
lea eax, [esp + 0x2b]
push eax
call fcn.0057134b
call fcn.0057b201
push 0x630328
lea eax, [esp + 0x2b]
push eax
call fcn.0057134b
push 0x630328
lea eax, [esp + 0x2a]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.004072dc
push 0x630328
lea eax, [esp + 0x13]
push eax
call fcn.0057134b
push 0x630328
lea eax, [esp + 0x12]
push eax
call fcn.0057134b
call fcn.00407541
int3