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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rsi, rax
test rax, rax
jne 0x140019fda
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rsi, [rsp + 0x50]
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 r13, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, r13
je 0x14001a03a
test byte [r10 + 0x1c], 1
je 0x14001a03a
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001a01a
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14001a01c
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rbp
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x67
call fcn.140001370
xor edi, edi
cmp byte [rbp + 0x10f], dil
je 0x14001a1eb
mov rcx, rbp
call fcn.140016da8
mov edi, eax
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
mov r13b, 4
cmp r10, rax
je 0x14001a0b1
test byte [r10 + 0x1c], r13b
je 0x14001a0b1
mov ecx, dword [rsi]
inc ecx
lea eax, [rcx + rcx*4]
cmp eax, 0x1e1
ja 0x14001a085
mov rcx, r14
sub rcx, rax
jmp 0x14001a087
xor ecx, ecx
lea r9, [0x140035650]
mov dword [rsp + 0x20], edi
add r9, rcx
lea r8, [0x1400367b8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x68
call fcn.140001304
mov r10, qword [0x14003d048]
test edi, edi
js 0x14001a1e4
cmp byte [rbp + 0x107], 0
je 0x14001a0e6
mov rcx, qword [rbp + 0x80]
lea rdx, str._A
call qword [sym.imp.deviceassociation.dll_DafSelectCeremony]
mov edi, eax
test eax, eax
js 0x14001a105
mov rcx, rbp
call fcn.1400168f4
jmp 0x14001a103
cmp byte [rbp + 0x106], 0
je 0x14001a10e
mov rcx, qword [rbp + 0x80]
lea rdx, [0x140036650]
call qword [sym.imp.deviceassociation.dll_DafSelectCeremony]
mov edi, eax
mov r10, qword [0x14003d048]
jmp 0x14001a113
mov edi, 0x80640009
lea rax, [0x14003d048]
cmp r10, rax
je 0x14001a163
test byte [r10 + 0x1c], r13b
je 0x14001a163
mov eax, dword [rsi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001a13e
mov eax, ecx
mov rcx, r14
sub rcx, rax
jmp 0x14001a140
xor ecx, ecx
lea r9, [0x140035650]
mov dword [rsp + 0x20], edi
add r9, rcx
lea r8, [0x1400367b8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x69
call fcn.140001304
test edi, edi
js 0x14001a1e4
mov rcx, rbp
call fcn.140017880
mov edi, eax
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14001a1c8
test byte [r10 + 0x1c], r13b
je 0x14001a1c8
mov eax, dword [rsi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001a1a3
mov eax, ecx
mov rcx, r14
sub rcx, rax
jmp 0x14001a1a5
xor ecx, ecx
lea r9, [0x140035650]
mov dword [rsp + 0x20], edi
add r9, rcx
lea r8, [0x1400367b8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x6a
call fcn.140001304
lea r13, [0x14003d048]
test edi, edi
js 0x14001a1eb
cmp byte [rbp + 0x10d], 0
mov eax, 0x640018
cmovne edi, eax
jmp 0x14001a1eb
lea r13, [0x14003d048]
mov rcx, rbp
call fcn.14001a2ac
test byte [0x14003d7c0], 8
je 0x14001a220
mov rax, qword [rbp + 0xb0]
lea r9, [0x140035af8]
test rax, rax
lea rdx, [0x140035848]
mov r8d, edi
cmovne r9, rax
call fcn.14001a670
mov rcx, qword [0x14003d048]
cmp rcx, r13
je 0x14001a271
test byte [rcx + 0x1c], 1
je 0x14001a271
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001a246
mov eax, edx
sub r14, rax
jmp 0x14001a249
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], edi
mov edx, 0x6b
mov qword [rsp + 0x20], rbp
lea r8, [0x1400367b8]
call fcn.140001730
or eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x14001a291
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001a291
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop rdi
ret