Function at 0x180004ac0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x18003e3d0
push rbx
push rbp
push rsi
mov eax, 0x40
call fcn.180001055
sub rsp, rax
movsxd rsi, ecx
mov ebx, r8d
mov dword [rsp + 0x60], 1
mov rbp, rdx
mov dword [rsp + 0x78], 4
cmp esi, 0xffffffff
jne 0x18003e427
lea r9, str.crypto_bio_b_sock2.c
mov dword [rsp + 0x20], 0xd5
lea edx, [rax + 0x4b]
lea ecx, [rax - 0x20]
lea r8d, [rax + 0x47]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rdi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18003e66b
cmp dword [rsp + 0x78], 4
jne 0x18003e66b
mov edx, ebx
mov ecx, esi
shr edx, 3
and edx, 1
call sym.libcrypto_1_1_x64.dll_BIO_socket_nbio
test eax, eax
je 0x18003e6b4
test bl, 4
je 0x18003e4db
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x18003e4db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, recv
mov dword [rsp + 0x20], 0xe7
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 0xc]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r8d, 0x89
mov dword [rsp + 0x20], 0xe8
jmp 0x18003e69e
test bl, 0x10
je 0x18003e53b
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x18003e53b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, recv
mov dword [rsp + 0x20], 0xf0
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 0xc]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r8d, 0x8a
mov dword [rsp + 0x20], 0xf1
jmp 0x18003e69e
mov rcx, rbp
call sym.libcrypto_1_1_x64.dll_BIO_ADDR_family
cmp eax, 0x17
jne 0x18003e5aa
shr ebx, 1
lea r9, [rsp + 0x60]
and ebx, 1
mov dword [rsp + 0x20], 4
lea edx, [rax + 0x12]
mov dword [rsp + 0x60], ebx
lea r8d, [rax + 4]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x18003e5aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, recv
mov dword [rsp + 0x20], 0x100
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 0xc]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r8d, 0x88
mov dword [rsp + 0x20], 0x101
jmp 0x18003e69e
mov rcx, rbp
call fcn.18000598e
mov rcx, rbp
mov ebx, eax
call fcn.180002941
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x18003e60a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 6
mov dword [rsp + 0x20], 0xa1
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 4]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov edx, 0x93
mov dword [rsp + 0x20], 0xa2
lea r8d, [rdx - 0x1e]
jmp 0x18003e6a3
cmp dword [rsp + 0x30], 2
je 0x18003e659
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x18003e659
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 7
mov dword [rsp + 0x20], 0x10b
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 5]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r8d, 0x77
mov dword [rsp + 0x20], 0x10c
jmp 0x18003e69e
mov rdi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x20], 0xdc
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
lea ecx, [rdx - 0xd]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r8d, 0x86
mov dword [rsp + 0x20], 0xdd
mov edx, 0x8b
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov rdi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret