Function at 0x180020710
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x180064c28]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx edx, word [rcx + 0x1b8]
mov rbx, rcx
cmp word [rcx + 0x178], dx
jne 0x18002076e
mov eax, dword [rcx + 0x17c]
cmp eax, dword [rcx + 0x1bc]
jne 0x18002076e
movzx eax, word [rcx + 0x1ba]
cmp word [rcx + 0x17a], ax
jne 0x18002076e
mov eax, 0x207
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180026c20
add rsp, 0x70
pop rbx
ret
mov eax, dword [rcx + 0xb4]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r14
cmp eax, 0x1000000
je 0x1800207d4
cmp eax, 0x100000
je 0x1800207d4
cmp eax, 2
je 0x1800207d4
cmp eax, 4
je 0x1800207d4
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180020803
mov edi, reloc.WS2_32.dll_recv
lea rdx, [rbx + 0x1a8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [0x180064a28]
cmp eax, 0xffffffff
je 0x1800209b0
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180026c20
add rsp, 0x70
pop rbx
ret
cmp dword [rbx + 0x1ac], 0
mov r14d, 1
movzx eax, word [sym.ProxyProtocol.dll_conf]
mov word [rsp + 0x34], r14w
mov word [rsp + 0x36], ax
jne 0x180020841
mov eax, dword [rbx + 0x1bc]
test eax, eax
jne 0x180020834
lea eax, [r14 + 0x63]
jmp 0x1800207d6
mov word [rbx + 0x1a8], dx
mov dword [rbx + 0x1ac], eax
cmp word [rbx + 0x1aa], 0
jne 0x180020859
movzx eax, word [rbx + 0x1ba]
mov word [rbx + 0x1aa], ax
mov r8d, 6
mov edx, r14d
lea ecx, [r8 - 4]
call qword [sym.ProxyProtocol.dll_so]
mov qword [rbx + 0x78], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x180020881
lea eax, [rcx + 0xc]
jmp 0x1800207d6
mov rax, qword [rbx + 0x10]
mov edx, dword [rax + 0x9c]
call sym.ProxyProtocol.dll_setopts
mov rcx, qword [rbx + 0x78]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [0x180064a40]
cmp dword [rbx + 0x19c], 0
jne 0x1800208cd
mov rax, qword [rbx + 0x10]
movups xmm0, xmmword [rax + 0xc8]
movups xmmword [rbx + 0x198], xmm0
mov rcx, qword [rbx + 0x78]
lea rdx, [rbx + 0x198]
xor eax, eax
mov edi, reloc.WS2_32.dll_recv
mov r8d, edi
mov word [rbx + 0x19a], ax
call qword [0x180064a10]
cmp eax, 0xffffffff
jne 0x1800208fc
lea eax, [rdi - 4]
jmp 0x1800207d6
mov eax, dword [rbx + 0xb4]
cmp eax, 0x100
jge 0x18002090e
test r14b, al
je 0x18002098d
mov rbp, qword [rbx + 0x78]
lea r8, [rsp + 0x38]
mov rcx, rbp
mov dword [rsp + 0x38], r14d
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rdx, [rbx + 0x1a8]
mov r8d, edi
mov rcx, rbp
call qword [0x180064a20]
test eax, eax
je 0x180020959
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180020959
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x180020983
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x1f40
mov qword [rsp + 0x40], rbp
mov edx, r14d
mov word [rsp + 0x48], di
call qword [sym.ProxyProtocol.dll_mypoll]
test eax, eax
jg 0x18002098d
mov eax, reloc.WS2_32.dll_listen
jmp 0x1800207d6
mov rcx, qword [rbx + 0x78]
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x198]
mov dword [rsp + 0x30], edi
call qword [0x180064a30]
cmp eax, 0xffffffff
jne 0x1800207d4
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x1800207d6