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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r15, rcx
mov qword [rbp - 0x19], r9
mov ecx, dword [0x14003d17c]
mov r14, r9
mov r13, r8
mov qword [rbp - 0x21], rdx
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rsi, rax
test rax, rax
jne 0x14001d00b
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 0x29]
and dword [rbp - 0x29], eax
lea rsi, [rbp - 0x29]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rsi]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r12d, 0x1df
cmp r10, rax
je 0x14001d06b
test byte [r10 + 0x1c], 1
je 0x14001d06b
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001d04b
mov eax, ecx
mov ecx, r12d
sub rcx, rax
jmp 0x14001d04d
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], r15
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x2d
call fcn.140001370
xor eax, eax
xor ecx, ecx
mov qword [rdi], rax
mov qword [r13], rax
mov qword [r14], rax
mov edx, dword [r15 + 0x40]
mov qword [rbp - 0x39], rcx
test edx, edx
je 0x14001d0b8
mov edi, dword [r15 + 0x44]
test edi, edi
js 0x14001d4b4
mov rcx, qword [0x14003da90]
lea r9, [rbp - 0x39]
lea r8, [0x140036570]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x39]
mov edi, eax
jmp 0x14001d0bd
mov edi, 0x80070057
test edi, edi
js 0x14001d4b4
and qword [rbp - 0x41], 0
lea rdx, [rbp - 0x41]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d495
and dword [rbp - 0x55], 0
lea r9, [rbp - 0x11]
mov rdi, qword [rbp - 0x41]
lea r8, [rbp - 9]
xor r14b, r14b
lea rcx, str.Shell_IDList_Array
mov edx, Ordinal_20
mov byte [rbp - 0x59], r14b
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
test eax, eax
jns 0x14001d127
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000000d
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
mov rax, qword [rdi]
lea r8, [rbp - 0x58]
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d432
cmp byte [rbp - 0x58], 0
je 0x14001d423
mov rcx, qword [rbp - 0x41]
lea r8, [rbp - 0x51]
and qword [rbp - 0x51], 0
lea rdx, [0x140036b98]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d245
mov r14, qword [rbp - 0x51]
lea r9, [rbp - 0x11]
lea r8, [rbp - 9]
mov edx, Ordinal_20
lea rcx, str.Shell_IDList_Array
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
test eax, eax
jns 0x14001d1b4
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000000d
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
mov rax, qword [r14]
mov rcx, r14
mov rdx, qword [rbp - 0x11]
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
test eax, eax
sete dl
test eax, eax
mov byte [r15 + 0x135], dl
setne al
mov byte [r15 + 0x136], al
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x14001d241
test byte [rax + 0x1c], 4
je 0x14001d241
mov eax, dword [rsi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001d212
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x14001d214
xor ecx, ecx
movzx eax, dl
lea r9, [0x140035650]
add r9, rcx
mov dword [rsp + 0x20], eax
mov rcx, qword [0x14003d048]
lea r8, [0x140036cb8]
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
call fcn.140001304
mov r14b, byte [rbp - 0x59]
cmp byte [r15 + 0x135], 0
jne 0x14001d401
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x31]
and qword [rbp - 0x31], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x98]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d3e4
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 0x49]
and qword [rbp - 0x49], 0
call fcn.140012f44
mov edi, eax
test eax, eax
js 0x14001d3c9
mov rdx, qword [rbp - 0x49]
mov r8, r13
mov rcx, r15
call fcn.14001cb7c
mov edi, eax
test eax, eax
js 0x14001d3c9
cmp qword [r13], 0
je 0x14001d318
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x14001d310
test byte [rax + 0x1c], 4
je 0x14001d310
mov eax, dword [rsi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001d2e8
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x14001d2ea
xor ecx, ecx
lea r9, [0x140035650]
mov edx, 0x2f
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [0x14003d048]
mov rcx, qword [rcx + 0x10]
call fcn.1400012b0
mov r14b, 1
jmp 0x14001d3c9
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x55]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d3c9
cmp dword [rbp - 0x55], 0
jbe 0x14001d3c9
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov rcx, qword [r15 + 0x150]
mov rdi, rax
and qword [r15 + 0x150], 0
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001d375
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r15 + 0x150], rdi
cmp rdi, 0
jne 0x14001d3a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
test edi, edi
js 0x14001d3c9
lea rdx, [0x14001d570]
mov rcx, r15
call fcn.14001bf08
mov edi, eax
test eax, eax
js 0x14001d3c9
mov rax, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x21]
and qword [rbp - 0x49], 0
mov qword [rcx], rax
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14001d3e4
and qword [rbp - 0x49], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14001d408
and qword [rbp - 0x31], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
jmp 0x14001d408
mov dword [rbp - 0x55], 1
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14001d423
and qword [rbp - 0x51], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test edi, edi
js 0x14001d432
cmp dword [rbp - 0x55], 0
jne 0x14001d495
test r14b, r14b
jne 0x14001d495
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x51]
and qword [rbp - 0x51], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001d47a
mov r14, qword [rbp - 0x51]
mov rcx, r14
call fcn.140021c54
mov edi, eax
test eax, eax
js 0x14001d47a
mov rax, qword [r14]
mov rcx, r14
mov rdx, qword [rbp - 0x19]
mov rax, qword [rax + 0x40]
call qword [0x140034e68]
mov edi, eax
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14001d495
and qword [rbp - 0x51], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14001d4b0
and qword [rbp - 0x41], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x39]
mov rax, qword [0x14003d048]
lea rdx, [0x14003d048]
cmp rax, rdx
je 0x14001d517
test byte [rax + 0x1c], 1
je 0x14001d517
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001d4e1
mov eax, ecx
sub r12, rax
jmp 0x14001d4e4
xor r12d, r12d
mov rcx, qword [0x14003d048]
lea r9, [0x140035650]
add r9, r12
mov dword [rsp + 0x28], edi
mov edx, 0x30
mov qword [rsp + 0x20], r15
lea r8, [0x140036cb8]
mov rcx, qword [rcx + 0x10]
call fcn.140001730
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14001d52e
and qword [rbp - 0x39], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x14001d54e
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001d54e
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400304d0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret