Function at 0x1400022c5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a14a0
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401199f8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov edi, 0xffffffff
mov dword [rbp - 0x21], edi
mov r13d, edi
cmp rcx, 0xffffffffffffffff
cmovne rax, rcx
mov qword [rbp + 0xf], rax
xor r14d, r14d
mov eax, r14d
cmp rcx, 0xffffffffffffffff
cmove eax, edi
mov dword [rbp - 0x11], eax
mov ebx, r14d
setne bl
mov ecx, dword [0x140119b18]
cmp ecx, edi
jne 0x1400a1526
mov r15d, ebx
jmp 0x1400a1576
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, ebx
test rax, rax
je 0x1400a1576
mov ecx, dword [0x140119b18]
cmp ecx, edi
jne 0x1400a1543
mov rax, r14
jmp 0x1400a154f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140119b18]
cmp byte [rax + 0x70], r14b
je 0x1400a1576
mov dword [rbp - 0x21], ebx
cmp ecx, edi
jne 0x1400a1561
mov rax, r14
jmp 0x1400a1567
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x68]
mov eax, ebx
mov qword [rbp + rax*8 + 0xf], rcx
lea r15d, [rbx + 1]
mov rdi, r14
mov qword [rbp - 9], r14
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x1400a163d
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.140003693
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov rdi, rax
mov qword [rbp - 9], rax
test rax, rax
je 0x1400a163d
mov ebx, 0x20
mov eax, 0xcccccccd
mul dword [rbp - 0x25]
shr edx, 4
cmp edx, ebx
cmova ebx, edx
mov rcx, rsi
call fcn.1400a0f60
mov qword [rbp - 0x29], rax
mov rax, qword [0x14011e670]
test rax, rax
jne 0x1400a160e
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]
test rax, rax
jne 0x1400a1607
lea rax, [0x14009fe30]
mov qword [0x14011e670], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rdi
call rax
test eax, eax
je 0x1400a163d
mov r13d, r15d
mov eax, r15d
mov qword [rbp + rax*8 + 0xf], rdi
inc r15d
xor r12b, r12b
mov byte [rbp - 0x19], r12b
mov dword [rbp - 0x15], r14d
mov rbx, qword [rbp - 0x19]
mov eax, 0xfffffffe
mov ecx, 0xffffffff
cmp r13d, ecx
jne 0x1400a175c
mov rbx, qword [rsi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x1400a1675
mov byte [rbp - 0x39], 1
mov dword [rbp - 0x35], eax
jmp 0x1400a174b
cmp byte [rsi + 0x10], 0
je 0x1400a16de
mov rax, qword [0x14011d898]
test rax, rax
jne 0x1400a16b7
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetTickCount64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400a16b0
lea rax, [0x140002cf2]
mov qword [0x14011d898], rax
call rax
sub rax, qword [rsi]
mov rcx, rbx
sub rcx, rax
cmp rax, rbx
mov eax, 0
cmovae rcx, rax
mov eax, 0xfffffffe
cmp rcx, rax
cmova ecx, eax
mov dword [rbp - 0x35], ecx
jmp 0x1400a1742
lea rdx, [0x1400038cd]
lea rcx, [rbp - 0x29]
call fcn.140001640
lea rcx, [rsi + 0x18]
mov rax, qword [rcx]
cmp qword [rbp - 0x29], rax
jl 0x1400a1706
mov byte [rbp - 0x39], 0
xor eax, eax
mov dword [rbp - 0x35], eax
jmp 0x1400a1746
lea r8, [rbp - 0x29]
lea rdx, [rbp + 7]
call fcn.140003c15
mov rcx, qword [rax]
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
inc rax
add rdx, rax
mov eax, 0xfffffffe
cmp rdx, rax
cmova edx, eax
mov dword [rbp - 0x35], edx
seta byte [rbp - 0x39]
mov ecx, 0xffffffff
mov rbx, qword [rbp - 0x39]
mov qword [rbp - 0x19], rbx
mov r14d, dword [rbp - 0x15]
movzx r12d, byte [rbp - 0x19]
test r15d, r15d
je 0x1400a17e7
mov r9, rbx
shr r9, 0x20
cmp r13d, ecx
cmovne r9d, ecx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, r15d
jae 0x1400a17f9
cmp eax, dword [rbp - 0x11]
je 0x1400a1817
cmp eax, dword [rbp - 0x21]
je 0x1400a182e
cmp eax, r13d
jne 0x1400a17f9
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a17b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140001c17
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test r14d, r14d
jne 0x1400a17f0
xor ecx, ecx
jmp 0x1400a17f3
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rsi + 0x10], 0
je 0x1400a180d
movabs rax, 0xffffffff00000002
add qword [rsi + 8], rax
test r12b, r12b
je 0x1400a17a5
jmp 0x1400a164c
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a182a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400a17ba
call fcn.1400022d4
lea rcx, [rax + 0x68]
call fcn.1400019ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x1401188f8]
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll__CxxThrowException
int3