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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x808], 0
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x804], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x820], 0
push 0x140
call fcn.00402666
add esp, 4
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x800]
push ecx
call fcn.00402280
add esp, 8
push 0x4094ec
lea edx, [ebp - 0x800]
push edx
call fcn.00402290
add esp, 8
mov eax, dword [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x800]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0xffffffff
jne 0x401625
jmp 0x401967
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx edx, byte [ebp - 0x808]
test edx, edx
jne 0x4018a4
movsx eax, byte [ebp - 0x808]
test eax, eax
je 0x40164c
jmp 0x4018a4
push 0x4094f0
mov ecx, dword [ebp - 0x81c]
add ecx, 0x2c
push ecx
call fcn.00402590
add esp, 8
test eax, eax
je 0x401856
push 0x4094f4
mov edx, dword [ebp - 0x81c]
add edx, 0x2c
push edx
call fcn.00402590
add esp, 8
test eax, eax
je 0x401856
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
and ecx, 0x10
test ecx, ecx
je 0x40178b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x800]
push eax
call fcn.00402280
add esp, 8
mov ecx, dword [ebp - 0x81c]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x800]
push edx
call fcn.00402290
add esp, 8
push 0x4094f8
lea eax, [ebp - 0x800]
push eax
call fcn.00402290
add esp, 8
push 0x10
call fcn.00402666
add esp, 4
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x401786
lea ecx, [ebp - 0x800]
push ecx
call fcn.00402200
add esp, 4
add eax, 5
push eax
call fcn.00402666
add esp, 4
mov edx, dword [ebp - 0x818]
mov dword [edx], eax
mov eax, dword [ebp - 0x818]
cmp dword [eax], 0
je 0x401786
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xc], 0
lea edx, [ebp - 0x800]
push edx
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax]
push ecx
call fcn.00402280
add esp, 8
cmp dword [ebp - 0x814], 0
jne 0x401762
mov edx, dword [ebp - 0x818]
mov dword [ebp - 0x814], edx
cmp dword [ebp - 0x820], 0
je 0x40177a
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x818]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x818]
mov dword [ebp - 0x820], edx
jmp 0x401856
mov eax, dword [ebp - 0x81c]
cmp dword [eax + 0x1c], 0
jne 0x4017ab
mov ecx, dword [ebp - 0x81c]
cmp dword [ecx + 0x20], 0x5000
jae 0x4017ab
jmp 0x401856
mov edx, dword [ebp - 0x81c]
push edx
call fcn.0040196b
add esp, 4
cmp eax, 1
jne 0x4017ce
mov eax, dword [ebp - 0x80c]
add eax, 1
mov dword [ebp - 0x80c], eax
mov ecx, dword [ebp - 0x81c]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x800]
push edx
call fcn.00402280
add esp, 8
lea eax, [ebp - 0x800]
push eax
call fcn.00406ab2
add esp, 4
push 0x4094fc
lea ecx, [ebp - 0x800]
push ecx
call fcn.00402590
add esp, 8
test eax, eax
jne 0x401856
cmp dword [0x409ee0], 0
je 0x401826
mov edx, dword [0x409ee0]
push edx
call fcn.00402141
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00402200
add esp, 4
add eax, 1
push eax
call fcn.00402666
add esp, 4
mov dword [0x409ee0], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x409ee0]
push edx
call fcn.00402280
add esp, 8
mov eax, dword [ebp - 0x81c]
push eax
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x808], al
cmp dword [ebp - 0x804], 0x14
jle 0x401890
mov dword [ebp - 0x804], 0
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x804]
add edx, 1
mov dword [ebp - 0x804], edx
jmp 0x40162d
cmp dword [ebp - 0x80c], 0
jle 0x4018c0
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401a65
add esp, 8
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x81c]
push eax
call fcn.00402141
add esp, 4
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 0x818], ecx
jmp 0x4018f9
mov edx, dword [ebp - 0x818]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x401915
mov ecx, dword [ebp - 0x818]
mov edx, dword [ecx]
push edx
call fcn.00401577
add esp, 4
jmp 0x4018ea
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x401967
mov ecx, dword [ebp - 0x814]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax]
push ecx
call fcn.00402141
add esp, 4
mov edx, dword [ebp - 0x818]
push edx
call fcn.00402141
add esp, 4
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x818], eax
jmp 0x401921
mov esp, ebp
pop ebp
ret