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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r14, [rsp + 0x32]
lea r12, [0x14010a0a8]
xor r13d, r13d
lea rdi, [0x14016e798]
lea rbx, [rsp + 0x30]
mov r15, rax
test rax, rax
jne 0x1400e17c6
jmp 0x1400e17ab
cmp byte [rsp + 0x2f], 0
je 0x1400e1c2f
mov rax, r15
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x1400e1b74
mov r15, rax
test rax, rax
je 0x1400e17ab
cmp r15, 1
je 0x1400e17a0
cmp r15, 3
je 0x1400e1c1e
mov eax, r15d
and eax, 3
cmp eax, 2
je 0x1400e17ff
jmp 0x1400e1c2f
mov eax, r15d
and eax, 3
cmp eax, 2
jne 0x1400e1b60
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e1848
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e1824
mov rbp, rax
cmp qword [rax + 8], 0
jne 0x1400e1900
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e185f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400e1880
mov rbp, rax
cmp rax, 1
jne 0x1400e18c2
jmp 0x1400e1c2f
mov rcx, r12
call fcn.1400dcb90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e1816
jmp 0x1400e1824
mov rcx, r12
call fcn.1400dcb90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400e183a
nop word cs:[rax + rax]
movzx eax, byte [0x14017a148]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dbb10
test rax, rax
je 0x1400e1c2f
mov rbp, rax
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e197f
dec ecx
mov rdx, rbp
call fcn.140107c40
mov rcx, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
mov qword [rbp + 8], 1
mov qword [rbp + 0x10], 0
test rcx, rcx
je 0x1400e1900
test rax, rax
je 0x1400e1900
lock dec qword [rax]
jne 0x1400e1900
lea rcx, [rsp + 0x50]
call fcn.1400e6c90
nop
add rbp, 0x10
mov rax, qword [rbp]
test rax, rax
je 0x1400e1960
lock inc qword [rax]
jle 0x1400e1c2f
lea rcx, [r15 - 2]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rcx
mov rax, r15
lock cmpxchg qword [rsi], r14
je 0x1400e1b30
mov r15, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400e17f0
lock dec qword [rax]
jne 0x1400e17f0
mov rcx, rbx
call fcn.1400e6c90
jmp 0x1400e17f0
call fcn.1400e21f0
cmp qword [rbp], 0
jne 0x1400e1c2f
mov qword [rbp], rax
lock inc qword [rax]
jg 0x1400e1917
jmp 0x1400e1c2f
mov rcx, r12
call fcn.1400dcb90
mov ecx, eax
jmp 0x1400e18ba
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e19d3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e19b2
cmp qword [rax + 8], 0
jne 0x1400e1a90
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e19ea
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400e1a00
cmp rax, 1
jne 0x1400e1a45
jmp 0x1400e1c2f
mov rcx, r12
call fcn.1400dcb90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e19a7
jmp 0x1400e19b2
mov rcx, r12
call fcn.1400dcb90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400e19c8
nop
movzx eax, byte [0x14017a148]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dbb10
test rax, rax
je 0x1400e1c2f
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x14010a0c0]
test ecx, ecx
je 0x1400e1b1b
dec ecx
mov rdx, rax
mov r15, rax
call fcn.140107c40
mov rax, r15
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
test rdx, rdx
je 0x1400e1a90
test rcx, rcx
je 0x1400e1a90
lock dec qword [rcx]
jne 0x1400e1a90
lea rcx, [rsp + 0x50]
mov r15, rax
call fcn.1400e6c90
mov rax, r15
nop word [rax + rax]
add rax, 0x10
mov r15, qword [rax]
test r15, r15
je 0x1400e1af3
lock inc qword [r15]
jle 0x1400e1c2f
mov qword [rsp + 0x48], r15
lock dec byte [r15 + 0x28]
je 0x1400e1ae1
lea rbp, [r15 + 0x28]
nop word cs:[rax + rax]
mov r8d, 1
mov rcx, rbp
mov rdx, rdi
mov r9d, 0xffffffff
call sub.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress
mov al, 1
lock cmpxchg byte [rbp], r13b
jne 0x1400e1ac0
lock dec qword [r15]
jne 0x1400e1b30
lea rcx, [rsp + 0x48]
call fcn.1400e6c90
jmp 0x1400e1b30
mov rbp, rax
call fcn.1400e21f0
cmp qword [rbp], 0
jne 0x1400e1c2f
mov r15, rax
mov rax, rbp
mov qword [rbp], r15
lock inc qword [r15]
jg 0x1400e1aa6
jmp 0x1400e1c2f
mov rcx, r12
mov r15, rax
call fcn.1400dcb90
mov ecx, eax
mov rax, r15
jmp 0x1400e1a37
movzx eax, byte [rsp + 0x40]
test al, al
je 0x1400e1990
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400e1b60
lock dec qword [rax]
jne 0x1400e1b60
mov rcx, rbx
call fcn.1400e6c90
nop word cs:[rax + rax]
mov rax, qword [rsi]
mov r15, rax
test rax, rax
jne 0x1400e17c6
jmp 0x1400e17ab
cmp r15, 1
mov qword [rsp + 0x30], 3
sete byte [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x20]
mov rax, qword [rsp + 0x30]
xchg qword [rsi], rax
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x1400e1c2f
add rax, 0xfffffffffffffffe
je 0x1400e1c1e
lea rsi, [rsp + 0x30]
jmp 0x1400e1bc8
mov rax, rdi
test rdi, rdi
je 0x1400e1c1e
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rax], 0
test rcx, rcx
je 0x1400e1c2f
mov qword [rsp + 0x30], rcx
mov byte [rax + 0x10], 1
mov al, 1
xchg byte [rcx + 0x28], al
cmp al, 0xff
je 0x1400e1c00
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
jne 0x1400e1bc0
jmp 0x1400e1c14
add rcx, 0x28
call fcn.140107f78
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
jne 0x1400e1bc0
mov rcx, rsi
call fcn.1400e6c90
jmp 0x1400e1bc0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2