Function at 0x14001c830
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 0x14001c87b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001c87b
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001c886
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov r9d, 0x4e
xor r8d, r8d
lea rdx, [0x14002c528]
mov rcx, rdi
call fcn.14001a360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001c8c9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001c8c9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001c8d4
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 0x14001c94c
cmp dword [0x1400302f8], 0xffffffff
je 0x14001c94c
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.PatchInstalledMmc
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 0x14001c95a
mov rcx, rdi
call fcn.140018ec0
nop
lea rcx, [0x14002c528]
call fcn.1400171a0
test al, al
jne 0x14001c9f9
mov dword [rsp + 0x60], 0xff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x14001c9b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001c9ae
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001c9ae
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
jmp 0x14001c9b9
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, 0x4f
lea r8, str.PatchInstalledProducts.cpp
lea rdx, str.PatchInstalledMmc
call fcn.140019f00
nop
jmp 0x14001ca60
lea rdx, str.DELETE_FROM__InstallExecuteSequence__WHERE__Action___UnregisterMmcSnapin
lea rcx, str.ABD39E8F_99D9_4E12_BD2E_AA177039DAEE
call fcn.14001c440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400302f0]
cmp ecx, 0xffffffff
je 0x14001ca37
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001ca37
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001ca42
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov dword [rsp + 0x20], 0x54
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14002c528]
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