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

Disassembly:
mov dword ss:[rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
xor eax, eax
mov r15, rcx
cmp dword [0x1402bff40], 0xffffffff
mov ecx, dword [0x1402cdb18]
mov dword [rbp - 0x70], eax
mov qword [rbp + 0x198], rax
mov qword [rbp + 0x1a0], rax
jae 0x140188682
cmp ecx, 0x40
jae 0x140188682
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x14018868f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
cmp dword [0x1402bff40], 0xffffffff
mov qword [rsp + 0x2e0], rbx
mov qword [rbp + 0x1a8], rax
jae 0x1401886ca
cmp r8d, 0x40
jae 0x1401886ca
mov rcx, qword gs:[0x30]
lea rdx, [rbp - 0x70]
mov eax, dword [0x1402cdb18]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x140188708
lea rdx, [rbp - 0x70]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140188708
cmp dword [0x1402bff40], 0xffffffff
jae 0x1401886f2
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1401886f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
nop
test eax, eax
js 0x140188b3c
mov qword ss:[rsp + 0x2d8], rsi
xor r9d, r9d
mov qword [rsp + 0x2d0], rdi
xor r8d, r8d
mov qword [rsp + 0x2c8], r12
mov edx, 0x411
mov qword [rsp + 0x2c0], r13
mov rcx, r15
mov qword [rsp + 0x2b8], r14
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x421
mov rcx, r15
mov r12, rax
lea r14d, [rax + 1]
mov dword [rbp + 0x210], r14d
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x429
mov rcx, r15
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov edi, eax
mov r13, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], rdi
lea r8, [rdi*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x40], rax
mov edx, 0x409
mov rsi, rax
mov rcx, r15
test rbx, rbx
je 0x1401887d2
lea r9, [rax + 4]
lea r8d, [r13 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rbx + 4]
mov dword [rsi], ecx
jmp 0x1401887de
mov r9, rsi
mov r8, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402caaf0]
lea r8, [rdi*8]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rsp + 0x38], rax
test r13d, r13d
je 0x1401888ad
lfence
mov r14, qword [rsp + 0x20]
mov rdi, rsi
mov rsi, r14
mov rbx, rax
nop word [rax + rax]
mov r8d, dword [rdi]
lea r9, [rsp + 0x58]
mov edx, 0x407
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140188843
mov rax, qword [rsp + 0x68]
mov qword [rbx], rax
add rdi, 4
add rbx, 8
sub rsi, 1
jne 0x140188820
mov edx, dword [rbp + 0x210]
lea rcx, [rbp + 0x218]
mov r8d, r13d
call fcn.1401879e0
mov rsi, qword [rbp + 0x218]
xor eax, eax
mov rdi, r14
mov ebx, eax
mov r14, qword [rsp + 0x38]
nop dword [rax]
mov rcx, qword [r14 + rbx]
call sym.SystemInformer.exe_PhCreateString
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov rcx, qword ds:[rsi]
lea rbx, [rbx + 8]
mov qword [rbx + rcx - 8], rax
sub rdi, 1
jne 0x140188880
mov rdi, qword [rsp + 0x20]
jmp 0x1401888c6
mov r8d, r13d
lea rcx, [rbp + 0x218]
mov edx, r14d
call fcn.1401879e0
mov rsi, qword [rbp + 0x218]
test r12d, r12d
je 0x140188a34
lfence
mov r14, qword [rbp + 0x218]
xor ebx, ebx
mov esi, r12d
mov ecx, ebx
mov qword [rsp + 0x28], rbx
add r14, 8
mov qword [rsp + 0x30], rsi
nop
mov r8, rcx
xor r9d, r9d
mov rcx, r15
mov edx, 0x412
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1401889dc
test r13d, r13d
je 0x140188a08
lfence
mov rsi, qword [rsp + 0x40]
mov rdi, rbx
mov r12, qword [rsp + 0x20]
nop dword [rax]
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x58]
mov eax, dword [rsi]
xor r8d, r8d
mov edx, 0x413
mov dword [rsp + 0x68], eax
mov rcx, r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, qword [rsp + 0x70]
mov rdx, qword [0x1402ca998]
mov r13, qword [rsp + 0x78]
lea rcx, [r15 + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], r15
mov qword [rax + 8], rcx
xor eax, eax
mov word [r15 + rcx], ax
test r13, r13
je 0x14018899e
mov rcx, qword [rbx + 8]
mov r8, r15
mov rdx, r13
call fcn.14020af00
mov rcx, rbx
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov rcx, qword [r14]
add rsi, 4
mov r15, qword [rbp + 0x200]
mov ebx, 0
mov qword [rdi + rcx], rax
add rdi, 8
mov rax, qword [rsp + 0x48]
sub r12, 1
jne 0x140188930
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
jmp 0x140188a08
nop dword [rax]
test r13d, r13d
je 0x140188a08
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov rcx, qword ds:[r14]
lea rbx, [rbx + 8]
mov qword [rbx + rcx - 8], rax
sub rdi, 1
jne 0x1401889e5
xor ebx, ebx
mov rcx, qword [rsp + 0x28]
add r14, 8
mov rdi, qword [rsp + 0x20]
inc rcx
sub rsi, 1
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rsi
jne 0x1401888f0
mov rsi, qword [rbp + 0x218]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rbp + 0x208]
mov r8d, r13d
mov edx, dword [rbp + 0x210]
mov rcx, rsi
call fcn.140187ba0
lea rcx, ds:[rbp - 0x70]
mov rbx, rax
call sym.SystemInformer.exe_PhDrainAutoPool
cmp dword [0x1402bff40], 0xffffffff
mov ecx, dword [0x1402cdb18]
mov r14, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x2c0]
mov r12, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2d8]
jae 0x140188adf
nop dword [rax]
cmp ecx, 0x40
jae 0x140188adf
mov rdx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rdx + r8*8 + 0x1480]
jmp 0x140188aed
nop
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
lea rcx, [rbp - 0x70]
cmp rax, rcx
jne 0x140188b3c
mov rdx, qword [rbp + 0x1a8]
mov ecx, r8d
call fcn.140149740
test eax, eax
js 0x140188b3c
mov r8, qword [rbp + 0x1a0]
test r8, r8
je 0x140188b26
mov rcx, qword [0x1402caaf0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2e8
pop r15
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3