Function at 0x16c3490
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x160], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rdi, r9
mov r12, rdx
movzx ebp, cl
xor r14d, r14d
mov qword [rax - 0x48], r14
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x16c34e6
lea rbx, [rax + 0x20]
jmp 0x16c34e9
mov rbx, r14
mov qword [rsp + 0x150], rbx
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0x158], rax
test bpl, bpl
je 0x16c3541
test rdi, rdi
je 0x16c3541
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1000001
call fcn.0124e580
mov edi, eax
mov rcx, qword [rbx + 0x30]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x78]
jmp 0x16c41b8
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea r15, [0x01000000]
lea rax, [r15 + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
lea rbp, [0x0104ef20]
mov qword [rsp + 0x50], rbp
lea r13, [0x0109b930]
mov qword [rsp + 0x68], r13
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.0116cfa0
xor edx, edx
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x180]
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 3
jge 0x16c3649
lea r8, [0x016c41e0]
mov edx, 0x32a
lea rcx, [0x0156f410]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 8
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x16c4178
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x16c4178
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0x30]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x16c36fe
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.0118c100
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x100
jge 0x16c37be
lea r8, [0x016c41e0]
mov edx, 0x32b
lea rcx, [0x0156f410]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x202
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x16c410d
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x16c410d
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], rdi
lea rcx, [rsp + 0x38]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x16c38a8
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.0118c100
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x100
jge 0x16c3995
lea r8, [0x016c41e0]
mov edx, 0x32c
lea rcx, [0x0156f410]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x202
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x16c4076
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x16c4076
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], rdi
lea rcx, [rsp + 0x40]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x16c3aac
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.0118c100
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x100
jge 0x16c3bc2
lea r8, [0x016c41e0]
mov edx, 0x32d
lea rcx, [0x0156f410]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x202
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x16c3fb6
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x16c3fb6
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x148], rdi
lea rcx, [rsp + 0x48]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x48]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x16c3d02
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.0122c660
mov edi, eax
test eax, eax
jns 0x16c3dda
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x16c3eeb
test byte [rdx - 5], 0x40
jne 0x16c3df4
movsxd rax, dword [rdx - 4]
jmp 0x16c3e04
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov eax, eax
mov rdx, qword [rsp + 0x48]
shr rax, 1
je 0x16c3eeb
test rdx, rdx
je 0x16c3e23
movzx eax, byte [rdx - 5]
test al, 0x40
jne 0x16c3e1e
test al, 0x20
je 0x16c3e26
mov rdx, qword [rdx]
jmp 0x16c3e26
mov rdx, r14
lea rcx, [0x0157e150]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x16c3eeb
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, r14d
jmp 0x16c41ba
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc11e0017
call fcn.0124e580
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x128], r13
lea rcx, [rsp + 0x110]
call fcn.0116d120
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xd0]
call fcn.0116d120
nop
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa8], r13
lea rcx, [rsp + 0x90]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x16c41b8
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d