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

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x40fae6
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov rcx, qword [rax + 0x18]
movzx edx, byte [rcx + 8]
test dl, 4
jne 0x40fad1
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], rcx
mov rbx, qword [rax + 0x10]
mov qword [rsp + 0x50], rbx
mov rdx, qword [rax + 0x50]
mov rsi, qword [rax + 0x28]
movzx edi, byte [rax + 0x4b]
mov r8, qword [rax + 0x58]
jmp 0x40f620
mov rax, rsi
call fcn.0040dac0
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x28]
mov rcx, rdx
mov rbx, qword [rsp + 0x50]
mov rsi, rax
xor edi, edi
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x90]
nop dword [rax]
test rsi, rsi
jne 0x40f76c
mov qword [rsp + 0x30], rdx
cmp qword [rax + 0x40], rdx
jne 0x40f63e
cmp byte [rax + 0x49], 0
jne 0x40f77d
mov rax, rcx
call fcn.0040fd00
test al, al
je 0x40f6e4
mov rcx, qword [rsp + 0x90]
movzx edx, byte [rcx + 0x4a]
mov rsi, qword [rsp + 0x60]
nop
cmp byte [rsi + 9], dl
jne 0x40f6ec
mov rax, qword [rcx + 0x18]
call fcn.0040fda0
mov rbx, qword [rsp + 0x30]
and rax, rbx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx + 0x18]
mov rsi, qword [rsp + 0x50]
movzx edi, word [rsi + 0x52]
imul rax, rdi
mov rdi, rax
mov rax, rdx
mov rbx, rdi
call fcn.0044dae0
mov qword [rsp + 0x78], rax
call fcn.0040daa0
test al, al
jne 0x40f6b8
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
jmp 0x40f70e
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx + 0x20]
mov rdx, qword [rsp + 0x50]
movzx ebx, word [rdx + 0x52]
mov rsi, qword [rsp + 0x30]
imul rbx, rsi
call fcn.0044dae0
mov rcx, 0xffffffffffffffff
jmp 0x40f70e
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx + 0x20]
mov rdx, qword [rsp + 0x50]
movzx ebx, word [rdx + 0x52]
mov rsi, qword [rsp + 0x30]
imul rbx, rsi
call fcn.0044dae0
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x90]
movzx ebx, byte [rdx + 0x4a]
mov eax, ebx
call fcn.0040da20
mov rcx, qword [rsp + 0x30]
inc rcx
cmp rax, rcx
jne 0x40f748
mov rdx, qword [rsp + 0x90]
mov byte [rdx + 0x49], 1
xor ecx, ecx
jmp 0x40f750
mov rdx, qword [rsp + 0x90]
mov rax, rdx
mov rbx, qword [rsp + 0x50]
xor edi, edi
mov r8, qword [rsp + 0x28]
mov rdx, rcx
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x70], rsi
jmp 0x40f7b2
movups xmmword [rax], xmm15
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
movzx r9d, byte [rsp + 0x1e]
lea edi, [r9 + 1]
mov rax, rdx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
cmp dil, 8
jae 0x40f5df
mov byte [rsp + 0x1e], dil
test byte [rsi], al
movzx ecx, byte [rax + 0x48]
add ecx, edi
mov byte [rsp + 0x1f], cl
and ecx, 7
mov qword [rsp + 0x40], rcx
movzx ebx, byte [rsi + rcx]
mov eax, ebx
nop dword [rax + rax]
call fcn.0040da00
test al, al
je 0x40f7f0
mov rax, qword [rsp + 0x70]
jmp 0x40f805
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
movzx edx, byte [rax + rcx]
nop
cmp dl, 4
jne 0x40f817
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x28]
jmp 0x40f791
movzx ecx, byte [rsp + 0x1f]
and ecx, 7
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x50]
movzx esi, byte [rdx + 0x50]
imul rsi, rcx
lea rbx, [rsi + 8]
call fcn.0044dae0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
call fcn.00459840
test al, al
je 0x40f857
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
jmp 0x40f85c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
movzx edx, byte [rcx + 0x50]
movzx esi, byte [rcx + 0x51]
mov rdi, qword [rsp + 0x38]
imul rsi, rdi
lea rbx, [rsi + rdx*8]
lea rbx, [rbx + 8]
mov rax, qword [rsp + 0x70]
call fcn.0044dae0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x28]
cmp rcx, 0xffffffffffffffff
jne 0x40f89d
xor edx, edx
jmp 0x40f8b6
mov rax, qword [rsp + 0x60]
call fcn.0040fd20
xor eax, 1
mov rcx, qword [rsp + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x68]
test dl, dl
je 0x40f9a6
mov rax, qword [rsp + 0x50]
call fcn.00459880
test al, al
je 0x40f8d3
mov eax, 1
jmp 0x40f8ed
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rcx + 0x30]
mov rdx, qword [rsi + 0x18]
mov rsi, qword [rdx]
mov rax, qword [rsp + 0x58]
mov rbx, rax
call rsi
test al, al
jne 0x40f935
mov rdx, qword [rsp + 0x90]
movzx esi, byte [rdx + 0x4a]
lea ecx, [rsi - 1]
cmp cl, 0x40
sbb rsi, rsi
mov rdi, qword [rsp + 0x28]
mov r8, rdi
shr rdi, cl
and rdi, rsi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
movzx r9d, byte [rax + rsi]
and r9d, 1
cmp r9, rdi
jne 0x40f791
jmp 0x40f9bb
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0x48]
mov rsi, qword [rdx]
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rdi + 0xc]
mov rax, qword [rsp + 0x58]
call rsi
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x90]
movzx esi, byte [rcx + 0x4a]
mov eax, esi
call fcn.0040da40
mov rcx, qword [rsp + 0x20]
and rax, rcx
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
je 0x40f98f
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
mov r8, rcx
jmp 0x40f791
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x40]
mov r8, rcx
jmp 0x40f9bb
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x40]
mov r8, rcx
movzx esi, byte [rax + rsi]
nop
cmp sil, 2
je 0x40f9d3
cmp sil, 3
je 0x40f9d3
mov ecx, 1
jmp 0x40fa20
mov rax, qword [rsp + 0x50]
call fcn.00459880
nop dword [rax]
test al, al
je 0x40f9eb
mov eax, 1
jmp 0x40fa05
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rcx + 0x30]
mov rdx, qword [rsi + 0x18]
mov rsi, qword [rdx]
mov rax, qword [rsp + 0x58]
mov rbx, rax
call rsi
xor eax, 1
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x28]
mov ecx, eax
mov rax, qword [rsp + 0x70]
nop dword [rax]
test cl, cl
jne 0x40fa65
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.0040e740
test rax, rax
jne 0x40fa54
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x28]
jmp 0x40f791
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
jmp 0x40fa96
mov rcx, qword [rsp + 0x58]
mov qword [rdx], rcx
mov rax, qword [rsp + 0x50]
call fcn.00459860
test al, al
je 0x40fa85
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jmp 0x40fa8a
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0x70]
cmp qword [rcx + 0x28], rax
je 0x40faae
mov qword [rcx + 0x28], rax
movzx eax, byte [rsp + 0x1e]
inc eax
mov byte [rcx + 0x4b], al
mov rax, qword [rsp + 0x28]
mov qword [rcx + 0x58], rax
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
lea rax, [0x006529d8]
mov ebx, 0x26
nop dword [rax]
call fcn.00436d80
nop
mov qword [rsp + 8], rax
call fcn.0045f280
mov rax, qword [rsp + 8]
jmp fcn.0040f580