Function at 0x180020ea0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180065c40]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx edx, word [rcx + 0x1b8]
mov rbx, rcx
cmp word [rcx + 0x178], dx
jne 0x180020efe
mov eax, dword [rcx + 0x17c]
cmp eax, dword [rcx + 0x1bc]
jne 0x180020efe
movzx eax, word [rcx + 0x1ba]
cmp word [rcx + 0x17a], ax
jne 0x180020efe
mov eax, 0x207
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180027110
add rsp, 0x60
pop rbx
ret
mov eax, dword [rcx + 0xb4]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
cmp eax, 0x1000000
je 0x180020f5f
cmp eax, 0x100000
je 0x180020f5f
cmp eax, 2
je 0x180020f5f
cmp eax, 4
je 0x180020f5f
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180020f89
mov edi, reloc.WS2_32.dll_recv
lea rdx, [rbx + 0x1a8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [0x180065858]
cmp eax, 0xffffffff
je 0x180021132
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180027110
add rsp, 0x60
pop rbx
ret
cmp dword [rbx + 0x1ac], 0
mov ebp, 1
movzx eax, word [sym.ProxyProtocol.dll_conf]
mov word [rsp + 0x34], bp
mov word [rsp + 0x36], ax
jne 0x180020fc4
mov eax, dword [rbx + 0x1bc]
test eax, eax
jne 0x180020fb7
lea eax, [rbp + 0x63]
jmp 0x180020f61
mov word [rbx + 0x1a8], dx
mov dword [rbx + 0x1ac], eax
cmp word [rbx + 0x1aa], 0
jne 0x180020fdc
movzx eax, word [rbx + 0x1ba]
mov word [rbx + 0x1aa], ax
mov r8d, 6
mov edx, ebp
lea ecx, [r8 - 4]
call qword [sym.ProxyProtocol.dll_so]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x180021002
mov eax, listen
jmp 0x180020f61
mov rdx, qword [rbx + 0x10]
mov rcx, rax
mov edx, dword [rdx + 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 [0x180065870]
cmp dword [rbx + 0x19c], 0
jne 0x180021051
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 [0x180065840]
cmp eax, 0xffffffff
jne 0x180021080
lea eax, [rdi - 4]
jmp 0x180020f61
mov eax, dword [rbx + 0xb4]
cmp eax, 0x100
jge 0x180021092
test bpl, al
je 0x18002110f
mov rsi, qword [rbx + 0x78]
lea r8, [rsp + 0x38]
mov rcx, rsi
mov dword [rsp + 0x38], ebp
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rdx, [rbx + 0x1a8]
mov r8d, edi
mov rcx, rsi
call qword [0x180065850]
test eax, eax
je 0x1800210dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800210dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x180021105
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x1f40
mov qword [rsp + 0x40], rsi
mov edx, ebp
mov word [rsp + 0x48], di
call qword [sym.ProxyProtocol.dll_mypoll]
test eax, eax
jg 0x18002110f
mov eax, reloc.WS2_32.dll_listen
jmp 0x180020f61
mov rcx, qword [rbx + 0x78]
lea rdx, [rbx + 0x198]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [0x180065860]
cmp eax, 0xffffffff
jne 0x180020f5f
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x180020f61