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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4103e6
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x4103c5
movzx ecx, byte [rax + 8]
nop dword [rax]
test cl, 4
jne 0x4103a8
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + 0x48]
mov rbx, qword [rdx]
mov esi, dword [rax + 0xc]
mov rdi, qword [rsp + 0x90]
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
call rbx
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x88]
movzx ebx, byte [rcx + 8]
xor ebx, 4
mov byte [rcx + 8], bl
cmp qword [rcx + 0x10], 0
je 0x410333
mov rbx, qword [rsp + 0x80]
nop dword [rax]
jmp 0x40ff5f
inc r10
cmp r10, 8
jae 0x4102cf
test byte [rsi], al
movzx r11d, byte [rsi + r10]
lea r12, [rsi + r10]
nop dword [rax]
cmp al, r11b
je 0x4101c9
cmp r11b, 1
ja 0x40fed8
test rcx, rcx
je 0x41018e
test r11b, r11b
jne 0x40fea5
cmp qword [rdx + 0x18], 0
jne 0x410186
mov r10, qword [rdx]
inc r10
movzx r11d, byte [rdx + 9]
cmp r10, 8
jle 0x41017b
mov r12, rcx
mov ecx, r11d
mov r13d, 1
shl r13, cl
shr r13, 1
lea r14, [r13 + r13*2]
lea r13, [r13 + r14*4]
nop dword [rax]
cmp r10, r13
jbe 0x40ffb1
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
call fcn.004112e0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x30]
mov rax, rdx
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
movzx esi, byte [rcx + 9]
mov rdx, rcx
mov ecx, esi
mov edi, 1
shl rdi, cl
lea rsi, [rdi - 1]
and rsi, rax
cmp qword [rdx + 0x18], 0
nop dword [rax]
jne 0x4102fc
movzx edi, word [rbx + 0x52]
imul rsi, rdi
add rsi, qword [rdx + 0x10]
mov rdi, rax
shr rax, 0x38
cmp al, 5
jae 0x40ffa0
add eax, 5
mov byte [rsp + 0x27], al
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
jmp 0x4102e7
movzx r10d, word [rdx + 0xa]
cmp cl, 0xf
jbe 0x40ffc0
mov ecx, 0xf
and ecx, 0xf
mov r11d, 1
shl r11d, cl
cmp r11w, r10w
jbe 0x40ff29
test r12, r12
je 0x410133
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r12
mov ecx, dword [rbx + 0x54]
bt ecx, 0
jb 0x4100cc
mov ecx, dword [rbx + 0x54]
bt ecx, 1
jb 0x410077
mov rax, qword [rbx + 0x30]
mov qword [rsp], rax
mov qword [rsp + 8], r8
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x10], rax
call fcn.00415320
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x50]
mov byte [rcx], al
mov rax, qword [rsp + 0x88]
inc qword [rax]
mov rcx, qword [rsp + 0x58]
movzx edx, byte [rax + 8]
nop
test dl, 4
je 0x41038f
and edx, 0xfffffffb
mov byte [rax + 8], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x54]
bt eax, 1
nop
jae 0x410065
mov rcx, qword [rcx]
mov qword [rsp + 0x98], rcx
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp + 0x48], r8
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov byte [rsp + 0x10], 1
call fcn.0040daa0
mov rdi, qword [rsp + 0x58]
test byte [rdi], al
mov rax, qword [rsp + 0x18]
cmp dword [0x00811460], 0
jne 0x4100c5
mov qword [rdi], rax
mov rbx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x48]
nop dword [rax + rax]
jmp 0x40ffff
call fcn.0046c920
jmp 0x4100ae
mov qword [rsp + 0x48], r8
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov byte [rsp + 0x10], 1
call fcn.0040daa0
mov rdi, qword [rsp + 0x48]
test byte [rdi], al
mov rax, qword [rsp + 0x18]
cmp dword [0x00811460], 0
nop
jne 0x41012c
mov qword [rdi], rax
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r9, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r8, rax
movzx eax, byte [rsp + 0x27]
jmp 0x40fff6
call fcn.0046c920
jmp 0x410105
mov qword [rsp], rdx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
call fcn.0040eee0
mov r12, qword [rsp + 0x18]
test byte [r12], al
nop
mov rbx, qword [rsp + 0x80]
movzx eax, byte [rbx + 0x50]
lea r8, [r12 + 8]
lea r9, [r12 + rax*8]
lea r9, [r9 + 8]
movzx eax, byte [rsp + 0x27]
mov rdx, qword [rsp + 0x88]
jmp 0x40ffdf
mov r12, rcx
mov ecx, r11d
jmp 0x40ffb1
mov r12, rcx
jmp 0x40ffd6
movzx r13d, byte [rbx + 0x50]
mov r14, r10
imul r10, r13
movzx r15d, byte [rbx + 0x51]
imul r15, r14
lea r13, [r15 + r13*8]
mov r15, rsi
lea r8, [r10 + rsi]
lea r8, [r8 + 8]
lea r9, [r13 + rsi]
lea r9, [r9 + 8]
mov rsi, r15
mov r10, r14
mov rcx, r12
jmp 0x40fed8
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rcx
movzx r11d, byte [rbx + 0x50]
imul r11, r10
lea rsi, [r11 + rsi]
lea rsi, [rsi + 8]
mov r11d, dword [rbx + 0x54]
bt r11d, 0
jae 0x4101fc
mov rsi, qword [rsi]
mov qword [rsp + 0x40], rsi
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx]
mov rcx, qword [rsp + 0x90]
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
call rax
cmp byte [rsp + 0x10], 0
jne 0x41025e
movzx eax, byte [rsp + 0x27]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
mov r10, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
jmp 0x40fea5
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x54]
bt ecx, 3
jb 0x41029e
movzx edx, byte [rax + 0x50]
movzx ebx, byte [rax + 0x51]
mov rsi, qword [rsp + 0x28]
imul rbx, rsi
lea rdx, [rbx + rdx*8]
mov rbx, qword [rsp + 0x68]
lea rcx, [rbx + rdx]
lea rcx, [rcx + 8]
mov rax, qword [rsp + 0x88]
jmp 0x41003a
mov rcx, qword [rax + 0x30]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x10], rcx
nop dword [rax]
call fcn.00415320
mov rax, qword [rsp + 0x80]
jmp 0x41026f
movzx r10d, word [rbx + 0x52]
mov r11, rsi
lea rsi, [rsi + r10]
lea rsi, [rsi - 8]
mov rsi, qword [rsi]
test rsi, rsi
je 0x4102f4
mov qword [rsp + 0x68], rsi
xor r10d, r10d
jmp 0x40fea8
mov rsi, r11
jmp 0x40fedd
mov qword [rsp + 0x38], rsi
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
call fcn.00411520
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x38]
jmp 0x40ff86
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x40]
mov rdx, qword [rcx]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov byte [rsp + 0x10], 1
call fcn.0040daa0
mov rax, qword [rsp + 0x18]
cmp dword [0x00811460], 0
jne 0x41037c
mov rbx, qword [rsp + 0x88]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x30]
mov rcx, rbx
jmp 0x40fe95
mov rbx, qword [rsp + 0x88]
lea rdi, [rbx + 0x10]
call fcn.0046c920
jmp 0x41036f
lea rax, [0x0065f162]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.00439220
lea rax, [0x0065f162]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
nop dword [rax]
call fcn.00439220
lea rax, [0x0061e920]
mov qword [rsp], rax
lea rax, [0x006a1940]
mov qword [rsp + 8], rax
nop dword [rax]
call fcn.00438920
nop
call fcn.0046abe0
jmp fcn.0040fe00