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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403144
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2e0], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x4041d8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4011a7
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2dc], ebx
jne 0x4011d6
jmp 0x4013ce
mov esi, dword [ebp - 0x2d8]
mov eax, 0x2e
cmp word [ebp - 0x2a4], ax
je 0x4013af
cmp word [ebp - 0x2a2], ax
je 0x4013af
test byte [ebp - 0x2d0], 0x10
je 0x40125e
push esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x4041d8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call fcn.00401130
lea edx, [ebp - 0x2d0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x48]
mov esi, eax
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4013bf
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x34]
jbe 0x401280
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x34]
cmp dword [edi + 0x30], eax
lea esi, [edi + 0x2c]
mov dword [ebp - 0x2d4], eax
jbe 0x401297
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, esi
je 0x4012a1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp - 0x2d4]
je 0x401384
cmp ebx, dword [esi + 8]
jb 0x4012b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x4012c5
mov eax, dword [esi]
jmp 0x4012c7
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012d0
sub eax, edx
sar eax, 1
cmp ebx, dword [edi + 0x34]
mov dword [ebp - 0x2d4], eax
jb 0x4012f0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x18], 8
jb 0x4012fa
mov eax, dword [esi]
jmp 0x4012fc
mov eax, esi
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x50]
push edx
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int_const]
sub esi, dword [ebp - 0x2d4]
cmp eax, esi
jne 0x401371
mov eax, dword [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x4041d8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea edx, [ebp - 0x80]
push edx
lea esi, [edi + 0x1c]
call fcn.004018f0
mov eax, dword [ebp - 0x2b0]
add dword [edi + 0x58], eax
lea ecx, [ebp - 0x80]
adc dword [edi + 0x5c], 0
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp ebx, dword [edi + 0x34]
jb 0x40137c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebx, 0x1c
jmp 0x401280
mov edx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ebx, dword [ebp - 0x2dc]
jmp 0x4013bf
lea eax, [ebp - 0x2d0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x4011d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004021e6
mov esp, ebp
pop ebp
ret 8