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

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x5422f0
sub rsp, 0xc0
mov qword [rsp + 0xb8], rbp
lea rbp, [rsp + 0xb8]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r8
test rcx, rcx
je 0x5422dc
mov byte [rsp + 0xd0], bl
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xd8], rcx
mov rdx, rax
xor eax, eax
mov r9d, 1
lock cmpxchg dword [rdx + 0x10], r9d
sete r9b
test rsi, rsi
mov r10, rdi
cmovne rdi, r8
mov qword [rsp + 0x40], rdi
mov r8, rcx
cmovne rcx, rsi
mov qword [rsp + 0x30], rcx
lea rax, [rdx + 0x10]
mov qword [rsp + 0x38], rax
test r9b, r9b
jne 0x5420e0
call fcn.00470b60
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xc8]
movzx ebx, byte [rsp + 0xd0]
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xe0]
cmp qword [rdx + 0x30], 0
jne 0x5421e7
mov qword [rdx + 0x30], r8
cmp dword [0x00918a90], 0
jne 0x5420fe
mov qword [rdx + 0x38], r10
jmp 0x542119
lea rsi, [rdx + 0x38]
mov r9, rdi
mov rdi, rsi
mov r11, r8
mov r8, r10
call fcn.00465780
mov rdi, r9
mov r8, r11
mov qword [rdx + 0x40], rcx
cmp dword [0x00918a90], 0
jne 0x54212c
mov qword [rdx + 0x48], rdi
jmp 0x54213e
lea rsi, [rdx + 0x48]
mov r9, rdi
mov rdi, rsi
call fcn.004657a0
mov rdi, r9
movups xmmword [rsp + 0x48], xmm15
mov rsi, qword [rdx + 0x18]
test rsi, rsi
je 0x542169
lea r9, [0x00918608]
cmp rsi, r9
je 0x542169
mov r9, qword [rdx + 0x20]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r9
jmp 0x54216f
movups xmmword [rsp + 0x48], xmm15
mov rsi, qword [rsp + 0x50]
lea r9, [0x00666080]
nop dword [rax + rax]
cmp qword [rsp + 0x48], r9
je 0x542189
xor esi, esi
test rsi, rsi
je 0x542198
mov rax, rsi
call fcn.00406220
jmp 0x5421ab
lea rax, [rdx + 0x18]
mov rcx, qword [0x008c3280]
mov rbx, r9
call fcn.0046b3c0
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rdx + 0x28]
lea rdi, [rsp + 0x58]
lea rdi, [rdi - 0x20]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.00465d8b
mov rbp, qword [rbp]
lea rax, [0x00673fe0]
lea rcx, [rsp + 0x58]
nop
call fcn.0040f9e0
jmp 0x542245
nop
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
je 0x5421fd
call fcn.00470e60
mov rbp, qword [rsp + 0xb8]
add rsp, 0xc0
ret
mov r9, qword [rdx]
mov rax, qword [rdx + 8]
mov rdx, qword [r9 + 0x20]
xor ebx, ebx
mov rcx, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
call rdx
lea rax, [rsp + 0x58]
nop dword [rax + rax]
call fcn.0040fc60
mov rdx, qword [rsp + 0x58]
test rdx, rdx
jne 0x54220d
cmp dword [0x00918a90], 0
jne 0x54226a
mov rdi, qword [rsp + 0xc8]
mov qword [rdi + 0x28], 0
jmp 0x542288
mov rdi, qword [rsp + 0xc8]
lea rdx, [rdi + 0x28]
mov rax, rdi
mov rdi, rdx
xor esi, esi
nop
call fcn.00465760
mov rdi, rax
nop
mov ebx, 0xffffffff
lock xadd dword [rdi + 0x10], ebx
dec ebx
test ebx, ebx
je 0x5422ad
mov rax, qword [rsp + 0x38]
nop
call fcn.00470e60
mov rdi, qword [rsp + 0xc8]
movzx edx, byte [rsp + 0xd0]
test dl, dl
je 0x5422cc
mov rax, qword [rdi]
mov rbx, qword [rdi + 8]
lea rcx, [0x0072f738]
call fcn.005419a0
mov rbp, qword [rsp + 0xb8]
add rsp, 0xc0
ret
lea rax, [0x00667a40]
lea rbx, [0x0072d710]
call fcn.00436260
nop
mov qword [rsp + 8], rax
mov byte [rsp + 0x10], bl
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call fcn.00463440
mov rax, qword [rsp + 8]
movzx ebx, byte [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp fcn.00542000