Function at 0x406e10
Capabilities:
Enumerate files on windows
Enumerate files recursively
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
push ecx
push eax
push 0x13
push 0
push 2
mov dword [ebp - 0x25c], 0xffffffff
mov dword [ebp - 0x260], 0x4000
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4070fa
push ebx
push dword [ebp - 0x260]
call fcn.0040b5c0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x278], ebx
test ebx, ebx
je 0x4070ee
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4070e5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
nop
cmp dword [ebp - 0x25c], 0
mov dword [ebp - 0x268], 0
jbe 0x4070c1
lea eax, [ebx + 0x14]
mov dword [ebp - 0x26c], eax
test byte [eax - 8], 2
je 0x406ed4
add eax, 0xffffffec
push eax
call fcn.00406e10
jmp 0x40708a
mov edi, dword [eax]
push 0
push edi
push 0x40c25c
mov dword [ebp - 0x274], edi
call fcn.0040b6f0
add esp, 0xc
test eax, eax
jne 0x406f52
lea eax, [ebp - 0x270]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406f38
nop dword [eax]
push esi
call fcn.00405e30
push esi
call fcn.0040b5f0
lea eax, [ebp - 0x270]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x406f10
push 0
push edi
push 0x40c25c
call fcn.0040b6f0
add esp, 0xc
test eax, eax
je 0x406ef0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10000
call fcn.0040b5c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40708d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x401ee4
push ebx
call esi
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x407013
test byte [ebp - 0x254], 0x10
je 0x406ff2
xor esi, esi
push dword [esi + 0x40c130]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406fec
add esi, 4
cmp esi, 0xd8
jb 0x406fa1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x401eec
push ebx
call esi
lea eax, [ebp - 0x228]
push eax
push ebx
call esi
push ebx
call fcn.00406b40
add esp, 4
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x258]
jne 0x406f96
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407084
cmp dword [0x40c28c], 0
je 0x407084
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov edi, eax
push 0
push 0
push esi
mov esi, dword [ebp - 0x274]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x401ef0
call fcn.00403150
push edi
call fcn.0040b5f0
add esp, 0x10
push ebx
call fcn.0040b5f0
add esp, 4
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x26c]
inc ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add eax, 0x20
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x26c], eax
cmp ecx, dword [ebp - 0x25c]
jb 0x406ec0
mov ebx, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x406ea0
pop edi
pop esi
push ebx
call fcn.0040b5f0
add esp, 4
push dword [ebp - 0x264]
call sub.MPR.dll_WNetCloseEnum
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b79a
mov esp, ebp
pop ebp
ret