Function at 0x465a60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3e06
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x360], eax
test eax, eax
je 0x465aa9
mov dword [eax], 0x57
xor ebx, ebx
mov dword [ebp - 0x348], ebx
mov byte [ebp - 0x339], bl
call fcn.0040d990
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x465ad3
push 0x80004005
call fcn.0040abe0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x35c], eax
lea edx, [ebp - 0x35c]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00469d00
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3c67], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x358], xmm0
jne 0x465b70
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x344], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x465b65
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c67
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0xf9
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x465b67
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x4f41a4], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f41a4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
call fcn.0040d990
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x465ba4
push 0x80004005
call fcn.0040abe0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x340], edi
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x35c]
test esi, esi
je 0x465be9
test esi, 0xffff0000
jne 0x465be9
movzx ebx, si
push 0
push ebx
call fcn.0040ad60
add esp, 8
test eax, eax
je 0x465bfb
push ebx
push eax
lea ecx, [ebp - 0x340]
call fcn.0041adc0
jmp 0x465bf5
push esi
lea ecx, [ebp - 0x340]
call fcn.00418c30
mov edi, dword [ebp - 0x340]
mov ebx, dword [ebp - 0x34c]
mov byte [ebp - 4], 3
mov eax, dword [0x4f41a4]
push edi
push ebx
push str.Probe_IP:__u:__s
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x465c38
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f41a4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41a4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
mov dword [ebp - 0x36c], edi
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
jne 0x465d4a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov dword [ebp - 0x348], ebx
call fcn.0046c0e0
mov edi, eax
mov ecx, edi
call fcn.0046e8e0
cmp byte [0x4f3c73], 0
jne 0x465cf3
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x344], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x465ce8
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c73
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x101
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x465cea
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x4f41bc], eax
mov ecx, edi
call fcn.0046e8f0
mov ecx, dword [0x4f41bc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f41bc]
push ebx
push dword [ebp - 0x34c]
mov ecx, dword [eax]
push str.Probe_socket_failed:__u:__d
push eax
call dword [ecx + 0x48]
mov ecx, dword [0x4f41bc]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41bc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
mov byte [ebp - 4], 0
jmp 0x4660d9
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
mov eax, 2
movq qword [ebp - 0x1e], xmm0
push 0x1bd
mov word [ebp - 0x12], 0
mov word [ebp - 0x20], ax
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x1e], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x340]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x340], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x465e75
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov dword [ebp - 0x348], ebx
call fcn.0046c0e0
mov ecx, eax
mov dword [ebp - 0x344], eax
call fcn.0046e8e0
cmp byte [0x4f3c6f], 0
jne 0x465e29
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x465e1e
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c6f
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x10e
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x465e20
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x4f41b4], eax
mov ecx, dword [ebp - 0x344]
call fcn.0046e8f0
mov ecx, dword [0x4f41b4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f41b4]
push ebx
push dword [ebp - 0x34c]
mov ecx, dword [eax]
push str.Probe_ioctl_failed:__u:__d
push eax
call dword [ecx + 0x48]
mov ecx, dword [0x4f41b4]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41b4]
jmp 0x4660c3
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x465ffa
mov ecx, dword [ebp + 8]
mov eax, 0x10624dd3
mul ecx
mov dword [ebp - 0x364], 0
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x368], edx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x124], edi
sub ecx, eax
mov dword [ebp - 0x128], 1
imul eax, ecx, 0x3e8
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x338], 1
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x465fe7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov dword [ebp - 0x348], ebx
call fcn.0046c0e0
mov ecx, eax
mov dword [ebp - 0x344], eax
call fcn.0046e8e0
cmp byte [0x4f3c65], 0
jne 0x465f9b
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x465f90
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c65
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x128
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x465f92
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x4f41d0], eax
mov ecx, dword [ebp - 0x344]
call fcn.0046e8f0
mov ecx, dword [0x4f41d0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f41d0]
push ebx
push dword [ebp - 0x34c]
mov ecx, dword [eax]
push str.Probe_select_failed:__u:__d
push eax
call dword [ecx + 0x48]
mov ecx, dword [0x4f41d0]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41d0]
jmp 0x4660c3
test eax, eax
sete al
test al, al
sete byte [ebp - 0x339]
jmp 0x4660ce
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov dword [ebp - 0x348], ebx
call fcn.0046c0e0
mov ecx, eax
mov dword [ebp - 0x344], eax
call fcn.0046e8e0
cmp byte [0x4f3c74], 0
jne 0x46607c
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x466071
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c74
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x131
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x466073
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x4f41d8], eax
mov ecx, dword [ebp - 0x344]
call fcn.0046e8f0
mov ecx, dword [0x4f41d8]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f41d8]
push ebx
push dword [ebp - 0x34c]
mov ecx, dword [eax]
push str.Probe_connect_failed:__u:__d
push eax
call dword [ecx + 0x48]
mov ecx, dword [0x4f41d8]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41d8]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
push edi
mov byte [ebp - 4], 0
call dword [sym.imp.WSOCK32.dll_closesocket]
call fcn.0046c0e0
mov edi, eax
mov ecx, edi
call fcn.0046e8e0
cmp byte [0x4f3c66], 0
jne 0x466149
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x46613e
movsd xmm0, qword [ebp - 0x358]
mov ecx, eax
push 0x4f3c66
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x136
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.0046bf00
jmp 0x466140
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x4f41cc], eax
mov ecx, edi
call fcn.0046e8f0
mov ecx, dword [0x4f41cc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
call fcn.0040d990
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46617d
push 0x80004005
call fcn.0040abe0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x340], edi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4661be
test esi, 0xffff0000
jne 0x4661be
movzx ebx, si
push 0
push ebx
call fcn.0040ad60
add esp, 8
test eax, eax
je 0x4661d0
push ebx
push eax
lea ecx, [ebp - 0x340]
call fcn.0041adc0
jmp 0x4661ca
push esi
lea ecx, [ebp - 0x340]
call fcn.00418c30
mov edi, dword [ebp - 0x340]
movzx eax, byte [ebp - 0x339]
mov byte [ebp - 4], 0xb
mov ecx, dword [0x4f41cc]
push eax
push edi
push str.Probe_of___s__finished_with_result__d
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
add esp, 0x10
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466211
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f41cc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41cc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
mov ecx, dword [ebp - 0x360]
test ecx, ecx
je 0x46623f
mov eax, dword [ebp - 0x348]
mov dword [ecx], eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46625d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x339]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret