Function at 0x831e10
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
or dword [esp + 4], 0xffffffff
push ebx
push esi
mov eax, 0x4000
push edi
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.00839041
mov ebx, eax
mov dword [esp], 0x10000
call fcn.00839041
pop ecx
mov dword [esp + 0x14], eax
cmp ebx, edi
je 0x83206b
cmp eax, edi
je 0x832064
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x832054
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x832054
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
call fcn.00835962
test eax, eax
jne 0x832054
jmp 0x832020
dec dword [esp + 0x10]
mov eax, dword [esp + 0x10]
shl eax, 5
add eax, ebx
test byte [eax + 0xc], 2
je 0x831f18
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x83201e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x831ef5
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x83201e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x83201e
push eax
push ecx
call fcn.008390dd
pop ecx
pop ecx
test eax, eax
je 0x83201e
mov eax, dword [esp + 0x10]
dec edi
push edi
push dword [ebp + 0x18]
shl eax, 5
push dword [ebp + 0x14]
add eax, ebx
push esi
push eax
push dword [ebp + 8]
call fcn.00831e10
add esp, 0x18
jmp 0x83201e
test byte [eax + 4], 1
je 0x83201e
push dword [eax + 0x14]
call fcn.008390c6
pop ecx
cmp eax, 0x8007
ja 0x83201e
mov eax, dword [esp + 0x10]
push 8
shl eax, 5
push str._UNCe_
push dword [eax + ebx + 0x14]
call fcn.00839216
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x831f65
shl eax, 5
push dword [eax + ebx + 0x14]
push dword [esp + 0x18]
jmp 0x831f95
shl eax, 5
mov edi, dword [eax + ebx + 0x14]
jmp 0x831f71
add edi, 2
push 0x5c
pop eax
cmp ax, word [edi]
je 0x831f6e
push 0x10
push str._UNCe_
push dword [esp + 0x1c]
call fcn.00838fd7
mov eax, dword [esp + 0x20]
add esp, 0xc
push edi
add eax, 0x10
push eax
call fcn.0083927d
mov edi, dword [ebp + 0x14]
mov edx, dword [edi]
pop ecx
pop ecx
push dword [esp + 0x14]
call fcn.00833711
pop ecx
test eax, eax
jns 0x83201e
mov eax, dword [esp + 0x14]
push edi
call fcn.008335d2
pop ecx
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi]
call fcn.00833c7a
push eax
call fcn.00831706
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00835840
add esp, 0x14
test eax, eax
je 0x831fe9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
je 0x83201e
push dword [ebp + 0x18]
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
call fcn.00833c7a
push eax
call fcn.00831706
pop ecx
push eax
mov eax, dword [esp + 0x28]
call fcn.00835840
add esp, 0x14
test eax, eax
je 0x83201e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esp + 0x10], edi
jne 0x831ea9
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x2c], 0x4000
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x831e94
cmp dword [esp + 0x18], edi
je 0x832064
push dword [esp + 0x18]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push ebx
call fcn.008390a1
pop ecx
cmp dword [esp + 0x14], edi
je 0x83207b
push dword [esp + 0x14]
call fcn.008390a1
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret