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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x413360
sub rsp, 0x38
mov qword [rsp + 0x30], rbp
lea rbp, [rsp + 0x30]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x41333e
movzx ecx, byte [rax + 8]
nop word [rax + rax]
test cl, 4
jne 0x413325
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + 0x48]
mov rbx, qword [rdx]
mov esi, dword [rax + 0xc]
lea rdi, [rsp + 0x50]
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
call rbx
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
movzx ebx, byte [rcx + 8]
xor ebx, 4
mov byte [rcx + 8], bl
cmp qword [rcx + 0x10], 0
je 0x4132b6
mov rdx, qword [rsp + 0x40]
jmp 0x413124
lea r10, [r12 + 1]
mov rcx, rbx
mov rdi, r9
mov rbx, r11
mov r9, r10
cmp r9, 8
jae 0x413258
test byte [rbx], al
movzx r10d, byte [rbx + r9]
nop dword [rax + rax]
cmp r10b, 1
ja 0x413227
test rcx, rcx
mov r11, rbx
cmovne rbx, rcx
mov r12, r9
cmovne r9, rdi
nop dword [rax + rax]
test r10b, r10b
jne 0x413076
cmp qword [rsi + 0x18], 0
jne 0x413180
mov r8, qword [rsi]
inc r8
movzx ecx, byte [rsi + 9]
nop word [rax + rax]
cmp r8, 8
jle 0x41315e
mov r10d, 1
shl r10, cl
shr r10, 1
lea r12, [r10 + r10*2]
lea r10, [r10 + r12*4]
cmp r8, r10
jbe 0x41315e
mov qword [rsp], rdx
mov qword [rsp + 8], rsi
call fcn.004112e0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
mov rax, rdx
mov rdx, qword [rsp + 0x40]
movzx ebx, byte [rcx + 9]
mov rsi, rcx
mov ecx, ebx
mov r8d, 1
shl r8, cl
lea rbx, [r8 - 1]
and rbx, rax
cmp qword [rsi + 0x18], 0
jne 0x413285
movzx r8d, word [rdx + 0x52]
imul rbx, r8
add rbx, qword [rsi + 0x10]
xor ecx, ecx
xor edi, edi
jmp 0x41326c
movzx r8d, word [rsi + 0xa]
cmp cl, 0xf
jbe 0x41316d
mov ecx, 0xf
and ecx, 0xf
mov r10d, 1
shl r10d, cl
cmp r10w, r8w
jbe 0x4130ff
nop
test rbx, rbx
je 0x4131f8
shr rax, 0x38
cmp al, 5
jae 0x413190
add eax, 5
test byte [rbx], al
mov rcx, r9
and r9, 7
mov byte [rbx + r9], al
mov rax, rbx
lea rdi, [rbx + rcx*8]
lea rdi, [rdi + 8]
test byte [rdi], al
nop
mov rbx, qword [rsp + 0x50]
cmp dword [0x00811460], 0
jne 0x4131f1
mov qword [rdi], rbx
inc qword [rsi]
movzx edx, byte [rdx + 0x51]
imul rdx, rcx
movzx ecx, byte [rsi + 8]
lea rax, [rdx + rax]
lea rax, [rax + 0x48]
test cl, 4
je 0x413309
and ecx, 0xfffffffb
mov byte [rsi + 8], cl
mov qword [rsp + 0x58], rax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
call fcn.0046ca60
jmp 0x4131bc
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r11
call fcn.0040eee0
mov rbx, qword [rsp + 0x18]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor r9d, r9d
jmp 0x413185
mov r10, rbx
lea rbx, [rbx + r9*8]
lea rbx, [rbx + 8]
mov r11, qword [rsp + 0x50]
cmp qword [rbx], r11
je 0x41324d
mov r11, r10
mov r12, r9
mov rbx, rcx
mov r9, rdi
jmp 0x413076
mov rax, r10
mov rcx, r9
jmp 0x4131bf
mov r9, rbx
lea rbx, [rbx + r8]
lea rbx, [rbx - 8]
nop
mov rbx, qword [rbx]
test rbx, rbx
je 0x413274
xor r9d, r9d
jmp 0x413087
mov r11, r9
mov rbx, rcx
mov r9, rdi
nop dword [rax]
jmp 0x4130c5
mov qword [rsp + 0x28], rbx
mov qword [rsp], rdx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbx
call fcn.00413720
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x48]
jmp 0x413148
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x40]
mov rdx, qword [rcx]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov byte [rsp + 0x10], 1
call fcn.0040daa0
mov rax, qword [rsp + 0x18]
cmp dword [0x00811460], 0
jne 0x4132f9
mov rdx, qword [rsp + 0x48]
mov qword [rdx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rcx, rdx
jmp 0x41306c
mov rdx, qword [rsp + 0x48]
lea rdi, [rdx + 0x10]
call fcn.0046c920
jmp 0x4132ec
lea rax, [0x0065f162]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
nop dword [rax]
call fcn.00439220
lea rax, [0x0065f162]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.00439220
lea rax, [0x0061e920]
mov qword [rsp], rax
lea rax, [0x006a1940]
mov qword [rsp + 8], rax
call fcn.00438920
nop
nop dword [rax + rax]
call fcn.0046abe0
jmp fcn.00412fe0