Function at 0x14056c566
Capabilities:
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.140052aa4
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, [0x140090948]
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.140052a40
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.14005ee60
nop
int3
shr bpl, 0x54
xor si, 0xe08b
mov rsi, qword [rsp + 0x60]
setg byte [rsp + 0x40]
or bp, 0x11b9
or byte [rsp + 0x40], bpl
and bp, word [rsp + 0x40]
jb 0x14001be5d
and word [rsp + 0x40], bp
mov rbp, qword [rsp + 0x58]
seto byte [rsp + 0x50]
call fcn.1406d3f2a