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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], 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
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x46fd23
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov ecx, 0x46fd40
mov edx, dword [ebp - 4]
call fcn.004044f4
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004046a8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x46fcd3
test dword [ebp - 0x16c], 0x10
jbe 0x46fb45
cmp byte [ebp - 0x140], 0x2e
je 0x46fcbe
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x140]
mov ecx, 0x104
call fcn.00404458
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x46fd4c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404568
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0046fa78
mov dword [ebp - 0x1c], eax
jmp 0x46fcbe
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x140]
mov ecx, 0x104
call fcn.00404458
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004044f4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004046a8
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0045c4f8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0xc800000
jb 0x46fba1
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.004041e8
mov eax, dword [ebp - 0x10]
call fcn.004044a8
mov ebx, eax
test ebx, ebx
jle 0x46fc33
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx - 1]
call fcn.004043d0
mov eax, dword [ebp - 0x14]
mov edx, 0x46fd58
call fcn.004045f4
je 0x46fc33
mov eax, dword [ebp - 0x14]
mov edx, 0x46fd4c
call fcn.004045f4
je 0x46fc33
mov eax, dword [ebp - 0x10]
movzx esi, byte [eax + ebx - 1]
cmp esi, 0x41
jl 0x46fc01
cmp esi, 0x5a
jg 0x46fc01
lea eax, [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.004043d0
mov eax, dword [ebp - 0x14]
mov edx, 0x46fd64
call fcn.004045f4
jne 0x46fc20
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004044f4
jmp 0x46fc33
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004044f4
dec ebx
test ebx, ebx
jg 0x46fbb7
mov eax, dword [ebp - 0x18]
mov edx, 0x46fd70
call fcn.004045f4
jne 0x46fc57
cmp dword [ebp - 0x20], 0
jne 0x46fc57
cmp dword [ebp - 0x2c], 0
jbe 0x46fc57
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x18]
mov edx, 0x46fd80
call fcn.004045f4
je 0x46fc84
mov eax, dword [ebp - 0x18]
mov edx, 0x46fd90
call fcn.004045f4
je 0x46fc84
mov eax, dword [ebp - 0x18]
mov edx, 0x46fda0
call fcn.004045f4
jne 0x46fc93
cmp dword [ebp - 0x20], 0
je 0x46fc93
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffffff
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
mov edx, 0x46fdb0
call fcn.004045f4
jne 0x46fcad
cmp dword [ebp - 0x20], 0
jne 0x46fcad
xor ebx, ebx
test ebx, ebx
je 0x46fcbe
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x16c]
push eax
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x46fae3
push edi
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x46fcf0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x46fcf0
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x46fcfd
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd2a
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040420c
lea eax, [ebp - 4]
call fcn.004041e8
ret