Function at 0x14000a5e8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
mov rbx, rcx
xor r14d, r14d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov dword [rbp + 3], r8d
mov qword [rbp + 7], 1
mov dword [rbp - 1], r9d
lea rcx, [rbp - 0x21]
call fcn.140006704
nop
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
lea r9, [rbp - 0x31]
lea r8, [rbp - 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000a6c6
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14000a690
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a68b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a7f8
call fcn.14005f834
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], r14b
mov rbx, qword [rbp + 0x77]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000a89e
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r14
jmp 0x14000a89e
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp + 0x77]
test rbx, rbx
je 0x14000a7b4
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a71d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a7a3
cmp byte [rbp + 0x6f], r14b
je 0x14000a748
mov dword [rbp + 0x5f], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x5f]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000a75f
mov qword [rbp - 0x29], rsi
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14000a787
mov dword [rbp + 0x5f], r14d
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x5f]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rbp + 0x7f]
call fcn.14001e3d8
test al, al
jne 0x14000a7ff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14000a6d7
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14000a874
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a86f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a86f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14000a841
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a83c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a7f8
call fcn.14005f834
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], r14b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000a86a
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
jmp 0x14000a8a2
call fcn.14005f834
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], r14b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000a89e
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r14
or rax, 0xffffffffffffffff
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret