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

Disassembly:
lea r12, [rsp - 0x48]
cmp r12, qword [r14 + 0x10]
jbe 0x641deb
sub rsp, 0xc8
mov qword [rsp + 0xc0], rbp
lea rbp, [rsp + 0xc0]
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], rdi
mov rax, rbx
mov rbx, rcx
mov rcx, rdi
xor edi, edi
nop
call fcn.00641000
test rax, rax
jne 0x6418d3
test rcx, rcx
jne 0x6417c8
mov qword [rsp + 0x58], r9
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], r8
nop
nop
mov rcx, r9
and r9d, 0x1f
cmp r9, 0x11
je 0x6415cc
nop dword [rax + rax]
cmp r9, 0x14
je 0x6415d8
cmp r9, 0x17
jne 0x641603
mov qword [rsp + 0x70], r9
xor eax, eax
jmp 0x641971
mov rax, rsi
mov rbx, r8
nop
call fcn.0048fe00
test rax, rax
je 0x6416f3
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
test rcx, rcx
je 0x64161a
bt ecx, 9
jb 0x64161a
mov rbx, rsi
lea rax, [0x007f7248]
jmp 0x641625
mov rax, rsi
mov rbx, r8
call fcn.00491600
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x30], rax
lea rax, [0x006fc500]
call fcn.0040daa0
mov qword [rax + 8], 5
lea rcx, [0x00719e47]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
cmp dword [0x00a04ed0], 0
jne 0x64166a
mov rdx, qword [rsp + 0x78]
mov qword [rax + 0x18], rdx
jmp 0x641678
lea rdi, [rax + 0x18]
mov rdx, qword [rsp + 0x78]
call fcn.00465b40
mov rdx, qword [rsp + 0xd0]
mov rsi, qword [rdx + 0x18]
mov qword [rax + 0x20], rsi
cmp qword [rdx + 0x70], 0
jne 0x6416d7
lea rbx, [0x007f1b80]
mov rcx, rax
mov rax, rdx
nop dword [rax]
call fcn.00640840
mov rdi, qword [rsp + 0xd0]
mov qword [rdi + 0x70], rax
cmp dword [0x00a04ed0], 0
jne 0x6416c2
mov qword [rdi + 0x78], rbx
nop
jmp 0x6416d4
lea rcx, [rdi + 0x78]
mov rax, rdi
mov rdi, rcx
call fcn.00465b60
mov rdi, rax
mov rdx, rdi
mov rax, rdx
call fcn.00640980
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rax, qword [rsp + 0xd0]
nop dword [rax + rax]
call fcn.00646080
call fcn.0040b1a0
nop
cmp byte [0x009b00e0], 0
je 0x641747
lea rdx, [0x006b76a0]
mov qword [0x009b00e8], rdx
cmp dword [0x00a04ed0], 0
jne 0x641734
mov qword [0x009b00f0], rax
jmp 0x64174e
lea rdi, [0x009b00f0]
nop dword [rax + rax]
call fcn.00465a20
jmp 0x64174e
lea rdx, [0x006b76a0]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x64178a
movzx r9d, byte [rdx + 0x17]
mov r10d, r9d
and r9d, 0x1f
mov r11, r9
bts r9, 7
test r10b, 0x20
cmove r11, r9
nop
jmp 0x641791
xor r11d, r11d
xor edx, edx
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
mov rdi, rdx
mov rsi, rax
mov r8, r11
mov rax, qword [rsp + 0xa8]
call fcn.00490160
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x6417e9
bt ecx, 9
jb 0x6417e9
mov rbx, qword [rsp + 0xa8]
lea rax, [0x007f7248]
jmp 0x6417fe
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
call fcn.00491600
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x38], rax
lea rax, [0x006fc500]
call fcn.0040daa0
mov qword [rax + 8], 5
lea rcx, [0x00719e47]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
cmp dword [0x00a04ed0], 0
jne 0x641849
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x18], rdx
jmp 0x64185a
lea rdi, [rax + 0x18]
mov rdx, qword [rsp + 0x80]
call fcn.00465b40
mov rdx, qword [rsp + 0xd0]
mov rsi, qword [rdx + 0x18]
mov qword [rax + 0x20], rsi
cmp qword [rdx + 0x70], 0
jne 0x6418b7
lea rbx, [0x007f1b80]
mov rcx, rax
mov rax, rdx
nop
call fcn.00640840
mov rdi, qword [rsp + 0xd0]
mov qword [rdi + 0x70], rax
cmp dword [0x00a04ed0], 0
jne 0x6418a2
mov qword [rdi + 0x78], rbx
nop
jmp 0x6418b4
lea rcx, [rdi + 0x78]
mov rax, rdi
mov rdi, rcx
call fcn.00465b60
mov rdi, rax
mov rdx, rdi
mov rax, rdx
call fcn.00640980
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x40], rax
nop
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x68], rcx
call fcn.00640980
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rcx + 0x10]
mov rbx, qword [rcx]
mov rcx, qword [rcx + 0x18]
cmp rdx, rcx
jb 0x641969
mov rax, qword [rsp + 0x68]
lea rsi, [rax - 1]
cmp rcx, rsi
jb 0x641961
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 0x18]
sub rdx, rax
lea rdi, [rdx + 1]
mov rdx, rdi
neg rdi
sar rdi, 0x3f
and rsi, rdi
sub rcx, rax
add rbx, rsi
inc rcx
mov rax, qword [rsp + 0x88]
mov rdi, rdx
call r8
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rax, rsi
call fcn.00465f80
call fcn.00465f40
mov rax, rdx
mov qword [rsp + 0x50], rax
mov ebx, 9
mov rax, qword [rsp + 0xd0]
call fcn.00640b00
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x20], 8
je 0x641bf9
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x17
jne 0x641b05
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xa0]
nop word [rax + rax]
cmp qword [rbx + 0x10], rdi
jg 0x641abf
mov rsi, qword [rbx + 0x10]
mov r8, rsi
shr rsi, 0x3f
add rsi, r8
sar rsi, 1
add rsi, qword [rbx + 0x10]
cmp rsi, 4
mov r8d, 4
cmovl rsi, r8
mov rcx, qword [rsp + 0x58]
bt ecx, 9
jb 0x641a09
lea r9, [0x007f7248]
mov r10, qword [rsp + 0xa8]
jmp 0x641a2e
mov qword [rsp + 0x48], rsi
mov rax, qword [rsp + 0xa8]
call fcn.00491600
mov rsi, qword [rsp + 0x48]
mov r9, rax
mov r10, rbx
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbx + 8]
mov rax, r9
mov rdi, rsi
mov rbx, r10
nop dword [rax + rax]
call fcn.00491ec0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rcx
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x58]
call fcn.00491a80
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov r8, qword [rsp + 0x60]
nop
call fcn.00490160
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x50]
nop
cmp qword [rbx + 8], rdi
jle 0x641acc
cmp rdx, 0x17
jmp 0x641b12
lea rdx, [rdi + 1]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
mov rdi, rdx
call fcn.00490980
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x17
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x50]
jmp 0x641b12
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x50]
jne 0x641b1a
mov rsi, qword [rbx + 8]
jmp 0x641b49
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call fcn.0048f300
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x50]
mov rsi, rax
mov rax, qword [rsp + 0xd0]
cmp rdi, rsi
jge 0x641b87
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
nop dword [rax + rax]
call fcn.0048ef40
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
mov rax, qword [rsp + 0xd0]
call fcn.00640da0
nop dword [rax + rax]
test rax, rax
je 0x641b97
jmp 0x641bd9
xor ebx, ebx
xor ecx, ecx
xor edi, edi
call fcn.00640da0
test rax, rax
jne 0x641be9
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x20], 9
jne 0x641bb8
mov ebx, 9
call fcn.00640b00
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
inc rdx
mov rsi, qword [rax + 0x20]
cmp rsi, 8
je 0x641bfe
cmp rsi, 7
je 0x64196e
jmp 0x641dd7
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rdx
mov rsi, qword [rsp + 0x70]
cmp rsi, 0x17
jne 0x641c1c
mov rbx, qword [rsp + 0xa0]
mov r8, qword [rbx + 8]
jmp 0x641c4b
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.0048f300
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x70]
mov r8, rax
cmp rdx, r8
jge 0x641cd1
cmp rsi, 0x11
jne 0x641cb5
mov rcx, qword [rsp + 0x58]
bt ecx, 9
jb 0x641c76
lea rax, [0x007f7248]
mov rdi, qword [rsp + 0xa8]
jmp 0x641c88
mov rax, qword [rsp + 0xa8]
nop
call fcn.00491600
mov rdi, rbx
mov rcx, qword [rax + 0x48]
mov rax, rdi
call rcx
call fcn.00492160
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rcx
mov rdx, qword [rsp + 0x50]
jmp 0x641da1
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
mov rdi, rdx
call fcn.00490980
mov rax, qword [rsp + 0x50]
jmp 0x641d4c
test rdx, rdx
jne 0x641d38
cmp rsi, 0x17
jne 0x641d38
mov rcx, qword [rsp + 0x58]
bt ecx, 9
jb 0x641cf8
lea rax, [0x007f7248]
mov rdx, qword [rsp + 0xa8]
jmp 0x641d08
mov rax, qword [rsp + 0xa8]
call fcn.00491600
mov rdx, rbx
mov rbx, rdx
xor ecx, ecx
mov rdi, rcx
call fcn.00491ec0
mov rdi, rax
mov rsi, rbx
mov r8, rcx
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.00490160
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x70]
mov rdx, rax
nop dword [rax]
jmp 0x641cd1
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.0048ef40
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov r8, qword [rsp + 0x60]
call fcn.00490160
mov rdx, qword [rsp + 0x50]
inc rdx
mov qword [rsp + 0x50], rdx
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
nop dword [rax + rax]
call fcn.0048f300
mov rdi, qword [rsp + 0x50]
cmp rax, rdi
jg 0x641d65
mov rax, rdi
jmp 0x641d4c
lea rax, [0x006bb4c0]
lea rbx, [0x007f0980]
call fcn.00436580
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop
call fcn.00463860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00641520