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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x28]
cmp rax, qword [rcx + 0x10]
jbe 0x40e452
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
movzx eax, word [0x007eaca4]
cmp ax, 0x10
jne 0x40e437
call fcn.00429830
xor eax, eax
cmp rax, 0x43
jge 0x40df4f
lea rcx, [0x007eaca0]
movzx edx, word [rcx + rax*2]
lea rbx, [rax + rax*2]
shl rbx, 3
lea r8, [0x008b5ec0]
mov dword [r8 + rbx + 0x10d8], edx
inc rax
cmp rax, 0x43
jl 0x40df24
mov rax, qword [0x008b41c0]
test rax, rax
je 0x40e41c
cmp rax, 0x1000
jb 0x40e38f
lea rcx, [rax - 1]
test rcx, rax
jne 0x40e328
mov byte [rsp + 0x27], 0
movabs rax, 0x800000000
shr rax, 5
mov qword [rsp + 0x68], rax
movabs rcx, 0x800000000
shr rcx, 0xd
shl rcx, 3
add rcx, 0x1fff
and rcx, 0xffffffffffffe000
mov qword [rsp + 0x28], rcx
xor edx, edx
xor ebx, ebx
xor esi, esi
mov qword [rsp + 0x50], rdx
cmp rdx, 0x7f
jg 0x40e041
shl rdx, 0x28
movabs rsi, 0xc000000000
or rsi, rdx
mov rdx, rsi
mov qword [rsp], rdx
lea rdx, [rcx + rax]
movabs rsi, 0x800000000
lea rdx, [rsi + rdx + 0x2000]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 8], rdx
lea rdi, [rsp + 0x27]
mov qword [rsp + 0x10], rdi
call fcn.00414250
mov rax, qword [rsp + 0x18]
test rax, rax
jne 0x40e31e
mov r8, qword [rsp + 0x50]
lea rdx, [r8 + 1]
mov rcx, qword [rsp + 0x28]
mov rbx, rax
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rdx
cmp rdx, 0x7f
jle 0x40dfc6
mov rax, rbx
mov rcx, rsi
test rax, rax
jne 0x40e30c
lea rdi, [rsp + 0x70]
lea rsi, [0x006f0de0]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.004551c4
mov rbp, qword [rbp]
xor edx, edx
lea rbx, [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x28]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x98], rbx
cmp rdx, 4
jge 0x40e128
mov rax, qword [rbx]
mov rcx, qword [0x007ee7d0]
add rcx, 0x13ffff
and rcx, 0xfffffffffff00000
mov qword [rsp], rcx
mov rcx, 0x400000
lea rax, [rax + rcx + 0x8002000]
mov qword [rsp + 0x40], rax
mov qword [rsp + 8], rax
lea rcx, [rsp + 0x27]
mov qword [rsp + 0x10], rcx
call fcn.00414250
mov rax, qword [rsp + 0x18]
test rax, rax
jne 0x40e2f4
mov r8, qword [rsp + 0x98]
lea rbx, [r8 + 8]
mov r8, qword [rsp + 0x60]
lea rdx, [r8 + 1]
mov rsi, 0x8000000
mov rdi, 0x400000
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x98], rbx
cmp rdx, 4
jl 0x40e097
mov rdx, rdi
mov rbx, rcx
mov rcx, rsi
test rax, rax
je 0x40e2d9
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x38], rdx
lea rsi, [rax + 0x1fff]
and rsi, 0xffffffffffffe000
mov qword [rsp + 0x30], rsi
lea rdi, [rsi + rdx]
add rdi, rcx
mov qword [0x0089e160], rdi
lea rdi, [rcx + rdx]
add rdi, rsi
mov qword [0x0089e170], rdi
add rbx, rax
mov qword [0x0089e180], rbx
mov qword [0x0089e178], rdi
movzx ebx, byte [rsp + 0x27]
mov byte [0x0089e188], bl
mov rbx, qword [0x0089e170]
mov qword [rsp + 0x68], rbx
test rbx, 0x1fff
jne 0x40e207
lea rax, [0x0089ce60]
mov qword [rsp], rax
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdx
call fcn.0041ff40
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
call fcn.00413110
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp]
mov qword [rax + 0x120], rcx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
call fcn.0042b850
lea rax, [0x006d17cf]
mov qword [rsp], rax
mov qword [rsp + 8], 0xc
call fcn.0042c220
call fcn.0042bad0
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.0042c0a0
call fcn.0042bad0
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
call fcn.0042c0a0
call fcn.0042bad0
mov rax, qword [rsp + 0x38]
mov qword [rsp], rax
call fcn.0042c0a0
call fcn.0042bad0
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
call fcn.0042c0a0
call fcn.0042bad0
mov qword [rsp], 0x2000
call fcn.0042c0a0
call fcn.0042bad0
lea rax, [0x006cfb34]
mov qword [rsp], rax
mov qword [rsp + 8], 5
call fcn.0042c220
call fcn.0042bad0
mov rax, qword [rsp + 0x68]
mov qword [rsp], rax
call fcn.0042c0a0
call fcn.0042bb30
call fcn.0042b8f0
lea rax, [0x006d9b30]
mov qword [rsp], rax
mov qword [rsp + 8], 0x23
call fcn.0042aea0
ud2
lea rax, [0x006dd344]
mov qword [rsp], rax
mov qword [rsp + 8], 0x33
call fcn.0042aea0
ud2
mov rcx, 0x8000000
mov rdx, 0x400000
mov rbx, qword [rsp + 0x40]
jmp 0x40e131
mov rdx, qword [rsp + 0x28]
mov rbx, rcx
mov rcx, qword [rsp + 0x68]
jmp 0x40e13a
mov rcx, qword [rsp + 0x40]
jmp 0x40e047
call fcn.0042b850
lea rax, [0x006d37c8]
mov qword [rsp], rax
mov qword [rsp + 8], 0x12
call fcn.0042c220
mov rax, qword [0x008b41c0]
mov qword [rsp], rax
call fcn.0042c020
lea rax, [0x006d5283]
mov qword [rsp], rax
mov qword [rsp + 8], 0x17
call fcn.0042c220
call fcn.0042b8f0
lea rax, [0x006d4285]
mov qword [rsp], rax
mov qword [rsp + 8], 0x14
call fcn.0042aea0
ud2
call fcn.0042b850
lea rax, [0x006d37c8]
mov qword [rsp], rax
mov qword [rsp + 8], 0x12
call fcn.0042c220
mov rax, qword [0x008b41c0]
mov qword [rsp], rax
call fcn.0042c020
lea rax, [0x006da07c]
mov qword [rsp], rax
mov qword [rsp + 8], 0x25
call fcn.0042c220
mov qword [rsp], 0x1000
call fcn.0042c020
lea rax, [0x006cf2d7]
mov qword [rsp], rax
mov qword [rsp + 8], 2
call fcn.0042c220
call fcn.0042b8f0
lea rax, [0x006d4285]
mov qword [rsp], rax
mov qword [rsp + 8], 0x14
call fcn.0042aea0
ud2
lea rax, [0x006d80c7]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1e
call fcn.0042aea0
ud2
lea rax, [0x006d308e]
mov qword [rsp], rax
mov qword [rsp + 8], 0x11
call fcn.0042aea0
ud2
call fcn.00452210
jmp fcn.0040ded0