Function at 0x47cfa0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x711e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x7f9c40]
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 dword [ebp - 0x50], ecx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47cfee
xorps xmm0, xmm0
xor eax, eax
jmp 0x47d00c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044c740
or esi, 0xffffffff
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x47d066
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x32
mov dword [ebp - 0x34], 0x1a
test al, 1
je 0x47d05d
cmp eax, 1
jne 0x47d6d3
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d6d3
jmp 0x47d066
mov dword [ebp - 0x48], 1
jmp 0x47d072
mov dword [ebp - 0x48], 1
cmp esi, 0xffffffff
jne 0x47d0d6
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x47d08c
cmp eax, 0xb2ab117a
je 0x47d09b
cmp ecx, 0x257edfd0
jne 0x47d09f
cmp eax, 0xb2ab117a
jne 0x47d09f
mov al, 1
jmp 0x47d0b3
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x7f5028
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
jmp 0x47d0ff
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047ba10
add esp, 8
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x18], xmm0
push 0x7f000001
mov edi, 0x10
mov word [ebp - 0x20], ax
call ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00477440
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47d17d
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x42
mov dword [ebp - 0x34], 0x1a
je 0x47d17d
cmp dword [ebp - 0x28], 1
jne 0x47d6e5
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d6e5
cmp esi, 0xffffffff
jne 0x47d1e9
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x47d19c
cmp eax, 0xb2ab117a
je 0x47d1ab
cmp ecx, 0x257edfd0
jne 0x47d1af
cmp eax, 0xb2ab117a
jne 0x47d1af
mov al, 1
jmp 0x47d1c3
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x7f5028
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
jmp 0x47d2b2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
test edi, edi
jne 0x47d283
xorps xmm0, xmm0
mov dword [ebp - 0x28], edi
movq qword [ebp - 0x30], xmm0
mov edi, eax
push 0
call ebx
cmp dword [ebp - 0x1c], eax
jne 0x47d227
push 0x7f000001
call ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push bind
push esi
call fcn.0047c8a0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47d2f5
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x50
mov dword [ebp - 0x34], 0x1a
je 0x47d2f5
cmp dword [ebp - 0x28], 1
jne 0x47d6f7
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d6f7
jmp 0x47d2f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044c740
cmp edi, 0xffffffff
mov edi, dword [ebp - 0x44]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
jne 0x47d214
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x46
mov dword [ebp - 0x34], 0x1a
je 0x47d214
cmp eax, 1
jne 0x47d709
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d709
jmp 0x47d214
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47d315
xorps xmm0, xmm0
xor eax, eax
jmp 0x47d333
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044c740
or ebx, 0xffffffff
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 1
cmp ebx, 0xffffffff
jne 0x47d37f
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x55
mov dword [ebp - 0x34], 0x1a
test al, 1
je 0x47d37f
cmp eax, 1
jne 0x47d71b
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d71b
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.00478a50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47d3d1
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x59
mov dword [ebp - 0x34], 0x1a
je 0x47d3d1
cmp dword [ebp - 0x28], 1
jne 0x47d72d
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d72d
cmp esi, 0xffffffff
jne 0x47d435
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x47d3f0
cmp eax, 0xb2ab117a
je 0x47d3ff
cmp ecx, 0x257edfd0
jne 0x47d403
cmp eax, 0xb2ab117a
jne 0x47d403
mov al, 1
jmp 0x47d417
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x3c], 0x2719
mov dword [ebp - 0x38], 0x7f5028
or edi, 0xffffffff
movq xmm0, qword [ebp - 0x3c]
jmp 0x47d46b
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d466
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044c740
or edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
jmp 0x47d46b
xorps xmm0, xmm0
xor eax, eax
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
jne 0x47d4b7
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x5d
mov dword [ebp - 0x34], 0x1a
test al, 1
je 0x47d4b7
cmp eax, 1
jne 0x47d73f
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d73f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 1
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x21], 0
push eax
push 0x8004667e
lea eax, [ebp - 0x21]
push eax
push ebx
call fcn.0047c3e0
add esp, 0x14
test eax, eax
je 0x47d51b
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x63
mov dword [ebp - 0x34], 0x1a
je 0x47d51b
cmp dword [ebp - 0x28], 1
jne 0x47d751
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d751
mov dword [ebp - 0x48], 1
cmp ebx, 0xffffffff
jne 0x47d58b
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x47d541
cmp eax, 0xb2ab117a
je 0x47d550
cmp ecx, 0x257edfd0
jne 0x47d554
cmp eax, 0xb2ab117a
jne 0x47d554
mov al, 1
jmp 0x47d568
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x7f5028
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
jmp 0x47d5b1
push 4
lea eax, [ebp - 0x48]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047ba10
add esp, 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 1
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x21], 0
push eax
push 0x8004667e
lea eax, [ebp - 0x21]
push eax
push edi
call fcn.0047c3e0
add esp, 0x14
test eax, eax
je 0x47d615
test byte [ebp - 0x28], 1
mov dword [ebp - 0x40], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_socket_select_interrupter.ipp
mov dword [ebp - 0x3c], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x38], 0x6d
mov dword [ebp - 0x34], 0x1a
je 0x47d615
cmp dword [ebp - 0x28], 1
jne 0x47d763
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x47d763
mov dword [ebp - 0x48], 1
cmp edi, 0xffffffff
jne 0x47d65e
mov edx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp edx, 0x257edfd1
jne 0x47d63b
cmp eax, 0xb2ab117a
je 0x47d684
cmp edx, 0x257edfd0
jne 0x47d64a
cmp eax, 0xb2ab117a
je 0x47d684
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
call dword [eax + 0x18]
jmp 0x47d684
push 4
lea eax, [ebp - 0x48]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047ba10
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [eax], edi
mov dword [eax + 4], ebx
cmp esi, 0xffffffff
je 0x47d6b7
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
push eax
push 1
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0
push eax
xorps xmm0, xmm0
push esi
movq qword [ebp - 0x3c], xmm0
call fcn.00478480
add esp, 0x10
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.006def69
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
lea eax, [ebp - 0x40]
push eax
push str.socket_select_interrupter
lea eax, [ebp - 0x30]
push eax
call fcn.0044f150
int3