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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x40a7ea
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x40a7b6
mov rcx, qword [rax]
test rcx, rcx
je 0x40a7b6
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x40a7cf
movzx ecx, byte [rax + 9]
test cl, cl
jne 0x40a56d
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rsp + 0x88]
cmp rbx, 0x20
jge 0x40a4fb
lea rax, [rcx + 8]
xor edx, edx
jmp 0x40a445
inc rdx
add rax, 0x10
cmp rdx, 8
jae 0x40a4e2
mov rbx, qword [rax + 8]
mov rsi, qword [rsp + 0x88]
cmp rbx, rsi
jne 0x40a43e
test byte [rcx], al
movzx ebx, byte [rdx + rcx]
test bl, bl
je 0x40a43e
mov qword [rsp + 0x30], rdx
mov rbx, qword [rax]
mov rdi, qword [rsp + 0x80]
cmp rbx, rdi
je 0x40a4b1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x10], rsi
mov qword [rsp], rbx
mov qword [rsp + 8], rdi
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x40a4b1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
jmp 0x40a43e
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x30]
imul rcx, rax
mov rax, qword [rsp + 0x50]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rsi, [rcx + 8]
xor edx, edx
mov edi, 8
jmp 0x40a50f
inc rdx
add rsi, 0x10
cmp rdx, 8
jae 0x40a731
mov r8, qword [rsi + 8]
cmp r8, rbx
jne 0x40a508
test byte [rcx], al
movzx r8d, byte [rdx + rcx]
test r8b, r8b
je 0x40a508
mov r8, qword [rsi]
mov r9, qword [rsp + 0x80]
cmp r8, r9
je 0x40a70a
mov r10d, dword [r9]
mov r11d, dword [r8]
cmp r10d, r11d
jne 0x40a508
lea r9, [r9 + rbx - 4]
lea r8, [r8 + rbx - 4]
mov r9d, dword [r9]
mov r8d, dword [r8]
cmp r9d, r8d
jne 0x40a508
cmp rdi, 8
jne 0x40a56d
mov rdi, rdx
jmp 0x40a508
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x30]
mov rbx, qword [rbx + 0x18]
mov rdx, qword [rbx]
mov ebx, dword [rax + 0xc]
mov qword [rsp + 8], rbx
lea rbx, [rsp + 0x80]
mov qword [rsp], rbx
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x78]
movzx ebx, byte [rcx + 9]
mov rdx, rcx
mov ecx, ebx
mov esi, 1
shl rsi, cl
lea rcx, [rsi - 1]
mov rbx, rcx
and rcx, rax
mov rsi, qword [rsp + 0x70]
movzx edi, word [rsi + 0x54]
imul rcx, rdi
mov r8, qword [rdx + 0x18]
add rcx, qword [rdx + 0x10]
test r8, r8
je 0x40a5ff
movzx edx, byte [rdx + 8]
test dl, 8
je 0x40a702
and rbx, rax
imul rdi, rbx
lea rdx, [rdi + r8]
test byte [rdx], al
movzx ebx, byte [r8 + rdi]
dec ebx
cmp bl, 3
jae 0x40a6fa
shr rax, 0x38
cmp al, 4
jae 0x40a60a
add eax, 4
mov byte [rsp + 0x27], al
jmp 0x40a6cc
inc rbx
add rdx, 0x10
cmp rbx, 8
jae 0x40a6c0
mov rdi, qword [rdx + 8]
mov r8, qword [rsp + 0x88]
cmp rdi, r8
jne 0x40a613
movzx edi, byte [rbx + rcx]
cmp al, dil
jne 0x40a613
mov qword [rsp + 0x38], rbx
mov rdi, qword [rdx]
mov r9, qword [rsp + 0x80]
cmp rdi, r9
je 0x40a68f
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp], rdi
mov qword [rsp + 8], r9
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x40a68f
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
jmp 0x40a613
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x38]
imul rcx, rax
mov rax, qword [rsp + 0x58]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
movzx edx, word [rsi + 0x54]
lea rdx, [rcx + rdx - 8]
mov rcx, qword [rdx]
test rcx, rcx
je 0x40a6e1
mov qword [rsp + 0x58], rcx
lea rdx, [rcx + 8]
xor ebx, ebx
jmp 0x40a61a
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, rdx
jmp 0x40a5ff
shr rbx, 1
jmp 0x40a5e2
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
imul rdx, rax
lea rax, [rdx + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp rdi, 8
jne 0x40a750
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov qword [rsp + 0x28], rdi
shl rdi, 4
lea rcx, [rdi + rcx + 8]
mov rcx, qword [rcx]
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x10], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
je 0x40a737
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x28]
imul rcx, rax
mov rax, qword [rsp + 0x50]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x006b4b01]
mov qword [rsp], rax
mov qword [rsp + 8], 0x21
call fcn.0042b3a0
ud2
call fcn.00452950
jmp fcn.0040a3c0