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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fe4
xor eax, eax
push ebp
push 0x8620a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
cmp dword [ebp - 4], 0
je 0x86205a
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dfc
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00405054
mov eax, dword [ebp - 0x154]
mov edx, 0x8620bc
call fcn.00404f40
jne 0x861eb6
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405054
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jg 0x861ee8
lea eax, [ebp - 0x158]
mov ecx, 0x8620c8
mov edx, dword [ebp - 4]
call fcn.00404e48
mov edx, dword [ebp - 0x158]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jle 0x861ef1
mov byte [ebp - 5], 1
jmp 0x86205a
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x8620c8
mov edx, dword [ebp - 4]
call fcn.00404e48
mov eax, dword [ebp - 0x15c]
call fcn.00404ff4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x86205a
xor edx, edx
push ebp
push 0x862053
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404dac
mov eax, dword [ebp - 0x160]
mov edx, 0x8620d4
call fcn.00404f40
je 0x862024
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404dac
mov eax, dword [ebp - 0x164]
mov edx, 0x8620e0
call fcn.00404f40
je 0x862024
push dword [ebp - 4]
push 0x8620bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404dac
push dword [ebp - 0x168]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404ebc
mov eax, dword [ebp - 0x150]
and eax, 0x10
cmp eax, 0x10
sete al
test al, al
je 0x86200e
lea eax, [ebp - 0x16c]
mov ecx, 0x8620c8
mov edx, dword [ebp - 0x10]
call fcn.00404e48
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x86201e
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00861e08
mov byte [ebp - 5], al
jmp 0x86201e
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x86203c
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x861f37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x86205a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8620aa
lea eax, [ebp - 0x16c]
call fcn.00404b34
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404b58
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404b58
lea eax, [ebp - 0x10]
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404b34
ret