Function at 0x180021020
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 0x18002107e
mov eax, dword [rcx + 0x17c]
cmp eax, dword [rcx + 0x1bc]
jne 0x18002107e
movzx eax, word [rcx + 0x1ba]
cmp word [rcx + 0x17a], ax
jne 0x18002107e
mov eax, 0x207
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180027290
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 0x1800210df
cmp eax, 0x100000
je 0x1800210df
cmp eax, 2
je 0x1800210df
cmp eax, 4
je 0x1800210df
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180021109
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 0x1800212b2
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.180027290
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 0x180021144
mov eax, dword [rbx + 0x1bc]
test eax, eax
jne 0x180021137
lea eax, [rbp + 0x63]
jmp 0x1800210e1
mov word [rbx + 0x1a8], dx
mov dword [rbx + 0x1ac], eax
cmp word [rbx + 0x1aa], 0
jne 0x18002115c
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 0x180021182
mov eax, listen
jmp 0x1800210e1
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 0x1800211d1
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 0x180021200
lea eax, [rdi - 4]
jmp 0x1800210e1
mov eax, dword [rbx + 0xb4]
cmp eax, 0x100
jge 0x180021212
test bpl, al
je 0x18002128f
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 0x18002125c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18002125c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x180021285
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 0x18002128f
mov eax, reloc.WS2_32.dll_listen
jmp 0x1800210e1
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 0x1800210df
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x1800210e1