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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x413ae9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
test rcx, 0x1f
jne 0x413ace
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
cmp rdx, rax
je 0x4139c7
test rdx, rdx
je 0x413a4a
mov rbx, rdx
xor edx, edx
div rbx
mov qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov rdx, rbx
shr rbx, 3
mov rsi, qword [rsp + 0x78]
mov rdi, rsi
shr rsi, 3
mov r8, rbx
sub rbx, rsi
test rbx, rbx
jbe 0x4139c0
mov word [rsp + 0x30], 1
cmp rbx, 1
jbe 0x4139b6
mov byte [rsp + 0x32], 0x81
dec rbx
mov esi, 3
jmp 0x413857
mov r9, rbx
or rbx, 0x80
mov byte [rsp + rsi + 0x30], bl
shr r9, 7
inc rsi
mov rbx, r9
cmp rbx, 0x80
jb 0x41386b
cmp rsi, 0x28
jb 0x41383f
jmp 0x413a43
cmp rsi, 0x28
jae 0x413a3c
mov byte [rsp + rsi + 0x30], bl
lea rbx, [rsi + 1]
cmp rbx, 0x28
jae 0x413a35
mov byte [rsp + rbx + 0x30], pe_nt_image_headers64
inc rbx
jmp 0x4138aa
mov rsi, r8
or r8, 0x80
mov byte [rsp + rbx + 0x30], r8b
shr rsi, 7
inc rbx
mov r8, rsi
cmp r8, 0x80
jb 0x4138be
cmp rbx, 0x28
jb 0x413891
jmp 0x413a2e
cmp rbx, 0x28
jae 0x413a27
mov byte [rsp + rbx + 0x30], r8b
inc rbx
dec rax
mov rsi, rax
jmp 0x4138ef
mov r8, rax
or rax, 0x80
mov byte [rsp + rbx + 0x30], al
shr r8, 7
inc rbx
mov rax, r8
cmp rax, 0x80
jb 0x413902
cmp rbx, 0x28
jb 0x4138d8
jmp 0x413a20
cmp rbx, 0x28
jae 0x413a19
mov byte [rsp + rbx + 0x30], al
lea rax, [rbx + 1]
cmp rax, 0x28
jae 0x413a12
mov qword [rsp + 0x28], rsi
mov byte [rsp + rbx + 0x31], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], 2
call fcn.00413c30
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
imul rax, rcx
mov rcx, qword [rsp + 0x78]
add rax, rcx
shr rax, 3
add rax, 3
shr rax, 2
mov rcx, qword [rsp + 0x90]
shr rcx, 5
mov rdx, qword [rsp + 0x68]
mov rbx, rdx
sub rdx, rax
sub rbx, rcx
mov rax, rbx
inc rax
mov qword [rsp], rax
sub rdx, rbx
mov qword [rsp + 8], rdx
call fcn.00455980
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov ebx, 2
jmp 0x41387d
xor ebx, ebx
jmp 0x41387d
mov rax, qword [rsp + 0x98]
mov qword [rsp], rax
mov qword [rsp + 8], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], 2
call fcn.00413c30
mov rax, qword [rsp + 0x20]
mov rcx, rax
shl rax, 3
mov rdx, qword [rsp + 0x78]
cmp rax, rdx
jne 0x413a51
mov rax, rcx
jmp 0x413973
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429b50
ud2
call fcn.00429c30
ud2
mov qword [rsp + 0x28], rcx
call fcn.0042bc80
lea rax, [0x006b7970]
mov qword [rsp], rax
mov qword [rsp + 8], 0x2b
call fcn.0042c640
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
call fcn.0042c340
lea rax, [0x006ad553]
mov qword [rsp], rax
mov qword [rsp + 8], 0xe
call fcn.0042c640
mov rax, qword [rsp + 0x78]
mov qword [rsp], rax
call fcn.0042c340
call fcn.0042bf30
call fcn.0042bd10
lea rax, [0x006b77c2]
mov qword [rsp], rax
mov qword [rsp + 8], 0x2b
call fcn.0042b3a0
ud2
lea rax, [0x006b669c]
mov qword [rsp], rax
mov qword [rsp + 8], 0x27
call fcn.0042b3a0
ud2
call fcn.00452950
jmp fcn.00413780