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

Disassembly:
mov eax, 0x478770
call fcn.0045c348
sub esp, 0x190
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4a84c4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00408ee4
lea eax, [ebp + 8]
push 0x49ee60
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call fcn.0046b492
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046b336
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0046b249
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x409392
call fcn.0041c9ce
lea eax, [ebp - 0x170]
push 0x49ee5c
push eax
call fcn.0045d9e0
pop ecx
test eax, eax
pop ecx
je 0x409366
lea eax, [ebp - 0x170]
push 0x49ee58
push eax
call fcn.0045d9e0
pop ecx
test eax, eax
pop ecx
je 0x409366
test byte [ebp - 0x19c], 0x10
je 0x409366
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0046b492
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0046b336
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0046b249
cmp dword [ebp + 0x18], ebx
je 0x40931c
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046afbe
lea eax, [ebp - 0x19c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00408f5c
push dword [ebp + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
inc dword [ebp - 0x14]
cmp dword [ebp + 0x20], ebx
je 0x40931c
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp + 0x10], ebx
je 0x409366
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046afbe
push ecx
lea ecx, [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x24], esp
push 0x49e93c
push ecx
push eax
mov byte [ebp - 4], 6
call fcn.0046b492
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004091e6
add dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x409371
cmp dword [eax], ebx
jne 0x409389
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409264
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x4093a1
cmp dword [eax], ebx
jne 0x40947e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0046b42c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0046b336
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0046b249
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x10]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40947e
test byte [ebp - 0x19c], 0x10
jne 0x409456
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0046b492
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0046b336
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0046b249
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0046afbe
lea eax, [ebp - 0x19c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00408f5c
push dword [ebp + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
inc dword [ebp - 0x14]
cmp dword [ebp + 0x20], ebx
je 0x409456
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x409461
cmp dword [eax], ebx
jne 0x409477
lea eax, [ebp - 0x19c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4093e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00408f54
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0046b249
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0046b249
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c