Function at 0x65ed40
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x65f2dc
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rbx
cmp rcx, 4
jle 0x65eed1
cmp byte [rbx + 2], 0x50
jne 0x65eed1
cmp byte [rbx + 3], 0x3c
jne 0x65eed1
mov rax, rbx
mov rbx, rcx
mov ecx, 0x3e
call fcn.0050cc60
nop dword [rax + rax]
test rax, rax
jl 0x65ee41
lea rcx, [rax + 1]
mov rdx, qword [rsp + 0x80]
cmp rdx, rcx
jb 0x65f2d6
nop
cmp rax, 4
jb 0x65f2c9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rcx
lea rbx, [rax - 4]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
neg rbx
sar rbx, 0x3f
and ebx, 4
mov rdx, qword [rsp + 0x78]
lea rsi, [rdx + rbx]
mov qword [rsp + 0x58], rsi
mov rbx, rcx
mov rax, rsi
nop
call fcn.00662280
test rax, rax
jne 0x65ee2d
mov rdx, qword [rsp + 0x38]
cmp rdx, 4
je 0x65ee26
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
jmp 0x65f262
xor eax, eax
jmp 0x65f165
mov rcx, rax
mov rdi, rbx
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
call fcn.00662280
test rax, rax
jne 0x65eebd
lea rax, [0x006e4ac0]
nop
call fcn.0040daa0
mov qword [rax + 8], 0x15
lea rcx, [0x00720de0]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65ee97
mov rdx, qword [rsp + 0x78]
mov qword [rax + 0x10], rdx
jmp 0x65eea5
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x78]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, rax
mov rdi, rbx
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp rcx, 2
jb 0x65f158
lea rsi, [rcx - 2]
mov rdi, rsi
neg rsi
sar rsi, 0x3f
and esi, 2
add rsi, rbx
movzx r8d, word [rax]
mov edx, 1
xor r9d, r9d
jmp 0x65ef20
mov rdi, rcx
mov r9d, edx
mov r8d, esi
mov rcx, qword [rsp + 0x80]
mov rsi, rbx
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
nop
test rdi, rdi
je 0x65f0e2
mov word [rsp + 0x1e], r8w
mov byte [rsp + 0x1d], r9b
mov qword [rsp + 0x28], rdx
mov rax, rsi
mov rbx, rdi
nop
call fcn.006623a0
test rdi, rdi
jne 0x65f0ce
cmp eax, 0x3a
jg 0x65ef8c
cmp eax, 0x29
je 0x65f029
nop dword [rax]
cmp eax, 0x2d
jne 0x65f020
mov rsi, qword [rsp + 0x28]
test rsi, rsi
jl 0x65f009
movzx esi, word [rsp + 0x1e]
not esi
mov rax, 0xffffffffffffffff
xor edx, edx
jmp 0x65eefd
cmp eax, 0x69
jg 0x65efcd
cmp eax, 0x55
jne 0x65efad
movzx esi, word [rsp + 0x1e]
or esi, 0x20
mov rax, qword [rsp + 0x28]
mov edx, 1
jmp 0x65eefd
cmp eax, 0x69
jne 0x65f0bc
movzx esi, word [rsp + 0x1e]
or esi, 1
mov rax, qword [rsp + 0x28]
mov edx, 1
jmp 0x65eefd
cmp eax, 0x6d
jne 0x65efe9
movzx esi, word [rsp + 0x1e]
and esi, 0xffffffef
mov rax, qword [rsp + 0x28]
mov edx, 1
jmp 0x65eefd
cmp eax, 0x73
jne 0x65f0bc
movzx esi, word [rsp + 0x1e]
or esi, 8
mov rax, qword [rsp + 0x28]
mov edx, 1
jmp 0x65eefd
mov rbx, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, qword [rsp + 0x80]
jmp 0x65f0e2
cmp eax, 0x3a
jne 0x65f0bc
mov rsi, qword [rsp + 0x28]
test rsi, rsi
jge 0x65f065
movzx esi, byte [rsp + 0x1d]
test sil, sil
je 0x65f04b
movzx r8d, word [rsp + 0x1e]
not r8d
cmp eax, 0x3a
jmp 0x65f06e
mov rbx, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, qword [rsp + 0x80]
nop dword [rax + rax]
jmp 0x65f0e2
cmp eax, 0x3a
movzx r8d, word [rsp + 0x1e]
jne 0x65f09f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rcx
mov word [rsp + 0x1e], r8w
mov rax, qword [rsp + 0x70]
mov ebx, 0xffffff80
call fcn.0065a940
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
movzx r8d, word [rsp + 0x1e]
mov rdx, qword [rsp + 0x70]
mov word [rdx], r8w
mov rax, rbx
mov rbx, rcx
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rbx, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, qword [rsp + 0x80]
jmp 0x65f0e2
xor eax, eax
xor ebx, ebx
mov rcx, rdi
mov rdi, rsi
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rdx, rcx
sub rcx, rdi
cmp rdx, rcx
jb 0x65f153
mov qword [rsp + 0x48], rcx
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x22
lea rcx, [0x0072823f]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65f12d
mov rdx, qword [rsp + 0x78]
mov qword [rax + 0x10], rdx
jmp 0x65f13b
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x78]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
call fcn.00465f00
mov eax, 2
nop dword [rax]
call fcn.00465f80
test al, al
je 0x65f1fe
mov rax, qword [rsp + 0x70]
inc qword [rax + 0x28]
mov ebx, 0xffffff80
nop dword [rax + rax]
call fcn.0065a940
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x28]
mov qword [rax + 0x58], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x68], rcx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
dec rbx
mov rcx, rbx
neg rbx
sar rbx, 0x3f
mov rdx, qword [rsp + 0x40]
and rbx, rdx
mov rdx, qword [rsp + 0x78]
add rdx, rbx
cmp dword [0x00a04ed0], 0
jne 0x65f1dc
mov rsi, qword [rsp + 0x58]
mov qword [rax + 0x60], rsi
jmp 0x65f1ea
lea rdi, [rax + 0x60]
mov rsi, qword [rsp + 0x58]
call fcn.00465b80
mov rax, rdx
mov rbx, rcx
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x15
lea rcx, [0x00720de0]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65f239
mov rdx, qword [rsp + 0x78]
mov qword [rax + 0x10], rdx
jmp 0x65f247
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x78]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, rdi
cmp rcx, rbx
jge 0x65f2bf
movzx esi, byte [rax + rcx]
cmp esi, 0x80
jge 0x65f279
lea rdi, [rcx + 1]
jmp 0x65f292
call fcn.0045d080
mov rdx, qword [rsp + 0x38]
mov esi, eax
mov rdi, rbx
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x30]
cmp esi, 0x5f
je 0x65f25f
lea r8d, [rsi - 0x30]
nop dword [rax + rax]
cmp r8d, 9
jbe 0x65f25f
lea r8d, [rsi - 0x41]
cmp r8d, 0x19
jbe 0x65f25f
add esi, 0xffffff9f
cmp esi, 0x19
jbe 0x65f25f
xor eax, eax
jmp 0x65f165
mov eax, 1
jmp 0x65f165
mov rcx, rax
mov eax, 4
call fcn.00465f80
call fcn.00465f00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00463860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop
jmp fcn.0065ed40