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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x430d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4461b4]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4461b4]
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.0040680c
test al, al
je 0x407067
push 0x438e40
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.00406827
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 0x406f14
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 0x407032
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.00406827
pop ecx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x30c], 5
call dword [0x434214]
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 0x406fd4
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x18]
call fcn.004071d2
jmp 0x40701b
cmp byte [ebp + 0x10], 0
je 0x40701b
lea eax, [esp + 0xd0]
push 0x438e48
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x40701b
lea eax, [esp + 0xd0]
push 0x438e4c
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x40701b
push dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push dword [esp + 0x18]
push eax
call fcn.00406e6f
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406f52
cmp edi, 0xffffffff
je 0x40703e
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.0041aa44
mov esp, ebp
pop ebp
ret