Function at 0x1400e4f90
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, [0x14010e0d0]
xor r13d, r13d
lea rdi, [0x14192afa8]
lea rbx, [rsp + 0x30]
mov r15, rax
test rax, rax
jne 0x1400e5006
jmp 0x1400e4feb
cmp byte [rsp + 0x2f], 0
je 0x1400e546f
mov rax, r15
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x1400e53b4
mov r15, rax
test rax, rax
je 0x1400e4feb
cmp r15, 1
je 0x1400e4fe0
cmp r15, 3
je 0x1400e545e
mov eax, r15d
and eax, 3
cmp eax, 2
je 0x1400e503f
jmp 0x1400e546f
mov eax, r15d
and eax, 3
cmp eax, 2
jne 0x1400e53a0
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e5088
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e5064
mov rbp, rax
cmp qword [rax + 8], 0
jne 0x1400e5140
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e509f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400e50c0
mov rbp, rax
cmp rax, 1
jne 0x1400e5102
jmp 0x1400e546f
mov rcx, r12
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e5056
jmp 0x1400e5064
mov rcx, r12
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400e507a
nop word cs:[rax + rax]
movzx eax, byte [0x141936118]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e546f
mov rbp, rax
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e51bf
dec ecx
mov rdx, rbp
call sub.KERNEL32.dll_TlsSetValue
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 0x1400e5140
test rax, rax
je 0x1400e5140
lock dec qword [rax]
jne 0x1400e5140
lea rcx, [rsp + 0x50]
call fcn.1400ed1a0
nop
add rbp, 0x10
mov rax, qword [rbp]
test rax, rax
je 0x1400e51a0
lock inc qword [rax]
jle 0x1400e546f
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 0x1400e5370
mov r15, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400e5030
lock dec qword [rax]
jne 0x1400e5030
mov rcx, rbx
call fcn.1400ed1a0
jmp 0x1400e5030
call fcn.1400e5620
cmp qword [rbp], 0
jne 0x1400e546f
mov qword [rbp], rax
lock inc qword [rax]
jg 0x1400e5157
jmp 0x1400e546f
mov rcx, r12
call fcn.1400e0490
mov ecx, eax
jmp 0x1400e50fa
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e5213
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e51f2
cmp qword [rax + 8], 0
jne 0x1400e52d0
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e522a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400e5240
cmp rax, 1
jne 0x1400e5285
jmp 0x1400e546f
mov rcx, r12
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e51e7
jmp 0x1400e51f2
mov rcx, r12
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400e5208
nop
movzx eax, byte [0x141936118]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e546f
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e535b
dec ecx
mov rdx, rax
mov r15, rax
call sub.KERNEL32.dll_TlsSetValue
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 0x1400e52d0
test rcx, rcx
je 0x1400e52d0
lock dec qword [rcx]
jne 0x1400e52d0
lea rcx, [rsp + 0x50]
mov r15, rax
call fcn.1400ed1a0
mov rax, r15
nop word [rax + rax]
add rax, 0x10
mov r15, qword [rax]
test r15, r15
je 0x1400e5333
lock inc qword [r15]
jle 0x1400e546f
mov qword [rsp + 0x48], r15
lock dec byte [r15 + 0x28]
je 0x1400e5321
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 0x1400e5300
lock dec qword [r15]
jne 0x1400e5370
lea rcx, [rsp + 0x48]
call fcn.1400ed1a0
jmp 0x1400e5370
mov rbp, rax
call fcn.1400e5620
cmp qword [rbp], 0
jne 0x1400e546f
mov r15, rax
mov rax, rbp
mov qword [rbp], r15
lock inc qword [r15]
jg 0x1400e52e6
jmp 0x1400e546f
mov rcx, r12
mov r15, rax
call fcn.1400e0490
mov ecx, eax
mov rax, r15
jmp 0x1400e5277
movzx eax, byte [rsp + 0x40]
test al, al
je 0x1400e51d0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400e53a0
lock dec qword [rax]
jne 0x1400e53a0
mov rcx, rbx
call fcn.1400ed1a0
nop word cs:[rax + rax]
mov rax, qword [rsi]
mov r15, rax
test rax, rax
jne 0x1400e5006
jmp 0x1400e4feb
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 0x1400e546f
add rax, 0xfffffffffffffffe
je 0x1400e545e
lea rsi, [rsp + 0x30]
jmp 0x1400e5408
mov rax, rdi
test rdi, rdi
je 0x1400e545e
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rax], 0
test rcx, rcx
je 0x1400e546f
mov qword [rsp + 0x30], rcx
mov byte [rax + 0x10], 1
mov al, 1
xchg byte [rcx + 0x28], al
cmp al, 0xff
je 0x1400e5440
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
jne 0x1400e5400
jmp 0x1400e5454
add rcx, 0x28
call fcn.14010bbb8
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
jne 0x1400e5400
mov rcx, rsi
call fcn.1400ed1a0
jmp 0x1400e5400
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2