Function at 0x5aba50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.007081d0
mov dword [ebp - 4], 1
mov dword [ebp - 8], 4
cmp dword [ebp + 8], 0xffffffff
jne 0x5abaa5
call fcn.00516cf0
push str.BIO_listen
push 0xe5
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x1008
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5abacb
cmp dword [ebp - 8], 4
je 0x5abb31
call fcn.00516cf0
push str.BIO_listen
push 0xec
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00516d90
add esp, 0xc
call fcn.00516cf0
push str.BIO_listen
push 0xee
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x86
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
mov eax, dword [ebp + 0x10]
and eax, 8
je 0x5abb42
mov dword [ebp - 0xc], 1
jmp 0x5abb49
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005ab410
add esp, 8
test eax, eax
jne 0x5abb64
xor eax, eax
jmp 0x5abdc3
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x5abbf1
push 4
lea ecx, [ebp - 4]
push ecx
push 8
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5abbf1
call fcn.00516cf0
push str.BIO_listen
push 0xf8
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00516d90
add esp, 0xc
call fcn.00516cf0
push str.BIO_listen
push 0xfa
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
mov eax, dword [ebp + 0x10]
and eax, 0x10
je 0x5abc77
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5abc77
call fcn.00516cf0
push str.BIO_listen
push 0x102
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00516d90
add esp, 0xc
call fcn.00516cf0
push str.BIO_listen
push 0x104
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a90a0
add esp, 4
cmp eax, 0x17
jne 0x5abd28
mov ecx, dword [ebp + 0x10]
and ecx, 2
je 0x5abc9d
mov dword [ebp - 0x10], 1
jmp 0x5abca4
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 0x1b
push 0x29
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5abd28
call fcn.00516cf0
push str.BIO_listen
push 0x113
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00516d90
add esp, 0xc
call fcn.00516cf0
push str.BIO_listen
push 0x115
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x88
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005ab730
add esp, 0xc
test eax, eax
jne 0x5abd44
xor eax, eax
jmp 0x5abdc3
cmp dword [ebp - 0x14], 2
je 0x5abdbe
push bind
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x5abdbe
call fcn.00516cf0
push str.BIO_listen
push 0x11f
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push str.calling_listen__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00516d90
add esp, 0xc
call fcn.00516cf0
push str.BIO_listen
push 0x121
push str.crypto_bio_bio_sock2.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x77
push 0x20
call fcn.00516d90
add esp, 0xc
xor eax, eax
jmp 0x5abdc3
mov eax, 1
mov esp, ebp
pop ebp
ret