Function at 0x466730
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48465d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
lea esi, [edi + 0x624]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esi], xmm0
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [edi + 0x628], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push dword [edi + 8]
mov word [edi + 0x626], ax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x4667d1
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x1ff
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x4667bc
lea esi, [edi + 0x18]
lea ecx, [esi + 0x600]
mov dword [ebp - 0x10], ecx
cmp esi, ecx
je 0x466835
add esi, 0x50
mov eax, dword [esi - 0x20]
cmp eax, 0xffffffff
je 0x46680d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov dword [esi - 0x20], 0xffffffff
mov dword [esi - 0xc], 0
lea eax, [esi - 0x1c]
cmp dword [esi - 8], 0x10
jb 0x46681f
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esi - 4]
cmp eax, dword [esi]
je 0x46682b
mov dword [esi], eax
add esi, 0x60
lea eax, [esi - 0x50]
cmp eax, ecx
jne 0x4667f4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x8004667e
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x4140e0
push dword [ebp + 8]
mov byte [edi + 0x620], 0
push str.TCP_Server:_start_thread_at_port
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 8
call fcn.0047604b
add esp, 4
test eax, eax
je 0x466899
mov dword [eax], edi
mov dword [eax + 4], 0x465880
jmp 0x46689b
xor eax, eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4656f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4668fa
cmp dword [edi + 0x61c], 0
je 0x4668d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x61c], eax
mov al, 1
mov dword [edi + 0x618], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x14], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3