Function at 0x407110
Capabilities:
Enumerate files on windows
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
nop dword [eax]
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x328]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
push 1
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x344], eax
test eax, eax
je 0x40719b
cmp eax, 0xea
jne 0x40746d
cmp dword [ebp - 0x328], 1
mov ebx, dword [ebp - 0x330]
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x32c], 1
jb 0x407451
nop
mov eax, dword [ebx + 4]
test eax, eax
je 0x4071d2
cmp eax, 0x80000000
jne 0x407423
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x407423
push 0x401f08
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407423
push 0x401f18
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x334]
lea eax, [ebp - 0xcc]
push eax
call esi
push 0x401f20
lea eax, [ebp - 0xcc]
push eax
call esi
push dword [ebx]
lea eax, [ebp - 0xcc]
push eax
call esi
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x40c25c
call fcn.0040b6f0
add esp, 0xc
test eax, eax
jne 0x4072b8
nop dword [eax]
lea eax, [ebp - 0x340]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407298
nop dword [eax]
push esi
call fcn.00405e30
push esi
call fcn.0040b5f0
lea eax, [ebp - 0x340]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x407270
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x40c25c
call fcn.0040b6f0
add esp, 0xc
test eax, eax
je 0x407250
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10000
call fcn.0040b5c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40741d
lea eax, [ebp - 0xcc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x401ee4
push ebx
call esi
lea eax, [ebp - 0x31c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x320], eax
cmp eax, 0xffffffff
je 0x407387
test byte [ebp - 0x31c], 0x10
je 0x407363
xor esi, esi
nop dword [eax]
push dword [esi + 0x40c130]
lea eax, [ebp - 0x2f0]
push eax
call edi
test eax, eax
je 0x40735d
add esi, 4
cmp esi, 0xd8
jb 0x407310
lea eax, [ebp - 0xcc]
push eax
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 - 0x2f0]
push eax
push ebx
call esi
push ebx
call fcn.00406b40
add esp, 4
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x31c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x320]
jne 0x407302
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407414
cmp dword [0x40c28c], 0
je 0x407414
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xcc]
push eax
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
lea eax, [ebp - 0xcc]
push 0
push 0
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xcc]
push eax
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
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 0x10
push ebx
call fcn.0040b5f0
add esp, 4
mov ebx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x32c]
add ebx, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x32c], eax
cmp eax, dword [ebp - 0x328]
jbe 0x4071c0
mov ebx, dword [ebp - 0x330]
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x344], 0xea
mov ecx, dword [ebp - 0x334]
je 0x407160
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret