Function at 0x14001ca80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rsi, [0x140031530]
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001cacb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cacb
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001cad6
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov r9d, reloc.msi.dll_MsiOpenProductW
xor r8d, r8d
lea rdx, [0x14002c6d0]
mov rcx, rdi
call fcn.14001a360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001cb19
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cb19
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001cb24
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], 0xff
mov ecx, dword [0x1400302f4]
cmp ecx, 0xffffffff
je 0x14001cb9c
cmp dword [0x1400302f8], 0xffffffff
je 0x14001cb9c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1400302f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, str.PatchInstalledAgent
mov ecx, dword [0x1400302f4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x48]
mov ecx, dword [0x1400302f8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14001cbaa
mov rcx, rdi
call fcn.140018ec0
nop
lea rcx, [0x14002c6d0]
call fcn.1400171a0
test al, al
jne 0x14001cc49
mov dword [rsp + 0x60], 0xff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x14001cc09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001cbfe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cbfe
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
jmp 0x14001cc09
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
lea rax, str.Custom_Action_disabled_by_Update
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x52
mov r9d, 0x5d
lea r8, str.PatchInstalledProducts.cpp
lea rdx, str.PatchInstalledAgent
call fcn.140019f00
nop
jmp 0x14001ccc3
lea rdx, str.DELETE_FROM__SelfReg__WHERE__File___DLComProxy.dll
lea rcx, str.045EC44F_A481_4000_B50F_7AF55BE313FE
call fcn.14001c440
lea rdx, str.DELETE_FROM__InstallExecuteSequence__WHERE__Action___UninstallDriver
lea rcx, str.045EC44F_A481_4000_B50F_7AF55BE313FE
call fcn.14001c440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001cc9a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cc9a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001cca5
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov dword [rsp + 0x20], 0x65
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14002c6d0]
mov rcx, rdi
call fcn.14001a4c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400175e0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret