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

Disassembly:
mov eax, 0x4d9918
call fcn.004b0604
sub esp, 0x190
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0040e69c
lea eax, [ebp + 8]
push 0x5118d0
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004c756a
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 0x40eb44
mov ecx, edi
call fcn.0040ece5
lea eax, [ebp - 0x170]
push 0x5118cc
push eax
call fcn.004b22a0
pop ecx
test eax, eax
pop ecx
je 0x40eb18
lea eax, [ebp - 0x170]
push 0x5118c8
push eax
call fcn.004b22a0
pop ecx
test eax, eax
pop ecx
je 0x40eb18
test byte [ebp - 0x19c], 0x10
je 0x40eb18
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004c76a3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004c756a
cmp dword [ebp + 0x18], ebx
je 0x40eace
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004c72df
lea eax, [ebp - 0x19c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040e70c
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 0x40eace
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp + 0x10], ebx
je 0x40eb18
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.004c72df
push ecx
lea ecx, [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x24], esp
push 0x511870
push ecx
push eax
mov byte [ebp - 4], 6
call fcn.004c77ff
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040e996
add dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x40eb23
cmp dword [eax], ebx
jne 0x40eb3b
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ea14
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x40eb53
cmp dword [eax], ebx
jne 0x40ec30
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004c7799
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004c76a3
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.004c756a
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x10]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40ec30
test byte [ebp - 0x19c], 0x10
jne 0x40ec08
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004c76a3
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.004c756a
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.004c72df
lea eax, [ebp - 0x19c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040e70c
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 0x40ec08
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x40ec13
cmp dword [eax], ebx
jne 0x40ec29
lea eax, [ebp - 0x19c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb94
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00446810
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c756a
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c