Function at 0x180020e70
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 0x180020ece
mov eax, dword [rcx + 0x17c]
cmp eax, dword [rcx + 0x1bc]
jne 0x180020ece
movzx eax, word [rcx + 0x1ba]
cmp word [rcx + 0x17a], ax
jne 0x180020ece
mov eax, 0x207
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180027140
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 0x180020f34
cmp eax, 0x100000
je 0x180020f34
cmp eax, 2
je 0x180020f34
cmp eax, 4
je 0x180020f34
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180020f63
mov edi, reloc.WS2_32.dll_recv
lea rdx, [rbx + 0x1a8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [0x180064858]
cmp eax, 0xffffffff
je 0x180021112
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.180027140
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 0x180020fa1
mov eax, dword [rbx + 0x1bc]
test eax, eax
jne 0x180020f94
lea eax, [r14 + 0x63]
jmp 0x180020f36
mov word [rbx + 0x1a8], dx
mov dword [rbx + 0x1ac], eax
cmp word [rbx + 0x1aa], 0
jne 0x180020fb9
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
cmp rax, 0xffffffffffffffff
jne 0x180020fe0
mov eax, listen
jmp 0x180020f36
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 [0x180064870]
cmp dword [rbx + 0x19c], 0
jne 0x18002102f
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 [0x180064840]
cmp eax, 0xffffffff
jne 0x18002105e
lea eax, [rdi - 4]
jmp 0x180020f36
mov eax, dword [rbx + 0xb4]
cmp eax, 0x100
jge 0x180021070
test r14b, al
je 0x1800210ef
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 [0x180064850]
test eax, eax
je 0x1800210bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800210bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x1800210e5
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 0x1800210ef
mov eax, reloc.WS2_32.dll_listen
jmp 0x180020f36
mov rcx, qword [rbx + 0x78]
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x198]
mov dword [rsp + 0x30], edi
call qword [0x180064860]
cmp eax, 0xffffffff
jne 0x180020f34
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x180020f36