Function at 0x140014820
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, qword [rbp + 0x7f]
mov qword [rbp - 0x71], rsi
mov r12, qword [rbp + 0x87]
xor r13d, r13d
mov ebx, r13d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 0x31], 1
cmp qword [rdx + 0x10], r13
je 0x140014894
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14001488a
mov rbx, qword [rdx]
mov qword [rbp - 0x39], 4
jmp 0x1400148af
cmp qword [rcx + 0x10], rbx
je 0x1400148a7
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1400148a7
mov rbx, qword [rcx]
mov dword [rbp - 0x35], r9d
mov dword [rbp - 0x39], r13d
mov edx, r8d
lea rcx, [rbp - 0x59]
call fcn.140002060
nop
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rdx, qword [rbp - 0x59]
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400149f7
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x1400149ed
movzx r15d, byte [rbp + 0x77]
movzx r14d, byte [rbp + 0x6f]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r13d
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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140014946
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 0x1400149dc
test r14b, r14b
je 0x140014972
mov dword [rbp - 0x61], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x61]
mov edx, 6
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 4], 0x17
jne 0x14001499c
mov dword [rbp - 0x61], r15d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x61]
mov edx, 0x29
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400149b3
mov qword [rbp - 0x61], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
call qword [rax + reloc.WS2_32.dll_recv]
mov byte [rbp - 0x79], 0
lea r9, [rbp - 0x79]
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.140003ea0
test al, al
jne 0x140014a48
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp byte [rbp - 0x79], 0
jne 0x1400149e9
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140014900
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x59]
call fcn.140013250
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140014a1a
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r13
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400ce8a0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x59]
call fcn.140013250
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140014a76
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r13
mov rax, rdi
jmp 0x140014a21