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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x40b620
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x40b602
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x40b5e7
mov rcx, qword [rsp + 0x48]
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 + 0x58]
mov qword [rsp], rbx
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x50]
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 0x40b455
jmp 0x40b57c
inc r9
cmp r9, 8
jae 0x40b3e2
test byte [rdx], al
movzx r10d, byte [rdx + r9]
test r10b, r10b
jne 0x40b39a
test rcx, rcx
jne 0x40b378
mov rcx, rdx
mov rdi, r9
jmp 0x40b378
mov r10, rdx
lea rdx, [rdx + r9*8 + 8]
mov rdx, qword [rdx]
mov r11, qword [rsp + 0x58]
cmp rdx, r11
je 0x40b3b4
mov rdx, r10
jmp 0x40b378
movzx eax, byte [rsi + 0x52]
imul r9, rax
movzx eax, byte [rbx + 8]
lea rcx, [r9 + r10 + 0x48]
test al, 4
je 0x40b5cc
and eax, 0xfffffffb
mov byte [rbx + 8], al
mov qword [rsp + 0x60], rcx
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov r9, rdx
lea rdx, [rdx + r8 - 8]
mov rdx, qword [rdx]
test rdx, rdx
je 0x40b3f7
xor r9d, r9d
jmp 0x40b37b
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x40b543
mov rdx, qword [rbx]
inc rdx
movzx r8d, byte [rbx + 9]
cmp rdx, 8
jle 0x40b536
mov r10, rcx
mov ecx, r8d
mov r11d, 1
shl r11, cl
shr r11, 1
lea r12, [r11 + r11*2]
lea r11, [r11 + r12*4]
cmp rdx, r11
seta dl
test dl, dl
je 0x40b495
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
call fcn.00408d30
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx edx, byte [rcx + 9]
mov rbx, rcx
mov ecx, edx
mov esi, 1
shl rsi, cl
lea rdx, [rsi - 1]
and rdx, rax
mov rsi, qword [rbx + 0x18]
test rsi, rsi
jne 0x40b54b
mov rsi, qword [rsp + 0x48]
movzx r8d, word [rsi + 0x54]
imul rdx, r8
add rdx, qword [rbx + 0x10]
xor ecx, ecx
xor edi, edi
jmp 0x40b3f2
movzx edx, word [rbx + 0xa]
cmp cl, 0xf
jbe 0x40b4a3
mov ecx, 0xf
and ecx, 0xf
mov r8d, 1
shl r8d, cl
cmp dx, r8w
jae 0x40b43d
test r10, r10
je 0x40b50b
shr rax, 0x38
cmp al, 4
jae 0x40b506
lea ecx, [rax + 4]
test byte [r10], al
mov rdx, rdi
and rdi, 7
mov byte [r10 + rdi], cl
mov rcx, r10
lea rdi, [r10 + rdx*8 + 8]
test byte [rdi], al
mov r8d, dword [0x00850df0]
mov rax, qword [rsp + 0x58]
test r8d, r8d
jne 0x40b4ff
mov qword [rdi], rax
inc qword [rbx]
mov r10, rcx
mov r9, rdx
jmp 0x40b3b4
call fcn.004553b0
jmp 0x40b4f1
mov rcx, rax
jmp 0x40b4c5
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], r9
call fcn.00406df0
mov r10, qword [rsp + 0x18]
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
xor edi, edi
jmp 0x40b4ba
mov r10, rcx
xor edx, edx
mov ecx, r8d
jmp 0x40b439
mov r10, rcx
jmp 0x40b4b5
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
call fcn.0040c630
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
jmp 0x40b47a
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x48]
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 0x40b5b8
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 0x10], rcx
mov rax, qword [rsp + 0x20]
mov rcx, rdx
jmp 0x40b455
mov rdi, qword [rsp + 0x30]
mov rax, rcx
call fcn.004553b0
mov rdx, qword [rsp + 0x50]
jmp 0x40b5ab
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, [0x006f6d70]
mov qword [rsp + 8], rax
call fcn.0042aba0
ud2
call fcn.00452950
jmp fcn.0040b2e0