Function at 0x7ff826695360
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
lea eax, [rdx + 0x67fffed3]
mov ebp, r9d
mov r14, r8
mov esi, edx
mov rdi, rcx
cmp eax, 1
jbe 0x7ff826695587
mov rax, qword [section..data]
lea rcx, [0x7ff82669ef10]
mov qword [rsp + 0x90], rbx
cmp rax, rcx
jne 0x7ff826695535
cmp qword [0x7ff8266e2828], 0
je 0x7ff826695535
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x7ff82669552e
mov dword [rsp + 0x98], 0
mov rdx, qword [0x7ff8266e2838]
mov rcx, rdi
shr rcx, 2
mov r8d, 2
mov eax, dword [rdx]
and rcx, rax
lea rax, [rcx + rcx*8]
mov ecx, r8d
lea r9, [rdx + rax*8]
lock xadd dword [r9 + 0x10], ecx
mov rbx, qword [r9 + 8]
and ecx, 1
test rbx, rbx
je 0x7ff8266a8c92
mov r10d, dword [rbx]
cmp r10, 0x1f
jne 0x7ff826695556
movabs rax, 0x842108421084211
mul rdi
mov rax, rdi
sub rax, rdx
shr rax, 1
add rax, rdx
mov rdx, rdi
shr rax, 4
imul rax, rax, 0x1f
sub rdx, rax
mov rbx, qword [rbx + rdx*8 + 8]
test rbx, rbx
je 0x7ff8266a8c92
cmp qword [rbx + 8], rdi
jne 0x7ff8266a8c92
lock inc dword [rbx]
lock xadd dword [r9 + rcx*4 + 0x14], r8d
cmp r8d, ecx
je 0x7ff8266a8c99
test rbx, rbx
je 0x7ff8266a8cb2
mov rcx, qword [rbx + 0x18]
mov r9d, ebp
mov rax, qword [rsp + 0x60]
mov r8, r14
add rax, 0x10
mov edx, esi
mov r10, qword [rcx + 0x90]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
mov rax, r10
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0xb8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [case.0x7ff8266a4768.0]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
je 0x7ff8266a8ccd
test edi, edi
jne 0x7ff826695563
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
mov rax, qword [section..data]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call qword [case.0x7ff8266a4768.0]
mov dword [rsp + 0x98], eax
test eax, eax
je 0x7ff8266953df
jmp 0x7ff826695572
xor edx, edx
mov rax, rdi
div r10
jmp 0x7ff82669544d
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x7ff8266a8cdb
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 0xffffffff
jmp 0x7ff826695514
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.7ff8266a38b4
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x7ff826695468
mov rcx, qword [0x7ff8266e26f0]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_PulseEvent]
nop dword [rax + rax]
nop
jmp 0x7ff826695478
mov rcx, rdi
call fcn.7ff8266b4b10
mov rbx, rax
test rax, rax
jne 0x7ff826695481
mov eax, 0x2736
jmp 0x7ff8266a8ce0
mov rcx, rbx
call fcn.7ff8266b49d8
nop
jmp 0x7ff82669550e
mov eax, 0x277b
mov dword [rsp + 0x98], eax
jmp 0x7ff826695572