Function at 0x4175d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov rax, qword [0x00522be8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov qword [r11 - 0x68], rcx
lea rax, [0x004e7e98]
mov qword [rcx], rax
lea rax, [0x004eabd0]
mov qword [rcx + 8], rax
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x24], 1
xor r12d, r12d
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov dword [rbx + 0x20], r12d
lea rdi, [rbx + 0x58]
mov qword [rdi], r12
mov eax, dword [0x00526114]
test al, 1
jne 0x41766d
or eax, 1
mov dword [0x00526114], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00526110], eax
jmp 0x417673
mov eax, dword [0x00526110]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x417699
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x00526110]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.PointingDevice
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
mov qword [rsp + 0x20], rdi
lea r9, [0x004eae00]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
lea rax, [0x004eb2b8]
mov qword [rbx], rax
lea rax, vtable.q.0
mov qword [rbx + 8], rax
lea rax, [0x004eb298]
mov qword [rbx + 0x50], rax
lea rax, [0x004eb288]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x6c0], r12
lea rcx, [rbx + 0x6d0]
lea rsi, [fcn.004011f0]
mov qword [rsp + 0x20], rsi
lea r9, [0x004013d0]
mov edx, 8
lea r8d, [rdx - 6]
call fcn.004a89f0
nop
lea rdi, [rbx + 0x6e8]
mov qword [rdi], r12
mov eax, dword [0x0052611c]
test al, 1
jne 0x41774f
or eax, 1
mov dword [0x0052611c], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00526118], eax
jmp 0x417755
mov eax, dword [0x00526118]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x41777b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x00526118]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.SynDisplay
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
mov qword [rsp + 0x20], rdi
lea r9, [0x004eae10]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lea r11, method.h.virtual_0
mov qword [rbx + 0x6e0], r11
lea rdi, [rbx + 0x7d0]
mov qword [rsp + 0x20], rsi
lea r9, [0x004013d0]
mov edx, 8
lea r8d, [rdx - 6]
mov rcx, rdi
call fcn.004a89f0
nop
mov ebp, 5
mov dword [rbx + 0x6f0], ebp
mov dword [rbx + 0x728], r12d
mov dword [rbx + 0x72c], 1
mov dword [rbx + 0x730], r12d
mov dword [rbx + 0x6f4], r12d
mov dword [rbx + 0x720], r12d
mov dword [rbx + 0x724], r12d
mov dword [rbx + 0x6f8], r12d
mov dword [rbx + 0x6fc], r12d
mov dword [rbx + 0x790], 1
mov dword [rbx + 0x740], 4
mov dword [rbx + 0x744], r12d
mov dword [rbx + 0x78c], r12d
mov dword [rbx + 0x734], 0x3a
mov qword [rbx + 0x738], r12
mov dword [rbx + 0x748], r12d
mov dword [rbx + 0x74c], r12d
mov dword [rbx + 0x750], 0x10
mov dword [rbx + 0x754], 0xf0
mov dword [rbx + 0x760], 0xa8
mov dword [rbx + 0x76c], r12d
mov dword [rbx + 0x770], r12d
mov dword [rbx + 0x774], r12d
mov dword [rbx + 0x77c], 0x2000000
mov dword [rbx + 0x780], r12d
mov dword [rbx + 0x700], r12d
mov dword [rbx + 0x704], r12d
mov dword [rbx + 0x708], r12d
mov dword [rbx + 0x784], r12d
mov dword [rbx + 0x778], r12d
mov dword [rbx + 0x798], r12d
mov dword [rbx + 0x794], r12d
mov dword [rbx + 0x7a0], 0x7fffffff
mov dword [rbx + 0x79c], 0x7fffffff
mov dword [rbx + 0x68], r12d
mov dword [rbx + 0x6c], r12d
mov word [rbx + 0x80], 0
mov dword [rbx + 0x788], r12d
mov dword [rbx + 0x710], 0x1214
mov dword [rbx + 0x714], 0x11
mov qword [rbx + 0x6c8], r12
mov qword [rbx + 0x288], r12
mov qword [rbx + 0x290], r12
mov qword [rbx + 0x298], r12
mov dword [rbx + 0x7f4], r12d
mov dword [rbx + 0x7f0], r12d
mov dword [rbx + 0x830], r12d
mov dword [rbx + 0x834], 1
mov dword [rbx + 0x838], r12d
mov esi, r12d
nop
mov qword [rsp + 0x70], r12
mov eax, dword [0x005260a4]
test al, 1
jne 0x417986
or eax, 1
mov dword [0x005260a4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x005260a0], eax
jmp 0x41798c
mov eax, dword [0x005260a0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x4179b2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x005260a0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x80]
lea rcx, str.SynCom.SynPacket
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
lea r9, [0x004e7fa8]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
mov rcx, qword [rdi - 0x100]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
call qword [rax + 0x30]
mov rcx, qword [rdi - 0x100]
mov rax, qword [rcx]
mov r8d, esi
mov edx, 0x10000317
call qword [rax + 0x20]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x417a25
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x70], r12
mov eax, dword [0x005260a4]
test al, 1
jne 0x417a4b
or eax, 1
mov dword [0x005260a4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x005260a0], eax
jmp 0x417a51
mov eax, dword [0x005260a0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x417a77
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x005260a0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x90]
lea rcx, str.SynCom.SynPacket
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
lea r9, [0x004e7fa8]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
call qword [rax + 0x30]
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r8d, esi
mov edx, 0x10000317
call qword [rax + 0x20]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x417ae2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x10], r12
add esi, 1
add rdi, 8
cmp esi, 2
jl 0x417960
mov qword [rbx + 0x7f8], r12
mov dword [rbx + 0x808], r12d
mov dword [rbx + 0x804], r12d
mov dword [rbx + 0x810], r12d
mov dword [rbx + 0x80c], r12d
mov dword [rbx + 0x814], r12d
mov dword [rbx + 0x800], r12d
mov dword [rbx + 0x818], r12d
mov dword [rbx + 0x81c], r12d
mov dword [rbx + 0x820], 0x186a0
mov dword [rbx + 0x824], 0x186a0
mov dword [rbx + 0x828], r12d
mov dword [rbx + 0x82c], 1
mov qword [rbx + 0x70], r12
mov dword [rbx + 0x83c], r12d
mov dword [rbx + 0x840], r12d
mov dword [rbx + 0x844], r12d
mov dword [rbx + 0x858], r12d
mov dword [rbx + 0x848], r12d
mov dword [rbx + 0x84c], 0xffffffff
mov dword [rbx + 0x850], r12d
lea rax, [rbx + 0x7a8]
nop
nop
mov dword [rax - 4], r12d
mov dword [rax], r12d
add rax, 8
sub rbp, 1
jne 0x417ba0
mov dword [rbx + 0x854], r12d
mov dword [rbx + 0x85c], r12d
mov dword [rbx + 0x860], r12d
mov dword [rbx + 0x864], 2
mov qword [rbx + 0x890], r12
mov qword [rbx + 0x898], r12
mov dword [rbx + 0x8a0], 0xe
mov dword [rbx + 0x8a4], r12d
mov dword [rbx + 0x2a0], 0xffffffff
mov dword [rbx + 0x2a8], 0x2710
mov dword [rbx + 0x2ac], 0x1388
mov dword [rbx + 0x2a4], 0x19
mov dword [rbx + 0x2b0], r12d
mov dword [rbx + 0x2b4], r12d
mov dword [rbx + 0x6b8], 1
mov dword [rbx + 0x6bc], r12d
mov dword [rbx + 0x70c], r12d
mov dword [rbx + 0x764], 2
mov dword [rbx + 0x768], r12d
mov word [rbx + 0x2b8], bp
mov dword [rbx + 0xab8], r12d
mov qword [rbx + 0x868], r12
mov qword [rbx + 0x870], r12
mov qword [rbx + 0x878], r12
mov qword [rbx + 0x880], r12
mov dword [rbx + 0x888], r12d
mov dword [rbx + 0x88c], 0x3b6
mov qword [rbx + 0x78], r12
mov dword [rbx + 0xabc], r12d
mov dword [rbx + 0xac8], r12d
mov dword [rbx + 0xac0], r12d
mov dword [rbx + 0xacc], r12d
mov dword [rbx + 0xad0], r12d
lea rcx, [rsp + 0x38]
call fcn.004926d0
nop
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.0049da30
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
lea rdx, str.TreatAsTheaterPad
lea rcx, [rsp + 0x40]
call fcn.0049d2a0
mov r11d, r12d
cmp dword [rsp + 0x70], r12d
setne r11b
mov dword [rbx + 0x8a8], r11d
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x30]
lea rdx, str.FWLEDControlPad
lea rcx, [rsp + 0x40]
call fcn.0049d2a0
mov r11d, r12d
cmp dword [rsp + 0x30], r12d
setne r11b
mov dword [rbx + 0x8ac], r11d
mov dword [rbx + 0x8b0], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.0049da30
mov dword [rbx + 0x8b4], r12d
mov word [rbx + 0x8b8], bp
mov word [rbx + 0x4b8], bp
lea rcx, [rsp + 0x38]
call fcn.00490620
nop
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.004a7100
mov rbx, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
add rsp, 0xc8
ret