Function at 0x1400094f0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov qword [rbp - 0x19], 1
xor r12d, r12d
movzx ecx, byte [rbx]
test cl, cl
je 0x140009540
mov qword [rbp - 0x21], 4
jmp 0x14000954a
mov dword [rbp - 0x1d], r9d
mov eax, dword [rbp + 0x67]
mov dword [rbp - 0x21], eax
test cl, cl
cmove rbx, rdx
mov edx, r8d
lea rcx, [rbp - 0x41]
call fcn.1400367d0
nop
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae rdx, qword [rbp - 0x41]
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400095f2
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400095bb
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097f5
call fcn.14003bcb0
movdqa xmm0, xmmword [0x140071a20]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov rbx, qword [rbp + 0x77]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000975e
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r12
jmp 0x14000975e
mov rbx, qword [rbp - 0x49]
mov rsi, qword [rbp + 0x77]
test rbx, rbx
je 0x1400096ef
mov r15, qword [rbp + 0x7f]
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
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 0x140009656
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 0x1400096de
test r14b, r14b
je 0x140009680
mov dword [rbp + 0x4f], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x4f]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140009697
mov qword [rbp + 0x4f], rdi
mov rax, qword [rcx]
lea rdx, [rbp + 0x4f]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400096bf
mov dword [rbp + 0x4f], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x4f]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140014550
test al, al
jne 0x140009781
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140009610
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140009734
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000972f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097f5
call fcn.14003bcb0
movdqa xmm0, xmmword [0x140071a20]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14000975e
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400097c3
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400097be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097f5
call fcn.14003bcb0
movdqa xmm0, xmmword [0x140071a20]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400097ed
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x140009765
call fcn.140045e08
int3