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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40fc38
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x70], rax
mov rbx, qword [rax + 0x18]
mov qword [rsp + 0x50], rbx
movzx esi, byte [rbx + 8]
test sil, 4
je 0x40f7c5
lea rax, [0x006bde9e]
mov ebx, 0x26
call fcn.00437320
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rax + 0x10]
mov qword [rsp + 0x40], rsi
mov rdi, qword [rax + 0x50]
mov r8, qword [rax + 0x28]
movzx r9d, byte [rax + 0x4b]
mov r10, qword [rax + 0x58]
nop
jmp 0x40f7f8
movzx r11d, word [rsi + 0x52]
lea r11, [r10 + r11]
lea r11, [r11 - 8]
mov r8, qword [r11]
xor r9d, r9d
mov r10, rdx
test r8, r8
je 0x40f808
mov rdx, r10
mov r10, r8
jmp 0x40f8ce
cmp qword [rax + 0x40], rdi
jne 0x40f818
cmp byte [rax + 0x49], 0
jne 0x40f8df
mov r8, qword [rbx + 0x18]
nop dword [rax]
test r8, r8
je 0x40f890
movzx r9d, byte [rax + 0x4a]
cmp byte [rbx + 9], r9b
jne 0x40f890
mov r9, qword [rax + 0x18]
movzx r10d, byte [r9 + 8]
movzx r9d, byte [r9 + 9]
nop
test r10b, 8
jne 0x40f849
dec r9d
movzx r10d, word [rsi + 0x52]
mov ecx, r9d
mov r9d, 1
shl r9, cl
dec r9
and r9, rdi
imul r9, r10
movzx r11d, byte [r9 + r8]
add r11d, 0xfffffffe
add r8, r9
nop
cmp r11b, 3
jae 0x40f888
imul r10, rdi
add r10, qword [rax + 0x20]
mov rcx, 0xffffffffffffffff
jmp 0x40f8a4
mov rcx, rdi
mov r10, r8
jmp 0x40f8a4
movzx r10d, word [rsi + 0x52]
imul r10, rdi
add r10, qword [rax + 0x20]
mov rcx, 0xffffffffffffffff
inc rdi
movzx r8d, byte [rax + 0x4a]
mov rdx, rcx
mov ecx, r8d
mov r9d, 1
shl r9, cl
nop dword [rax + rax]
cmp r9, rdi
jne 0x40f8cb
mov byte [rax + 0x49], 1
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x58], r10
jmp 0x40f908
cmp dword [0x00921500], 0
je 0x40f8fb
mov rcx, qword [rax]
call fcn.004665c0
mov qword [r11], rcx
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
movups xmmword [rax], xmm15
add rsp, 0x60
pop rbp
ret
inc r9d
cmp r9b, 8
jae 0x40f7e2
test byte [r10], al
movzx r8d, byte [rax + 0x48]
add r8d, r9d
mov r11d, r8d
and r8d, 7
movzx r12d, byte [r10 + r8]
cmp r12b, 1
jbe 0x40f905
cmp r12b, 4
je 0x40f905
and r11d, 7
movzx r12d, byte [rsi + 0x50]
mov r13, r12
imul r12, r11
mov r15, r10
lea r12, [r12 + r10]
lea r12, [r12 + 8]
mov ecx, dword [rsi + 0x54]
bt ecx, 0
jae 0x40f95e
mov r12, qword [r12]
mov byte [rsp + 0x1f], r9b
mov qword [rsp + 0x48], r12
movzx edi, byte [rsi + 0x51]
imul rdi, r11
lea rdi, [rdi + r13*8]
lea rdi, [rdi + r10]
lea rdi, [rdi + 8]
mov qword [rsp + 0x38], rdi
cmp rdx, 0xffffffffffffffff
je 0x40fab6
movzx r10d, byte [rbx + 8]
test r10b, 8
jne 0x40fab6
mov qword [rsp + 0x30], r8
bt ecx, 2
jae 0x40f9ac
mov ecx, 1
jmp 0x40f9ef
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rdx]
mov rax, r12
mov rbx, rax
call rcx
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
movzx r9d, byte [rsp + 0x1f]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
mov ecx, eax
mov rax, qword [rsp + 0x70]
test cl, cl
jne 0x40fa2a
movzx ecx, byte [rax + 0x4a]
dec ecx
mov r10, rdx
shr rdx, cl
movzx r11d, byte [r15 + r8]
and r11d, 1
cmp cl, 0x40
sbb r13, r13
and r13, rdx
cmp r11, r13
je 0x40fab9
mov rdx, r10
mov rdi, qword [rsp + 0x28]
mov r10, r15
jmp 0x40f905
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rdx]
mov edi, dword [rbx + 0xc]
mov rax, r12
mov rbx, rdi
call rcx
mov rcx, qword [rsp + 0x70]
movzx esi, byte [rcx + 0x4a]
mov rdx, rcx
mov ecx, esi
mov edi, 1
shl rdi, cl
lea rcx, [rdi - 1]
and rax, rcx
mov rcx, qword [rsp + 0x20]
nop
cmp rcx, rax
je 0x40fa8a
mov rax, rdx
mov rdx, rcx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
movzx r9d, byte [rsp + 0x1f]
mov r10, qword [rsp + 0x58]
jmp 0x40f905
mov rax, rdx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
movzx r9d, byte [rsp + 0x1f]
mov r10, rcx
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
jmp 0x40fab9
mov r10, rdx
movzx r8d, byte [r15 + r8]
nop
cmp r8b, 2
je 0x40fad3
cmp r8b, 3
je 0x40fad3
mov ecx, 1
jmp 0x40fb26
mov r8d, dword [rsi + 0x54]
bt r8d, 2
jae 0x40fae5
mov ecx, 1
jmp 0x40fb23
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rdx]
mov rax, r12
mov rbx, rax
call rcx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
movzx r9d, byte [rsp + 0x1f]
mov r10, qword [rsp + 0x20]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
mov ecx, eax
mov rax, qword [rsp + 0x70]
xor ecx, 1
test cl, cl
jne 0x40fbb3
mov rax, rsi
mov rcx, r12
call fcn.0040e9e0
test rax, rax
jne 0x40fb67
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
movzx r9d, byte [rsp + 0x1f]
mov r10, qword [rsp + 0x58]
jmp 0x40f905
cmp dword [0x00921500], 0
jne 0x40fb77
mov rcx, qword [rsp + 0x70]
jmp 0x40fb97
call fcn.00466600
mov qword [r11], rax
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx]
mov qword [r11 + 8], rdx
mov qword [r11 + 0x10], rbx
mov rdx, qword [rcx + 8]
mov qword [r11 + 0x18], rdx
mov qword [rcx], rax
mov qword [rcx + 8], rbx
mov rax, rcx
movzx r9d, byte [rsp + 0x1f]
mov r10, qword [rsp + 0x20]
mov r15, qword [rsp + 0x58]
jmp 0x40fbfb
cmp dword [0x00921500], 0
je 0x40fbcf
nop dword [rax]
call fcn.004665c0
mov qword [r11], r12
mov rcx, qword [rax]
mov qword [r11 + 8], rcx
mov qword [rax], r12
mov ecx, dword [rsi + 0x54]
bt ecx, 1
jae 0x40fbde
mov rdi, qword [rdi]
cmp dword [0x00921500], 0
je 0x40fbf7
call fcn.004665c0
mov qword [r11], rdi
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
mov qword [rax + 8], rdi
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x50], rcx
cmp qword [rax + 0x28], r15
je 0x40fc27
cmp dword [0x00921500], 0
je 0x40fc23
call fcn.004665c0
mov qword [r11], r15
mov rcx, qword [rax + 0x28]
mov qword [r11 + 8], rcx
mov qword [rax + 0x28], r15
lea ecx, [r9 + 1]
mov byte [rax + 0x4b], cl
mov qword [rax + 0x58], r10
add rsp, 0x60
pop rbp
ret
mov qword [rsp + 8], rax
nop dword [rax]
call fcn.004646a0
mov rax, qword [rsp + 8]
jmp fcn.0040f780