Function at 0x5d0f20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.004d61c0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 4
cmp dword [ebp + 8], 0xffffffff
jne 0x5d0f75
call fcn.005316f0
push str.BIO_listen
push 0xe5
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1008
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
jne 0x5d0f9b
cmp dword [ebp - 8], 4
je 0x5d1001
call fcn.005316f0
push str.BIO_listen
push 0xec
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.00531a70
add esp, 0xc
call fcn.005316f0
push str.BIO_listen
push 0xee
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x86
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
mov eax, dword [ebp + 0x10]
and eax, 8
neg eax
sbb eax, eax
neg eax
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005826f0
add esp, 8
test eax, eax
jne 0x5d1025
xor eax, eax
jmp 0x5d1275
mov edx, dword [ebp + 0x10]
and edx, 4
je 0x5d10b2
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d10b2
call fcn.005316f0
push str.BIO_listen
push 0xf8
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.00531a70
add esp, 0xc
call fcn.005316f0
push str.BIO_listen
push 0xfa
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
mov edx, dword [ebp + 0x10]
and edx, 0x10
je 0x5d1138
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d1138
call fcn.005316f0
push str.BIO_listen
push 0x102
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.00531a70
add esp, 0xc
call fcn.005316f0
push str.BIO_listen
push 0x104
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
mov edx, dword [ebp + 0xc]
push edx
call fcn.00579a80
add esp, 4
cmp eax, 0x17
jne 0x5d11da
mov eax, dword [ebp + 0x10]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x1b
push 0x29
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d11da
call fcn.005316f0
push str.BIO_listen
push 0x113
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.00531a70
add esp, 0xc
call fcn.005316f0
push str.BIO_listen
push 0x115
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x88
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005d0e50
add esp, 0xc
test eax, eax
jne 0x5d11f6
xor eax, eax
jmp 0x5d1275
cmp dword [ebp - 4], 2
je 0x5d1270
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x5d1270
call fcn.005316f0
push str.BIO_listen
push 0x11f
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push str.calling_listen__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.00531a70
add esp, 0xc
call fcn.005316f0
push str.BIO_listen
push 0x121
push str.crypto_bio_bio_sock2.c
call fcn.00531940
add esp, 0xc
push 0
push 0x77
push 0x20
call fcn.00531a70
add esp, 0xc
xor eax, eax
jmp 0x5d1275
mov eax, 1
mov esp, ebp
pop ebp
ret