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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x10]
cmp rax, qword [rcx + 0x10]
jbe 0x40c2ec
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rcx + 0x38]
mov rbx, qword [rcx + 0x40]
test rbx, rbx
je 0x40c2d1
mov rbx, qword [rsp + 0xa0]
movzx esi, byte [rbx + 0x14]
test sil, 1
je 0x40c105
mov edx, dword [rcx + 0x10]
mov esi, dword [rbx + 0x10]
imul esi, esi, 0x11
lea eax, [rdx + rsi]
mov dword [rsp + 0x28], eax
mov edx, 0x3ce4585
mul edx
mov edx, edx
mov esi, dword [rsp + 0x28]
mov edi, esi
add rdx, rdi
shr rdx, 0xa
imul edx, edx, 0x3f1
sub esi, edx
mov dword [rsp + 0x2c], esi
xor eax, eax
mov qword [rsp + 0x30], rax
cmp rax, 2
jge 0x40bf32
test rax, rax
setne dl
mov byte [rsp + 0x27], dl
jne 0x40c0d2
mov edi, esi
cmp rdi, 0x3f1
jae 0x40c0cb
lea r8, [0x0089aec0]
lea rdi, [r8 + rdi*8]
mov rdi, qword [rdi]
test rdi, rdi
je 0x40bf24
mov r9, qword [rdi]
cmp rcx, r9
jne 0x40bf1b
mov r9, qword [rdi + 8]
cmp rbx, r9
je 0x40c054
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x40bf06
inc rax
mov qword [rsp + 0x30], rax
cmp rax, 2
jl 0x40bed4
mov rax, qword [rcx + 0x40]
dec rax
shl rax, 3
add rax, 0x28
mov qword [rsp], rax
mov qword [rsp + 8], 0
lea rax, [0x008b5f60]
mov qword [rsp + 0x10], rax
call fcn.0040fc30
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x80], rax
test byte [rax], al
mov ecx, dword [0x008b4340]
test ecx, ecx
jne 0x40c031
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov ecx, dword [0x008b4340]
lea rdx, [rax + 8]
test ecx, ecx
jne 0x40c00e
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
mov qword [rsp], rax
mov byte [rsp + 8], 1
movzx ecx, byte [rsp + 0xa8]
mov byte [rsp + 9], cl
call fcn.0040c300
lea rax, [0x008b4188]
mov qword [rsp], rax
call fcn.0040d8b0
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
test ecx, ecx
je 0x40bff6
mov qword [rsp + 0xb0], 0
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov qword [rsp + 0xb0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov qword [rsp], rdx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
call fcn.00410240
mov rax, qword [rsp + 0x80]
jmp 0x40bfa1
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
call fcn.00410240
mov rax, qword [rsp + 0x80]
jmp 0x40bf87
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x40c0c3
movzx ecx, byte [rsp + 0xa8]
test cl, cl
je 0x40c0a7
test rax, rax
mov rax, 0
mov qword [rsp + 0x58], rax
jne 0x40c090
mov qword [rsp + 0xb0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
lea rcx, [0x008b4188]
mov qword [rsp], rcx
call fcn.0040d8b0
mov rax, qword [rsp + 0x58]
jmp 0x40c078
mov qword [rsp], rdi
mov byte [rsp + 8], dl
mov byte [rsp + 9], 0
call fcn.0040c300
mov rax, qword [rsp + 0x30]
test rax, rax
jmp 0x40c06a
test rax, rax
mov rax, rdi
jmp 0x40c071
call fcn.004293e0
ud2
lea rdi, [0x008b4188]
mov qword [rsp], rdi
call fcn.0040d6a0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x27]
mov rbx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x2c]
jmp 0x40bee4
movzx eax, byte [rsp + 0xa8]
test al, al
je 0x40c12d
mov qword [rsp + 0xb0], 0
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov eax, dword [rdx]
mov dword [rsp + 8], eax
mov qword [rsp], rcx
call fcn.0044ca10
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp], rcx
call fcn.0044c4c0
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 8]
mov qword [rsp + 0x78], rcx
mov rdx, qword [rsp + 0x98]
mov qword [rsp], rdx
call fcn.0044c4c0
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 8]
mov qword [rsp + 0x70], rcx
mov rdx, qword [rsp + 0x50]
mov qword [rsp], rdx
call fcn.0044d250
mov rax, qword [rsp + 8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x38], rcx
lea rdx, [0x006a8ca0]
mov qword [rsp], rdx
call fcn.0040f840
mov rax, qword [rsp + 8]
mov qword [rsp + 0x60], rax
mov qword [rax + 8], 0
mov ecx, dword [0x008b4340]
test ecx, ecx
jne 0x40c2b5
mov qword [rax], 0
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x18], rcx
mov ecx, dword [0x008b4340]
lea rdx, [rax + 0x10]
test ecx, ecx
jne 0x40c298
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x28], rcx
mov ecx, dword [0x008b4340]
lea rdx, [rax + 0x20]
test ecx, ecx
jne 0x40c27e
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x20], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
mov ecx, dword [0x008b4340]
lea rdx, [rax + 0x30]
test ecx, ecx
jne 0x40c264
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x30], rcx
lea rcx, [0x00686e00]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.0042a540
ud2
mov qword [rsp], rdx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 8], rcx
call fcn.00410240
mov rax, qword [rsp + 0x60]
jmp 0x40c24d
mov qword [rsp], rdx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 8], rcx
call fcn.00410240
mov rax, qword [rsp + 0x60]
jmp 0x40c22d
mov qword [rsp], rdx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.00410240
mov rax, qword [rsp + 0x60]
jmp 0x40c20d
mov qword [rsp], rax
mov qword [rsp + 8], 0
call fcn.00410240
mov rax, qword [rsp + 0x60]
jmp 0x40c1e9
lea rax, [0x006d8621]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1f
call fcn.0042aea0
ud2
call fcn.00452210
jmp fcn.0040be30