Function at 0x14016ed10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
xor r12d, r12d
mov qword [rbp - 0x19], 1
xorps xmm0, xmm0
xorps xmm1, xmm1
mov ebx, r12d
movdqu xmmword [rbp - 0x11], xmm0
movdqu xmmword [rbp - 1], xmm1
cmp qword [rdx + 0x10], r12
je 0x14016ed5c
cmp qword [rdx + 0x18], 0xf
mov rbx, rdx
jbe 0x14016ed52
mov rbx, qword [rdx]
mov qword [rbp - 0x21], 4
jmp 0x14016ed77
cmp qword [rcx + 0x10], rbx
je 0x14016ed6f
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
jbe 0x14016ed6f
mov rbx, qword [rcx]
mov dword [rbp - 0x1d], r9d
mov dword [rbp - 0x21], r12d
mov qword [rsp + 0xc0], rsi
lea rcx, [rbp - 0x41]
mov qword [rsp + 0xd0], rdi
mov edx, r8d
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
call fcn.14013fe00
cmp qword [rbp - 0x29], 0xf
lea rdx, [rbp - 0x41]
lea r9, [rbp + 0x4f]
mov rcx, rbx
cmova rdx, qword [rbp - 0x41]
lea r8, [rbp - 0x21]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14016ee38
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14016ee01
mov rcx, qword [rbp - 0x41]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016edfc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016ef7b
call fcn.1401c7f18
mov rbx, qword [rbp + 0x77]
movdqa xmm0, xmmword [0x140495320]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], r12b
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14016f021
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r12
jmp 0x14016f021
mov rbx, qword [rbp + 0x4f]
mov rsi, qword [rbp + 0x77]
test rbx, rbx
je 0x14016ef37
mov r15, qword [rbp + 0x7f]
movzx r14d, byte [rbp + 0x6f]
mov r8d, dword [rbx + 0xc]
xor r9d, r9d
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14016ee98
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14016ef2a
test r14b, r14b
je 0x14016eec2
mov edx, 6
mov dword [rbp + 0x67], 1
lea r9, [rbp + 0x67]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14016eed9
mov qword [rbp - 0x49], rdi
lea rdx, [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14016ef01
mov edx, 0x29
mov dword [rbp + 0x67], r12d
lea r9, [rbp + 0x67]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rbp + 0x67]
mov byte [rbp + 0x67], r12b
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140156260
test al, al
jne 0x14016ef82
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp byte [rbp + 0x67], r12b
jne 0x14016ef37
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14016ee52
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14016eff7
mov rcx, qword [rbp - 0x41]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016eff2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016eff2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14016efc3
mov rcx, qword [rbp - 0x41]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016efbe
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016ef7b
call fcn.1401c7f18
mov rcx, qword [rsi + 0x38]
movdqa xmm0, xmmword [0x140495320]
mov byte [rbp - 0x41], r12b
movdqu xmmword [rbp - 0x31], xmm0
test rcx, rcx
je 0x14016efed
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x14016f028
call fcn.1401c7f18
mov rcx, qword [rsi + 0x38]
movdqa xmm0, xmmword [0x140495320]
mov byte [rbp - 0x41], r12b
movdqu xmmword [rbp - 0x31], xmm0
test rcx, rcx
je 0x14016f021
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xc0]
add rsp, 0xa0
pop r12
pop rbx
pop rbp
ret