Function at 0x1400b6020
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 0x1400b6188
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 0x1400b6083
cmp dword [rsp + 0x3c], 4
je 0x1400b6100
call fcn.140110230
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x12d
xor r13d, r13d
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110360
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110450
call fcn.140110230
lea r8, str.BIO_listen
mov edx, 0x12f
mov rcx, r12
call fcn.140110360
xor r8d, r8d
mov edx, 0x86
mov ecx, 0x20
call fcn.140110450
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.1400b5980
test eax, eax
je 0x1400b60ea
test bl, 4
jne 0x1400b6240
test bl, 0x10
je 0x1400b614b
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 0x1400b6378
mov rcx, r14
call fcn.14027a620
cmp eax, 0x17
je 0x1400b62d8
mov r8d, ebx
mov rdx, r14
mov ecx, r12d
call fcn.1400b5f20
test eax, eax
je 0x1400b60ea
cmp dword [rsp + 0x38], 2
jne 0x1400b61c0
mov r13d, 1
jmp 0x1400b60ea
call fcn.140110230
lea r8, str.BIO_listen
mov edx, 0x126
xor r13d, r13d
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140110360
xor r8d, r8d
mov edx, 0x87
mov ecx, 0x20
call fcn.140110450
jmp 0x1400b60ea
mov edx, 0x7fffffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400b6179
call fcn.140110230
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x160
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110360
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_listen__
mov ecx, 2
mov edx, eax
call fcn.140110450
call fcn.140110230
mov rcx, r12
mov edx, 0x162
lea r8, str.BIO_listen
call fcn.140110360
xor r8d, r8d
mov edx, 0x77
mov ecx, 0x20
call fcn.140110450
jmp 0x1400b60ea
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 0x1400b611d
call fcn.140110230
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x139
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110360
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110450
call fcn.140110230
mov rcx, r12
mov edx, 0x13b
lea r8, str.BIO_listen
call fcn.140110360
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call fcn.140110450
jmp 0x1400b60ea
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 0x1400b615c
call fcn.140110230
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x154
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110360
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110450
call fcn.140110230
mov rcx, r12
mov edx, 0x156
lea r8, str.BIO_listen
call fcn.140110360
xor r8d, r8d
mov edx, 0x88
mov ecx, 0x20
call fcn.140110450
jmp 0x1400b60ea
call fcn.140110230
lea r12, str.crypto_bio_bio_sock2.c
mov edx, 0x143
lea r8, str.BIO_listen
mov rcx, r12
call fcn.140110360
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.140110450
call fcn.140110230
mov rcx, r12
mov edx, 0x145
lea r8, str.BIO_listen
call fcn.140110360
xor r8d, r8d
mov edx, 0x8a
mov ecx, 0x20
call fcn.140110450
jmp 0x1400b60ea