Function at 0x10003869
Capabilities:
Set socket configuration

Disassembly:
jmp 0x10085340
mov eax, 8
call fcn.101704b0
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 1
mov dword [esp + 8], 4
cmp esi, 0xffffffff
jne 0x10085389
push 0xa0
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 0x1008557f
cmp dword [esp + 8], 4
jne 0x1008557f
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push esi
call sym.libcrypto_1_1.dll_BIO_socket_nbio
add esp, 8
test eax, eax
jne 0x100853d8
pop ebx
pop esi
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x10085424
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push esi
call ebp
test eax, eax
je 0x10085424
push 0xbc
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 0xbd
push str.crypto_bio_b_sock2.c
push 0x89
jmp 0x10085464
test bl, 0x10
je 0x1008547c
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push esi
call ebp
test eax, eax
je 0x1008547c
push 0xc4
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 0xc5
push str.crypto_bio_b_sock2.c
push 0x8a
push 0x8b
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x28
xor eax, eax
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test bl, 2
je 0x100854d4
push edi
call sym.libcrypto_1_1.dll_BIO_ADDR_family
add esp, 4
cmp eax, 0x17
jne 0x100854d4
push 4
lea eax, [esp + 0x14]
push eax
push 0x1b
push 0x29
push esi
call ebp
test eax, eax
je 0x100854d4
push 0xcd
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 0xce
push str.crypto_bio_b_sock2.c
push 0x88
jmp 0x10085559
push edi
call fcn.100014ba
add esp, 4
push eax
push edi
call fcn.1000218a
add esp, 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1008551b
push 0xd5
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 0xd6
push str.crypto_bio_b_sock2.c
push 0x75
jmp 0x10085559
cmp dword [esp + 0x1c], 2
je 0x10085572
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10085572
push 0xdb
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 0xdc
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
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
push 0xa6
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 0xa7
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