Function at 0x1400aa340
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 0x1400aa4a8
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 0x1400aa3a3
cmp dword [rsp + 0x3c], 4
je 0x1400aa420
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x12d
xor r13d, r13d
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x14058301e]
mov ecx, 2
mov edx, eax
call fcn.1400bf330
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x12f
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x86
mov ecx, 0x20
call fcn.1400bf330
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.1400a9cb0
test eax, eax
je 0x1400aa40b
test bl, 4
jne 0x1400aa560
test bl, 0x10
je 0x1400aa46b
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 0x1400aa6a0
mov rcx, r14
call fcn.1401fae90
cmp eax, 0x17
je 0x1400aa5f8
mov r8d, ebx
mov rdx, r14
mov ecx, r12d
call fcn.1400aa240
test eax, eax
je 0x1400aa40b
cmp dword [rsp + 0x38], 2
jne 0x1400aa4e0
mov r13d, 1
jmp 0x1400aa40b
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x126
xor r13d, r13d
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x87
mov ecx, 0x20
call fcn.1400bf330
jmp 0x1400aa40b
mov edx, 0x7fffffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400aa499
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x160
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_listen__
mov ecx, 2
mov edx, eax
call fcn.1400bf330
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x162
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x77
mov ecx, 0x20
call fcn.1400bf330
jmp 0x1400aa40b
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 0x1400aa43d
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x139
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140582fe8]
mov ecx, 2
mov edx, eax
call fcn.1400bf330
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x13b
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call fcn.1400bf330
jmp 0x1400aa40b
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 0x1400aa47c
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x154
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140582fe8]
mov ecx, 2
mov edx, eax
call fcn.1400bf330
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x156
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x88
mov ecx, 0x20
call fcn.1400bf330
jmp 0x1400aa40b
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x143
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140582fe8]
mov ecx, 2
mov edx, eax
call fcn.1400bf330
call fcn.1400bf100
lea r8, str.BIO_listen
mov edx, 0x145
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x8a
mov ecx, 0x20
call fcn.1400bf330
jmp 0x1400aa40b