Function at 0x4a6ef0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531e8f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 2
test esi, esi
je 0x4a6f30
mov dword [esi], 0x57
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
cmp dword [eax - 4], 1
jle 0x4a6f6a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004533f0
mov eax, dword [ebp + 8]
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test esi, esi
je 0x4a6f95
mov dword [esi], edi
test edi, edi
je 0x4a710a
cmp edi, 0x55
je 0x4a710a
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c2224], 0
jne 0x4a7005
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4a6ffa
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2224
sub esp, 0xc
push 0x15c
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.004d0210
jmp 0x4a6ffc
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x5c4ad8], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4ad8]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4ad8]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x4a719a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00452e50
test al, al
jne 0x4a7061
push esi
lea ecx, [ebp - 0x14]
call fcn.00452330
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
push edi
push esi
push str.Connection_to___s__failed_with___lu_
push dword [0x5c4ad8]
call dword [ebp - 0x18]
add esp, 0x10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7099
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, dword [0x5c4ad8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4ad8]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov edx, dword [ebp + 8]
mov dword [ebx], 0
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a70dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a70fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 9
jmp 0x4a7174
push 0xc
call fcn.004eb06d
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.004a71b0
mov edx, dword [ebp + 8]
mov dword [ebx], eax
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0xb
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7167
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xd
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4a7186
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0044a700
int3