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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x40aa6b
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
lea rbp, [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x38]
cmp qword [rax + 0x40], 0
je 0x40aa51
mov rdx, qword [rsp + 0x58]
movzx ebx, byte [rdx + 0x14]
test bl, 1
jne 0x40a74a
movzx ebx, byte [rsp + 0x60]
test bl, bl
je 0x40a93f
mov qword [rsp + 0x68], 0
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov rcx, qword [0x007c36f8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rdx
nop
call fcn.0040aa80
mov rax, qword [rsp + 0x18]
test rax, rax
je 0x40a7aa
cmp qword [rax + 0x18], 0
jne 0x40a79b
movzx ecx, byte [rsp + 0x60]
nop dword [rax + rax]
test cl, cl
je 0x40a8ca
mov qword [rsp + 0x68], 0
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov qword [rsp + 0x68], rax
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
nop
nop
lea rax, [0x00811220]
mov qword [rsp], rax
call fcn.0040bfe0
mov rax, qword [0x007c36f8]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x10], rcx
nop dword [rax + rax]
call fcn.0040aa80
mov rax, qword [rsp + 0x18]
test rax, rax
je 0x40a810
mov qword [rsp + 0x28], rax
nop
nop
lea rax, [0x00811220]
mov qword [rsp], rax
call fcn.0040c240
mov rax, qword [rsp + 0x28]
jmp 0x40a76f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
dec rcx
shl rcx, 3
add rcx, 0x20
mov qword [rsp], rcx
mov qword [rsp + 8], 0
lea rcx, [0x00813860]
mov qword [rsp + 0x10], rcx
nop dword [rax]
call fcn.0040e900
mov rdi, qword [rsp + 0x18]
test byte [rdi], al
cmp dword [0x00811460], 0
jne 0x40a8a5
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
mov rcx, qword [rsp + 0x58]
mov qword [rdi + 8], rcx
mov qword [rsp + 0x38], rdi
mov dword [rdi + 0x10], 0
mov qword [rsp], rdi
call fcn.0040ace0
mov rax, qword [rsp + 0x38]
mov qword [rsp], rax
call fcn.0040ab00
nop
lea rax, [0x00811220]
mov qword [rsp], rax
call fcn.0040c240
mov rax, qword [rsp + 0x38]
nop
jmp 0x40a76f
mov rax, qword [rsp + 0x50]
call fcn.0046c920
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
mov rbx, qword [rsp + 0x58]
nop
call fcn.0046ca60
mov rdi, rdx
jmp 0x40a866
mov qword [rsp], rax
call fcn.0040ace0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x20], rcx
lea rdx, [0x0063e4e0]
mov qword [rsp], rdx
call fcn.0040e560
mov rax, qword [rsp + 8]
cmp dword [0x00811460], 0
jne 0x40a9c2
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x20], rcx
cmp dword [0x00811460], 0
jne 0x40aa07
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x18], rcx
jmp 0x40aa27
mov ecx, dword [rcx]
mov qword [rsp], rax
mov dword [rsp + 8], ecx
call fcn.0045e9c0
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045f440
mov rax, qword [rsp + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x20], rcx
lea rdx, [0x0063e4e0]
mov qword [rsp], rdx
nop dword [rax + rax]
call fcn.0040e560
mov rax, qword [rsp + 8]
cmp dword [0x00811460], 0
jne 0x40a9e5
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x20], rcx
cmp dword [0x00811460], 0
jne 0x40aa17
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x18], rcx
jmp 0x40aa3c
lea rdi, [rax + 8]
mov rcx, qword [rsp + 0x58]
call fcn.0046ca20
lea rdi, [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.0046ca20
nop
jmp 0x40a91b
lea rdi, [rax + 8]
mov rcx, qword [rsp + 0x58]
call fcn.0046ca20
lea rdi, [rax + 0x10]
mov rcx, qword [rsp + 0x50]
nop dword [rax]
call fcn.0046ca20
jmp 0x40a9a5
lea rdi, [rax + 0x18]
mov rcx, qword [rsp + 0x30]
call fcn.0046ca20
jmp 0x40aa27
lea rdi, [rax + 0x18]
mov rcx, qword [rsp + 0x30]
call fcn.0046ca20
jmp 0x40aa3c
lea rcx, [0x006200c0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00438920
lea rcx, [0x006200c0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00438920
lea rax, [0x00663086]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1f
call fcn.00439220
nop
call fcn.0046abe0
jmp fcn.0040a6e0