Function at 0x14019f010
Capabilities:
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov r15, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14019f177
mov rsi, rax
mov qword [rsp + 0xb8], 0
mov word [rsp + 0xb0], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
mov dword [rsp + 0xb4], eax
mov cx, 0xfae
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xb2], ax
test r15, r15
je 0x14019f2bd
mov edi, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x30]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, r15
call fcn.14003be20
mov word [rsp + 0xb0], 2
xor eax, eax
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x50], xmm0
movzx eax, byte [r14 + 0x17]
mov r15, rax
test al, al
jns 0x14019f0ff
mov r15, qword [rsp + 0x38]
test r15, r15
je 0x14019f183
test al, al
jns 0x14019f10d
mov r14, qword [rsp + 0x30]
mov rcx, r14
mov edx, 0x3a
mov r8, r15
call fcn.140204d80
test rax, rax
je 0x14019f183
sub rax, r14
cmp rax, 0xffffffffffffffff
je 0x14019f183
lea r14, [rax + 1]
cmp r14, r15
jae 0x14019f183
lea r12, [rsp + 0xa0]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x70]
lea r15, [rsp + 0x30]
mov rdx, r15
xor r8d, r8d
mov r9, rax
call fcn.1400e8634
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x50]
mov rdx, r15
mov r8, r14
mov r9, 0xffffffffffffffff
call fcn.1400e8634
jmp 0x14019f19c
lea rdx, str.Failed_to_create_socket._n
jmp 0x14019f337
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x30]
call fcn.140043444
xor eax, eax
mov byte [rsp + 0x67], al
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x87]
mov r8, rax
test al, al
jns 0x14019f1b0
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x14019f245
test al, al
jns 0x14019f1c4
mov rdx, qword [rsp + 0x70]
jmp 0x14019f1c9
lea rdx, [rsp + 0x70]
lea rbx, [rsp + 0x90]
mov rcx, rbx
call fcn.14003db1a
cmp qword [rbx + 8], 7
jne 0x14019f20b
lea rax, str.0.0.0.0
lea rdx, [rsp + 0xa0]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0x90]
call fcn.14003dad6
test eax, eax
je 0x14019f243
cmp byte [rsp + 0x87], 0
jns 0x14019f21c
mov rcx, qword [rsp + 0x70]
jmp 0x14019f221
lea rcx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14019f287
cmp word [rax + 0x10], 2
jne 0x14019f287
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
test rax, rax
je 0x14019f287
mov ebx, dword [rax]
jmp 0x14019f245
xor ebx, ebx
cmp byte [rsp + 0x67], 0
js 0x14019f255
je 0x14019f278
lea rcx, [rsp + 0x50]
jmp 0x14019f262
cmp qword [rsp + 0x58], 0
je 0x14019f278
mov rcx, qword [rsp + 0x50]
call fcn.140223d24
cmp eax, 0xffff
ja 0x14019f287
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov edi, eax
mov dword [rsp + 0xb4], ebx
mov word [rsp + 0xb2], di
cmp byte [rsp + 0x67], 0
jns 0x14019f298
mov rcx, qword [rsp + 0x50]
call fcn.1402021a8
cmp byte [rsp + 0x87], 0
jns 0x14019f2ac
mov rcx, qword [rsp + 0x70]
call fcn.1402021a8
cmp byte [rsp + 0x47], 0
jns 0x14019f2bd
mov rcx, qword [rsp + 0x30]
call fcn.1402021a8
lea r9, [rsp + 0x70]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14019f2fa
lea rdx, str.Failed_to_set_SO_EXCLUSIVEADDRUSE_option._n
mov ecx, 0xfffffffe
call fcn.14014fd13
lea rdx, [rsp + 0xb0]
mov rcx, rsi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14019f31e
lea rdx, str.Failed_to_bind_server._n
jmp 0x14019f337
mov rcx, rsi
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14019f367
lea rdx, str.Failed_to_listen._n
mov ecx, 0xfffffffd
call fcn.14014fd13
xor edi, edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140203460
mov rax, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 8
call fcn.14020216c
mov rdi, rax
mov qword [rax], rsi
jmp 0x14019f343