Function at 0x1006ec60
Capabilities:
Set socket configuration

Disassembly:
mov eax, 8
call fcn.10228380
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 1
mov dword [esp + 8], 4
cmp esi, 0xffffffff
jne 0x1006ecb5
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x126
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x87
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
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 0x1006ef91
cmp dword [esp + 8], 4
jne 0x1006ef91
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_3.dll_BIO_socket_nbio
add esp, 8
test eax, eax
je 0x1006ed79
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x1006ed83
push 4
lea eax, [esp + 0x14]
push eax
push 8
push 0xffff
push esi
call ebp
test eax, eax
je 0x1006ed83
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x139
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x13b
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x89
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
test bl, 0x10
je 0x1006edfd
push 4
lea eax, [esp + 0x14]
push eax
push 1
push 6
push esi
call ebp
test eax, eax
je 0x1006edfd
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x143
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x145
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x8a
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
mov edi, dword [esp + 0x20]
push edi
call sym.libcrypto_3.dll_BIO_ADDR_family
add esp, 4
cmp eax, 0x17
jne 0x1006ee8d
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 0x1006ee8d
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x154
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x156
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x88
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call fcn.10068650
add esp, 4
push eax
push edi
call fcn.10068630
add esp, 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1006ef0c
call sym.libcrypto_3.dll_ERR_new
push 0x10286e1c
push 0xf0
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_bind__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e1c
push 0xf2
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x75
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp dword [esp + 0x1c], 2
je 0x1006ef84
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1006ef84
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x160
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_listen__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x162
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x77
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
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
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x12d
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286e38
push 0x12f
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x86
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop esi
add esp, 8
ret