Function at 0x1016e81
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
xor eax, eax
push esi
mov si, word [ebp + 0xc]
mov word [ecx], ax
mov ecx, dword [ebp + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov word [ecx], ax
cmp si, 5
jbe 0x1016ec7
cmp si, 0x34
je 0x1016ec7
mov dword [ebp + 8], 0x7c
jmp 0x1017132
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1016edf
cmp word [eax], di
je 0x1016edf
mov dword [ebp + 8], 0x32
jmp 0x1017132
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
push 1
push edi
call sub.srvcli.dll_NetShareEnum
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10170fd
push ebx
movzx ebx, word [ebp + 0x14]
add ebx, dword [ebp + 0x10]
cmp si, 2
jne 0x1016f13
push 1
jmp 0x1016f1b
cmp si, 4
jne 0x1016f23
push 2
call fcn.010157d2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x30], edi
jbe 0x10170fc
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [eax + 4], 1
jne 0x101709a
mov esi, dword [eax]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1016f4b
sub eax, edx
sar eax, 1
cmp eax, 0xc
ja 0x101709a
push edi
lea eax, [ebp - 4]
push eax
push esi
call fcn.0101739f
test eax, eax
je 0x10170e8
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 2
push dword [ebp - 4]
call fcn.0101743f
test eax, eax
jne 0x1016f9a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x10170db
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10170df
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x18]
push eax
push 2
push dword [ebp - 4]
call fcn.0101743f
test eax, eax
je 0x10170e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 8]
mov edi, dword [ecx + eax]
movzx esi, word [ebp + 0xc]
push edi
push esi
call fcn.01015a8b
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
jne 0x1017072
movzx ecx, word [ebp + 0x14]
cmp ecx, eax
jb 0x1017072
mov eax, dword [ebp + 0x10]
push ebx
push edi
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x34], eax
call fcn.01016529
mov ebx, eax
push esi
mov dword [ebp - 0x24], ebx
call fcn.01015e16
mov edi, dword [ebp + 0x14]
sub edi, dword [ebp - 0x20]
add dword [ebp + 0x10], eax
cmp word [ebp + 0xc], 2
mov dword [ebp + 0x14], edi
je 0x1017034
cmp word [ebp + 0xc], 4
je 0x1017034
mov eax, dword [ebp + 0x18]
inc word [eax]
jmp 0x1017079
cmp dword [ebp + 0x10], ebx
jae 0x10170f3
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
movzx eax, di
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ecx + eax]
call fcn.010166f9
mov dword [ebp + 8], eax
cmp eax, 0x84b
jne 0x10170ae
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0x1c]
push dword [ebp - 8]
inc word [eax]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.01017307
or dword [ebp - 4], 0xffffffff
xor edi, edi
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x10], 0xc
cmp eax, dword [ebp - 0x30]
jae 0x10170fc
jmp 0x1016f32
test eax, eax
jne 0x10170fa
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
add dword [ebp + 0x10], eax
sub edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x18]
inc word [eax]
push 1
push dword [ebp - 0x34]
mov dword [ebp + 0x14], edi
push esi
call fcn.0101617f
mov ebx, dword [ebp - 0x24]
jmp 0x1017079
call esi
jmp 0x10170ee
mov dword [ebp + 8], 8
jmp 0x10170fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10170fc
mov dword [ebp + 8], 0x84b
xor edi, edi
pop ebx
cmp dword [ebp - 4], 0xffffffff
je 0x101710b
push dword [ebp - 4]
call fcn.01017307
cmp dword [ebp - 8], edi
je 0x1017119
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xc], edi
je 0x1017126
push dword [ebp - 0xc]
call sub.netutils.dll_NetApiBufferFree
cmp dword [ebp - 0x14], edi
je 0x1017132
mov dword [ebp + 8], 0x84b
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 0x18