Function at 0x1000e700
Capabilities:
Set socket configuration

Disassembly:
jmp 0x10048f50
mov eax, 0xc
call fcn.100011c0
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 1
mov dword [esp + 8], 4
cmp esi, 0xffffffff
jne 0x10048f99
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, 0xc
ret
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004919a
cmp dword [esp + 8], 4
jne 0x1004919a
push ebx
mov ebx, dword [esp + 0x20]
mov eax, ebx
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 0x10049185
test bl, 4
je 0x10049033
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10049033
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 0x10049176
test bl, 0x10
je 0x1004907c
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1004907c
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 0x10049176
mov edi, dword [esp + 0x20]
push edi
call sym.libcrypto_1_1.dll_BIO_ADDR_family
add esp, 4
cmp eax, 0x17
jne 0x100490db
push 4
lea eax, [esp + 0x10]
shr ebx, 1
push eax
push 0x1b
push 0x29
and ebx, 1
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100490db
push 0x100
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 0x101
push str.crypto_bio_b_sock2.c
push 0x88
jmp 0x10049176
push edi
call fcn.10007d50
add esp, 4
push eax
push edi
call fcn.1000bff0
add esp, 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10049138
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 ebx
pop esi
add esp, 0xc
ret
cmp dword [esp + 0x14], 2
je 0x1004918e
push accept
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1004918e
push 0x10b
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 0x10c
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 ebx
xor eax, eax
pop esi
add esp, 0xc
ret
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0xc
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, 0xc
ret