Function at 0x4e3110
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 0x4e3278
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 0x4e3173
cmp dword [rsp + 0x3c], 4
je 0x4e31f0
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0xec
xor r13d, r13d
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0xee
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x86
mov ecx, 0x20
call sym.ERR_set_error
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 sym.BIO_socket_nbio
test eax, eax
je 0x4e31db
test bl, 4
jne 0x4e3330
test bl, 0x10
je 0x4e323b
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 0x4e3470
mov rcx, r14
call sym.BIO_ADDR_family
cmp eax, 0x17
je 0x4e33c8
mov r8d, ebx
mov rdx, r14
mov ecx, r12d
call sym.BIO_bind
test eax, eax
je 0x4e31db
cmp dword [rsp + 0x38], 2
jne 0x4e32b0
mov r13d, 1
jmp 0x4e31db
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0xe5
xor r13d, r13d
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x87
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e31db
mov edx, 0x7fffffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4e3269
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x11f
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_listen__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x121
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x77
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e31db
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 0x4e320d
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0xf8
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0xfa
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e31db
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 0x4e324c
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x113
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x115
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x88
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e31db
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x102
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_listen
mov edx, 0x104
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x8a
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e31db