Function at 0x1405ed41c
Capabilities:
Connect socket
Set socket configuration

Disassembly:
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [r12]
mov qword [rax + 0x28], 0xffffffffffffffff
mov rdi, qword [r12]
mov dword [rbp], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov dword [rbp + 4], 2
mov dword [rbp + 8], 1
mov dword [rbp + 0xc], 6
mov qword [rbp - 0x40], r13
mov ecx, 0x9467f52c
call fcn.1400024e0
mov rsi, rax
movzx edx, word [rdi + 0x20]
lea rcx, [rbp - 0x28]
call fcn.14001ba70
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001bec5
mov rax, qword [rax]
mov rcx, qword [r12]
cmp qword [rcx + 0x18], 0x10
jb 0x14001bed3
mov rcx, qword [rcx]
lea r9, [rbp - 0x40]
lea r8, [rbp]
mov rdx, rax
call rsi
test eax, eax
setne dil
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001bf21
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bf1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c101
call fcn.140053114
test dil, dil
jne 0x14001c0b7
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14001c0b7
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001c0a0
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001c097
mov dword [rbp - 0x38], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x38]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001bff3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov dword [rbp - 0x28], eax
xor r8d, r8d
lea rdx, [0x140091948]
lea rcx, [rbp - 0x20]
call fcn.140001f50
nop
mov byte [rsp + 0x38], 1
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x58], xmm1
or ebx, 0x40
or ebx, 0x30
mov al, 1
jmp 0x14001bffd
mov byte [rsp + 0x38], 0
or ebx, 0x10
xor al, al
or ebx, 2
mov dword [rsp + 0x30], ebx
test al, al
jne 0x14001c06a
mov dword [rbp - 0x30], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001c053
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14001bb50
or ebx, 0x180
movzx eax, byte [rsp + 0x68]
jmp 0x14001c05e
mov byte [rsp + 0x68], 0
bts ebx, 7
xor al, al
or ebx, 4
test al, al
jne 0x14001c06a
mov r14b, 1
jmp 0x14001c06d
xor r14b, r14b
test bl, 4
je 0x14001c080
and ebx, 0xfffffffb
lea rcx, [rsp + 0x68]
call fcn.140013d60
nop
test bl, 2
je 0x14001c092
and ebx, 0xfffffffd
lea rcx, [rsp + 0x38]
call fcn.140013d60
test r14b, r14b
jne 0x14001c0a9
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
jmp 0x14001bf2e
mov rax, qword [r12]
mov qword [rax + 0x28], rsi
mov byte [r15], 0
jmp 0x14001c0c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, r15
call fcn.14001bb50
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001c0d7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400530b0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14005f4d0
nop
int3
pushfq
add qword [rsp + 8], 0x896b
movabs rdi, 0x82206a04728ca53c
push r12
movabs r12, 0x4a3be8a6679d0c92
cmp di, 0x7431
jne 0x14071609e
mov rdi, qword [rsp + 0x10]
mov rdi, qword [rdi]
shr r12, 0x8e
and r12w, 0x9bac
movabs r12, 0x2d97f905c39542a0
add r12w, 0x9b1
shr r12, 0x58
lea rdi, [rdi - 0x47c20a57]
ja 0x14001be5d
lea r12, [r12*2 + 0x643cf324]
bswap r12d
call fcn.140532e35
pop rbp
call fcn.1405add5d