Function at 0x17cb600
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0xd88]
test rcx, rcx
je 0x17cb611
jmp 0x2b89410
xor eax, eax
ret
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, rcx
xor r14d, r14d
mov qword [rax - 0x60], r14
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x2b8945a
lea rbp, [rax + 0x20]
jmp 0x2b8945d
mov rbp, r14
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r13, rax
mov qword [rsp + 0x40], rax
lea rdi, fcn.0116a850
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea r15, fcn.0116a850
mov qword [rsp + 0x48], r15
mov rbx, qword [rbp + 0x10]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x38]
mov esi, eax
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b894cd
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov rax, r14
mov qword [rsp + 0x60], rax
mov rcx, r14
mov qword [rsp + 0x68], rcx
test esi, esi
js 0x2b894ec
mov rcx, rbx
mov qword [rsp + 0x68], rbx
mov esi, r14d
test esi, esi
jns 0x2b8955f
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x38]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b8951c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call qword [fcn.01165d68]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b89550
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
jmp 0x2b89819
mov esi, r14d
mov rbx, qword [rsp + 0x58]
cmp rbx, 1
jge 0x2b895e9
mov rax, qword [rcx]
mov r8d, 8
mov rdx, qword [rsp + 0x50]
call qword [rax + 0x20]
test rax, rax
jne 0x2b895a3
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
jmp 0x2b895b1
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x50], rax
test esi, esi
js 0x2b896a5
mov r8d, 1
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + SafeArrayCopy]
mov esi, eax
test eax, eax
js 0x2b896a5
mov qword [rsp + 0x58], 1
jmp 0x2b896a5
cmp rbx, 1
jle 0x2b896a5
lea rdi, [rbx - 1]
cmp rdi, 1
jl 0x2b89649
nop
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rdi*8]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov esi, eax
test eax, eax
js 0x2b89640
mov rbx, qword [rsp + 0x58]
sub rbx, 1
mov qword [rsp + 0x58], rbx
sub rdi, 1
cmp rdi, 1
jge 0x2b89600
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
jmp 0x2b89649
lea rdi, fcn.0116a850
jmp 0x2b896a5
mov esi, r14d
cmp rbx, rax
jg 0x2b89684
movabs rax, 0xfffffffffffffff
cmp rbx, rax
jae 0x2b8969e
mov rax, qword [rcx]
lea r8, [rbx*8]
mov rdx, qword [rsp + 0x50]
call qword [rax + 0x20]
test rax, rax
je 0x2b8969e
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rax
jmp 0x2b8969e
lea r8, [0x01596030]
mov edx, 0xfe
lea rcx, [0x0156e2c0]
call fcn.017eea00
mov esi, eax
lea rdi, fcn.0116a850
test esi, esi
jns 0x2b89718
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x38]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b896d5
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call qword [fcn.01165d68]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b89709
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
jmp 0x2b89819
mov rax, qword [0x03e602e8]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.02b872b0
mov esi, eax
test eax, eax
jns 0x2b897ac
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
call qword [rdx + 0x38]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b8976c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call qword [fcn.01165d68]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b897a0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
jmp 0x2b89819
mov esi, r14d
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x38]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b897db
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call qword [fcn.01165d68]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x2b8980f
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret