Function at 0x4653d0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 2
test esi, esi
je 0x465414
mov dword [esi], 0x57
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
cmp dword [eax - 4], 1
jle 0x465462
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0041a4a0
mov eax, dword [ebp + 8]
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push dword [ebp + 0x10]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test esi, esi
je 0x46548d
mov dword [esi], edi
test edi, edi
je 0x4655a4
cmp edi, 0x55
je 0x4655a4
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3c6d], 0
jne 0x465506
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4654fb
push 0x4f3c6d
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0xbc
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x4654fd
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x4f41a0], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f41a0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00418b90
mov byte [ebp - 4], 4
mov ecx, dword [0x4f41a0]
push edi
push dword [eax]
mov edx, dword [ecx]
push str.Connection_to___s__failed_with___lu_
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 0x10
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x465567
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f41a0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41a0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [edi], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x4655fb
push 0xc
call fcn.00473f4b
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x4655db
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0041a940
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00465660
jmp 0x4655dd
xor eax, eax
mov edi, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [edi], eax
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x465605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x465625
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x465646
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret