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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 8]
cmp rax, qword [rcx + 0x10]
jbe 0x407fa5
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x407f87
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x407f6c
mov rcx, qword [rsp + 0x90]
mov rbx, qword [rcx + 0x30]
mov rbx, qword [rbx + 0x18]
mov qword [rsp + 0x60], rbx
mov rdx, qword [rbx]
mov esi, dword [rax + 0xc]
mov qword [rsp + 8], rsi
mov rsi, qword [rsp + 0xa0]
mov qword [rsp], rsi
mov rdi, qword [rdx]
call rdi
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x98]
movzx ebx, byte [rcx + 8]
or ebx, 4
mov byte [rcx + 8], bl
mov rbx, qword [rcx + 0x10]
lea rsi, [rcx + 0x10]
test rbx, rbx
jne 0x407cdb
jmp 0x407ef3
inc r10
cmp r10, 8
jae 0x407c56
test byte [rbx], al
movzx r11d, byte [rbx + r10]
lea r12, [rbx + r10]
cmp al, r11b
je 0x407b1f
test r11b, r11b
jne 0x407ac7
test rcx, rcx
jne 0x407ac7
movzx r11d, byte [rsi + 0x50]
mov r13, r10
imul r10, r11
movzx r14d, byte [rsi + 0x52]
imul r14, r13
lea r11, [r14 + r11*8]
mov r14, rbx
lea r8, [r10 + rbx + 8]
lea r9, [r11 + rbx + 8]
mov rbx, r14
mov r10, r13
mov rcx, r12
jmp 0x407ac7
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], rcx
movzx r11d, byte [rsi + 0x50]
imul r11, r10
movzx r12d, byte [rsi + 0x51]
lea rbx, [r11 + rbx + 8]
test r12b, r12b
je 0x407b4e
mov rbx, qword [rbx]
mov qword [rsp + 0x48], rbx
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x407bb3
movzx eax, byte [rsp + 0x27]
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x30]
mov r10, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
jmp 0x407ac7
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rax + 0x57]
test cl, cl
jne 0x407c25
movzx ecx, byte [rax + 0x50]
movzx edx, byte [rax + 0x52]
mov rbx, qword [rsp + 0x28]
imul rdx, rbx
lea rcx, [rdx + rcx*8]
mov rdx, qword [rsp + 0x78]
lea rcx, [rdx + rcx + 8]
mov rdx, qword [rsp + 0x98]
movzx ebx, byte [rdx + 8]
test bl, 4
je 0x407f51
and ebx, 0xfffffffb
mov byte [rdx + 8], bl
movzx eax, byte [rax + 0x53]
test al, al
je 0x407c20
mov rax, qword [rcx]
mov qword [rsp + 0xa8], rax
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
mov rax, rcx
jmp 0x407c08
mov rcx, qword [rax + 0x30]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x10], rcx
call fcn.004116f0
mov rax, qword [rsp + 0x90]
jmp 0x407bc3
movzx r10d, word [rsi + 0x54]
mov r11, rbx
lea rbx, [rbx + r10 - 8]
mov rbx, qword [rbx]
test rbx, rbx
je 0x407c78
mov qword [rsp + 0x78], rbx
xor r10d, r10d
jmp 0x407aca
mov rbx, qword [rdx + 0x18]
test rbx, rbx
jne 0x407eb4
mov rbx, qword [rdx]
inc rbx
movzx r10d, byte [rdx + 9]
cmp rbx, 8
jle 0x407ea7
mov r12, rcx
mov ecx, r10d
mov r13d, 1
shl r13, cl
shr r13, 1
lea r14, [r13 + r13*2]
lea r13, [r13 + r14*4]
cmp rbx, r13
seta bl
test bl, bl
je 0x407d33
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
call fcn.00408d30
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
movzx ebx, byte [rcx + 9]
mov rdx, rcx
mov ecx, ebx
mov esi, 1
shl rsi, cl
lea rbx, [rsi - 1]
and rbx, rax
mov rsi, qword [rdx + 0x18]
test rsi, rsi
jne 0x407ebc
mov rsi, qword [rsp + 0x90]
movzx edi, word [rsi + 0x54]
imul rbx, rdi
add rbx, qword [rdx + 0x10]
mov rdi, rax
shr rax, 0x38
cmp al, 4
jae 0x407d22
add eax, 4
mov byte [rsp + 0x27], al
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
jmp 0x407c6b
movzx ebx, word [rdx + 0xa]
cmp cl, 0xf
jbe 0x407d41
mov ecx, 0xf
and ecx, 0xf
mov r10d, 1
shl r10d, cl
cmp bx, r10w
jae 0x407cc0
test r12, r12
je 0x407e63
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x58], r12
movzx ecx, byte [rsi + 0x51]
test cl, cl
jne 0x407e0a
movzx ecx, byte [rsi + 0x53]
test cl, cl
jne 0x407dc6
mov rax, qword [rsi + 0x30]
mov qword [rsp], rax
mov qword [rsp + 8], r8
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x10], rax
call fcn.004116f0
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x98]
inc qword [rax]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
jmp 0x407be2
mov qword [rsp + 0x50], r8
mov rax, qword [rsi + 0x38]
mov qword [rsp], rax
call fcn.00410b80
mov rdi, qword [rsp + 0x40]
test byte [rdi], al
mov rax, qword [rsp + 8]
mov ecx, dword [0x00850df0]
test ecx, ecx
jne 0x407e03
mov qword [rdi], rax
mov rsi, qword [rsp + 0x90]
mov r8, qword [rsp + 0x50]
jmp 0x407d7e
call fcn.004553b0
jmp 0x407df1
mov qword [rsp + 0x70], r8
mov rax, qword [rsi + 0x30]
mov qword [rsp], rax
call fcn.00410b80
mov rdi, qword [rsp + 0x70]
test byte [rdi], al
mov rax, qword [rsp + 8]
mov ecx, dword [0x00850df0]
test ecx, ecx
jne 0x407e5c
mov qword [rdi], rax
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov r9, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov r8, rax
movzx eax, byte [rsp + 0x27]
jmp 0x407d76
call fcn.004553b0
jmp 0x407e35
mov qword [rsp], rdx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], r11
call fcn.00406df0
mov r12, qword [rsp + 0x18]
test byte [r12], al
mov rsi, qword [rsp + 0x90]
movzx eax, byte [rsi + 0x50]
lea r8, [r12 + 8]
lea r9, [r12 + rax*8 + 8]
movzx eax, byte [rsp + 0x27]
mov rdx, qword [rsp + 0x98]
jmp 0x407d60
mov r12, rcx
xor ebx, ebx
mov ecx, r10d
jmp 0x407cbc
mov r12, rcx
jmp 0x407d57
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0x90]
mov qword [rsp], rax
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rbx
call fcn.00408f80
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x38]
jmp 0x407d00
mov qword [rsp + 0x68], rsi
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x40]
mov qword [rsp], rcx
call fcn.00410b80
mov eax, dword [0x00850df0]
mov rcx, qword [rsp + 8]
test eax, eax
jne 0x407f3a
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
jmp 0x407cdb
mov rdi, qword [rsp + 0x68]
mov rax, rcx
call fcn.004553b0
mov rax, qword [rsp + 0x98]
jmp 0x407f28
lea rax, [0x006b0190]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.0042b3a0
ud2
lea rax, [0x006b0190]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.0042b3a0
ud2
lea rax, [0x0065e800]
mov qword [rsp], rax
lea rax, [0x006f6d40]
mov qword [rsp + 8], rax
call fcn.0042aba0
ud2
call fcn.00452950
jmp fcn.00407a10