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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x40d1e4]
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 0x40c2ba
push ebx
push dword [ebp - 0x260]
call fcn.0040c970
mov ebx, eax
add esp, 4
mov dword [ebp - 0x278], ebx
test ebx, ebx
je 0x40c2ae
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 0x40c2a5
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
nop
cmp dword [ebp - 0x25c], 0
mov dword [ebp - 0x268], 0
jbe 0x40c281
lea eax, [ebx + 0x14]
mov dword [ebp - 0x26c], eax
test byte [eax - 8], 2
je 0x40c094
add eax, 0xffffffec
push eax
call fcn.0040bfd0
jmp 0x40c24a
mov edi, dword [eax]
push 0
push edi
push 0x40d23c
mov dword [ebp - 0x274], edi
call fcn.0040cb30
add esp, 0xc
test eax, eax
jne 0x40c112
lea eax, [ebp - 0x270]
push eax
push 0
push 0x40d20c
call fcn.0040cab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c0f8
nop dword [eax]
push esi
call fcn.0040b030
push esi
call fcn.0040c9a0
lea eax, [ebp - 0x270]
push eax
push 0
push 0x40d20c
call fcn.0040cab0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c0d0
push 0
push edi
push 0x40d23c
call fcn.0040cb30
add esp, 0xc
test eax, eax
je 0x40c0b0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x10000
call fcn.0040c970
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40c24d
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x404198
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 0x40c1d3
test byte [ebp - 0x254], 0x10
je 0x40c1b2
xor esi, esi
push dword [esi + 0x40d130]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40c1ac
add esi, 4
cmp esi, 0x88
jb 0x40c161
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x4041a0
push ebx
call esi
lea eax, [ebp - 0x228]
push eax
push ebx
call esi
push ebx
call fcn.0040c5c0
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 0x40c156
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x40c244
cmp dword [0x40d26c], 0
je 0x40c244
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.0040c970
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 0x4041e0
call fcn.0040af30
push edi
call fcn.0040c9a0
add esp, 0x10
push ebx
call fcn.0040c9a0
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 0x40c080
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 0x40c060
pop edi
pop esi
push ebx
call fcn.0040c9a0
add esp, 4
push dword [ebp - 0x264]
call sub.MPR.dll_WNetCloseEnum
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret