Function at 0x7f2f4da7
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x7f30bacc], esi
je 0x7f2f4dd0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MPR.dll_WNetEnumResourceW
jmp 0x7f2f501f
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
push edi
je 0x7f2f5018
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x7f2f5018
mov eax, dword [ebx]
cmp eax, esi
je 0x7f2f4e1d
shr eax, 1
mov dword [ebp - 8], eax
je 0x7f2f4e0a
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 0x7f2f4e0d
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
jne 0x7f2f4e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x7f2f501d
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 0x7f2f4e56
sub eax, 0xea
je 0x7f2f4e56
sub eax, 0x19
je 0x7f2f4e54
mov eax, dword [ebp - 8]
lea eax, [eax + eax - 0x20]
mov dword [ebx], eax
jmp 0x7f2f4ffd
mov dword [edi], esi
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
mov esi, eax
xor ecx, ecx
shl esi, 5
test edx, edx
je 0x7f2f4fe8
cmp dword [ebp - 4], ecx
je 0x7f2f4fe8
and dword [ebp + 8], ecx
test eax, eax
jbe 0x7f2f4fe5
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x10
sub eax, edx
lea edi, [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x7f2f4e94
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx - 0x10]
mov dword [edi - 8], ecx
mov ecx, dword [ebx - 0xc]
mov dword [edi - 4], ecx
mov eax, dword [eax + edi]
mov dword [edi], eax
mov eax, dword [ebx - 4]
mov dword [edi + 4], eax
mov eax, dword [ebx]
cmp eax, 0xffff
jbe 0x7f2f4eed
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f4eed
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 [0x7f30bac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f4ef1
and dword [edi + 8], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffff
jbe 0x7f2f4f35
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f4f35
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 [0x7f30bac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f4f39
and dword [edi + 0xc], 0
mov eax, dword [ebx + 8]
cmp eax, 0xffff
jbe 0x7f2f4f7d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f4f7d
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 [0x7f30bac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f4f81
and dword [edi + 0x10], 0
mov eax, dword [ebx + 0xc]
cmp eax, 0xffff
jbe 0x7f2f4fc5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea eax, [esi + eax*2]
cmp eax, dword [ecx]
jae 0x7f2f4fc5
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 [0x7f30bac8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
jmp 0x7f2f4fc9
and dword [edi + 0x14], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ebx, 0x20
add edi, 0x20
cmp ecx, dword [eax]
jb 0x7f2f4e91
mov ebx, dword [ebp + 0x14]
mov edi, eax
mov ecx, dword [ebp + 8]
cmp dword [ebx], esi
jae 0x7f2f4ff7
mov eax, dword [ebp - 8]
lea eax, [eax + eax - 0x20]
mov dword [ebx], eax
jmp 0x7f2f4ff9
mov dword [ebx], esi
mov dword [edi], ecx
xor esi, esi
cmp dword [ebp - 4], esi
je 0x7f2f5013
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 0x7f2f501d
mov eax, 0x1e7
pop edi
pop ebx
pop esi
leave
ret 0x10