Function at 0x1400ceb30
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, rdx
xor r14d, r14d
mov qword [r11 - 0x58], r14
xor eax, eax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov esi, r14d
or r12d, 0xffffffff
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], r12d
mov r15d, r12d
mov dword [rsp + 0x54], r12d
cmp rcx, 0xffffffffffffffff
je 0x1400cebac
mov dword [rsp + 0x4c], r14d
mov qword [r11 - 0x58], rcx
lea esi, [rax + 1]
mov ecx, dword [0x1401a3040]
cmp ecx, r12d
je 0x1400cec05
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400cec05
mov ecx, dword [0x1401a3040]
cmp ecx, r12d
jne 0x1400cebd2
mov rax, r14
jmp 0x1400cebde
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1401a3040]
cmp byte [rax + 0x70], r14b
je 0x1400cec05
mov dword [rsp + 0x50], esi
cmp ecx, r12d
jne 0x1400cebf2
mov rax, r14
jmp 0x1400cebf8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x68]
mov eax, esi
mov qword [rsp + rax*8 + 0x70], rcx
inc esi
mov rbx, r14
mov qword [rsp + 0x58], rbx
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1400cece3
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400cf3f0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400cece3
mov edi, 0x20
mov eax, 0xcccccccd
mul dword [rsp + 0x44]
shr edx, 4
cmp edx, edi
cmova edi, edx
mov rcx, rbp
call fcn.1400ce6c0
mov qword [rsp + 0x40], rax
mov r10, qword [0x1401ab080]
test r10, r10
jne 0x1400ceca4
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetWaitableTimerEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r10, [0x1400ce0d0]
test rax, rax
cmovne r10, rax
mov qword [0x1401ab080], r10
mov dword [rsp + 0x30], edi
lea rax, [0x1401a3048]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call r10
test eax, eax
setne al
test al, al
je 0x1400cece3
mov r15d, esi
mov dword [rsp + 0x54], esi
mov eax, esi
mov qword [rsp + rax*8 + 0x70], rbx
inc esi
cmp r15d, r12d
setne r13b
xor r12b, r12b
mov byte [rsp + 0x40], r12b
mov r15d, r14d
mov dword [rsp + 0x44], r14d
mov rdi, qword [rsp + 0x40]
nop
test r13b, r13b
jne 0x1400ced25
lea rdx, [rsp + 0x68]
mov rcx, rbp
call fcn.1400cf3f0
mov rdi, qword [rax]
mov qword [rsp + 0x40], rdi
mov r15d, dword [rsp + 0x44]
movzx r12d, byte [rsp + 0x40]
test esi, esi
je 0x1400ced6d
mov r9, rdi
shr r9, 0x20
test r13b, r13b
mov ecx, 0xffffffff
cmovne r9d, ecx
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, esi
jae 0x1400ced7f
cmp eax, dword [rsp + 0x4c]
je 0x1400cede5
cmp eax, dword [rsp + 0x50]
je 0x1400cedb3
cmp eax, dword [rsp + 0x54]
je 0x1400ced9d
jmp 0x1400ced7f
test r15d, r15d
jne 0x1400ced76
xor ecx, ecx
jmp 0x1400ced79
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbp + 0x10], 0
je 0x1400ced93
movabs rax, 0xffffffff00000002
add qword [rbp + 8], rax
test r12b, r12b
je 0x1400cedfd
jmp 0x1400ced00
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400cedb1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400cee11
mov ecx, dword [0x1401a3040]
or eax, 0xffffffff
cmp ecx, eax
je 0x1400cedc9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov rcx, qword [r14 + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x14017f2f8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400cedf9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x1400cee13
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400cee11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret