Function at 0x5278f0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x40
mov dword [rsp + 0x34], 1
mov r12d, ecx
mov r14, rdx
mov ebx, r8d
mov dword [rsp + 0x3c], 4
cmp ecx, 0xffffffff
je 0x527a40
lea rax, [rsp + 0x3c]
movsxd r15, ecx
lea r9, [rsp + 0x38]
mov r8d, 0x1008
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_getsockopt]
mov r13d, eax
test eax, eax
jne 0x527953
cmp dword [rsp + 0x3c], 4
je 0x5279b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], 0xdc
mov edx, 0xf
xor r13d, r13d
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 2
call fcn.0055dd20
mov r8d, 0x86
mov edx, 0x8b
mov dword [rsp + 0x20], 0xdd
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.0055dd20
mov eax, r13d
add rsp, 0x40
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov edx, ebx
mov ecx, r12d
shr edx, 3
and edx, 1
call fcn.005273d0
test eax, eax
je 0x5279a1
test bl, 4
jne 0x527ad8
test bl, 0x10
je 0x527a03
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov rcx, r15
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x527be0
mov rcx, r14
call fcn.00523b40
cmp eax, 0x17
je 0x527b58
mov r8d, ebx
mov rdx, r14
mov ecx, r12d
call fcn.00527810
test eax, eax
je 0x5279a1
cmp dword [rsp + 0x38], 2
jne 0x527a70
mov r13d, 1
jmp 0x5279a1
mov dword [rsp + 0x20], 0xd5
lea r9, str.crypto_bio_b_sock2.c
mov r8d, 0x87
xor r13d, r13d
mov edx, 0x8b
mov ecx, 0x20
call fcn.0055dd20
jmp 0x5279a1
mov edx, 0x7fffffff
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x527a31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 7
mov ecx, 2
mov dword [rsp + 0x20], 0x10a
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.0055dd20
mov r8d, 0x77
mov edx, 0x8b
mov dword [rsp + 0x20], 0x10b
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.0055dd20
jmp 0x5279a1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, r15
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5279d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0xe7
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.0055dd20
mov r8d, 0x89
mov edx, 0x8b
mov dword [rsp + 0x20], 0xe8
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.0055dd20
jmp 0x5279a1
mov eax, ebx
lea r9, [rsp + 0x34]
mov r8d, 0x1b
mov rcx, r15
sar eax, 1
mov dword [rsp + 0x20], 4
mov edx, 0x29
and eax, 1
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x527a14
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0xff
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.0055dd20
mov r8d, 0x88
mov edx, 0x8b
mov dword [rsp + 0x20], 0x100
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.0055dd20
jmp 0x5279a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0xf0
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call fcn.0055dd20
mov r8d, 0x8a
mov edx, 0x8b
mov dword [rsp + 0x20], 0xf1
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call fcn.0055dd20
jmp 0x5279a1