Function at 0x7f2f3832
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x7f307acc], esi
je 0x7f2f3859
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MPR.dll_WNetEnumResourceW
jmp 0x7f2f3a95
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
push edi
je 0x7f2f3a8e
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x7f2f3a8e
mov eax, dword [ebx]
cmp eax, esi
je 0x7f2f38a6
shr eax, 1
mov dword [ebp - 8], eax
je 0x7f2f3893
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
jmp 0x7f2f3896
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
jne 0x7f2f38ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x7f2f3a93
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
sub eax, esi
je 0x7f2f38df
sub eax, 0xea
je 0x7f2f38df
sub eax, 0x19
je 0x7f2f38dd
mov eax, dword [ebp - 8]
lea eax, [eax + eax - 0x20]
mov dword [ebx], eax
jmp 0x7f2f3a73
mov dword [edi], esi
mov eax, dword [edi]
mov esi, eax
xor ecx, ecx
shl esi, 5
test eax, eax
mov dword [ebp + 8], ecx
jbe 0x7f2f3a5e
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ebx, 0x10
sub ecx, eax
lea edi, [eax + 8]
mov dword [ebp - 0xc], ecx
jmp 0x7f2f390c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx - 0x10]
mov dword [edi - 8], eax
mov eax, dword [ebx - 0xc]
mov dword [edi - 4], eax
mov eax, dword [ecx + edi]
mov dword [edi], eax
mov eax, dword [ebx - 4]
mov dword [edi + 4], eax
mov eax, dword [ebx]
cmp eax, 0xffff
jbe 0x7f2f3965
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f3965
mov eax, dword [ebp + 0x10]
lea eax, [eax + esi*2]
mov dword [edi + 8], eax
mov ecx, dword [ecx]
sub ecx, esi
shr ecx, 1
push ecx
push eax
push 0xffffffffffffffff
push dword [ebx]
push 0
push dword [0x7f307ac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f3969
and dword [edi + 8], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffff
jbe 0x7f2f39ad
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f39ad
mov eax, dword [ebp + 0x10]
lea eax, [eax + esi*2]
mov dword [edi + 0xc], eax
mov ecx, dword [ecx]
sub ecx, esi
shr ecx, 1
push ecx
push eax
push 0xffffffffffffffff
push dword [ebx + 4]
push 0
push dword [0x7f307ac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f39b1
and dword [edi + 0xc], 0
mov eax, dword [ebx + 8]
cmp eax, 0xffff
jbe 0x7f2f39f5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f39f5
mov eax, dword [ebp + 0x10]
lea eax, [eax + esi*2]
mov dword [edi + 0x10], eax
mov ecx, dword [ecx]
sub ecx, esi
shr ecx, 1
push ecx
push eax
push 0xffffffffffffffff
push dword [ebx + 8]
push 0
push dword [0x7f307ac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f39f9
and dword [edi + 0x10], 0
mov eax, dword [ebx + 0xc]
cmp eax, 0xffff
jbe 0x7f2f3a3d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f3a3d
mov eax, dword [ebp + 0x10]
lea eax, [eax + esi*2]
mov dword [edi + 0x14], eax
mov ecx, dword [ecx]
sub ecx, esi
shr ecx, 1
push ecx
push eax
push 0xffffffffffffffff
push dword [ebx + 0xc]
push 0
push dword [0x7f307ac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f3a41
and dword [edi + 0x14], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
inc ecx
add ebx, 0x20
add edi, 0x20
cmp ecx, dword [eax]
mov dword [ebp + 8], ecx
jb 0x7f2f3909
mov ebx, dword [ebp + 0x14]
mov edi, eax
cmp dword [ebx], esi
jae 0x7f2f3a6d
mov eax, dword [ebp - 8]
lea eax, [eax + eax - 0x20]
mov dword [ebx], eax
jmp 0x7f2f3a6f
mov dword [ebx], esi
xor esi, esi
mov dword [edi], ecx
cmp dword [ebp - 4], esi
je 0x7f2f3a89
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
jmp 0x7f2f3a93
mov eax, 0x1e7
pop edi
pop ebx
pop esi
leave
ret 0x10