Function at 0x1400b64e0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x40
mov dword [rsp + 0x34], 1
mov r12d, ecx
mov r14, rdx
mov ebx, r8d
mov dword [rsp + 0x3c], 4
cmp ecx, 0xffffffff
je 0x1400b6648
lea rax, [rsp + 0x3c]
movsxd r15, ecx
lea r9, [rsp + 0x38]
mov r8d, 0x1008
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_getsockopt]
mov r13d, eax
test eax, eax
jne 0x1400b6543
cmp dword [rsp + 0x3c], 4
je 0x1400b65c0
call fcn.1401106f0
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x12d
xor r13d, r13d
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110910
call fcn.1401106f0
lea r8, str.BIO_listen
mov edx, 0x12f
mov rcx, r12
call fcn.140110820
xor r8d, r8d
mov edx, 0x86
mov ecx, 0x20
call fcn.140110910
mov eax, r13d
add rsp, 0x40
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov edx, ebx
mov ecx, r12d
shr edx, 3
and edx, 1
call fcn.1400b5e40
test eax, eax
je 0x1400b65aa
test bl, 4
jne 0x1400b6700
test bl, 0x10
je 0x1400b660b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov rcx, r15
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400b6838
mov rcx, r14
call fcn.14027ab20
cmp eax, 0x17
je 0x1400b6798
mov r8d, ebx
mov rdx, r14
mov ecx, r12d
call fcn.1400b63e0
test eax, eax
je 0x1400b65aa
cmp dword [rsp + 0x38], 2
jne 0x1400b6680
mov r13d, 1
jmp 0x1400b65aa
call fcn.1401106f0
lea r8, str.BIO_listen
mov edx, 0x126
xor r13d, r13d
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140110820
xor r8d, r8d
mov edx, 0x87
mov ecx, 0x20
call fcn.140110910
jmp 0x1400b65aa
mov edx, 0x7fffffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400b6639
call fcn.1401106f0
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x160
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_listen__
mov ecx, 2
mov edx, eax
call fcn.140110910
call fcn.1401106f0
mov rcx, r12
mov edx, 0x162
lea r8, str.BIO_listen
call fcn.140110820
xor r8d, r8d
mov edx, 0x77
mov ecx, 0x20
call fcn.140110910
jmp 0x1400b65aa
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, r15
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400b65dd
call fcn.1401106f0
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x139
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110910
call fcn.1401106f0
mov rcx, r12
mov edx, 0x13b
lea r8, str.BIO_listen
call fcn.140110820
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call fcn.140110910
jmp 0x1400b65aa
mov eax, ebx
lea r9, [rsp + 0x34]
mov r8d, 0x1b
mov rcx, r15
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 0x1400b661c
call fcn.1401106f0
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x154
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110910
call fcn.1401106f0
mov rcx, r12
mov edx, 0x156
lea r8, str.BIO_listen
call fcn.140110820
xor r8d, r8d
mov edx, 0x88
mov ecx, 0x20
call fcn.140110910
jmp 0x1400b65aa
call fcn.1401106f0
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x143
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110910
call fcn.1401106f0
mov rcx, r12
mov edx, 0x145
lea r8, str.BIO_listen
call fcn.140110820
xor r8d, r8d
mov edx, 0x8a
mov ecx, 0x20
call fcn.140110910
jmp 0x1400b65aa