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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x18]
cmp rax, qword [rcx + 0x10]
jbe 0x40f6e9
sub rsp, 0x98
mov qword [rsp + 0x90], rbp
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rsp + 0x48], rax
mov eax, dword [0x008b4074]
cmp eax, 2
je 0x40f6ce
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x40f6af
mov edx, dword [0x008b4470]
test edx, edx
je 0x40ed38
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x40ed2f
movzx ecx, byte [rcx + 0x15]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
lea rax, [0x008b5f60]
mov qword [rsp + 0x10], rax
call fcn.0040fc30
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0xb8], rax
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov rcx, 0x10
jmp 0x40ecf8
mov edx, dword [0x008b406c]
test edx, edx
je 0x40f6a8
mov rdx, qword gs:[0x28]
mov rdx, qword [rdx]
mov rbx, qword [rdx + 0x30]
mov rbx, qword [rbx + 0x90]
test rbx, rbx
je 0x40f6a0
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbx + 0x188]
sub rdx, rax
mov qword [rbx + 0x188], rdx
test byte [rbx], al
test rdx, rdx
jl 0x40f68d
mov qword [rsp + 0x68], rbx
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rdx, qword [rax + 0x30]
mov esi, dword [rdx + 0xd0]
inc esi
mov dword [rdx + 0xd0], esi
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
mov edx, dword [rax + 0xb4]
test edx, edx
jne 0x40f672
mov rdx, qword [rax + 0x50]
mov rsi, qword gs:[0x28]
mov rsi, qword [rsi]
cmp rdx, rsi
je 0x40f657
mov dword [rax + 0xb4], 1
mov rdx, qword gs:[0x28]
mov rdx, qword [rdx]
mov rdx, qword [rdx + 0x30]
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rsi
mov rdx, qword [rdx + 0x120]
mov qword [rsp + 0x60], rdx
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
je 0x40f64c
movzx r8d, byte [rdi + 0x17]
test r8b, 0x80
setne r8b
mov byte [rsp + 0x2f], r8b
cmp rsi, 0x8000
ja 0x40f59a
test r8b, r8b
je 0x40f3b8
cmp rsi, 0x10
jae 0x40f3b8
mov r9, qword [rdx + 0x18]
test rsi, 7
jne 0x40f389
add r9, 7
and r9, 0xfffffffffffffff8
lea r10, [rsi + r9]
cmp r10, 0x10
ja 0x40eef8
mov r11, qword [rdx + 0x10]
test r11, r11
je 0x40eef8
lea rcx, [r9 + r11]
mov qword [rdx + 0x18], r10
mov rbx, qword [rdx + 0x20]
inc rbx
mov qword [rdx + 0x20], rbx
mov dword [rax + 0xb4], 0
mov edx, dword [rax + 0xd0]
mov rbx, qword gs:[0x28]
mov rbx, qword [rbx]
lea esi, [rdx - 1]
mov dword [rax + 0xd0], esi
cmp edx, 1
jne 0x40eee0
movzx eax, byte [rbx + 0xe8]
test al, al
je 0x40eee0
mov qword [rbx + 0x10], 0xfffffffffffffade
mov qword [rsp + 0xb8], rcx
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov r9, qword [rdx + 0x38]
mov r10, qword [r9 + 0x40]
bsf r11, r10
mov r12, 0x40
cmove r11, r12
cmp r11, 0x40
jae 0x40f382
mov r12, qword [r9 + 0x30]
lea r13, [r11 + r12]
mov r14, qword [r9 + 0x38]
cmp r13, r14
jae 0x40f382
lea r12, [r11 + r12 + 1]
test r12, 0x3f
jne 0x40f347
cmp r12, r14
je 0x40f347
xor ecx, ecx
test rcx, rcx
je 0x40f307
xor r9d, r9d
mov r10, rcx
mov qword [r10], 0
mov qword [r10 + 8], 0
mov r11, qword [rsp + 0xa0]
mov r12, qword [rdx + 0x18]
cmp r11, r12
jae 0x40f2f5
mov r11, r10
mov qword [rdx + 0x10], r11
mov r11, qword [rsp + 0xa0]
mov qword [rdx + 0x18], r11
mov qword [rsp + 0xa0], 0x10
mov qword [rsp + 0x40], r10
mov byte [rsp + 0x2e], r9b
test r8b, r8b
je 0x40f244
mov rcx, r10
mov r8, qword [0x0089e170]
sub rcx, r8
mov r8, qword [0x0089e160]
mov r11, rcx
shr rcx, 5
sub r8, rcx
dec r8
movzx r12d, byte [r8]
shr r11, 3
and r11, 3
mov rcx, r11
mov r13d, 0x11
shl r13d, cl
cmp ecx, 0x20
sbb r11d, r11d
and r13d, r11d
not r13d
and r12d, r13d
mov byte [r8], r12b
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rsi
call fcn.004538f0
mov eax, dword [0x008b4074]
test eax, eax
jne 0x40f217
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xb4], 0
mov ecx, dword [rax + 0xd0]
mov rdx, qword gs:[0x28]
mov rdx, qword [rdx]
lea ebx, [rcx - 1]
mov dword [rax + 0xd0], ebx
cmp ecx, 1
jne 0x40f060
movzx eax, byte [rdx + 0xe8]
test al, al
je 0x40f060
mov qword [rdx + 0x10], 0xfffffffffffffade
mov eax, dword [0x008b4440]
test eax, eax
jne 0x40f1ea
mov rax, qword [0x007e32b0]
test rax, rax
jle 0x40f09e
mov rcx, qword [rsp + 0xa0]
cmp rcx, rax
jae 0x40f154
mov rax, qword [rsp + 0x60]
mov edx, dword [rax]
cmp ecx, edx
jge 0x40f154
sub edx, ecx
mov dword [rax], edx
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x40f0c9
mov rcx, qword [rax + 0x188]
mov rdx, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x38]
sub rdx, rbx
sub rcx, rdx
mov qword [rax + 0x188], rcx
movzx eax, byte [rsp + 0x2e]
test al, al
je 0x40f113
mov eax, dword [0x008b4074]
test eax, eax
jne 0x40f150
mov rax, qword [0x008b75f0]
mov rcx, qword [0x008b75e8]
cmp rax, rcx
jb 0x40f14c
movzx eax, byte [0x008b6f90]
test al, al
je 0x40f148
mov eax, dword [0x008b408c]
test eax, eax
jne 0x40f144
mov eax, dword [0x008b4070]
test eax, eax
setge al
test al, al
jne 0x40f130
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov qword [rsp], 0
mov byte [rsp + 8], 0
call fcn.004168f0
jmp 0x40f113
xor eax, eax
jmp 0x40f10f
xor eax, eax
jmp 0x40f10f
xor eax, eax
jmp 0x40f10f
xor eax, eax
jmp 0x40f10f
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
mov edx, dword [rcx + 0xd0]
inc edx
mov dword [rcx + 0xd0], edx
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x10], rdx
call fcn.0040fa40
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xd0]
mov rdx, qword gs:[0x28]
mov rdx, qword [rdx]
lea ebx, [rcx - 1]
mov dword [rax + 0xd0], ebx
test byte [rax], al
cmp ecx, 1
jne 0x40f09e
movzx eax, byte [rdx + 0xe8]
test al, al
je 0x40f09e
mov qword [rdx + 0x10], 0xfffffffffffffade
jmp 0x40f09e
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x10], rcx
call fcn.004241f0
jmp 0x40f06e
mov rax, qword [rsp + 0x40]
mov rcx, rax
mov qword [rsp], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x10], rcx
call fcn.0041d390
jmp 0x40f01a
mov rcx, qword [0x008965d0]
cmp rdi, rcx
jne 0x40f2ed
mov rcx, 0x30
mov qword [rsp + 0x38], rcx
mov rsi, r10
mov qword [rsp], rsi
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
call fcn.00411ec0
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x38]
cmp rdx, rcx
jbe 0x40f2e4
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x40f2dd
mov rsi, rdx
sub rdx, rcx
lea rcx, [rbx + rdx]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rdx + 8]
add r8, rcx
mov qword [rdx + 8], r8
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xa8]
movzx r9d, byte [rsp + 0x2e]
mov r10, qword [rsp + 0x40]
jmp 0x40effd
mov rsi, rdx
xor ecx, ecx
jmp 0x40f2ab
mov rcx, qword [rax + 8]
mov rsi, rdx
jmp 0x40f2ab
mov rcx, rsi
jmp 0x40f25b
mov r11, qword [rdx + 0x10]
test r11, r11
jne 0x40ef91
jmp 0x40ef7e
mov qword [rsp], rdx
mov byte [rsp + 8], 2
call fcn.0040e9f0
mov rcx, qword [rsp + 0x10]
movzx r9d, byte [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0xa8]
movzx r8d, byte [rsp + 0x2f]
jmp 0x40ef57
lea rcx, [r11 + 1]
shr r10, cl
cmp rcx, 0x40
sbb r11, r11
and r11, r10
mov qword [r9 + 0x40], r11
mov qword [r9 + 0x30], r12
mov r10, qword [r9 + 0x18]
mov r11, qword [r9 + 0x68]
movzx r12d, word [r9 + 0x60]
inc r12d
mov word [r9 + 0x60], r12w
imul r13, r11
lea rcx, [r10 + r13]
jmp 0x40ef4b
xor ecx, ecx
jmp 0x40ef4b
test rsi, 3
jne 0x40f39f
add r9, 3
and r9, 0xfffffffffffffffc
jmp 0x40ee79
test rsi, 1
jne 0x40ee79
inc r9
and r9, 0xfffffffffffffffe
jmp 0x40ee79
cmp rsi, 0x3f8
ja 0x40f56e
lea r9, [rsi + 7]
shr r9, 3
cmp r9, 0x81
jae 0x40f567
lea r10, [0x007eab60]
movzx r9d, byte [r10 + r9]
movzx r10d, r9b
cmp r10, 0x43
jae 0x40f560
lea r11, [0x007eaca0]
movzx r11d, word [r11 + r10*2]
mov qword [rsp + 0xa0], r11
test byte [rdx], al
mov r10, qword [rdx + r10*8 + 0x28]
mov r11, qword [r10 + 0x40]
bsf r12, r11
mov r13, 0x40
cmove r12, r13
cmp r12, 0x40
jae 0x40f559
mov r13, qword [r10 + 0x30]
lea r14, [r12 + r13]
mov r15, qword [r10 + 0x38]
cmp r14, r15
jae 0x40f559
lea r13, [r12 + r13 + 1]
test r13, 0x3f
jne 0x40f51d
cmp r13, r15
je 0x40f51d
xor ecx, ecx
test rcx, rcx
je 0x40f4d8
xor r9d, r9d
mov byte [rsp + 0x2e], r9b
mov r11, rcx
mov qword [rsp + 0x40], r11
movzx r12d, byte [rsp + 0xb0]
test r12b, r12b
je 0x40f48b
movzx r10d, byte [r10 + 0x65]
test r10b, r10b
jne 0x40f493
mov r10, r11
jmp 0x40ef9d
mov qword [rsp], r11
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
call fcn.004551f0
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0xa8]
movzx r8d, byte [rsp + 0x2f]
movzx r9d, byte [rsp + 0x2e]
mov r11, qword [rsp + 0x40]
jmp 0x40f48b
mov qword [rsp], rdx
mov byte [rsp + 8], r9b
call fcn.0040e9f0
mov rcx, qword [rsp + 0x10]
mov r10, qword [rsp + 0x18]
movzx r9d, byte [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0xa8]
movzx r8d, byte [rsp + 0x2f]
jmp 0x40f466
lea rcx, [r12 + 1]
shr r11, cl
cmp rcx, 0x40
sbb r12, r12
and r11, r12
mov qword [r10 + 0x40], r11
mov qword [r10 + 0x30], r13
mov r11, qword [r10 + 0x18]
mov r12, qword [r10 + 0x68]
movzx r13d, word [r10 + 0x60]
inc r13d
mov word [r10 + 0x60], r13w
imul r14, r12
lea rcx, [r11 + r14]
jmp 0x40f45e
xor ecx, ecx
jmp 0x40f45e
call fcn.004293e0
ud2
call fcn.004293e0
ud2
lea r9, [rsi - 0x381]
shr r9, 7
cmp r9, 0xf9
jae 0x40f593
lea r10, [0x007ebc60]
movzx r9d, byte [r10 + r9]
jmp 0x40f3e6
call fcn.004293e0
ud2
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x70], 0
lea rcx, [0x0044f190]
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x80], rcx
movzx ecx, byte [rsp + 0xb0]
mov byte [rsp + 0x88], cl
lea rcx, [rsp + 0x70]
mov qword [rsp], rcx
call fcn.004520b0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x30], 1
mov rax, qword [rsp + 0x48]
mov word [rax + 0x60], 1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x18]
mov r10, rcx
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0xa8]
movzx r8d, byte [rsp + 0x2f]
mov r9d, 1
jmp 0x40ef9d
mov r8d, 1
jmp 0x40ee3b
lea rax, [0x006d4465]
mov qword [rsp], rax
mov qword [rsp + 8], 0x14
call fcn.0042aea0
ud2
lea rax, [0x006d2691]
mov qword [rsp], rax
mov qword [rsp + 8], 0xf
call fcn.0042aea0
ud2
mov qword [rsp], rbx
call fcn.0041a270
mov rbx, qword [rsp + 0x68]
jmp 0x40ed8b
mov rbx, rdx
jmp 0x40ed6a
xor ebx, ebx
jmp 0x40ed8b
lea rax, [0x008b4258]
mov qword [rsp + 0xb8], rax
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
lea rax, [0x006dd11b]
mov qword [rsp], rax
mov qword [rsp + 8], 0x32
call fcn.0042aea0
ud2
call fcn.00452210
jmp fcn.0040ec80