Function at 0x4cc180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e79c0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x51b08c]
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 edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x58], eax
mov eax, dword [edi]
mov edx, dword [eax]
call fcn.004907a0
test al, al
jne 0x4cc377
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4cc233
mov eax, dword [ebp - 0x4c]
shr eax, 4
and al, 1
je 0x4cc233
cmp word [esi], 0
jne 0x4cc215
xor ecx, ecx
push ecx
push esi
jmp 0x4cc261
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cc220
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4cc261
mov ecx, esi
call fcn.00490500
mov edx, eax
cmp word [edx], 0
jne 0x4cc246
xor ecx, ecx
jmp 0x4cc25f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cc250
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403330
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cc2c5
mov eax, dword [edi + 4]
mov ecx, edi
push dword [eax]
call fcn.004cc3f0
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00403430
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0xb0]
call fcn.004df1d0
mov ecx, edi
call fcn.004c9be0
mov al, byte [ebp + 0xc]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ebp - 0x60], ecx
lea ebx, [ecx + 8]
mov dword [ebp - 0x64], ebx
mov dword [ecx], edi
mov byte [ecx + 4], al
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x4cc302
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409bb0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, dword [edi]
push esi
push edi
call fcn.004cdb10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4cc347
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cc363
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403800
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
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.00499a52
mov esp, ebp
pop ebp
ret 0xc