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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x140
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], esi
call fcn.0043dc10
push esi
call fcn.0042da83
add esp, 0x10
test eax, eax
jne 0x40e25c
push 1
mov edi, 0x71c
push edi
call fcn.00447314
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e25c
push 1
push edi
call fcn.00447314
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40e26d
push esi
call fcn.0044731f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
push 0x71c
push dword [ebp - 0x148]
push esi
call fcn.0042ee2a
push esi
call fcn.0042e37d
push esi
call fcn.0042e2bc
push 0x22
push esi
call fcn.0042df54
push esi
call fcn.0040bc85
add esp, 0x20
test eax, eax
je 0x40e2e4
push 0x461334
push esi
call fcn.0043dd70
pop ecx
pop ecx
test eax, eax
jne 0x40e2e4
push esi
call fcn.004476a0
pop ecx
cmp byte [eax + esi - 1], 0x5c
je 0x40e2d1
push 0x71c
push 0x465c34
push esi
call fcn.0042ed96
add esp, 0xc
push 0x71c
push 0x461334
push esi
call fcn.0042ed96
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
jne 0x40e30f
push esi
call fcn.0044731f
push edi
call fcn.0044731f
pop ecx
jmp 0x40e25b
lea eax, [ebp - 0x118]
push eax
call fcn.0042da83
pop ecx
test eax, eax
jne 0x40e3b8
cmp byte [ebp - 0x118], 0x2e
je 0x40e3b8
cmp dword [ebp + 0xc], eax
je 0x40e33f
test byte [ebp - 0x144], 2
jne 0x40e3b8
test byte [ebp - 0x144], 0x10
jne 0x40e3b8
inc ebx
cmp dword [ebp - 0x14c], 0
je 0x40e3b8
push 0x71c
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042ee2a
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x118]
push eax
call fcn.0042e106
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042dce1
push 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0042ee2a
add esp, 0x30
lea eax, [ebp - 0x144]
push dword [ebp + 0x18]
push eax
call dword [ebp - 0x14c]
test eax, eax
je 0x40e3d3
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e30f
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x40e4a3
push esi
push edi
call fcn.00447380
push edi
call fcn.0042e106
push 0x461334
push edi
call fcn.00447390
add esp, 0x14
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x40e4a3
lea eax, [ebp - 0x118]
push eax
call fcn.0042da83
pop ecx
test eax, eax
jne 0x40e480
cmp byte [ebp - 0x118], 0x2e
je 0x40e480
cmp dword [ebp + 0xc], eax
je 0x40e449
test byte [ebp - 0x144], 2
jne 0x40e480
test byte [ebp - 0x144], 0x10
je 0x40e480
push esi
push edi
call fcn.00447380
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042c860
push dword [ebp + 0x18]
push dword [ebp - 0x14c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040e1e7
add esp, 0x24
add ebx, eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e421
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0044731f
push edi
call fcn.0044731f
pop ecx
pop ecx
mov eax, ebx
jmp 0x40e25e