Function at 0x4c4050
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x364]
cmp byte [esi], 0
push edi
mov edi, dword [esp + 0x364]
mov dword [esp + 0x10], 0
je 0x4c4096
mov eax, dword [esp + 0x36c]
push eax
push esi
push edi
lea ecx, [esp + 0x264]
push str._s_s_s
push ecx
call fcn.0058c396
add esp, 0x14
jmp 0x4c40b4
mov edx, dword [esp + 0x36c]
push edx
push edi
lea eax, [esp + 0x260]
push str._s_s
push eax
call fcn.0058c396
add esp, 0x10
mov ebx, dword [sym.imp.kernel32.dll_FindFirstFileA]
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x25c]
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4c41a5
jmp 0x4c40e0
cmp byte [esp + 0x144], 0x2e
je 0x4c418e
cmp byte [esi], 0
je 0x4c4109
lea eax, [esp + 0x144]
push eax
push esi
push edi
push str._s_s_s
lea ecx, [esp + 0x24]
push ecx
jmp 0x4c411d
lea edx, [esp + 0x144]
push edx
push esi
push edi
push 0x5ec204
lea eax, [esp + 0x24]
push eax
call fcn.0058c396
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x4c418e
cmp byte [esi], 0
je 0x4c4150
lea edx, [esp + 0x144]
push edx
push esi
push edi
push str._s_s_s
lea eax, [esp + 0x24]
push eax
jmp 0x4c4164
lea ecx, [esp + 0x144]
push ecx
push esi
push edi
push 0x5ec204
lea edx, [esp + 0x24]
push edx
call fcn.0058c396
mov eax, dword [esp + 0x384]
add esp, 0x14
test eax, eax
je 0x4c418e
mov ecx, dword [esp + 0x374]
push ecx
lea edx, [esp + 0x18]
push edx
call eax
add esp, 8
cmp eax, 1
je 0x4c41f8
lea eax, [esp + 0x118]
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x4c40e0
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x360]
test eax, eax
je 0x4c42f8
push esi
push edi
lea ecx, [esp + 0x260]
push str._s_s.
push ecx
call fcn.0058c396
add esp, 0x10
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x25c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c420f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34c
ret
mov ebp, dword [esp + 0x378]
jmp 0x4c4220
cmp byte [esp + 0x144], 0x2e
je 0x4c42da
cmp byte [esi], 0
je 0x4c4249
lea ecx, [esp + 0x144]
push ecx
push esi
push edi
push str._s_s_s
lea edx, [esp + 0x24]
push edx
jmp 0x4c425d
lea eax, [esp + 0x144]
push eax
push esi
push edi
push 0x5ec204
lea ecx, [esp + 0x24]
push ecx
call fcn.0058c396
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test al, 0x10
je 0x4c42da
cmp byte [esi], 0
je 0x4c428e
lea eax, [esp + 0x144]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x20]
push ecx
jmp 0x4c42a1
lea edx, [esp + 0x144]
push edx
push esi
push 0x5ec010
lea eax, [esp + 0x20]
push eax
call fcn.0058c396
mov ecx, dword [esp + 0x384]
mov edx, dword [esp + 0x380]
mov eax, dword [esp + 0x37c]
add esp, 0x10
push ebp
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push 1
call fcn.004c4050
add esp, 0x1c
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4c42f1
lea edx, [esp + 0x118]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x4c4220
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret