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

Disassembly:
sub esp, 0x458
push ebp
mov ebp, dword [esp + 0x460]
test ebp, ebp
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x5e474a
mov edi, 0x6f7896
mov esi, ebp
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5e474a
mov esi, dword [esp + 0x46c]
test esi, esi
je 0x5e474a
mov edi, 0x6f7896
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5e474a
push 0x104
lea eax, [esp + 0x120]
push ebp
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
lea eax, [esp + 0x128]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e44e6
sub eax, edx
mov cl, byte [esp + eax + 0x11b]
cmp cl, 0x5c
je 0x5e4510
cmp cl, 0x2f
je 0x5e4510
mov byte [esp + eax + 0x11c], 0x5c
mov byte [esp + eax + 0x11d], 0
lea edx, [esp + 0x220]
mov eax, ebp
sub edx, ebp
jmp 0x5e4520
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5e4520
lea eax, [esp + 0x220]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e4534
sub eax, edx
mov cl, byte [esp + eax + 0x21f]
cmp cl, 0x5c
je 0x5e455e
cmp cl, 0x2f
je 0x5e455e
mov byte [esp + eax + 0x220], 0x5c
mov byte [esp + eax + 0x221], 0
lea edi, [esp + 0x220]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5e4566
mov cx, word [0x70b1b0]
mov word [edi], cx
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x324]
lea edx, [esp + 0x324]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x5e473a
xor eax, eax
jmp 0x5e45c0
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x5e45c0
lea eax, [esp + 0x350]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e45e0
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5e45f0
mov ebp, dword [esp + 0x474]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
mov ebx, dword [esp + 0x474]
rep movsb byte es:[edi], byte [esi]
jmp 0x5e4620
xor eax, eax
mov cl, byte [esp + eax + 0x120]
mov byte [esp + eax + 0x1c], cl
inc eax
test cl, cl
jne 0x5e4622
lea eax, [esp + 0x354]
mov edx, eax
jmp 0x5e4640
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e4640
lea edi, [esp + 0x1c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5e4650
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x5e46f4
mov edi, 0x6f7894
lea esi, [esp + 0x354]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5e4713
mov edi, 0x712b00
lea esi, [esp + 0x354]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5e4713
test bl, bl
je 0x5e4713
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5e46b2
mov cx, word [0x70e1b4]
lea edx, [esp + 0x1c]
push edx
push str.____Recurse_directory__s_n
mov word [edi], cx
call fcn.005cb1b0
mov eax, dword [esp + 0x478]
add esp, 8
push ebp
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.005e4470
add dword [esp + 0x10], eax
jmp 0x5e4713
mov edx, dword [esp + 0x470]
mov ecx, dword [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x24]
push eax
call fcn.005e42e0
test al, al
je 0x5e4713
inc dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x328]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5e4620
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x458
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x458
ret 0x10