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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov dword [ebp - 0x67c], ecx
mov eax, dword [ebp - 0x67c]
cmp dword [eax + 4], 0
jne 0x10059b32
xor al, al
jmp 0x10059e21
cmp dword [ebp + 8], 0
jne 0x10059b3f
xor al, al
jmp 0x10059e21
cmp dword [ebp + 0xc], 0
jne 0x10059b4c
xor al, al
jmp 0x10059e21
mov ecx, dword [ebp + 8]
push ecx
call fcn.10058f30
add esp, 4
cmp eax, 2
je 0x10059b64
xor al, al
jmp 0x10059e21
mov byte [ebp - 0x468], 0
push 0x104
push 0
lea edx, [ebp - 0x467]
push edx
call fcn.1003d8e0
add esp, 0xc
mov byte [ebp - 0x248], 0
push 0x104
push 0
lea eax, [ebp - 0x247]
push eax
call fcn.1003d8e0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x10064ae4
push 0x104
lea edx, [ebp - 0x468]
push edx
call fcn.1003d95a
add esp, 0x10
mov byte [ebp - 0x359], 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.1003dafb
add esp, 0xc
test eax, eax
je 0x10059bed
xor al, al
jmp 0x10059e21
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x468]
push ecx
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x248]
push eax
push 0x100614ff
call fcn.1003dc67
add esp, 8
test eax, eax
je 0x10059c46
push 0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x67c]
call fcn.10059330
movzx edx, al
test edx, edx
jne 0x10059c46
xor al, al
jmp 0x10059e21
mov dword [ebp - 0x360], 0xffffffff
mov byte [ebp - 0x358], 0
push 0x103
push 0
lea eax, [ebp - 0x357]
push eax
call fcn.1003d8e0
add esp, 0xc
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x468]
push ecx
push str._s
push 0x103
lea edx, [ebp - 0x358]
push edx
call fcn.1003d95a
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0xffffffff
jne 0x10059cc1
xor al, al
jmp 0x10059e21
lea edx, [ebp - 0x114]
push edx
push 0x10064af0
call fcn.1003dcc0
add esp, 8
test eax, eax
je 0x10059dcb
lea eax, [ebp - 0x114]
push eax
push 0x10064af4
call fcn.1003dcc0
add esp, 8
test eax, eax
je 0x10059dcb
mov ecx, dword [ebp - 0x140]
and ecx, 0x10
je 0x10059d66
mov byte [ebp - 0x570], 0
push 0x103
push 0
lea edx, [ebp - 0x56f]
push edx
call fcn.1003d8e0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x10064af8
push 0x103
lea edx, [ebp - 0x570]
push edx
call fcn.1003d95a
add esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x570]
push ecx
mov ecx, dword [ebp - 0x67c]
call fcn.10059b10
mov byte [ebp - 0x359], al
jmp 0x10059dcb
mov byte [ebp - 0x678], 0
push 0x103
push 0
lea edx, [ebp - 0x677]
push edx
call fcn.1003d8e0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x10064b00
push 0x103
lea edx, [ebp - 0x678]
push edx
call fcn.1003d95a
add esp, 0x14
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x678]
push ecx
mov ecx, dword [ebp - 0x67c]
call fcn.100595e0
mov byte [ebp - 0x359], al
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10059df2
movzx ecx, byte [ebp - 0x359]
test ecx, ecx
jne 0x10059cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x24c], 0x12
je 0x10059e1b
mov byte [ebp - 0x359], 0
mov al, byte [ebp - 0x359]
mov esp, ebp
pop ebp
ret 8