Function at 0x486f85
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 0x358], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00409000
lea eax, [ebp - 0x20c]
push eax
call sub.ntdll.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x20c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x486ff6
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
push 0x5376d0
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409000
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x48722b
mov dword [ebp - 0x35c], 0
lea ecx, [ebp - 0x328]
push ecx
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.00409000
mov eax, dword [ebp - 0x354]
and eax, 0x10
test eax, eax
je 0x4870d8
push 0x5376d4
lea ecx, [ebp - 0x328]
push ecx
call fcn.00402980
add esp, 8
test eax, eax
je 0x4870d3
push 0x5376d8
lea edx, [ebp - 0x328]
push edx
call fcn.00402980
add esp, 8
test eax, eax
je 0x4870d3
cmp dword [ebp + 0x14], 0
je 0x4870d3
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x434], 0
jne 0x4870d3
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x36c]
call fcn.00486f85
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x4870d3
jmp 0x48721e
jmp 0x4871f3
cmp dword [ebp - 0x338], 0
jne 0x4871f3
cmp dword [ebp - 0x334], 0x3200000
ja 0x4871f3
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0x434], 0
jne 0x4871f3
mov eax, dword [ebp - 0x35c]
xor edx, edx
mov ecx, 5
div ecx
mov eax, dword [ebp - 0x35c]
add eax, 1
mov dword [ebp - 0x35c], eax
test edx, edx
jne 0x487145
lea ecx, [ebp - 0x20c]
push ecx
push 0x5376dc
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040ba78
add esp, 0xc
mov dword [ebp - 0x360], 0
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0042e1f1
add esp, 8
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x360], 0
je 0x487192
push 0x66
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x36c]
call fcn.00487237
jmp 0x4871f3
cmp dword [ebp - 0x364], 0
jne 0x48719d
jmp 0x4871f3
lea edx, [ebp - 0x20c]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x4871f3
lea eax, [ebp - 0x20c]
push eax
call fcn.0042dc9d
add esp, 4
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 1
je 0x4871f3
cmp dword [ebp - 0x368], 2
je 0x4871f3
push 0x66
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x36c]
call fcn.00487237
mov ecx, dword [ebp - 0x210]
cmp dword [ecx + 0x434], 0
jne 0x48721e
lea edx, [ebp - 0x354]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48703a
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x358]
mov esp, ebp
pop ebp
ret 0x10