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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x1400184bb
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x68]
and dword [rsp + 0x68], eax
lea r14, [rsp + 0x68]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp rax, rcx
je 0x14001852f
test byte [rax + 0x1c], 1
je 0x14001852f
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400184fc
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x1400184fe
xor ecx, ecx
mov rax, qword [rsi + 0x88]
lea r9, [rcx + rdx]
mov rcx, qword [0x14003d048]
lea r8, [0x1400367b8]
mov qword [rsp + 0x28], rax
mov edx, 0x48
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 0x10]
call fcn.140001470
mov cl, byte [rsi + 0x10c]
and qword [rsp + 0x60], 0
mov al, cl
and qword [rsp + 0x58], 0
movups xmm0, xmmword [0x1400366d8]
neg al
mov byte [rsp + 0x50], 0xff
sbb edi, edi
not edi
and edi, 0x8007139f
movdqu xmmword [rsp + 0x70], xmm0
test cl, cl
je 0x1400185b8
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
jne 0x140018590
xor r9d, r9d
lea edx, [rcx + 1]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0xf8], rax
test rax, rax
je 0x14001859a
xor edi, edi
jmp 0x1400185b8
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x1400185c0
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 0x1400188ae
mov rcx, qword [rsi + 0x88]
lea rdx, [rsp + 0x60]
call qword [sym.imp.deviceassociation.dll_DafCreateChallengeContext]
mov edi, eax
test eax, eax
js 0x1400188ae
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140017b90]
mov r8, rsi
call qword [sym.imp.deviceassociation.dll_DafChallengeDevicePresence]
mov edi, eax
test eax, eax
jns 0x14001866f
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x1400188ae
test byte [rax + 0x1c], 0x10
je 0x1400188ae
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140018632
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140018634
xor ecx, ecx
mov rax, qword [rsi + 0x88]
lea r9, [0x140035650]
add r9, rcx
mov dword [rsp + 0x28], edi
mov rcx, qword [0x14003d048]
lea r8, [0x1400367b8]
mov edx, 0x49
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14000d534
jmp 0x1400188ae
mov rcx, qword [rsi + 0xf8]
mov edx, 0x7530
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140018863
cmp eax, 0xffffffff
jne 0x1400186af
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 0x1400188ae
mov rcx, qword [rsi + 0xf8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x1400186ee
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 0x1400188ae
mov eax, dword [0x140036548]
mov edx, 2
movups xmm0, xmmword [0x140036538]
and dword [rbp - 0x64], 0
xor r9d, r9d
and qword [rbp - 0x60], 0
xor r8d, r8d
and dword [rbp - 0x2c], 0
lea ecx, [rdx + 0xb]
and qword [rbp - 0x28], 0
and dword [rbp + 0xc], 0
and qword [rbp + 0x10], 0
mov dword [rbp - 0x68], eax
lea rax, [rsi + 0xb8]
mov qword [rbp - 0x50], rax
mov eax, dword [reloc.OpcServices.DLL_Ordinal_4]
mov dword [rbp - 0x30], eax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x18], rax
mov eax, dword [0x140036710]
mov dword [rbp + 8], eax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [0x140017eb0]
movups xmmword [rbp - 0x78], xmm0
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [0x140036638]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rbp - 0x80], edx
movaps xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x140036700]
mov dword [rbp - 0x48], edx
mov dword [rbp - 0x10], edx
lea edx, [rcx - 0xa]
mov dword [rbp - 0x58], ecx
mov dword [rbp - 0x20], ecx
lea ecx, [rdx - 2]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov dword [rbp - 0x54], Ordinal_20
mov dword [rbp - 0x1c], Ordinal_20
movups xmmword [rbp - 8], xmm0
mov dword [rbp + 0x18], Ordinal_20
mov dword [rbp + 0x1c], 1
call qword [sym.imp.api_ms_win_devices_query_l1_1_0.dll_DevCreateObjectQuery]
mov edi, eax
test eax, eax
jns 0x14001884a
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x1400188a0
test byte [rax + 0x1c], 0x10
je 0x1400188a0
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140018810
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140018812
xor ecx, ecx
mov rax, qword [rsi + 0x88]
lea r9, [0x140035650]
add r9, rcx
mov dword [rsp + 0x28], edi
mov rcx, qword [0x14003d048]
lea r8, [0x1400367b8]
mov edx, 0x4a
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14000d534
jmp 0x1400188a0
mov rcx, qword [rsi + 0xf8]
mov edx, 0x1388
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001886a
mov edi, 0x800705b4
jmp 0x1400188ae
cmp eax, 0xffffffff
jne 0x14001888f
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
jmp 0x1400188a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_devices_query_l1_1_0.dll_DevCloseObjectQuery]
and qword [rsp + 0x58], 0
test edi, edi
js 0x1400188ae
mov rcx, rsi
call fcn.14001897c
mov edi, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400188be
call qword [sym.imp.deviceassociation.dll_DafCloseChallengeContext]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400188ce
call qword [sym.imp.api_ms_win_devices_query_l1_1_0.dll_DevCloseObjectQuery]
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x14001892e
test byte [rax + 0x1c], 1
je 0x14001892e
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400188fc
mov eax, ecx
sub r15, rax
jmp 0x1400188ff
xor r15d, r15d
mov rcx, qword [0x14003d048]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], edi
mov edx, 0x4b
mov qword [rsp + 0x20], rsi
lea r8, [0x1400367b8]
mov rcx, qword [rcx + 0x10]
call fcn.140001730
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14001894f
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001894f
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 + 0x30]
xor rcx, rsp
call fcn.1400304d0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret