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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, rcx
mov rdi, r8
mov ecx, dword [0x14003d17c]
mov esi, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
xor r13d, r13d
mov r14, rax
test rax, rax
jne 0x140015a10
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x40]
mov ecx, ebx
mov dword [rsp + 0x40], r13d
lea r14, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov rcx, qword [0x14003d048]
lea r11, [0x14003d048]
lea r10, [0x140035650]
mov r12d, 0x1df
cmp rcx, r11
je 0x140015a89
test byte [rcx + 0x1c], 1
je 0x140015a89
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140015a51
mov eax, edx
mov edx, r12d
sub rdx, rax
jmp 0x140015a54
mov rdx, r13
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r10]
mov qword [rsp + 0x30], rdi
mov edx, Ordinal_20
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call fcn.140014f94
mov rcx, qword [0x14003d048]
lea r11, [0x14003d048]
lea r10, [0x140035650]
mov r15d, r13d
test esi, esi
je 0x140015a99
test rdi, rdi
je 0x140015a9e
test esi, esi
jne 0x140015ae9
test rdi, rdi
je 0x140015ae1
mov r15d, 0x80070057
lea rdi, [0x14003d048]
lea rsi, [0x140035650]
cmp rcx, rdi
je 0x1400160d4
test byte [rcx + 0x1c], 1
je 0x1400160d4
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400160ae
mov eax, edx
sub r12, rax
jmp 0x1400160b1
mov r15d, 0x8007000d
jmp 0x140015aa4
mov dword [rsp + 0xa8], r13d
mov r9d, r13d
test esi, esi
je 0x14001601c
lea rsi, [rdi + 0x20]
mov r8d, dword [rsi - 0x10]
cmp r8d, 4
jne 0x140015c7d
mov eax, r9d
lea rdx, [rax + rax*2]
add rdx, rdx
mov rax, qword [rdi + rdx*8]
cmp rax, qword [0x1400366c0]
jne 0x140015c7d
mov rax, qword [rdi + rdx*8 + 8]
cmp rax, qword [0x1400366c8]
jne 0x140015c7d
cmp dword [rsi], 0x12
jne 0x140015c7d
cmp dword [rsi + 4], r13d
jbe 0x140015c7d
cmp qword [rsi + 8], r13
je 0x140015c7d
lea r12, [rbp + 0x90]
mov rcx, qword [r12]
mov qword [r12], r13
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rax, qword [rsi + 8]
mov rcx, 0xffffffffffffffff
mov r13d, dword [rsi + 4]
mov qword [rsp + 0x48], rax
mov eax, 2
lea r15, [r13 + 2]
shr r15, 1
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.140030edc
mov rdi, rax
test rax, rax
je 0x140015bd6
mov rdx, qword [rsp + 0x48]
mov r8d, r13d
mov rcx, rax
call sub.msvcrt.dll_memcpy
xor r13d, r13d
mov rdx, r12
mov rcx, rdi
mov word [rdi + r15*2 - 2], r13w
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
mov rcx, rdi
mov r15d, eax
call fcn.14003010c
jmp 0x140015bdf
mov r15d, 0x8007000e
xor r13d, r13d
test r15d, r15d
jns 0x140015bfa
mov qword [r12], r13
mov r12d, 0x1df
mov rcx, qword [0x14003d048]
jmp 0x140015aa4
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140015c5b
test byte [r10 + 0x1c], 4
je 0x140015c5b
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140015c30
mov eax, ecx
mov ecx, 0x1df
sub rcx, rax
jmp 0x140015c33
mov rcx, r13
mov rax, qword [r12]
lea r9, [0x140035650]
add r9, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, Ordinal_20
call fcn.140004a7c
mov byte [rbp + 0x108], 1
mov r12d, 0x1df
mov rdi, qword [rsp + 0xa0]
mov r9d, dword [rsp + 0xa8]
jmp 0x140015fe9
cmp r8d, 0x11
jne 0x140015d7b
mov eax, r9d
lea rdx, [rax + rax*2]
add rdx, rdx
mov rax, qword [rdi + rdx*8]
cmp rax, qword [0x140036600]
jne 0x140015d7b
mov rax, qword [rdi + rdx*8 + 8]
cmp rax, qword [0x140036608]
jne 0x140015d7b
cmp dword [rsi], 0x2012
jne 0x140015d7b
cmp dword [rsi + 4], r13d
jbe 0x140015d7b
cmp qword [rsi + 8], r13
je 0x140015d7b
lea rdi, [rbp + 0x98]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov ecx, dword [rsi + 4]
mov r8, rdi
mov rdx, qword [rsi + 8]
call fcn.14001558c
mov r15d, eax
test eax, eax
js 0x140015bee
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140015d51
test byte [r10 + 0x1c], 4
je 0x140015d51
mov ecx, dword [r14]
inc ecx
lea eax, [rcx + rcx*4]
cmp eax, 0x1e1
ja 0x140015d2f
mov rcx, r12
sub rcx, rax
jmp 0x140015d32
mov rcx, r13
lea r9, [0x140035650]
mov edx, Ordinal_20
add r9, rcx
lea r8, [0x1400367b8]
mov rcx, qword [r10 + 0x10]
call fcn.1400012b0
mov byte [rbp + 0x10b], 1
lea rdi, [rbp + 0xb0]
mov rcx, qword [rdi]
mov qword [rdi], r13
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdx, rdi
mov rcx, rbp
call fcn.140016324
jmp 0x140015c68
cmp r8d, 3
jne 0x140015e55
mov eax, r9d
lea rdx, [rax + rax*2]
shl rdx, 4
add rdx, rdi
mov rax, qword [rdx]
cmp rax, qword [0x140036660]
jne 0x140015e55
mov rax, qword [rdx + 8]
cmp rax, qword [0x140036668]
jne 0x140015e55
cmp dword [rsi], 0x11
jne 0x140015e55
cmp dword [rsi + 4], r13d
jbe 0x140015e55
mov rax, qword [rsi + 8]
test rax, rax
je 0x140015e55
mov dl, byte [rax]
or rax, 0xffffffffffffffff
cmp dl, al
sete al
mov byte [rbp + 0x105], al
mov r8, qword [0x14003d048]
cmp r8, r11
je 0x140015e49
test byte [r8 + 0x1c], 4
je 0x140015e49
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140015e12
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x140015e15
mov rcx, r13
cmp dl, 0xff
lea r9, [rcx + r10]
mov rcx, qword [r8 + 0x10]
lea rdx, [0x140036714]
lea rax, [0x14003671c]
cmove rax, rdx
mov edx, Ordinal_20
mov qword [rsp + 0x20], rax
call fcn.140015228
mov r9d, dword [rsp + 0xa8]
mov byte [rbp + 0x10a], 1
jmp 0x140015fe9
cmp r8d, 0x10
jne 0x140015f2f
mov eax, r9d
lea rdx, [rax + rax*2]
shl rdx, 4
add rdx, rdi
mov rax, qword [rdx]
cmp rax, qword [0x1400365e8]
jne 0x140015f2f
mov rax, qword [rdx + 8]
cmp rax, qword [0x1400365f0]
jne 0x140015f2f
cmp dword [rsi], 0x11
jne 0x140015f2f
cmp dword [rsi + 4], r13d
jbe 0x140015f2f
mov rax, qword [rsi + 8]
test rax, rax
je 0x140015f2f
mov dl, byte [rax]
or rax, 0xffffffffffffffff
cmp dl, al
sete al
mov byte [rbp + 0x104], al
mov r8, qword [0x14003d048]
cmp r8, r11
je 0x140015f23
test byte [r8 + 0x1c], 4
je 0x140015f23
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140015eec
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x140015eef
mov rcx, r13
cmp dl, 0xff
lea r9, [rcx + r10]
mov rcx, qword [r8 + 0x10]
lea rdx, [0x140036714]
lea rax, [0x14003671c]
cmove rax, rdx
mov edx, reloc.ProximityCommon.dll_Ordinal_20
mov qword [rsp + 0x20], rax
call fcn.140015228
mov r9d, dword [rsp + 0xa8]
mov byte [rbp + 0x109], 1
jmp 0x140015fe9
cmp r8d, 2
jne 0x140015ff0
mov eax, r9d
lea rdx, [rax + rax*2]
add rdx, rdx
mov rax, qword [rdi + rdx*8]
cmp rax, qword [0x140036688]
jne 0x140015ff0
mov rax, qword [rdi + rdx*8 + 8]
cmp rax, qword [0x140036690]
jne 0x140015ff0
cmp dword [rsi], 0xd
jne 0x140015ff0
cmp dword [rsi + 4], 0x10
jne 0x140015ff0
mov rax, qword [rsi + 8]
test rax, rax
je 0x140015ff0
movups xmm0, xmmword [rax]
lea r10, [rbp + 0xb8]
movdqu xmmword [r10], xmm0
mov r8, qword [0x14003d048]
cmp r8, r11
je 0x140015fe2
test byte [r8 + 0x1c], 4
je 0x140015fe2
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140015fba
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x140015fbd
mov rcx, r13
lea r9, [0x140035650]
mov qword [rsp + 0x20], r10
add r9, rcx
mov edx, reloc.ProximityCommon.dll_Ordinal_21
mov rcx, qword [r8 + 0x10]
call fcn.140014cb8
mov r9d, dword [rsp + 0xa8]
mov byte [rbp + 0x10c], 1
mov rcx, qword [0x14003d048]
inc r9d
add rsi, 0x30
mov dword [rsp + 0xa8], r9d
cmp r9d, dword [rsp + 0x98]
jae 0x14001601c
lea r11, [0x14003d048]
lea r10, [0x140035650]
jmp 0x140015b00
cmp byte [rbp + 0x108], r13b
je 0x140016044
cmp byte [rbp + 0x10b], r13b
je 0x140016044
cmp byte [rbp + 0x10a], r13b
je 0x140016044
cmp byte [rbp + 0x109], r13b
jne 0x140015aa4
mov r15d, 0x8007000d
lea rdi, [0x14003d048]
cmp rcx, rdi
je 0x1400160d4
test byte [rcx + 0x1c], 0x10
je 0x140015aab
mov eax, dword [r14]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001607a
mov eax, edx
mov rdx, r12
sub rdx, rax
jmp 0x14001607d
mov rdx, r13
mov rcx, qword [rcx + 0x10]
lea rsi, [0x140035650]
lea r9, [rdx + rsi]
mov dword [rsp + 0x20], r15d
mov edx, reloc.ProximityCommon.dll_Ordinal_22
lea r8, [0x1400367b8]
call fcn.140001304
mov rcx, qword [0x14003d048]
jmp 0x140015ab2
mov r12, r13
mov rcx, qword [rcx + 0x10]
lea r9, [r12 + rsi]
mov edx, Ordinal_24
mov dword [rsp + 0x28], r15d
lea r8, [0x1400367b8]
mov qword [rsp + 0x20], rbp
call fcn.140001730
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x1400160f5
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400160f5
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, r15d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret