Function at 0x4d4cf8
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bac
xor eax, eax
push ebp
push 0x4d5085
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bbc
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x158]
push eax
push 0x4d5098
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4d5049
mov eax, dword [0x4eb718]
cmp byte [eax], 2
je 0x4d5049
mov eax, dword [0x4eba00]
mov eax, dword [eax]
call fcn.004809e8
mov ebx, dword [ebp - 0x158]
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.0040496c
sub ebx, 0x65
jae 0x4d502b
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x10]
call fcn.004089f4
mov eax, dword [ebp - 0x2a8]
push eax
lea edx, [ebp - 0x2ac]
mov eax, 0x4d50a4
call fcn.004089f4
mov edx, dword [ebp - 0x2ac]
pop eax
call fcn.00404b08
je 0x4d502b
lea edx, [ebp - 0x2b0]
mov eax, dword [ebp - 0x10]
call fcn.004089f4
mov eax, dword [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x2b4]
mov eax, 0x4d50b4
call fcn.004089f4
mov edx, dword [ebp - 0x2b4]
pop eax
call fcn.00404b08
je 0x4d502b
mov eax, dword [ebp - 0x10]
mov edx, 0x4d50c8
call fcn.00404b08
je 0x4d502b
mov eax, dword [ebp - 0x10]
mov edx, 0x4d50d4
call fcn.00404b08
je 0x4d502b
push dword [ebp - 4]
push 0x4d50e0
push dword [ebp - 0x10]
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.00404a7c
mov edx, dword [ebp - 0x2b8]
mov ecx, dword [0x4ebc10]
mov ecx, dword [ecx]
mov eax, 0x4d50ec
call fcn.004c9220
test al, al
jne 0x4d502b
mov eax, dword [ebp + 0xc]
call fcn.004975dc
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
mov byte [eax + 0x12], 1
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
mov byte [eax + 0xc], 1
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
xor edx, edx
mov dword [eax + 0xe], edx
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x13
mov edx, 0x4d5100
call fcn.00404750
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x17
mov edx, 0x4d5110
call fcn.00404750
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x1b
mov edx, 0x4d512c
call fcn.00404750
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x1f
mov edx, 0x4d50ec
call fcn.00404750
push dword [ebp - 4]
push 0x4d50e0
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x23
mov edx, 3
call fcn.00404a7c
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x2f
mov edx, dword [ebp - 0x10]
call fcn.00404750
push dword [ebp - 4]
push 0x4d50e0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404a7c
mov eax, dword [ebp - 0x14]
call fcn.004093e8
test al, al
je 0x4d5013
xor eax, eax
push ebp
push 0x4d4ff1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2a4]
call fcn.00402e44
mov edx, 1
lea eax, [ebp - 0x2a4]
call fcn.004032e8
call fcn.004028bc
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
add eax, 0x4b
push eax
lea eax, [ebp - 0x2a4]
call fcn.00403158
call fcn.004028bc
pop edx
mov dword [edx], eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004975f0
mov eax, dword [eax + 0x4b]
mov edx, dword [0x4ebbd0]
add dword [edx], eax
lea eax, [ebp - 0x2a4]
call fcn.00402fb4
call fcn.004028bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5013
mov eax, dword [ebp + 8]
inc dword [eax]
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp + 8]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004c8cf4
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d4d75
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d508c
lea eax, [ebp - 0x2b8]
mov edx, 5
call fcn.00404720
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404720
lea eax, [ebp - 4]
call fcn.004046fc
ret