Function at 0x10001195
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1008e030
mov eax, 8
call fcn.10001f96
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 1
mov dword [esp + 8], 4
cmp esi, 0xffffffff
jne 0x1008e079
push 0xd5
push str.crypto_bio_b_sock2.c
push 0x87
push 0x8b
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop esi
add esp, 8
ret
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1008e278
cmp dword [esp + 8], 4
jne 0x1008e278
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ebx
push ebp
shr eax, 3
push edi
and eax, 1
push eax
push esi
call sym.libcrypto_1_1.dll_BIO_socket_nbio
add esp, 8
test eax, eax
je 0x1008e261
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x1008e116
push 4
lea eax, [esp + 0x14]
push eax
push 8
push 0xffff
push esi
call ebp
test eax, eax
je 0x1008e116
push 0xe7
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0xe8
push str.crypto_bio_b_sock2.c
push 0x89
jmp 0x1008e252
test bl, 0x10
je 0x1008e15b
push 4
lea eax, [esp + 0x14]
push eax
push 1
push 6
push esi
call ebp
test eax, eax
je 0x1008e15b
push 0xf0
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0xf1
push str.crypto_bio_b_sock2.c
push 0x8a
jmp 0x1008e252
mov edi, dword [esp + 0x20]
push edi
call sym.libcrypto_1_1.dll_BIO_ADDR_family
add esp, 4
cmp eax, 0x17
jne 0x1008e1b6
push 4
lea eax, [esp + 0x14]
shr ebx, 1
push eax
push 0x1b
push 0x29
and ebx, 1
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x1008e1b6
push 0xff
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0x100
push str.crypto_bio_b_sock2.c
push 0x88
jmp 0x1008e252
push edi
call fcn.100054bb
add esp, 4
push eax
push edi
call fcn.1000335a
add esp, 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1008e214
push 0xa1
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 6
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0xa2
push str.crypto_bio_b_sock2.c
push 0x75
push 0x93
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x28
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp dword [esp + 0x1c], 2
je 0x1008e26b
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1008e26b
push 0x10a
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 7
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0x10b
push str.crypto_bio_b_sock2.c
push 0x77
push 0x8b
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x28
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
push 0xdc
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xf
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0xdd
push str.crypto_bio_b_sock2.c
push 0x86
push 0x8b
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x28
xor eax, eax
pop esi
add esp, 8
ret