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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x410a29
cmp word [edi], 0
je 0x410a29
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
push edi
mov word [ebp - 8], ax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
test eax, eax
je 0x4107d5
cmp eax, esi
jge 0x4107d5
cmp word [edi + eax*2 - 2], 0x5c
je 0x4107d5
lea eax, [ebp - 0x210]
push 0x44237c
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x66c]
push eax
call sub.MSVCRT.dll_wcsncpy
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor eax, eax
mov word [ebp - 0x464], ax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, 0x4423a4
test eax, eax
je 0x4108f6
cmp word [eax], 0
je 0x4108f6
push edi
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4108f6
test byte [ebp + 0x10], 1
je 0x4108fd
lea eax, [ebp - 0x66c]
push eax
push str._s.
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4108ed
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x66c]
push eax
push str._s_s
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
test byte [ebp - 0x460], 0x10
je 0x4108d4
lea eax, [ebp - 0x434]
push 0x442384
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4108d4
lea eax, [ebp - 0x434]
push 0x442380
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4108d4
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.0041076c
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410868
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 8], 1
jmp 0x4108fd
and dword [ebp + 8], 0
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x66c]
push eax
mov edi, str._s_s
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410a27
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x66c]
push eax
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
test byte [ebp - 0x460], 0x10
je 0x4109ae
cmp dword [ebp + 8], 0
jne 0x4109d3
test byte [ebp + 0x10], 1
je 0x4109d3
lea eax, [ebp - 0x434]
push 0x442384
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4109d3
lea eax, [ebp - 0x434]
push 0x442380
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4109d3
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.0041076c
jmp 0x4109d3
test byte [ebp + 0x10], 2
je 0x4109c6
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410938
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x10], 2
je 0x410a08
push pe_nt_image_headers32
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 8], 0
je 0x410a17
mov dword [ebp - 4], 1
jmp 0x410a27
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
pop ebx
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc