Function at 0x4ccef0
Capabilities:
Enumerate files on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc6c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x238c
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
call fcn.004f266a
mov ebx, eax
mov edi, 0xc30c0c
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp - 0x18], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 0x24], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
push ecx
push ebx
call fcn.004c0350
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x4ccf8b
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp esi, dword [ebp - 0x18]
jge 0x4ccfaa
lea eax, [esi + esi*4]
lea eax, [eax + eax*8]
lea ecx, [esi + eax*2]
lea edx, [ebx + ecx*4]
push edx
call fcn.004b3eb0
add esp, 4
inc esi
jmp 0x4ccf8d
xor ebx, ebx
cmp ebx, dword [ebp - 0x18]
jge 0x4cd19b
mov edx, dword [ebp - 0x24]
lea eax, [ebx + ebx*4]
mov esi, str.NO_DISK
lea eax, [eax + eax*8]
lea ecx, [ebx + eax*2]
lea edi, [edx + ecx*4]
lea eax, [edi + 0x9c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4ccff3
test cl, cl
je 0x4ccfef
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4ccff3
add eax, 2
add esi, 2
test cl, cl
jne 0x4ccfcf
xor eax, eax
jmp 0x4ccff8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4cd195
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
setne al
test al, al
je 0x4cd195
lea edx, [ebp - 0x268]
push edx
push 0x50e1d4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cd05d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc ebx
jmp 0x4ccfac
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 0x128], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x128]
push eax
push str._s_s.exe
push edx
call fcn.004f175f
lea eax, [ebp - 0x128]
push eax
call fcn.004ab3c0
add esp, 0x14
cmp eax, 1
jle 0x4cd0de
lea ecx, [ebp - 0x23c]
lea edx, [ebp - 0x20]
push ecx
push edx
call fcn.004fa6c0
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add esp, 4
push eax
mov eax, edi
shl eax, 8
add eax, edx
push 0x50e0ec
push eax
call fcn.004f175f
add esp, 0x10
inc edi
cmp edi, 0x80
mov dword [ebp - 0x14], edi
je 0x4cd19e
jmp 0x4cd0e1
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x268]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4cd18e
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 0x128], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x128]
push eax
push str._s_s.exe
push edx
call fcn.004f175f
lea eax, [ebp - 0x128]
push eax
call fcn.004ab3c0
add esp, 0x14
cmp eax, 1
jle 0x4cd17c
lea ecx, [ebp - 0x23c]
lea edx, [ebp - 0x20]
push ecx
push edx
call fcn.004fa6c0
mov edx, dword [ebp + 8]
add esp, 4
push eax
mov eax, edi
shl eax, 8
add eax, edx
push 0x50e0ec
push eax
call fcn.004f175f
add esp, 0x10
inc edi
cmp edi, 0x80
mov dword [ebp - 0x14], edi
je 0x4cd18e
mov eax, dword [ebp - 0x28]
inc eax
cmp eax, 0x1388
mov dword [ebp - 0x28], eax
jle 0x4cd0e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc ebx
jmp 0x4ccfac
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
push edx
mov dword [ecx], edi
call fcn.004f265f
add esp, 4
jmp 0x4ccf76