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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x476d36
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403634
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x476be8
xor edx, edx
push ebp
push 0x476be1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x15c]
test al, 0x10
jne 0x476bb2
cmp byte [ebp + 0xc], 0
je 0x476b0d
test al, 2
jne 0x476bb2
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
call fcn.00475650
mov eax, dword [ebp + 8]
test byte [eax + 0x4b], 0x10
jne 0x476b55
push dword [ebp - 0x18]
push dword [ebp - 8]
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.0040355c
push dword [ebp - 0x160]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403634
jmp 0x476b93
cmp dword [ebp - 8], 0
je 0x476b93
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x18]
call fcn.0042c84c
push dword [ebp - 0x160]
push dword [ebp - 8]
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 0x18]
call fcn.0042c824
push dword [ebp - 0x164]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403634
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00476924
pop ecx
test al, al
je 0x476bb2
mov byte [ebp - 0xd], 1
call fcn.004031bc
jmp 0x476d0b
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x476af1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476be8
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x4c], 0x20
je 0x476d0b
lea eax, [ebp - 0x15c]
push eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x160]
call fcn.00403494
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 8]
call fcn.0040357c
lea eax, [ebp - 0x160]
mov edx, 0x476d54
call fcn.0040357c
mov eax, dword [ebp - 0x160]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x476d0b
xor eax, eax
push ebp
push 0x476d04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
call fcn.00476884
test al, al
je 0x476cd5
mov eax, dword [ebp + 0x10]
push eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x160]
call fcn.00403494
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.0040355c
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
call fcn.0040357c
lea eax, [ebp - 0x160]
mov edx, 0x476d60
call fcn.0040357c
mov edx, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00476a70
pop ecx
test al, al
je 0x476cd5
mov byte [ebp - 0xd], 1
call fcn.004031bc
jmp 0x476d0b
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x476c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d0b
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d3d
lea eax, [ebp - 0x164]
mov edx, 2
call fcn.00403420
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403420
ret