Function at 0x4c14d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fd138
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7e6410]
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
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004c1e10
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4c1780
add eax, eax
mov dword [ebp - 0x48], eax
add eax, esi
cmp word [eax + 2], 0
je 0x4c1780
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.004bbbb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push esi
movq qword [ebp - 0x30], xmm0
call fcn.004bbbb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jae 0x4c1575
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov word [ecx + eax], dx
mov ecx, dword [ebp - 0x20]
cmp ecx, 6
jbe 0x4c158f
mov eax, dword [ebp - 0x24]
add ecx, 0xfffffffa
lea ecx, [eax + ecx*2]
call fcn.004bb900
test al, al
jne 0x4c1598
push ecx
lea ecx, [ebp - 0x24]
call fcn.004bbe90
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx]
cmp eax, 0x61
jb 0x4c15a8
cmp eax, 0x7a
jbe 0x4c15b2
cmp eax, 0x41
jb 0x4c15f6
cmp eax, 0x5a
ja 0x4c15f6
cmp word [ecx + 2], 0x3a
jne 0x4c15f6
mov edx, dword [ebp - 0x18]
cmp edx, 2
je 0x4c15cd
cmp edx, 3
jne 0x4c15f6
cmp word [ecx + 4], 0x5c
jne 0x4c15f6
mov ecx, edi
call fcn.004c1460
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
xor esi, esi
mov dword [ecx + 4], 0
mov word [eax], si
cmp edx, 2
jne 0x4c1606
lea eax, [ebp - 0x30]
push eax
call fcn.004bbd30
jmp 0x4c1606
push ecx
mov ecx, edi
call fcn.004c14d0
test al, al
je 0x4c1769
and dword [edi + 0x20], 0xfffffbef
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x40], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.004bbc30
mov byte [ebp - 4], 3
push 8
mov dword [ebp - 0x64], 0
call fcn.006b6815
add esp, 4
test eax, eax
je 0x4c16c3
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 3
mov word [eax], cx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x40], 0xffffffff
lea ecx, [ebp - 0x40]
push eax
je 0x4c1680
call fcn.004c13e0
jmp 0x4c1688
push dword [ebp - 0x3c]
call fcn.004c1310
mov esi, dword [ebp - 0x64]
test al, al
je 0x4c170e
mov edx, dword [ebp - 0x24]
mov ecx, esi
call fcn.004bb860
test al, al
jne 0x4c16d5
push esi
mov byte [ebp - 4], 3
call fcn.006b3261
add esp, 4
mov dword [ebp - 0x64], 0
push 8
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x4c1652
push 0x7da8d8
lea eax, [ebp - 0x41]
mov byte [ebp - 0x41], 0
push eax
call fcn.006b4394
mov eax, dword [ebp - 0x60]
cmp eax, 7
jbe 0x4c16ed
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x4c16ed
xor eax, eax
mov dword [ebp - 0x60], ecx
mov word [esi + ecx*2], ax
lea eax, [ebp - 0x64]
push eax
lea ecx, [edi + 0x28]
call fcn.004bbe30
mov eax, dword [ebp - 0x54]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
mov byte [ebp - 0x41], 1
jmp 0x4c172a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
je 0x4c1726
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x41], 0
push esi
call fcn.006b3261
add esp, 4
push dword [ebp - 0x3c]
call fcn.006b3261
mov eax, dword [ebp - 0x40]
add esp, 4
cmp eax, 0xffffffff
je 0x4c174d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x30]
push eax
call fcn.006b3261
add esp, 4
push dword [ebp - 0x24]
call fcn.006b3261
add esp, 4
jmp 0x4c1974
mov eax, dword [ebp - 0x30]
push eax
call fcn.006b3261
add esp, 4
push dword [ebp - 0x24]
call fcn.006b3261
add esp, 4
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 5
xor ecx, ecx
movzx eax, word [esi]
mov dword [ebp - 0x48], ecx
cmp eax, 0x5c
je 0x4c17a0
cmp eax, 0x2f
jne 0x4c17cb
movzx edx, word [esi + 2]
cmp edx, 0x5c
je 0x4c17ae
cmp edx, 0x2f
jne 0x4c17cb
cmp word [esi + 4], 0x3f
jne 0x4c17cb
movzx edx, word [esi + 6]
cmp edx, 0x5c
je 0x4c17c3
cmp edx, 0x2f
jne 0x4c17cb
mov ecx, 4
mov dword [ebp - 0x48], ecx
lea edx, [esi + ecx*2]
movzx ecx, word [edx]
mov dword [ebp - 0x4c], edx
cmp ecx, 0x61
jb 0x4c17de
cmp ecx, 0x7a
jbe 0x4c17e8
cmp ecx, 0x41
jb 0x4c1852
cmp ecx, 0x5a
ja 0x4c1852
cmp word [edx + 2], 0x3a
jne 0x4c1852
movzx ecx, word [edx + 4]
cmp ecx, 0x5c
je 0x4c17fd
cmp ecx, 0x2f
jne 0x4c1852
mov ecx, dword [ebp - 0x48]
cmp word [esi + ecx*2 + 6], 0
jne 0x4c1852
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c1958
test al, 0x10
je 0x4c1958
mov ecx, edi
call fcn.004c1460
push dword [ebp - 0x4c]
lea ecx, [edi + 0x28]
mov dword [edi + 0x20], eax
call fcn.004bbca0
cmp dword [edi + 0x2c], 2
jbe 0x4c189b
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 2
mov word [eax + 4], cx
mov al, 1
jmp 0x4c1977
cmp eax, 0x5c
je 0x4c1860
cmp eax, 0x2f
jne 0x4c1958
cmp word [esi + 2], 0
jne 0x4c18a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
je 0x4c1958
test dl, 0x10
je 0x4c1958
mov ecx, edi
call fcn.004c1460
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 0
mov word [eax], cx
mov dword [edi + 0x20], edx
mov al, 1
jmp 0x4c1977
mov ecx, esi
call fcn.004c1d40
test eax, eax
je 0x4c1958
cmp word [esi + eax*2], 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x48], eax
je 0x4c1958
mov ecx, eax
call fcn.004c1c90
test eax, eax
jns 0x4c1958
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push esi
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.004bbbb0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004c1190
push ecx
lea ecx, [ebp - 0x24]
call fcn.004c1150
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x41], 0
call fcn.004c1280
test al, al
je 0x4c192f
lea eax, [edi + 0x28]
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.004c11d0
test al, al
je 0x4c192b
mov ecx, dword [ebp - 0x4c]
jmp 0x4c19ac
mov byte [ebp - 0x41], 1
mov ecx, esi
call fcn.004c14b0
cmp byte [ebp - 0x41], 0
mov edx, eax
jne 0x4c1994
cmp edx, 0xffffffff
je 0x4c1948
test dl, 0x10
jne 0x4c1994
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
push eax
call fcn.006b3261
add esp, 4
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.004c1280
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x41], al
cmp ecx, 0xffffffff
je 0x4c1977
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x41]
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.006b3266
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.004c1460
cmp edx, 0xffffffff
lea ecx, [edi + 0x28]
mov eax, 0x10
cmovne eax, edx
mov dword [edi + 0x20], eax
push dword [ebp - 0x48]
call fcn.004bbca0
mov eax, dword [ebp - 0x24]
push eax
call fcn.006b3261
add esp, 4
mov al, 1
jmp 0x4c1962