Function at 0x14006b9d0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov dword [rsp + 0x34], 1
mov ebx, ecx
mov rdi, rdx
mov esi, r8d
mov dword [rsp + 0x3c], 4
cmp ecx, 0xffffffff
je 0x14006bb00
movsxd rbp, ecx
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov r8d, 0x1008
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14006ba2a
cmp dword [rsp + 0x3c], 4
je 0x14006ba80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xf
mov ecx, 2
mov dword [rsp + 0x20], 0xdc
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
mov r8d, 0x86
mov edx, 0x8b
mov dword [rsp + 0x20], 0xdd
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.1400a0f90
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, esi
mov ecx, ebx
shr edx, 3
and edx, 1
call fcn.14006b4d0
test eax, eax
je 0x14006ba75
test sil, 4
jne 0x14006bb98
test sil, 0x10
je 0x14006bacc
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov rcx, rbp
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006bca0
mov rcx, rdi
call fcn.1400680e0
cmp eax, 0x17
je 0x14006bc18
mov r8d, esi
mov rdx, rdi
mov ecx, ebx
call fcn.14006b900
test eax, eax
je 0x14006ba75
cmp dword [rsp + 0x38], 2
jne 0x14006bb30
mov eax, 1
jmp 0x14006ba77
mov r8d, 0x87
mov edx, 0x8b
mov ecx, 0x20
mov dword [rsp + 0x20], 0xd5
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
jmp 0x14006ba75
mov edx, 0x7fffffff
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14006baf5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 7
mov ecx, 2
mov dword [rsp + 0x20], 0x10b
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
mov r8d, 0x77
mov edx, 0x8b
mov dword [rsp + 0x20], 0x10c
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.1400a0f90
jmp 0x14006ba75
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, rbp
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14006ba9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0xe7
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
mov r8d, 0x89
mov edx, 0x8b
mov dword [rsp + 0x20], 0xe8
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.1400a0f90
jmp 0x14006ba75
mov eax, esi
lea r9, [rsp + 0x34]
mov r8d, 0x1b
mov rcx, rbp
sar eax, 1
mov dword [rsp + 0x20], 4
mov edx, 0x29
and eax, 1
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14006badd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0x100
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
mov r8d, 0x88
mov edx, 0x8b
mov dword [rsp + 0x20], 0x101
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.1400a0f90
jmp 0x14006ba75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0xf0
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.1400a0f90
mov r8d, 0x8a
mov edx, 0x8b
mov dword [rsp + 0x20], 0xf1
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.1400a0f90
jmp 0x14006ba75