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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x430430
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4441b4]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4441b4]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, ebx
call fcn.004067ff
test al, al
je 0x40705a
push 0x437e38
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
and dword [esp + 0x308], 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
mov edx, ebx
call fcn.0040681a
pop ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x308], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x406f07
lea eax, [esp + 0x70]
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
lea ecx, [esp + 0x88]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x308], 3
test esi, esi
je 0x407025
mov esi, dword [sym.imp.MSVCR90.dll_wcscmp]
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
mov edx, ebx
mov byte [esp + 0x30c], 4
call fcn.0040681a
pop ecx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x30c], 5
call dword [0x433208]
lea ecx, [esp + 0x50]
mov byte [esp + 0x308], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x308], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test byte [esp + 0xa4], 0x10
jne 0x406fc7
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x18]
call fcn.004071c5
jmp 0x40700e
cmp byte [ebp + 0x10], 0
je 0x40700e
lea eax, [esp + 0xd0]
push 0x437e40
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x40700e
lea eax, [esp + 0xd0]
push 0x437e44
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x40700e
push dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push dword [esp + 0x18]
push eax
call fcn.00406e62
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406f45
cmp edi, 0xffffffff
je 0x407031
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x88]
mov byte [esp + 0x308], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [esp + 0x308], 0xffffffff
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0041a1d4
mov esp, ebp
pop ebp
ret