Function at 0x4cecf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d8b7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.004f09c0
mov edi, eax
test edi, edi
je 0x4ceeff
jmp 0x4ced40
cmp dword [edi + 0x30], 8
lea esi, [edi + 0x1c]
jb 0x4ced4b
mov esi, dword [esi]
push esi
push 0x5baf94
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4ceda5
test edi, edi
je 0x4ced69
cmp dword [edi + 0x10], 1
jne 0x4ced69
mov ecx, edi
jmp 0x4ced6b
xor ecx, ecx
push 0
push 4
push dword [ebp - 0x30]
push 0x5885f0
call fcn.004ed6e0
push eax
lea ecx, [ebx + 0x64]
call fcn.004f76b0
cmp dword [edi + 0x14], 0
je 0x4ceef4
push eax
push edi
mov ecx, ebx
call fcn.004cecf0
test al, al
jne 0x4ceef4
jmp 0x4cef01
push esi
push 0x5ae428
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4ceef4
test edi, edi
je 0x4cedc7
cmp dword [edi + 0x10], 1
jne 0x4cedc7
mov ecx, edi
jmp 0x4cedc9
xor ecx, ecx
push 0x5885f0
call fcn.004ed6e0
mov esi, eax
mov ecx, ebx
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.004cf090
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
jae 0x4cedfe
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push 0x18
sbb eax, eax
add eax, 6
mov dword [ebp - 0x3c], eax
call fcn.0052bd3f
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4cee49
xor eax, eax
mov dword [ebx + 0x14], 7
push 0xffffffffffffffff
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov word [ebx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00406ac0
jmp 0x4cee4b
xor ebx, ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
add esi, 0xe8
mov dword [ebp - 0x2c], ebx
mov ecx, dword [esi + 4]
cmp eax, ecx
jae 0x4cee94
mov edx, dword [esi]
cmp edx, eax
ja 0x4cee94
sub eax, edx
sar eax, 2
mov dword [ebp - 0x38], eax
cmp ecx, dword [esi + 8]
jne 0x4cee81
push 1
mov ecx, esi
call fcn.00514c30
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x38]
test edx, edx
je 0x4ceeab
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
jmp 0x4ceeab
cmp ecx, dword [esi + 8]
jne 0x4ceea2
push 1
mov ecx, esi
call fcn.00514c30
mov eax, dword [esi + 4]
test eax, eax
je 0x4ceeab
mov dword [eax], ebx
add dword [esi + 4], 4
push ebx
push dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x40]
lea ecx, [ebx + 0x64]
call fcn.004f76b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4ceee0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov edi, dword [edi + 0x38]
test edi, edi
jne 0x4ced40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 8