Function at 0x16cb7c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rsi, rcx
xor r13d, r13d
mov qword [rsp + 0xa0], r13
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x16cb807
lea rbp, [rax + 0x20]
jmp 0x16cb80a
mov rbp, r13
mov qword [rsp + 0xa0], rbp
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r12, rax
mov qword [rsp + 0xa8], rax
lea rax, [0x012ee778]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a950
nop
mov qword [rsp + 0x50], r13
mov rdx, qword [rsi + 0x10]
mov qword [rsp + 0x38], rdx
lea r14, [0x01173e98]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x16cb88e
cmp eax, 1
je 0x16cb88e
lea r8, [0x0156e620]
mov edx, 0x14d
lea rcx, [0x0156df60]
call fcn.017eea00
mov edi, eax
jmp 0x16cb8f4
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
lea rcx, [rsp + 0x48]
call fcn.01174500
mov edi, eax
test eax, eax
js 0x16cb8f4
mov r8, r13
cmp qword [rsp + 0x48], r13
jne 0x16cb8c9
mov rcx, qword [rsi + 0x20]
mov al, byte [rcx - 5]
and eax, 7
lea rax, [rax + rax*2]
movzx eax, byte [r14 + rax*2 + 2]
sub rcx, rax
mov r8, qword [rcx]
mov r9d, 7
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x48]
call fcn.01174350
mov edi, eax
test eax, eax
cmovns edi, r13d
test edi, edi
js 0x16cb8f4
mov dword [rsp + 0x40], 1
mov edi, r13d
test edi, edi
jns 0x16cb914
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov qword [rsp + 0x100], r13
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x16cb961
test byte [rcx - 5], 0x40
jne 0x16cb931
movsxd rax, dword [rcx - 4]
jmp 0x16cb93c
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov eax, eax
shr rax, 1
je 0x16cb961
mov r8, qword [rsi + 0x28]
test r8, r8
je 0x16cb95c
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x16cb957
test al, 0x20
je 0x16cb964
mov r8, qword [r8]
jmp 0x16cb964
mov r8, r13
jmp 0x16cb964
mov r8, r13
lea r9, [rsp + 0x100]
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.01607bd0
mov edi, eax
test eax, eax
jns 0x16cb9b0
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cb994
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx]
call qword [rax + 0xd8]
cmp eax, 0x400
jne 0x16cbd32
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x16cb9f5
test byte [rcx - 5], 0x40
jne 0x16cb9e1
movsxd rax, dword [rcx - 4]
jmp 0x16cb9ec
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov eax, eax
shr rax, 1
jne 0x16cbd32
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.0118c100
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [r14 + rax*2 + 5]
movzx eax, byte [r14 + rax*2 + 4]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x104
jge 0x16cbaaf
lea r8, [0x016cc0d0]
mov edx, reloc.OLEAUT32.dll_VarBstrFromDec
lea rcx, [0x0156f410]
call fcn.017eea00
mov edi, eax
lea rax, [0x0104ef20]
mov qword [rsp + 0x60], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call fcn.0116d120
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cba93
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
lea rax, [rdx + rdx*2]
movzx ecx, byte [r14 + rax*2 + 5]
movzx eax, byte [r14 + rax*2 + 4]
add ecx, eax
movsxd rbx, ecx
add rbx, 0x20a
mov rcx, qword [rbp + 0x30]
cmp rbx, r8
jae 0x16cbcc1
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x16cbcc1
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], rbx
lea rcx, [rsp + 0x110]
call fcn.0116a950
nop
mov r9, qword [rbp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x110]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x16cbb9c
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x60], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call fcn.0116d120
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbb80
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x88]
test rcx, rcx
je 0x16cbc28
mov rax, qword [rcx]
lea rdx, [rsp + 0x110]
call qword [rax + 0x1b0]
mov edi, eax
test eax, eax
jns 0x16cbc28
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x60], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call fcn.0116d120
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbc0c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov r8, qword [rsp + 0x110]
test r8, r8
je 0x16cbc47
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x16cbc42
test al, 0x20
je 0x16cbc4a
mov r8, qword [r8]
jmp 0x16cbc4a
mov r8, r13
xor r9d, r9d
lea rdx, [0x0156ea20]
mov ecx, 0xc1260002
call fcn.017ee830
mov edi, eax
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x60], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call fcn.0116d120
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbca5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
lea rax, [0x0104ef20]
mov qword [rsp + 0x60], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call fcn.0116d120
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbd16
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov qword [rsp + 0x110], r13
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax + 0x20]
call fcn.013492d0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.0134c2b0
mov edi, eax
test eax, eax
jns 0x16cbdb1
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x16cbd81
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbd95
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x110]
mov rcx, rbx
call fcn.01354590
mov edi, eax
test eax, eax
jns 0x16cbe0b
test rbx, rbx
je 0x16cbddb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbdef
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov qword [rsp + 0x108], r13
lea r8, [rsp + 0x108]
mov rdx, rbx
mov rcx, qword [rsp + 0x100]
call fcn.015e7c80
mov edi, eax
test eax, eax
jns 0x16cbe84
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cbe45
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cbe54
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbe68
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov rdx, qword [rsp + 0x108]
mov rcx, rsi
call fcn.016c20f0
mov edi, eax
test eax, eax
jns 0x16cbeed
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cbeae
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cbebd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbed1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov ecx, dword [rsi + 0x18]
sub ecx, 1
je 0x16cbfe9
sub ecx, 1
je 0x16cbf7c
cmp ecx, 1
jne 0x16cc057
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov rcx, rsi
call fcn.016c5f80
mov edi, eax
test eax, eax
jns 0x16cc057
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cbf3d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cbf4c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbf60
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov rdx, qword [rsp + 0x108]
mov rcx, rsi
call fcn.016c2340
mov edi, eax
test eax, eax
jns 0x16cc057
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cbfaa
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cbfb9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cbfcd
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov rcx, rsi
call fcn.016c31e0
mov edi, eax
test eax, eax
jns 0x16cc057
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cc01b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cc02a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cc03e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
jmp 0x16cc0a9
mov edi, r13d
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x16cc06e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x16cc07d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x16cc091
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, edi
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret