Function at 0x59d980
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 0x59dcaa
sub rsp, 0x98
mov qword [rsp + 0x90], rbp
lea rbp, [rsp + 0x90]
mov rdx, qword [rsp + 0xd8]
nop
test rdx, rdx
je 0x59dc4c
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x59dc49
test rdx, rdx
je 0x59dc42
mov rdx, qword [rdx]
mov qword [rsp + 0x78], rbx
cmp rdx, 0xffffffffffffffff
jne 0x59dbab
nop
lea rdx, [rbx - 1]
nop word [rax + rax]
nop
cmp rdx, 0x13
jae 0x59dc65
mov rcx, qword [0x007c4128]
mov rdx, qword [0x007c4120]
nop dword [rax + rax]
cmp rcx, rbx
jbe 0x59dc59
movzx edx, byte [rbx + rdx]
mov qword [rsp + 0x80], rdx
lea rax, [0x00614000]
mov qword [rsp], rax
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdx
call fcn.0044dcc0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rax
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
call fcn.004a2f80
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x38], 0
je 0x59dadf
mov qword [rsp + 0xe0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rcx
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.0059d600
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rsi
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
test rdx, rdx
jne 0x59da2d
mov rdx, qword [rsp + 0xb0]
mov rsi, qword [rdx]
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
lea r8, [rdi - 1]
test r8, r8
jl 0x59dc3c
mov rsi, qword [rsi + rdi*8 - 8]
bsr rsi, rsi
mov rdi, 0xffffffffffffffff
cmove rsi, rdi
shl r8, 6
lea rsi, [rsi + r8]
lea rsi, [rsi + 1]
lea rdi, [rsi + 7]
sar rdi, 0x3f
shr rdi, 0x3d
lea rsi, [rdi + rsi]
lea rsi, [rsi + 7]
lea rdi, [rbx - 1]
cmp rdi, 0x13
jae 0x59dc8d
mov rcx, qword [0x007c4128]
mov rdi, qword [0x007c4120]
nop dword [rax]
cmp rcx, rbx
jbe 0x59dc85
sar rsi, 3
movzx eax, byte [rbx + rdi]
sub rsi, rax
lea rax, [rsi - 2]
mov rdx, rax
jmp 0x59da2d
xor esi, esi
nop
jmp 0x59dbf0
xor edx, edx
jmp 0x59d9e2
test rdx, rdx
mov rbx, qword [rsp + 0xb8]
jmp 0x59d9d9
mov rax, rbx
nop dword [rax]
call fcn.0046cde0
lea rax, [0x00613e40]
mov qword [rsp], rax
lea rax, [0x006a1160]
mov qword [rsp + 8], rax
nop dword [rax]
call fcn.00438920
mov rax, rbx
call fcn.0046cde0
lea rax, [0x00613e40]
mov qword [rsp], rax
lea rax, [0x006a1160]
mov qword [rsp + 8], rax
call fcn.00438920
nop
call fcn.0046abe0
jmp fcn.0059d980