Function at 0x402df0
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x38
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x118000
xor eax, eax
mov edi, 0x40b9b8
mov dword [esi + 4], edx
mov dword [esi + 0x112c], edx
mov dword [esp + 0x1c], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [0x86b9b8]
mov dword [esp + 8], 0x4000
cmp eax, edx
jbe 0x40309a
cmp eax, 8
ja 0x40309a
lea eax, [esp + 0x3c]
push eax
push edx
push edx
push edx
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x40309a
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebp
push ecx
push 0x40
call edi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
push 0x40
call edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push eax
push 0x40
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push edi
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x40307b
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x402e84
mov eax, edi
mov dword [esp + 0x40], eax
mov ecx, dword [eax + 0xc]
and ecx, 2
cmp cl, 2
jne 0x40305a
lea edx, [esp + 0x38]
push edx
push eax
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x402e84
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x30], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x403041
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x402ef3
mov eax, edi
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0xc]
and ecx, 2
cmp cl, 2
jne 0x403020
lea edx, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x402ef3
jmp 0x402f70
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x403007
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x402f6c
mov eax, dword [esp + 0x1c]
lea edi, [eax + 0x14]
mov ecx, dword [edi]
push 0x10
add ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
mov ecx, dword [esi + 0x112c]
add esp, 4
push eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [edx*2 + 0x40b9ba]
push eax
call ebp
mov eax, dword [esi + 0x112c]
add esp, 0xc
inc eax
inc ebx
mov dword [esi + 0x112c], eax
mov eax, dword [esp + 0x18]
add edi, 0x20
cmp ebx, eax
jb 0x402fb8
jmp 0x402f6c
cmp eax, 0x103
jne 0x402f70
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc ecx
add eax, 0x20
cmp ecx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jb 0x402f46
jmp 0x402ef3
cmp eax, 0x103
jne 0x402ef3
mov edx, dword [esp + 0x38]
push edx
call sub.MPR.dll_WNetCloseEnum
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
inc ecx
add eax, 0x20
cmp ecx, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
jb 0x402ecf
jmp 0x402e84
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
push ebx
call edi
mov ecx, dword [esp + 0x44]
push ecx
call sub.MPR.dll_WNetCloseEnum
pop ebp
pop ebx
mov eax, dword [esi + 0x112c]
pop edi
mov dword [esi + 4], eax
pop esi
add esp, 0x38
ret