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

Disassembly:
push 0x6a4
mov eax, 0x420b8c
call fcn.0041fc93
cmp dword [0x432f58], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x690], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x698], esi
mov dword [ebp - 0x694], edi
mov dword [ebp - 0x688], eax
jne 0x40b71f
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
mov ebx, eax
pop ecx
mov dword [ebp - 0x6a0], ebx
test esi, esi
je 0x40b71f
test ebx, ebx
je 0x40b71f
test edi, edi
je 0x40b71f
lea eax, [ebp - 0x684]
push esi
push eax
call fcn.00416869
push dword [eax]
push str._r_n_s_r_n_r_n
push dword [edi + 4]
call dword [sym.imp.MSVCR100.dll_fprintf]
mov eax, dword [ebp - 0x684]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00401613
and dword [ebp - 4], 0
lea eax, [ebp - 0x428]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
cmp word [esi + ebx*2 - 2], 0x5c
pop ecx
pop ecx
je 0x40b6e5
lea eax, [ebp - 0x428]
push 0x428324
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push 0x428b40
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
cmp eax, 0xffffffff
jne 0x40b725
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0041fcef
ret
and dword [ebp - 0x6ac], 0
call fcn.0040604b
mov ebx, eax
mov dword [ebx], ebx
mov dword [ebp - 0x6b0], ebx
mov dword [ebx + 4], ebx
mov byte [ebp - 4], 1
xor eax, eax
test eax, eax
jne 0x40b9cf
cmp dword [0x432f58], eax
jne 0x40b9cf
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
mov eax, dword [ebp - 0x6a0]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
pop ecx
je 0x40b78a
lea eax, [ebp - 0x220]
push 0x428324
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
mov edi, dword [ebp - 0x678]
shr edi, 4
and edi, 1
pop ecx
pop ecx
je 0x40b7fb
lea eax, [ebp - 0x64c]
push 0x4282c4
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x40b7de
lea eax, [ebp - 0x64c]
push 0x4282c8
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x40b7fb
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb eax, eax
inc eax
jmp 0x40b744
cmp dword [ebp - 0x690], 0
je 0x40b82f
cmp dword [ebp + 0x10], edi
je 0x40b82f
push dword [ebp - 0x694]
lea eax, [ebp - 0x64c]
push dword [ebp - 0x660]
push dword [ebp - 0x664]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [ebp - 0x690]
test edi, edi
je 0x40b7de
cmp dword [ebp + 0xc], 0
je 0x40b7de
mov eax, dword [ebp - 0x688]
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40b969
lea eax, [ebp - 0x220]
test eax, eax
je 0x40b969
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405495
mov byte [ebp - 4], 2
push 0x5c
push dword [ebp - 0x67c]
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x40b887
or eax, 0xffffffff
jmp 0x40b88f
sub eax, dword [ebp - 0x67c]
sar eax, 1
lea edx, [eax + 1]
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x67c]
call fcn.00405631
lea edi, [ebp - 0x67c]
mov byte [ebp - 4], 3
call fcn.004054f1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6a4]
add eax, 0xfffffff0
call fcn.00401613
mov eax, edi
call fcn.004055af
mov eax, dword [ebp - 0x688]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68c], eax
cmp esi, dword [ebp - 0x68c]
je 0x40b951
mov eax, dword [esi]
sub eax, 0x10
call fcn.00405f8b
add eax, 0x10
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x69c]
mov byte [ebp - 4], 4
call fcn.004055af
mov edi, dword [ebp - 0x69c]
push edi
lea eax, [ebp - 0x67c]
push eax
call fcn.00405bf5
test eax, eax
lea eax, [edi - 0x10]
jne 0x40b943
call fcn.00401613
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
call fcn.00401613
mov esi, dword [ebp - 0x698]
jmp 0x40b7de
mov byte [ebp - 4], 2
call fcn.00401613
add esi, 4
jmp 0x40b8dd
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
call fcn.00401613
mov esi, dword [ebp - 0x698]
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405495
lea eax, [ebp - 0x684]
push eax
mov byte [ebp - 4], 5
push dword [ebx + 4]
push ebx
call fcn.0040c17d
mov ecx, 0x3ffffffe
sub ecx, dword [ebp - 0x6ac]
cmp ecx, 1
jae 0x40b9aa
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
inc dword [ebp - 0x6ac]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x684]
add eax, 0xfffffff0
call fcn.00401613
jmp 0x40b7de
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx]
mov dword [ebp - 0x67c], eax
cmp eax, ebx
je 0x40ba6c
mov eax, dword [eax + 8]
sub eax, 0x10
call fcn.00405f8b
lea edi, [eax + 0x10]
mov dword [ebp - 0x680], edi
mov byte [ebp - 4], 6
cmp dword [edi - 4], 1
jle 0x40ba1e
push dword [edi - 0xc]
lea eax, [ebp - 0x680]
push eax
call fcn.00401506
mov edi, dword [ebp - 0x680]
push dword [ebp - 0x688]
push dword [ebp - 0x694]
push dword [ebp - 0x690]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040b61f
add esp, 0x18
or eax, 0xffffffff
lea esi, [ebp - 0x680]
call fcn.0040583a
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401613
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax]
mov dword [ebp - 0x67c], eax
jmp 0x40b9e3
mov esi, dword [ebx]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp esi, ebx
je 0x40ba9c
mov eax, dword [esi]
mov dword [ebp - 0x68c], eax
mov eax, dword [esi + 8]
sub eax, 0x10
call fcn.00401613
push esi
call edi
mov esi, dword [ebp - 0x68c]
pop ecx
jmp 0x40ba79
push ebx
call edi
pop ecx
jmp 0x40b71f