Function at 0x1400261d0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, rcx
lea r13, [0x1405a3e20]
mov rcx, qword [r8]
xor r12d, r12d
mov r14d, r9d
mov rdi, r8
mov r15, rdx
cmp rcx, 0xffffffffffffffff
je 0x14002622f
lea r9, [rax - 0x58]
mov dword [rax - 0x58], r12d
mov r8b, 1
mov byte [rax - 0x54], r12b
lea rdx, [rax + 8]
mov qword [rax - 0x50], r13
mov byte [rax + 8], r12b
call fcn.1400250c0
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rsp + 0xe8]
mov ebp, 1
mov edx, dword [rsp + 0xe0]
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov ecx, r14d
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r13
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400262aa
mov r8, r13
lea rcx, [rsp + 0x50]
call fcn.140023920
cmp r14d, 0x17
jne 0x1400262d2
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
lea edx, [rbp + 0x28]
mov dword [rsp + 0x20], 4
lea r8d, [rbp + 0x1a]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x1400262d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x58], r13
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
test eax, eax
setne byte [rsp + 0x54]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140026308
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
movzx r8d, bpl
mov byte [rsp + 0x74], r12b
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x78], r13
mov byte [rsp + 0xd0], r12b
call fcn.1400250c0
mov qword [rdi], rbx
cmp rbx, 0xffffffffffffffff
jne 0x14002638b
mov rdi, qword [rsi + 8]
xor edx, edx
mov rbx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x58]
mov r9, rbx
lea r8d, [rdx + 2]
mov qword [rbx], rax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x30], ebp
mov dword [rbx + 0x14], r12d
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140026406
lea rcx, [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbx + 0x20], r12
mov rax, qword [rdi + 0x98]
test rax, rax
je 0x14002636e
mov qword [rax + 0x20], rbx
jmp 0x140026375
mov qword [rdi + 0x90], rbx
mov qword [rdi + 0x98], rbx
lea rcx, [rdi + 0x60]
xchg dword [rdi + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140026406
mov rdi, qword [rsp + 0x100]
lea rax, [rsp + 0xc0]
mov r8, qword [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xc0], r12d
call qword [sym.imp.MSWSOCK.dll_AcceptEx]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400263fa
cmp eax, 0x3e5
je 0x1400263fa
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call fcn.140024bc0
jmp 0x140026406
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.140024b20
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret