Function at 0x140025ee0
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, 0x58
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rdx
mov rsi, rcx
mov rdi, qword [rcx]
lea r12, [0x1401aa098]
xor ebx, ebx
lea rbp, [0x1401cf650]
jmp 0x140025f23
mov rdi, qword [rsi]
mov r14, rdi
and r14, 3
je 0x140025f40
cmp r14d, 1
je 0x140025f60
jmp 0x1400262d2
cmp qword [rsp + 0x48], 0
je 0x140025f60
lea rcx, [rdi + 1]
mov rax, rdi
lock cmpxchg qword [rsi], rcx
mov rdi, rax
jne 0x140025f23
jmp 0x1400262f2
lea r13, [rsp + r14]
add r13, 0x20
nop dword [rax + rax]
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140025fb9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140025f95
mov r15, rax
cmp qword [rax + 8], 0
jne 0x140026070
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140025fd0
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140025ff0
mov r15, rax
cmp rax, 1
jne 0x140026032
jmp 0x140026369
mov rcx, r12
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140025f87
jmp 0x140025f95
mov rcx, r12
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x140025fab
nop word cs:[rax + rax]
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140026369
mov r15, rax
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x1400260df
dec ecx
mov rdx, r15
call sub.kernel32.dll_TlsSetValue
mov rcx, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov qword [r15 + 8], 1
mov qword [r15 + 0x10], 0
test rcx, rcx
je 0x140026070
test rax, rax
je 0x140026070
lock dec qword [rax]
jne 0x140026070
lea rcx, [rsp + 0x40]
call fcn.14008e260
nop
add r15, 0x10
mov rcx, r15
call fcn.1400907e0
mov rax, qword [r15]
lock inc qword [rax]
jle 0x140026369
mov rcx, rdi
and rcx, 0xfffffffffffffffc
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], rcx
mov rax, rdi
lock cmpxchg qword [rsi], r13
je 0x1400260f0
mov rdi, rax
and eax, 3
cmp rax, r14
jne 0x1400262b0
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140025f70
lock dec qword [rax]
jne 0x140025f70
mov rcx, qword [rsp + 0x20]
call fcn.1400c40d0
jmp 0x140025f70
mov rcx, r12
call fcn.14008d860
mov ecx, eax
jmp 0x14002602a
movzx eax, byte [rsp + 0x30]
test al, al
lea r15, [rsp + 0x38]
je 0x140026139
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140025f20
lock dec qword [rax]
jne 0x140025f20
mov rcx, qword [rsp + 0x20]
call fcn.1400c40d0
jmp 0x140025f20
movzx eax, byte [rsp + 0x30]
test al, al
jne 0x1400260fe
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140026182
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002615e
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140026230
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140026199
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1400261b0
mov rdi, rax
cmp rax, 1
jne 0x1400261f2
jmp 0x140026369
mov rcx, r12
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140026150
jmp 0x14002615e
mov rcx, r12
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x140026174
nop dword [rax]
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140026369
mov rdi, rax
mov qword [rax], r12
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140026296
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
test rcx, rcx
je 0x140026230
test rax, rax
je 0x140026230
lock dec qword [rax]
jne 0x140026230
lea rcx, [rsp + 0x40]
call fcn.14008e260
nop
add rdi, 0x10
mov rcx, rdi
call fcn.1400907e0
mov r14, qword [rdi]
lock inc qword [r14]
jle 0x140026369
mov qword [rsp + 0x38], r14
lock dec byte [r14 + 0x28]
je 0x14002627f
lea rdi, [r14 + 0x28]
nop dword [rax]
mov r8d, 1
mov rcx, rdi
mov rdx, rbp
mov r9d, 0xffffffff
call sub.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress
mov al, 1
lock cmpxchg byte [rdi], bl
jne 0x140026260
lock dec qword [r14]
jne 0x140026130
mov rcx, r15
call fcn.14008e260
jmp 0x140026130
mov rcx, r12
call fcn.14008d860
mov ecx, eax
jmp 0x1400261ea
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1400262ca
lock dec qword [rax]
jne 0x1400262ca
mov rcx, qword [rsp + 0x20]
call fcn.1400c40d0
mov rdi, qword [rsi]
jmp 0x140025f23
cmp r14d, 2
jne 0x1400262f0
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1400262f0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x20]
movzx eax, al
add eax, eax
xchg qword [rsi], rax
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140026369
dec rax
jne 0x140026328
jmp 0x1400262d8
mov rax, rdi
test rdi, rdi
je 0x1400262d8
mov rsi, qword [rax]
mov rdi, qword [rax + 8]
mov qword [rax], 0
test rsi, rsi
je 0x140026369
mov byte [rax + 0x10], 1
mov al, 1
xchg byte [rsi + 0x28], al
cmp al, 0xff
je 0x140026350
lock dec qword [rsi]
jne 0x140026320
jmp 0x14002635f
lea rcx, [rsi + 0x28]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
lock dec qword [rsi]
jne 0x140026320
mov rcx, rsi
call fcn.1400c40d0
jmp 0x140026320
ud2