Function at 0x403340
Capabilities:
Connect network resource
Enumerate network shares
Initialize winsock library

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push 0x190
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00413b10
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 5
call sub.MPR.dll_WNetOpenEnumW
cmp dword [ebp - 0xc], 0
je 0x4011e7
push 0x8000
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0x8000
call fcn.00416e4b
push 0x8000
mov esi, eax
push 0
push esi
mov dword [ebp - 0x28], esi
call fcn.00413b10
add esp, 0x10
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
call sub.MPR.dll_WNetEnumResourceW
xor edi, edi
test dword [ebp - 8], 0xffffffe0
mov dword [ebp - 4], edi
jbe 0x4011d2
add esi, 4
mov dword [ebp - 0x14], esi
cmp dword [esi + 8], 2
jne 0x4011b7
cmp dword [esi], 0
jne 0x4011b7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4011b7
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x50], 3
push eax
push 0
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 3
movaps xmm0, xmmword [ebp - 0x50]
movaps xmmword [ebp - 0x70], xmm0
push 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movaps xmm0, xmmword [ebp - 0x40]
push 2
movaps xmmword [ebp - 0x60], xmm0
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4011b7
push 0xc35000
push 0x40
mov dword [ebp - 0x1c], 0xc35000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4011b7
xor edi, edi
cmp dword [ebp - 0x10], edi
jbe 0x4011b4
mov esi, dword [ebp - 0x24]
add esi, 4
nop dword [eax]
test byte [esi + 8], 2
jne 0x40117b
test byte [esi], 1
je 0x4011a8
push 1
push 0
push 0
lea eax, [esi - 4]
push eax
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x4011a8
push dword [esi + 0x10]
call fcn.00401210
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402950
add esp, 8
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x10]
jb 0x401170
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edi
add esi, 0x20
shr eax, 5
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], esi
cmp edi, eax
jb 0x4010b6
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4011df
push esi
call fcn.00416e46
add esp, 4
push dword [ebp - 0xc]
call sub.MPR.dll_WNetCloseEnum
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
jmp section..text
mov eax, dword [0x43a88c]
push 1
push 0
push 0
push str.local_disks
push eax
push eax
call fcn.004105b0
push eax
call fcn.00401990
add esp, 0x1c
mov ecx, str.true
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403385
test dl, dl
je 0x403381
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403385
add eax, 2
add ecx, 2
test dl, dl
jne 0x403365
xor eax, eax
jmp 0x40338a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403393
call fcn.00401f80
mov eax, dword [0x43a88c]
push 1
push 0
push 0
push str.network_shares
push eax
push eax
call fcn.004105b0
push eax
call fcn.00401990
add esp, 0x1c
mov ecx, str.true
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033d8
test dl, dl
je 0x4033d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033b8
xor eax, eax
jmp 0x4033dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4022d0
ret