Function at 0x180024fa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov esi, r8d
mov qword [rsp + 0x20], rax
mov r14, rdx
mov rdi, rcx
call fcn.180025fe0
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fae0]
xor ebp, ebp
mov ebx, ebp
test rax, rax
je 0x180025006
test ecx, ecx
jle 0x180025006
cmp ecx, dword [rax + 8]
jge 0x180025006
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x180025042
lea ecx, [rbx + 0x24]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800252b8
xor eax, eax
lea rcx, [0x18018fae0]
mov qword [rbx], rax
mov rdx, rbx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], eax
call fcn.180106bc0
lea rcx, [0x18018fae8]
call sym.tcl86t.dll_hcl_MutexLock
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
jne 0x18002510a
mov rcx, qword [0x18018fae8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.180106220
mov ecx, 0x43
mov rbx, rax
mov dword [rax], ebp
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800252ca
mov qword [rbx + 8], rax
mov rdx, rbx
movups xmm0, xmmword [str.localtime_failed__clock_value_may_be_too_large_small_to_represent_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1801628c0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1801628d0]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x1801628e0]
movups xmmword [rax + 0x30], xmm1
movzx eax, word [0x1801628f0]
mov word [rcx + 0x40], ax
mov rcx, rdi
mov rax, qword [rbx + 8]
mov byte [rax + 0x42], bpl
mov dword [rbx + 0x10], 0x42
mov qword [rbx + 0x18], rbp
call sym.tcl86t.dll_hcl_SetObjResult
xor r9d, r9d
lea r8, str.localtimeFailed
lea rdx, str.CLOCK
mov rcx, rdi
call sym.tcl86t.dll_hcl_SetErrorCode
mov eax, 1
jmp 0x180025298
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov eax, dword [rax + 0x20]
mov dword [rbx + 0x20], eax
mov rcx, qword [0x18018fae8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [r14 + 0x24], ebp
mov edx, esi
mov eax, dword [rbx + 0x14]
mov rcx, r14
add eax, 0x76c
mov dword [r14 + 0x2c], eax
mov eax, dword [rbx + 0x10]
inc eax
mov dword [r14 + 0x34], eax
mov eax, dword [rbx + 0xc]
mov dword [r14 + 0x38], eax
call fcn.1800256d0
movsxd rax, dword [r14 + 0x20]
sub rax, 0x253d8c
lea rcx, [rax + rax*2]
movsxd rax, dword [rbx + 8]
lea rcx, [rax + rcx*8]
movsxd rax, dword [rbx + 4]
imul rdx, rcx, 0x3c
mov ecx, 0x2d
add rdx, rax
movsxd rax, dword [rbx]
imul rdx, rdx, 0x3c
add rdx, rax
mov eax, 0x2b
mov qword [r14 + 8], rdx
sub edx, dword [r14]
mov edi, edx
mov dword [r14 + 0x10], edx
cmovs eax, ecx
neg edi
mov byte [rsp + 0x28], al
lea rcx, [rsp + 0x29]
test edx, edx
mov eax, 0x91a2b3c5
cmovns edi, edx
imul edi
lea ebx, [rdi + rdx]
sar ebx, 0xb
lea rdx, str._02d
mov eax, ebx
shr eax, 0x1f
add ebx, eax
mov r8d, ebx
call fcn.180001060
imul eax, ebx, 0xe10
lea rcx, [rsp + 0x2b]
sub edi, eax
mov eax, 0x88888889
imul edi
lea ebx, [rdi + rdx]
sar ebx, 5
lea rdx, str._02d
mov eax, ebx
shr eax, 0x1f
add ebx, eax
mov r8d, ebx
call fcn.180001060
imul eax, ebx, 0xffffffc4
add edi, eax
test edi, edi
jle 0x180025225
mov r8d, edi
lea rdx, str._02d
lea rcx, [rsp + 0x2d]
call fcn.180001060
lea rax, [rsp + 0x28]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], bpl
jne 0x180025231
call fcn.180106220
mov rdi, rax
mov dword [rax], ebp
test ebx, ebx
jne 0x180025257
mov rcx, qword [0x18018f080]
mov ebx, ebp
mov qword [rax + 8], rcx
jmp 0x180025289
lea esi, [rbx + 1]
mov ecx, esi
call sym.tcl86t.dll_hclpAlloc
test rax, rax
jne 0x18002526a
test esi, esi
jne 0x1800252dc
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, rax
mov qword [rdi + 8], rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 8]
movsxd rcx, ebx
mov byte [rcx + rax], bpl
mov dword [rdi + 0x10], ebx
mov qword [rdi + 0x18], rbp
mov qword [r14 + 0x18], rdi
inc dword [rdi]
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov edx, 0x24
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 0x43
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, esi
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3