Function at 0x140081bd0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, qword [rbp + 0x7f]
mov r14, rcx
mov rcx, r9
mov dword [rbp - 0x39], edx
mov rbx, r9
mov esi, r8d
call fcn.1400495e0
mov rcx, rbx
cmp eax, 1
jne 0x140081c54
xorps xmm0, xmm0
lea rdx, [rbp - 0x29]
xor eax, eax
lea r12, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], eax
mov r15d, 0x29
mov r13d, setsockopt
call fcn.1400499e0
movups xmm0, xmmword [rbp - 0x29]
mov rcx, rdi
movups xmmword [rbp - 0x19], xmm0
call fcn.140013ca0
mov dword [rbp - 9], eax
jmp 0x140081dfe
call fcn.1400495e0
test eax, eax
jne 0x140081e2b
xor r15d, r15d
mov dword [rbp - 0x39], esi
mov rcx, rbx
mov qword [rbp - 0x31], r15
lea r12, [rbp - 0x31]
mov r13d, 8
call fcn.1400499d0
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, rdi
mov dword [rbp - 0x31], eax
call fcn.140014340
test al, al
je 0x140081dfa
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140012cd0
mov rax, qword [rbp - 0x29]
movsxd rbx, dword [rax + 8]
movsxd rdi, dword [rax + 0xc]
add rbx, 2
add rdi, 2
lea rbx, [rax + rbx*8]
lea rdi, [rax + rdi*8]
cmp rbx, rdi
je 0x140081cfe
nop word [rax + rax]
lea rdx, [rbp - 0x41]
mov rcx, rbx
call fcn.140014320
lea rcx, [rbp - 0x41]
call fcn.1400495e0
lea rcx, [rbp - 0x41]
test eax, eax
je 0x140081d7d
call fcn.1400482a0
add rbx, r13
cmp rbx, rdi
jne 0x140081cd0
mov edx, 7
mov r8d, 0xa
mov rcx, r14
call fcn.140070600
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x140081d3a
cmp ecx, 0xffffffff
je 0x140081e3e
mov rax, qword [rbp - 0x29]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140081e3e
mov rsi, qword [rbp - 0x29]
movsxd rdi, dword [rsi + 8]
movsxd rbx, dword [rsi + 0xc]
add rdi, 2
add rbx, 2
lea rdi, [rsi + rdi*8]
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x140081d70
nop dword [rax + rax]
sub rbx, r13
mov rcx, rbx
call fcn.140012ac0
cmp rbx, rdi
jne 0x140081d60
mov rcx, rsi
call fcn.1400c6df0
jmp 0x140081e3e
call fcn.1400499d0
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
lea rcx, [rbp - 0x41]
mov dword [rbp - 0x2d], eax
call fcn.1400482a0
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x140081db7
cmp ecx, 0xffffffff
je 0x140081dfe
mov rax, qword [rbp - 0x29]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140081dfe
mov rsi, qword [rbp - 0x29]
movsxd rdi, dword [rsi + 8]
movsxd rbx, dword [rsi + 0xc]
add rdi, 2
add rbx, 2
lea rdi, [rsi + rdi*8]
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x140081df0
nop dword [rax + rax]
sub rbx, r13
mov rcx, rbx
call fcn.140012ac0
cmp rbx, rdi
jne 0x140081de0
mov rcx, rsi
call fcn.1400c6df0
jmp 0x140081dfe
mov dword [rbp - 0x2d], r15d
mov r8d, dword [rbp - 0x39]
mov r9, r12
mov rcx, qword [r14 + 0xa8]
mov edx, r15d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140081e27
mov r8d, 6
jmp 0x140081e31
mov al, 1
jmp 0x140081e40
mov r8d, 7
mov edx, 0xa
mov rcx, r14
call fcn.140070600
xor al, al
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140229fa0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret