Function at 0x140001030
Capabilities:
Convert ip address from string
Create tcp socket
Receive data
Receive data on socket
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.140003bc0
sub rsp, rax
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov r14, rax
xor r15d, r15d
mov esi, r15d
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x60], r15d
lea edx, [r15 + 1]
lea r8d, [r15 + 6]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x1400010e4
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
jne 0x140001127
mov ecx, 0x202
call fcn.140002a30
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x1400010b0
mov dword [rsp + 0x50], r15d
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [rsp + 0x60]
cmp eax, 0xffffffff
cmovne ecx, dword [rsp + 0x50]
mov dword [rsp + 0x60], ecx
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, qword [0x1400079b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
mov word [rsp + 0x68], r12w
mov ecx, 0xc350
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xc350
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x6a], ax
movzx ecx, word [rsp + 0x68]
cmp ecx, 2
je 0x140001162
cmp ecx, 0x17
jne 0x1400013de
lea r8, [rsp + 0x70]
jmp 0x140001167
lea r8, [rsp + 0x6c]
lea rdx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400013de
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400011d6
movzx eax, word [rsp + 0x68]
cmp eax, 2
je 0x1400011a1
mov r8d, 0x1c
cmp eax, 0x17
cmovne r8d, r15d
jmp 0x1400011a7
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400011d6
mov edx, 0x1000
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14000137f
mov rcx, qword [rsp + 0x58]
mov rbx, 0xffffffffffffffff
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], r15d
cmp rcx, 0xffffffffffffffff
jne 0x1400011ef
mov edi, ecx
jmp 0x140001232
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov qword [rbp - 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x14000120c
lea edi, [rax - 0x63]
jmp 0x140001232
mov edi, r15d
inc rsi
mov rdx, rsi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140001810]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, edi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140001810]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rsp + 0x50], r15d
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp rbx, 0xffffffffffffffff
je 0x1400012c1
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14000129d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400013af
jmp 0x1400012c1
test eax, eax
js 0x1400012c1
lea rdx, [rbp - 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001480
mov rcx, rax
lea rdx, [0x140001810]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp rsi, 0x186a0
je 0x1400012d4
mov rcx, qword [rsp + 0x58]
jmp 0x1400011e5
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, r14
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
call fcn.140001650
nop
cmp rbx, 0xffffffffffffffff
je 0x14000131d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140001313
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14000134d
mov edx, r12d
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x14000133c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14000134d
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140002d70
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001ee0
nop
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140001b80
lea rdx, [0x1400058d8]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001ee0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140001b80
lea rdx, [0x1400058d8]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001ee0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140001b80
lea rdx, [0x1400058d8]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3