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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, rcx
mov r13, r9
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 0x140019b1f
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x40]
and dword [rsp + 0x40], eax
lea rsi, [rsp + 0x40]
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 r12, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x140019b7f
test byte [r10 + 0x1c], 1
je 0x140019b7f
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140019b5f
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x140019b61
xor ecx, ecx
lea r9, [rcx + r12]
mov qword [rsp + 0x20], rbp
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x5f
call fcn.140001370
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 qword [rbp + 0xe8], rax
mov r15d, 0x80004005
test rax, rax
jne 0x140019bbf
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
test edi, edi
cmovns edi, r15d
jmp 0x140019bc1
xor edi, edi
test edi, edi
js 0x140019eed
lea r15, [rbp + 0x80]
mov rcx, qword [r15]
call qword [sym.imp.deviceassociation.dll_DafCloseAssociationContext]
mov edi, eax
mov r8, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r8, rax
je 0x140019c2b
test byte [r8 + 0x1c], 4
je 0x140019c2b
mov ecx, dword [rsi]
inc ecx
lea eax, [rcx + rcx*4]
cmp eax, 0x1e1
ja 0x140019c0b
mov rcx, r14
sub rcx, rax
jmp 0x140019c0d
xor ecx, ecx
mov rax, qword [r15]
lea r9, [rcx + r12]
mov rcx, qword [r8 + 0x10]
mov edx, 0x60
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140014c30
and qword [r15], 0
test edi, edi
js 0x140019eed
lea rax, [rsp + 0x90]
xor r9d, r9d
lea r12, [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov rcx, qword [r12]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.deviceassociation.dll_DafCreateAssociationContext]
mov edi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140019cc3
test byte [rcx + 0x1c], 4
je 0x140019cc3
mov eax, dword [rsi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019c91
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140019c93
xor edx, edx
mov rax, qword [rsp + 0x90]
lea r9, [0x140035650]
mov rcx, qword [rcx + 0x10]
add r9, rdx
mov edx, 0x61
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140014c30
mov rcx, qword [0x14003d048]
test edi, edi
js 0x140019efd
mov rcx, qword [rsp + 0x90]
lea rdx, [0x140017480]
mov r8, rbp
call qword [sym.imp.deviceassociation.dll_DafStartRemoveAssociation]
mov edi, eax
test eax, eax
js 0x140019d82
mov rcx, qword [rbp + 0xe8]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
jne 0x140019d64
mov edi, dword [rbp + 0x100]
test edi, edi
js 0x140019d82
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140019dd9
test byte [rcx + 0x1c], 4
je 0x140019d90
mov eax, dword [rsi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019d41
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140019d43
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, rdx
lea r8, [0x1400367b8]
mov edx, 0x62
call fcn.1400012b0
jmp 0x140019d82
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
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140019dd9
test byte [rcx + 0x1c], 4
je 0x140019dd9
mov eax, dword [rsi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019db4
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140019db6
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, rdx
mov dword [rsp + 0x20], edi
mov edx, 0x63
lea r8, [0x1400367b8]
call fcn.140001304
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.deviceassociation.dll_DafCloseAssociationContext]
mov edi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140019e4d
test byte [rcx + 0x1c], 4
je 0x140019e4d
mov eax, dword [rsi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019e1b
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140019e1d
xor edx, edx
mov rax, qword [rsp + 0x90]
lea r9, [0x140035650]
mov rcx, qword [rcx + 0x10]
add r9, rdx
mov edx, 0x64
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140014c30
mov rcx, qword [0x14003d048]
test edi, edi
js 0x140019efd
and qword [rsp + 0x38], 0
xor r9d, r9d
and qword [rsp + 0x30], 0
mov r8, r13
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.deviceassociation.dll_DafCreateAssociationContextFromOobBlob]
mov edi, eax
mov rcx, qword [0x14003d048]
lea r15, [0x14003d048]
cmp rcx, r15
je 0x140019f4f
test byte [rcx + 0x1c], 4
je 0x140019f04
mov eax, dword [rsi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019ebe
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140019ec0
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r12, [0x140035650]
lea r9, [rdx + r12]
mov dword [rsp + 0x20], edi
mov edx, 0x65
lea r8, [0x1400367b8]
call fcn.140001304
mov rcx, qword [0x14003d048]
jmp 0x140019f0b
mov rcx, qword [0x14003d048]
lea r15, [0x14003d048]
jmp 0x140019f0b
lea r15, [0x14003d048]
lea r12, [0x140035650]
cmp rcx, r15
je 0x140019f4f
test byte [rcx + 0x1c], 1
je 0x140019f4f
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019f2a
mov eax, edx
sub r14, rax
jmp 0x140019f2d
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + r12]
mov edx, 0x66
mov dword [rsp + 0x28], edi
lea r8, [0x1400367b8]
mov qword [rsp + 0x20], rbp
call fcn.140001730
or eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x140019f6f
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140019f6f
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret