Function at 0x14000a618
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.140006728
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 0x14000a6f6
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14000a6c0
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a6bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a828
call fcn.14005d304
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 0x14000a8ce
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r14
jmp 0x14000a8ce
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp + 0x77]
test rbx, rbx
je 0x14000a7e4
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 0x14000a74d
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 0x14000a7d3
cmp byte [rbp + 0x6f], r14b
je 0x14000a778
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 0x14000a78f
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 0x14000a7b7
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.14001e0ec
test al, al
jne 0x14000a82f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14000a707
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 0x14000a8a4
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a89f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a89f
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 0x14000a871
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a86c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a828
call fcn.14005d304
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 0x14000a89a
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
jmp 0x14000a8d2
call fcn.14005d304
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 0x14000a8ce
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