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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x65af33
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], r9
movzx r11d, word [rax]
test r11w, 0x40
je 0x65ab24
test r10, r10
je 0x65aaa2
cmp byte [r9], 0x3f
jne 0x65aa9d
dec r10
mov r12, r10
neg r10
sar r10, 0x3f
and r10d, 1
add r9, r10
xor r11d, 0x20
jmp 0x65aaa5
mov r12, r10
jmp 0x65aaa5
mov r12, r10
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x65ab27
mov rcx, rdx
sub rcx, r12
cmp rdx, rcx
jb 0x65af2d
mov qword [rsp + 0x20], rcx
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x22
lea rcx, [0x0072821d]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65aafe
mov rdx, qword [rsp + 0x50]
mov qword [rax + 0x10], rdx
jmp 0x65ab0c
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x50]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov r12, r10
mov qword [rsp + 0x80], rsi
mov r10, qword [rax + 0x10]
mov r13, qword [rax + 8]
nop word [rax + rax]
test r10, r10
jne 0x65abc4
mov rcx, r8
sub rcx, r12
cmp r8, rcx
jb 0x65af25
mov qword [rsp + 0x20], rcx
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x27
lea rcx, [0x0072a6bb]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65ab9b
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x10], rdx
jmp 0x65abac
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x80]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov r13, qword [r13 + r10*8 - 8]
cmp byte [r13], 0x80
jb 0x65ac4b
mov rcx, r8
sub rcx, r12
cmp r8, rcx
jb 0x65af1d
mov qword [rsp + 0x20], rcx
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x27
lea rcx, [0x0072a6bb]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65ac22
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x10], rdx
jmp 0x65ac33
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x80]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], r8
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x18], r10
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x16], r11w
nop
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x65ad2a
mov r15, qword [rdx + 0x20]
cmp dword [0x00a04ed0], 0
jne 0x65acc5
mov qword [rax + 0x20], r15
mov r15, rdi
mov rdi, rdx
lea rdi, [rdi - 0x10]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.00466186
mov rbp, qword [rbp]
nop dword [rax]
jmp 0x65ad7e
mov qword [rsp + 0x30], rdx
lea rdi, [rax + 0x20]
mov rcx, r15
call fcn.00465b20
mov rbx, rdx
lea rax, [0x00708040]
call fcn.00414220
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
movzx ebx, byte [rsp + 0x68]
mov rsi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x18]
movzx r11d, word [rsp + 0x16]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x78]
jmp 0x65ad7e
lea rax, [0x00708040]
call fcn.0040daa0
mov rcx, qword [rsp + 0x60]
inc qword [rcx + 0x58]
movzx ebx, byte [rsp + 0x68]
mov rsi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x18]
movzx r11d, word [rsp + 0x16]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x78]
mov rdx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov byte [rdx], bl
mov qword [rdx + 0x48], rcx
mov qword [rdx + 0x50], r15
mov word [rdx + 2], r11w
mov qword [rdx + 0x10], 1
mov qword [rdx + 0x18], 1
lea r11, [rdx + 0x20]
cmp dword [0x00a04ed0], 0
jne 0x65adb0
mov qword [rdx + 8], r11
jmp 0x65adc4
lea rdi, [rdx + 8]
mov rsi, r11
call fcn.00465b80
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rdx + 8]
cmp dword [0x00a04ed0], 0
jne 0x65add6
mov qword [rdi], r13
jmp 0x65ade8
mov r11, rsi
mov rsi, r13
nop dword [rax]
call fcn.00465b80
mov rsi, r11
lea r11, [r10 - 1]
mov r13, qword [rax + 8]
mov rsi, qword [rax + 0x10]
cmp rsi, r11
jbe 0x65af12
lea rsi, [r13 + r10*8]
lea rsi, [rsi - 8]
cmp dword [0x00a04ed0], 0
jne 0x65ae16
mov qword [r13 + r10*8 - 8], rdx
jmp 0x65ae1e
mov rdi, rsi
call fcn.00465b40
mov qword [rsp + 0x30], rdx
mov rbx, rdx
call fcn.00659a40
movzx ecx, byte [rsp + 0x68]
cmp cl, 0x11
jne 0x65aef5
mov rdx, qword [rsp + 0x70]
nop
cmp rdx, 2
jge 0x65ae55
mov rdx, qword [rsp + 0x78]
cmp rdx, 2
jl 0x65aef5
mov rax, qword [rsp + 0x30]
mov ebx, 0x3e8
nop
call fcn.0065afa0
test al, al
jne 0x65aef5
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x20]
mov rdx, rcx
sub rcx, rbx
cmp rdx, rcx
jb 0x65af0d
mov qword [rsp + 0x20], rcx
lea rax, [0x006e4ac0]
call fcn.0040daa0
mov qword [rax + 8], 0x14
lea rcx, [0x007204d5]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x18], rcx
cmp dword [0x00a04ed0], 0
jne 0x65aecc
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x10], rdx
jmp 0x65aedd
lea rdi, [rax + 0x10]
mov rdx, qword [rsp + 0x80]
call fcn.00465b40
xor ebx, ebx
lea rcx, [0x007f2060]
mov rdi, rax
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
call fcn.00465f00
mov rax, r11
mov rcx, rsi
call fcn.00465ec0
mov rdx, r8
call fcn.00465f00
mov rdx, r8
call fcn.00465f00
call fcn.00465f00
nop
mov qword [rsp + 0x18], rax
mov byte [rsp + 0x20], bl
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r10
call fcn.00463860
mov rax, qword [rsp + 0x18]
movzx ebx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r10, qword [rsp + 0x50]
jmp fcn.0065aa40