Function at 0x1800b0940
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push r12
push r13
sub rsp, 0x28
mov rax, qword [0x1801902f8]
mov r13, rcx
mov r12, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd r8, dword [0x18018fdf0]
xor ebx, ebx
mov esi, ebx
test rax, rax
je 0x1800b0982
test r8d, r8d
jle 0x1800b0982
cmp r8d, dword [rax + 8]
jge 0x1800b0982
mov rax, qword [rax]
mov rsi, qword [rax + r8*8]
test rsi, rsi
jne 0x1800b09cf
lea ecx, [rsi + 0x48]
call sym.tcl86t.dll_hclpAlloc
mov rsi, rax
test rax, rax
je 0x1800b0bd5
xor eax, eax
lea rcx, [0x18018fdf0]
mov qword [rsi], rax
mov rdx, rsi
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], rax
call fcn.180106bc0
test r13, r13
jne 0x1800b09e1
xor eax, eax
add rsp, 0x28
pop r13
pop r12
pop rsi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov rcx, r13
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
call fcn.1800a75d0
mov r14, rax
call fcn.180106220
mov rcx, qword [0x18018f080]
mov r15, rax
mov dword [rax], ebx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ebx
mov qword [rax + 0x18], rbx
test r12, r12
je 0x1800b0aaf
lea rdx, [0x180163454]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
jne 0x1800b0aaf
cmp byte [r12], 0x73
jne 0x1800b0a51
cmp byte [r12 + 1], 0x74
jne 0x1800b0a51
cmp byte [r12 + 2], 0x64
je 0x1800b0aaf
mov rdx, r12
mov rcx, r14
call qword [r14 + 0x40]
test rax, rax
je 0x1800b0a83
mov edx, 0xffffffff
mov rcx, r12
call sym.tcl86t.dll_hcl_NewStringObj
mov r8, rax
mov rdx, r15
mov rcx, r13
call sym.tcl86t.dll_hcl_ListObjAppendElement
test eax, eax
jne 0x1800b0b74
mov rdx, r15
mov rcx, r13
call sym.tcl86t.dll_hcl_SetObjResult
xor eax, eax
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r13
pop r12
pop rsi
pop rbx
ret
mov edx, dword [r14 + 0x28]
cmp ebx, edx
jge 0x1800b0a83
mov rax, qword [r14]
movsxd rcx, ebx
inc ebx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1800b0ab3
mov rdi, qword [rax]
nop dword [rax + rax]
mov rax, qword [rax + 0x18]
mov rbp, qword [rax]
mov rax, qword [rbp + 0xc8]
cmp rax, qword [rsi + 0x10]
jne 0x1800b0aed
lea rbp, str.stdin
jmp 0x1800b0b0f
cmp rax, qword [rsi + 0x20]
jne 0x1800b0afc
lea rbp, str.stdout
jmp 0x1800b0b0f
cmp rax, qword [rsi + 0x30]
jne 0x1800b0b0b
lea rbp, str.stderr
jmp 0x1800b0b0f
mov rbp, qword [rbp]
test r12, r12
je 0x1800b0b26
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call sym.tcl86t.dll_hcl_StringCaseMatch
test eax, eax
je 0x1800b0b45
mov edx, 0xffffffff
mov rcx, rbp
call sym.tcl86t.dll_hcl_NewStringObj
mov r8, rax
mov rdx, r15
mov rcx, r13
call sym.tcl86t.dll_hcl_ListObjAppendElement
test eax, eax
jne 0x1800b0b74
test rdi, rdi
jne 0x1800b0b69
mov edx, dword [r14 + 0x28]
nop
cmp ebx, edx
jge 0x1800b0a83
mov rax, qword [r14]
movsxd rcx, ebx
inc ebx
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x1800b0b50
mov rax, rdi
mov rdi, qword [rdi]
jmp 0x1800b0ad0
mov ecx, dword [r15]
lea eax, [rcx - 1]
mov dword [r15], eax
cmp ecx, 1
jg 0x1800b0bcb
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x1800b0ba4
cmp qword [rax + 8], 0
je 0x1800b0ba4
mov rcx, r15
call sym.tcl86t.dll_hclFreeObj
mov eax, 1
jmp 0x1800b0a90
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x1800b0bbb
cmp rcx, qword [0x18018f080]
je 0x1800b0bbb
call sym.tcl86t.dll_hclpFree
mov rcx, r15
mov dword [r15 + 0x10], 0xffffffff
call fcn.1801063c0
mov eax, 1
jmp 0x1800b0a90
mov edx, 0x48
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3