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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4140e6
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x4140af
cmp qword [rax], 0
nop word [rax + rax]
je 0x4140af
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x4140c8
cmp byte [rax + 9], 0
jne 0x413ee5
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
mov rbx, qword [rsp + 0x88]
cmp rbx, 0x20
jge 0x413dcc
nop
lea rax, [rcx + 8]
xor edx, edx
nop
jmp 0x413d09
inc rdx
add rax, 0x10
cmp rdx, 8
jae 0x413d27
mov rbx, qword [rsp + 0x88]
cmp qword [rax + 8], rbx
je 0x413d41
test byte [rcx], al
movzx ebx, byte [rdx + rcx]
test bl, bl
jne 0x413d02
lea rax, [0x008123e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
nop
ret
test byte [rcx], al
movzx esi, byte [rdx + rcx]
cmp sil, 1
jbe 0x413d1d
mov qword [rsp + 0x38], rdx
mov rsi, qword [rax]
mov rdi, qword [rsp + 0x80]
nop dword [rax]
cmp rsi, rdi
je 0x413d98
mov qword [rsp + 0x50], rax
mov qword [rsp], rsi
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rbx
call fcn.00402a40
cmp byte [rsp + 0x18], 0
jne 0x413d98
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
jmp 0x413d02
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x51]
mov rcx, qword [rsp + 0x38]
imul rcx, rax
mov rax, qword [rsp + 0x40]
lea rax, [rax + rcx]
lea rax, [rax + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
nop
lea rsi, [rcx + 8]
xor edx, edx
mov edi, 8
jmp 0x413de1
inc rdx
add rsi, 0x10
cmp rdx, 8
jae 0x413e00
cmp qword [rsi + 8], rbx
je 0x413e89
test byte [rcx], al
movzx r8d, byte [rdx + rcx]
test r8b, r8b
jne 0x413dda
nop dword [rax]
cmp rdi, 8
jne 0x413e1f
lea rax, [0x008123e0]
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]
lea rcx, [rcx + 8]
mov rcx, qword [rcx]
mov rsi, qword [rsp + 0x80]
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbx
call fcn.00402a40
cmp byte [rsp + 0x18], 0
je 0x413e06
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x51]
mov rcx, qword [rsp + 0x28]
imul rcx, rax
mov rax, qword [rsp + 0x40]
lea rax, [rax + rcx]
lea rax, [rax + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
test byte [rcx], al
movzx r8d, byte [rdx + rcx]
cmp r8b, 1
jbe 0x413df1
mov r8, qword [rsi]
mov r9, qword [rsp + 0x80]
cmp r8, r9
je 0x414085
mov r10d, dword [r8]
cmp dword [r9], r10d
jne 0x413dda
lea r9, [r9 + rbx]
lea r9, [r9 - 4]
lea r8, [r8 + rbx]
lea r8, [r8 - 4]
mov r9d, dword [r9]
cmp dword [r8], r9d
jne 0x413dda
cmp rdi, 8
jne 0x413ee5
mov rdi, rdx
nop
jmp 0x413dda
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx + 0x48]
mov rbx, qword [rdx]
mov esi, dword [rax + 0xc]
lea rdi, [rsp + 0x80]
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
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 + 0x52]
imul rcx, rdi
mov r8, qword [rdx + 0x18]
add rcx, qword [rdx + 0x10]
test r8, r8
je 0x413f6f
movzx edx, byte [rdx + 8]
test dl, 8
je 0x414079
and rbx, rax
imul rdi, rbx
lea rdx, [r8 + rdi]
movzx ebx, byte [r8 + rdi]
add ebx, 0xfffffffe
cmp bl, 3
jae 0x414071
shr rax, 0x38
cmp al, 5
jae 0x413f7a
add eax, 5
mov byte [rsp + 0x27], al
nop
jmp 0x414042
inc rbx
add rdx, 0x10
cmp rbx, 8
jae 0x414033
mov rdi, qword [rsp + 0x88]
nop
cmp qword [rdx + 8], rdi
jne 0x413f85
movzx r8d, byte [rbx + rcx]
cmp r8b, al
jne 0x413f85
mov qword [rsp + 0x30], rbx
mov r8, qword [rdx]
mov r9, qword [rsp + 0x80]
cmp r8, r9
je 0x413fff
mov qword [rsp + 0x48], rdx
mov qword [rsp], r8
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rdi
call fcn.00402a40
cmp byte [rsp + 0x18], 0
jne 0x413fff
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
jmp 0x413f85
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x51]
mov rcx, qword [rsp + 0x30]
imul rcx, rax
mov rax, qword [rsp + 0x58]
lea rax, [rax + rcx]
lea rax, [rax + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
movzx edx, word [rsi + 0x52]
lea rdx, [rcx + rdx]
lea rdx, [rdx - 8]
mov rcx, qword [rdx]
test rcx, rcx
je 0x414058
mov qword [rsp + 0x58], rcx
nop
lea rdx, [rcx + 8]
xor ebx, ebx
jmp 0x413f8c
lea rax, [0x008123e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, rdx
jmp 0x413f6f
shr rbx, 1
nop dword [rax]
jmp 0x413f53
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x51]
imul rdx, rax
lea rax, [rdx + rcx]
lea rax, [rax + 0x88]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008123e0]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x00663ad6]
mov qword [rsp], rax
mov qword [rsp + 8], 0x21
nop dword [rax]
call fcn.00439220
nop
call fcn.0046abe0
jmp fcn.00413c80