Function at 0x30165433
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x230]
push eax
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [0x3017d02c], ebx
push esi
call fcn.30158783
cmp eax, 0xffffffff
jne 0x3016549e
test byte [ebp + 0xc], 0x20
jne 0x30165495
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [esi + 2]
push eax
call fcn.30028c12
movzx eax, word [esi]
mov word [ebp + eax*2 - 0x230], bx
lea eax, [ebp - 0x230]
push eax
push 0x20
call fcn.30095ff3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebp + 0xc], 2
jne 0x301654c8
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push eax
call fcn.301659ee
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x301654c8
cmp eax, 0xfffffff5
jne 0x301654c8
push 4
pop eax
jmp 0x30165497
mov eax, dword [0x3017f120]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x270]
push ebx
mov dword [0x3017f120], eax
lea eax, [ebp - 0x270]
push eax
call fcn.30001d18
pop ecx
test eax, eax
pop ecx
jne 0x30165745
movzx eax, word [ebp - 0x230]
push 0x2080
lea eax, [eax + eax + 0x20]
push eax
call fcn.30028bef
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [0x3017f120], eax
movzx eax, word [ebp - 0x230]
inc eax
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.30028c12
mov eax, dword [ebp + 0xc]
or al, 4
mov dword [esi + 0x10], ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov eax, dword [0x3017db30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp eax, 0xfffffff4
mov dword [0x3017db30], esi
push 1
jne 0x30165661
movzx edi, word [ebp - 0x230]
pop eax
xor ecx, ecx
cmp eax, edi
jg 0x3016558a
mov dx, word [ebp + ecx - 0x22e]
cmp dx, 0x5c
mov word [ebp + ecx - 0x470], dx
jne 0x30165582
inc ebx
inc eax
inc ecx
inc ecx
cmp ebx, 4
jl 0x30165567
and word [ebp + eax*2 - 0x474], 0
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.30001448
push 1
pop edi
push 0xc
push 0
lea eax, [ebp - 0x470]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push dword [0x3017d99c]
mov dword [ebp - 0x2c], edi
call sub.MPR.dll_WNetAddConnection3W
lea eax, [ebp - 8]
push eax
push dword [esi]
lea eax, [ebp - 0x230]
push eax
call fcn.301659ee
cmp eax, 0xfffffff4
mov dword [ebp - 4], eax
jne 0x301655e4
or eax, 0xffffffff
mov dword [ebp - 4], eax
test byte [ebp + 0xc], 2
je 0x30165664
test byte [ebp + 0xc], 0x10
mov ebx, edi
je 0x30165628
lea eax, [ebp - 0x230]
push eax
call fcn.30003a19
test eax, eax
je 0x30165628
lea eax, [ebp - 0x230]
push eax
call fcn.301583c4
test eax, eax
je 0x30165628
lea eax, [ebp - 0x230]
push eax
push 0x2f
call fcn.30166451
cmp eax, edi
jne 0x301656f3
push esi
call fcn.30158030
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jge 0x30165736
push 0
push edi
call fcn.3016634b
test eax, eax
jne 0x30165628
cmp edi, 0xfffffffc
je 0x301656ec
cmp edi, 0xfffffffd
jne 0x301656f9
push 6
pop ebx
jmp 0x301656f9
pop edi
jmp 0x301655e4
test eax, eax
jge 0x30165730
mov ecx, dword [esi]
test cl, 1
jne 0x301656cd
cmp eax, 0xfffffff8
je 0x301656c6
cmp eax, 0xfffffffc
je 0x301656ec
cmp eax, 0xfffffffe
jne 0x301656d7
push 3
pop ebx
push 0x14
test ch, 4
pop edx
jne 0x301656f9
test cl, 0x20
jne 0x301656d7
test byte [0x3017d048], 2
jne 0x301656ac
lea eax, [ebp - 0x230]
push eax
push edx
call fcn.30166451
cmp eax, edi
jne 0x301656f3
or dword [esi], edi
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.301659ee
mov dword [ebp - 4], eax
jmp 0x30165664
push 2
pop ebx
push 0x15
jmp 0x30165687
cmp eax, 0xfffffff8
jne 0x301656d7
test ch, 4
jne 0x30165729
xor ebx, ebx
push ebx
push eax
call fcn.3016634b
test eax, eax
je 0x301656f9
lea eax, [ebp - 8]
push eax
push dword [esi]
jmp 0x301656b5
push 5
jmp 0x3016565b
mov dword [0x3017d02c], edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x30165706
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov dword [0x3017db30], eax
movzx eax, word [ebp - 0x230]
lea eax, [eax + eax + 0x20]
push eax
push esi
call dword [0x3017ba7c]
movzx eax, bx
jmp 0x30165497
push 2
jmp 0x3016565b
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [0x3017db30], eax
mov eax, esi
jmp 0x30165497
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x30165752
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov dword [0x3017f120], eax
push 5
jmp 0x301654c5