Function at 0x1400293a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + 0x110]
mov r15, qword [rsp + 0x120]
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rdi
cmp r8d, 2
je 0x1400293f3
cmp ebx, 0x17
jne 0x140029572
mov r8d, r9d
call fcn.1400257d0
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140029572
xor eax, eax
mov ecx, select
mov r8d, 0x1c
mov qword [rsp + 0x70], rax
cmp ebx, 2
lea r9, [r15 + 0x38]
cmove r8d, ecx
mov rcx, qword [r14]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
mov word [rsp + 0x70], bx
call fcn.140022ab0
xor r12d, r12d
cmp byte [r15 + 0x3c], r12b
je 0x140029507
mov eax, dword [0x1400d35a0]
movabs rdi, 0x8fafd21e25c5e09b
test al, 1
jne 0x140029493
or eax, 1
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov dword [0x1400d35a0], eax
mov rax, rdi
mov qword [0x1400d3590], rbx
mov qword [0x1400d3598], rax
jmp 0x1400294a1
mov rax, qword [0x1400d3598]
mov rbx, qword [0x1400d3590]
lea rbp, [0x1400d3590]
cmp rax, rdi
je 0x1400294d3
movabs r13, 0xb2ab117a257edf0d
cmp rax, r13
je 0x1400294ce
mov edx, 0x2726
mov rcx, rbp
call qword [rbx + 0x30]
mov rax, qword [0x1400d3598]
mov r13, qword [rsp + 0x40]
cmp dword [r15 + 0x38], 0x2726
jne 0x1400294f9
mov rdx, qword [r15 + 0x40]
mov ecx, r12d
test rax, rax
jne 0x1400294ee
cmp rdx, rbp
jmp 0x1400294f2
cmp qword [rdx + 8], rax
sete cl
test cl, cl
jne 0x140029502
mov rcx, qword [rsi + 8]
jmp 0x14002966b
mov rdi, qword [rsp + 0x58]
mov byte [r15 + 0x60], 1
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rsp + 0x118]
mov rcx, qword [r14]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov rdx, rdi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call r13
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140029561
cmp eax, 0x3e5
je 0x140029561
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r15
call fcn.14001b210
jmp 0x140029677
mov rcx, qword [rsi + 8]
mov rdx, r15
call fcn.14001b2f0
jmp 0x140029677
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [rsi + 0x10], r12
mov qword [rsp + 0x40], rax
jne 0x1400295c0
mov rax, qword [rsi]
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
mov rbx, qword [rax]
xor edx, edx
movdqu xmmword [rsp + 0x60], xmm0
call fcn.14001e070
mov r9, qword [rbx + 0x28]
lea r8, [0x14001d9a0]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140024a20
mov qword [rsp + 0x40], rax
xchg qword [rsi + 0x10], rax
test byte [r14 + 8], 3
jne 0x1400296cc
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x14002969b
mov eax, dword [0x1400d35a0]
movabs rdi, 0x8fafd21e25c5e09b
test al, 1
jne 0x14002960f
or eax, 1
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov dword [0x1400d35a0], eax
mov rax, rdi
mov qword [0x1400d3590], rbx
mov qword [0x1400d3598], rax
jmp 0x14002961d
mov rax, qword [0x1400d3598]
mov rbx, qword [0x1400d3590]
mov dword [rsp + 0x48], 0x2719
lea rbp, [0x1400d3590]
cmp rax, rdi
je 0x14002964d
movabs r13, 0xb2ab117a257edf0d
cmp rax, r13
je 0x14002964d
mov edx, 0x2719
mov rcx, rbp
call qword [rbx + 0x30]
jmp 0x14002964f
mov al, 1
mov byte [rsp + 0x4c], al
mov qword [rsp + 0x50], rbp
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r15 + 0x38], xmm0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r15
call fcn.140026d90
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140046830
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r8, [rsp + 0x58]
mov edx, 0x8004667e
mov dword [rsp + 0x58], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rcx, [r15 + 0x38]
test eax, eax
mov ebx, eax
sets dl
call fcn.14001ac70
test ebx, ebx
js 0x140029662
or byte [r14 + 8], 2
mov r8, qword [rsp + 0x118]
mov rcx, qword [r14]
lea r9, [r15 + 0x38]
mov rdx, rdi
call fcn.140023590
test eax, eax
je 0x140029662
mov eax, dword [0x1400d35a0]
movabs rdi, 0x8fafd21e25c5e09b
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
test al, 1
jne 0x140029725
or eax, 1
mov rcx, rdi
mov r8, rbx
mov dword [0x1400d35a0], eax
mov qword [0x1400d3598], rcx
mov qword [0x1400d3590], rbx
jmp 0x140029733
mov rcx, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
movabs r13, 0xb2ab117a257edf0d
lea rbp, [0x1400d3590]
cmp rcx, rdi
je 0x14002976e
cmp rcx, r13
je 0x14002976e
mov edx, 0x2734
mov rcx, rbp
call qword [r8 + 0x30]
mov eax, dword [0x1400d35a0]
mov rcx, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
cmp dword [r15 + 0x38], 0x2734
jne 0x140029794
mov r9, qword [r15 + 0x40]
mov edx, r12d
test rcx, rcx
jne 0x140029789
cmp r9, rbp
jmp 0x14002978d
cmp qword [r9 + 8], rcx
sete dl
test dl, dl
jne 0x140029806
test al, 1
jne 0x1400297b5
or eax, 1
mov rcx, rdi
mov r8, rbx
mov dword [0x1400d35a0], eax
mov qword [0x1400d3598], rcx
mov qword [0x1400d3590], rbx
cmp rcx, rdi
je 0x1400297d8
cmp rcx, r13
je 0x1400297d8
mov edx, 0x2733
mov rcx, rbp
call qword [r8 + 0x30]
mov eax, dword [0x1400d35a0]
mov rcx, qword [0x1400d3598]
cmp dword [r15 + 0x38], 0x2733
jne 0x140029662
mov r8, qword [r15 + 0x40]
mov edx, r12d
test rcx, rcx
jne 0x1400297f7
cmp r8, rbp
jmp 0x1400297fb
cmp qword [r8 + 8], rcx
sete dl
test dl, dl
je 0x140029662
mov dword [rsp + 0x48], r12d
mov byte [rsp + 0x4c], r12b
test al, 1
jne 0x14002982b
or eax, 1
mov qword [0x1400d3598], rdi
mov qword [0x1400d3590], rbx
mov dword [0x1400d35a0], eax
mov rcx, qword [rsp + 0x40]
mov byte [rsp + 0x30], r12b
mov qword [rsp + 0x50], rbp
movups xmm0, xmmword [rsp + 0x48]
lea r9, [r14 + 0x20]
mov edx, 3
mov byte [rsp + 0x28], r12b
movups xmmword [r15 + 0x38], xmm0
mov r8, qword [r14]
mov qword [rsp + 0x20], r15
call fcn.140029870
jmp 0x140029677