Function at 0x140025210
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0x90
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
mov dword [rbp + 0x13], r8d
mov dword [rbp + 0x17], 1
and dword [rbp + 0xf], 0
and dword [rbp + 0x1b], 0
lea rcx, [rbp - 0x11]
call fcn.140001bcc
nop
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rdx, qword [rbp - 0x11]
lea r9, [rbp - 0x21]
lea r8, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400252f5
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400252bd
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400252b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025427
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rbx, qword [rbp + 0x77]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400254d1
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
jmp 0x1400254d1
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp + 0x77]
test rbx, rbx
je 0x1400253e3
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
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 0x14002534c
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 0x1400253d2
cmp byte [rbp + 0x6f], 0
je 0x140025377
mov dword [rbp + 0x67], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x67]
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 0x14002538e
mov qword [rbp - 0x19], rsi
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400253b6
and dword [rbp + 0x67], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x67]
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.140010200
test al, al
jne 0x14002542e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140025306
mov rbx, qword [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400254a5
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400254a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400254a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140025470
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002546b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025427
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002549b
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
and qword [rdi + 0x38], 0
mov rax, rsi
jmp 0x1400254d5
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400254d1
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
and qword [rdi + 0x38], 0
or rax, 0xffffffffffffffff
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret