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

Disassembly:
push 0x6dc
mov eax, 0x423171
call fcn.00421d71
cmp dword [0x435fd4], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x694], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x698], esi
mov dword [ebp - 0x69c], eax
jne 0x40aa06
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
test edi, edi
pop ecx
mov ebx, eax
je 0x40aa06
test ebx, ebx
jbe 0x40aa06
test esi, esi
je 0x40aa06
lea eax, [ebp - 0x690]
push edi
push eax
call fcn.004173a0
push dword [eax]
push str._r_n_s_r_n_r_n
push dword [esi + 4]
call dword [sym.imp.MSVCR80.dll_fprintf]
mov eax, dword [ebp - 0x690]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040167f
and dword [ebp - 4], 0
lea eax, [ebp - 0x42c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
lea ebx, [edi + ebx*2 - 2]
cmp word [ebx], 0x5c
pop ecx
pop ecx
mov dword [ebp - 0x6a0], ebx
je 0x40a9cc
lea eax, [ebp - 0x42c]
push 0x42a384
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x42c]
push 0x42ad88
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x680], eax
jne 0x40aa0c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00421dcd
ret
call fcn.0040523d
and dword [ebp - 0x684], 0
mov dword [ebp - 0x688], eax
mov byte [ebp - 4], 1
xor eax, eax
test eax, eax
jne 0x40abfe
cmp dword [0x435fd4], eax
jne 0x40abfe
lea eax, [ebp - 0x224]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
mov eax, dword [ebp - 0x6a0]
cmp word [eax], 0x5c
pop ecx
pop ecx
je 0x40aa68
lea eax, [ebp - 0x224]
push 0x42a384
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
mov esi, dword [ebp - 0x67c]
shr esi, 4
and esi, 1
pop ecx
pop ecx
je 0x40aad7
mov ebx, dword [sym.imp.MSVCR80.dll_wcscmp]
lea eax, [ebp - 0x650]
push 0x42a508
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x40aaba
lea eax, [ebp - 0x650]
push 0x42a50c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40aad7
lea eax, [ebp - 0x67c]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb eax, eax
inc eax
jmp 0x40aa24
cmp dword [ebp - 0x694], 0
je 0x40ab2b
cmp dword [ebp + 0x10], esi
je 0x40ab2b
push dword [ebp - 0x698]
lea eax, [ebp - 0x650]
push dword [ebp - 0x664]
push dword [ebp - 0x668]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [ebp - 0x694]
test eax, eax
jne 0x40ab2b
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esi, [ebp - 0x68c]
call fcn.004051e2
jmp 0x40aa06
test esi, esi
je 0x40aaba
cmp dword [ebp + 0xc], 0
je 0x40aaba
mov ebx, dword [ebp - 0x69c]
mov eax, ebx
call fcn.004053f5
test eax, eax
je 0x40ab59
lea ecx, [ebp - 0x224]
call fcn.0040a814
test eax, eax
jne 0x40aaba
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404a23
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x688]
lea ecx, [ebp - 0x690]
push ecx
lea esi, [eax + 4]
push dword [esi]
push eax
call fcn.0040b338
mov ecx, 0x3fffffff
sub ecx, dword [ebp - 0x684]
cmp ecx, 1
jae 0x40abda
push str.list_T__too_long
lea ecx, [ebp - 0x6e8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x6e8]
push eax
lea eax, [ebp - 0x6cc]
push eax
mov byte [ebp - 4], 3
call fcn.0040640c
push 0x42ee8c
lea eax, [ebp - 0x6cc]
push eax
mov dword [ebp - 0x6cc], 0x42a5b0
call sub.MSVCR80.dll__CxxThrowException
inc dword [ebp - 0x684]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x690]
add eax, 0xfffffff0
call fcn.0040167f
jmp 0x40aaba
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x688]
mov ebx, dword [eax]
lea edi, [ebp - 0x68c]
mov dword [ebp - 0x6a0], eax
test edi, edi
je 0x40ac2c
lea ecx, [ebp - 0x68c]
cmp edi, ecx
je 0x40ac38
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x688]
cmp ebx, dword [ebp - 0x6a0]
je 0x40ace2
test edi, edi
jne 0x40ac4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
jne 0x40ac59
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 8]
sub eax, 0x10
call fcn.00405607
add eax, 0x10
mov dword [ebp - 0x680], eax
lea esi, [ebp - 0x680]
mov byte [ebp - 4], 4
call fcn.00404cc7
push dword [ebp - 0x69c]
push dword [ebp - 0x698]
push dword [ebp - 0x694]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040a90a
mov esi, dword [ebp - 0x680]
add esp, 0x18
test esi, esi
jne 0x40acab
xor eax, eax
jmp 0x40acb3
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x680]
call fcn.00401497
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.0040167f
cmp ebx, dword [edi + 4]
jne 0x40acd5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x688]
jmp 0x40ac1e
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x688]
mov dword [eax + 4], eax
and dword [ebp - 0x684], 0
cmp esi, dword [ebp - 0x688]
je 0x40ad16
mov eax, dword [esi + 8]
mov edi, dword [esi]
sub eax, 0x10
call fcn.0040167f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, edi
jmp 0x40acf6
push dword [ebp - 0x688]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40aa06