Function at 0x14000d470
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebx, dword [0x1400707a8]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, rdx
mov r14, r8
mov r12, rcx
call rbp
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov r15d, eax
call rsi
mov rbx, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdi, rax
call rbx
add qword [rdi + 0x98], 1
mov edi, dword [0x1400707a8]
call rbp
mov r15d, eax
mov ecx, edi
call rsi
mov ecx, r15d
mov rdi, rax
call rbx
lea rcx, [rdi + 0xa0]
mov edx, 0x220
call sym.rawAlloc__system_5138
mov r8, r14
lea r9, [rsp + 0x48]
lea rdx, [rax + 0x10]
lea rdi, [rax + 0x18]
mov qword [rax + 0x10], 0
and rdi, 0xfffffffffffffff8
mov rcx, rdx
mov qword [rax + 0x218], 0
sub rcx, rdi
mov qword [rax + 8], 1
xor eax, eax
add ecx, 0x210
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [rdx + 8], 0x1f
mov rcx, r12
mov qword [rsp + 0x48], rdx
mov rdx, r13
call sym.genericDeepCopyAux__system_8584
mov r14d, dword [0x1400707a8]
mov r12, qword [rsp + 0x48]
call rbp
mov r13d, eax
mov ecx, r14d
call rsi
mov ecx, r13d
mov rdi, rax
call rbx
lea rdx, [r12 - 0x10]
lea rcx, [rdi + 0xa0]
call sym.rawDealloc__system_5267
mov r13d, dword [0x1400707a8]
call rbp
mov r12d, eax
mov ecx, r13d
call rsi
mov ecx, r12d
mov rdi, rax
call rbx
mov rax, qword [rdi + 0x98]
test rax, rax
jle 0x14000d5b0
sub rax, 1
mov qword [rdi + 0x98], rax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0x30
lea rcx, [0x140071c80]
lea r13, [0x14004d610]
call sym.newObj
lea rcx, [0x14004c020]
mov edx, 0x4c
mov r12, rax
lea rax, [0x140071cc0]
mov qword [r12], rax
mov r14, qword [r12 + 0x18]
mov qword [r12 + 0x10], r13
call sym.newObjRC1
movdqa xmm0, xmmword [0x14004e390]
movabs r10, 0x6761737520495041
movabs r11, 0x3a726f7272652065
movabs r9, 0x4347207475622064
mov qword [rax + 0x10], r10
movabs r10, 0x62616e655f434720
movabs rcx, 0x62616e6520796461
mov qword [rax + 0x18], r11
movabs r11, 0x656c6c616320656c
mov qword [rax + 0x20], r10
movabs r10, 0x65726c6120736920
mov qword [rax + 0x28], r11
mov qword [rax + 0x30], r9
mov qword [rax + 0x38], r10
mov qword [rax + 0x40], rcx
mov dword [rax + 0x48], 0x64656c
movups xmmword [rax], xmm0
mov qword [r12 + 0x18], rax
test r14, r14
je 0x14000d68e
mov rax, qword [r14 - 0x10]
lea rdx, [r14 - 0x10]
mov qword [rsp + 0x38], rdx
sub rax, 8
mov qword [r14 - 0x10], rax
cmp rax, 7
jbe 0x14000d718
mov rax, qword [r12 + 8]
test rax, rax
je 0x14000d6ae
mov rdx, qword [rax - 0x10]
lea r15, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
jbe 0x14000d6e8
mov qword [r12 + 8], 0
lea r9, str.gc.nim
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], 0x37f
lea r8, str.GC_enable
call sym.raiseExceptionEx
mov rax, qword [rdi + 0x98]
jmp 0x14000d594
mov ecx, dword [0x1400707a8]
mov dword [rsp + 0x38], ecx
call rbp
mov ecx, dword [rsp + 0x38]
mov r14d, eax
call rsi
mov ecx, r14d
mov rsi, rax
call rbx
lea rcx, [rsi + 0x50]
mov rdx, r15
call sym.addZCT__system_5862
jmp 0x14000d6ae
mov r14d, dword [0x1400707a8]
call rbp
mov r15d, eax
mov ecx, r14d
call rsi
mov ecx, r15d
mov r14, rax
call rbx
mov rdx, qword [rsp + 0x38]
lea rcx, [r14 + 0x50]
call sym.addZCT__system_5862
jmp 0x14000d68e