Function at 0x14002526c
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.140001bfc
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 0x140025351
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140025319
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025314
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025483
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rbx, qword [rbp + 0x77]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002552d
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
jmp 0x14002552d
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp + 0x77]
test rbx, rbx
je 0x14002543f
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 0x1400253a8
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 0x14002542e
cmp byte [rbp + 0x6f], 0
je 0x1400253d3
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 0x1400253ea
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 0x140025412
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.140010300
test al, al
jne 0x14002548a
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140025362
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 0x140025501
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400254fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400254fc
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 0x1400254cc
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400254c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025483
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400254f7
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
and qword [rdi + 0x38], 0
mov rax, rsi
jmp 0x140025531
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002552d
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