Function at 0x4cdd0e
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa58], eax
call fcn.004ce8e6
xor ecx, ecx
test eax, eax
je 0x4cdef1
mov eax, dword [ebp - 0xa58]
test eax, eax
je 0x4cdd65
cmp word [eax], cx
je 0x4cdd65
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004c5b7c
pop ecx
pop ecx
jmp 0x4cdd7a
push 0x1000000
lea eax, [ebp - 0x804]
push eax
push esi
call fcn.004c571d
add esp, 0xc
lea eax, [ebp - 0xa54]
push eax
cmp edi, 0xffffffff
jne 0x4cddba
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cddc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4cdf58
cmp eax, 3
je 0x4cdf58
cmp eax, 0x12
jmp 0x4cdf52
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4cdf70
lea eax, [ebp - 0x804]
push eax
lea esi, [ebx + 0x400]
push esi
call fcn.004c5b7c
pop ecx
pop ecx
lea eax, [ebp - 0xa28]
push eax
push esi
call fcn.004c6c8c
pop ecx
push eax
call fcn.004c5b7c
mov esi, 0x1000000
lea eax, [ebx + 0x400]
push esi
push ebx
push eax
call fcn.004c5931
mov ecx, dword [ebp - 0xa38]
xor eax, eax
add eax, dword [ebp - 0xa34]
mov dword [ebx + 0xc00], eax
mov eax, dword [ebp - 0xa54]
adc ecx, 0
mov dword [ebx + 0xc08], eax
lea eax, [ebx + 0xc80]
push esi
push eax
lea eax, [ebp - 0x820]
mov dword [ebx + 0xc04], ecx
push eax
call fcn.004c5931
mov eax, dword [ebp - 0xa50]
lea esi, [ebx + 0xc14]
mov ecx, dword [ebp - 0xa4c]
add esp, 0x20
mov dword [ebx + 0x1080], eax
mov eax, dword [ebp - 0xa48]
mov dword [ebx + 0x1084], ecx
mov ecx, dword [ebp - 0xa44]
mov dword [ebx + 0x1088], eax
mov eax, dword [ebp - 0xa40]
mov dword [ebx + 0x108c], ecx
mov ecx, dword [ebp - 0xa3c]
mov dword [ebx + 0x1090], eax
lea eax, [ebp - 0xa40]
mov dword [ebx + 0x1094], ecx
mov ecx, esi
push eax
call fcn.004ccb8a
lea eax, [ebp - 0xa50]
push eax
lea ecx, [ebx + 0xc38]
call fcn.004ccb8a
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebx + 0xc5c]
call fcn.004ccb8a
mov ecx, esi
call fcn.004ccd4d
lea esi, [ebx + 0x400]
mov dword [ebx + 0xc0c], eax
push esi
call fcn.004c717c
pop ecx
test al, al
je 0x4ce097
xor eax, eax
mov word [esi], ax
jmp 0x4ce097
test esi, esi
je 0x4cdf0a
cmp byte [esi], cl
je 0x4cdf0a
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.00516f80
pop ecx
pop ecx
jmp 0x4cdf24
push 0x1000000
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0xa58]
call fcn.004c5931
add esp, 0xc
lea eax, [ebp - 0x944]
push eax
cmp edi, 0xffffffff
jne 0x4cdf65
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cdf81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4cdf58
cmp eax, 3
je 0x4cdf58
mov al, 1
jmp 0x4cdf5a
xor al, al
mov byte [ebx + 0x109c], al
jmp 0x4ce097
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4cdf81
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x4cdf5a
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00516f80
pop ecx
pop ecx
lea eax, [ebp - 0x918]
push eax
push ebx
call fcn.004c6c23
pop ecx
push eax
call fcn.00516f80
mov esi, 0x1000000
lea eax, [ebx + 0x400]
push esi
push eax
push ebx
call fcn.004c571d
mov ecx, dword [ebp - 0x928]
xor eax, eax
add eax, dword [ebp - 0x924]
mov dword [ebx + 0xc00], eax
mov eax, dword [ebp - 0x944]
adc ecx, 0
mov dword [ebx + 0xc08], eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebx + 0xc80]
mov dword [ebx + 0xc04], ecx
push eax
call fcn.00516f80
mov eax, dword [ebp - 0x940]
lea esi, [ebx + 0xc14]
mov ecx, dword [ebp - 0x93c]
add esp, 0x1c
mov dword [ebx + 0x1080], eax
mov eax, dword [ebp - 0x938]
mov dword [ebx + 0x1084], ecx
mov ecx, dword [ebp - 0x934]
mov dword [ebx + 0x1088], eax
mov eax, dword [ebp - 0x930]
mov dword [ebx + 0x108c], ecx
mov ecx, dword [ebp - 0x92c]
mov dword [ebx + 0x1090], eax
lea eax, [ebp - 0x930]
mov dword [ebx + 0x1094], ecx
mov ecx, esi
push eax
call fcn.004ccb8a
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebx + 0xc38]
call fcn.004ccb8a
lea eax, [ebp - 0x938]
push eax
lea ecx, [ebx + 0xc5c]
call fcn.004ccb8a
mov ecx, esi
call fcn.004ccd4d
push ebx
mov dword [ebx + 0xc0c], eax
call fcn.004c715f
pop ecx
test al, al
je 0x4ce097
xor eax, eax
mov word [ebx + 0x400], ax
mov ecx, dword [ebp - 4]
mov eax, edi
and dword [ebx + 0x1098], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004da623
leave
ret