Function at 0x169f170
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov rbp, rdx
mov r13, rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x169f1bf
lea r15, [rax + 0x20]
jmp 0x169f1c2
mov r15, rsi
mov qword [rsp + 0x70], r15
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r14, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xf8], rsi
lea rbx, [r13 + 0x468]
mov qword [rsp + 0xf8], rbx
mov rcx, rbx
call fcn.0109bfe0
nop
lea rcx, [rsp + 0x30]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x48], rax
lea rcx, [0x01000000]
lea rax, [rcx + 0x4f0d0]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea r12, [0x0104ef20]
mov qword [rsp + 0x30], r12
lea rdi, [0x0109b930]
mov qword [rsp + 0x48], rdi
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0116cfa0
xor edx, edx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x180]
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
lea r9, [0x01000000]
movzx ecx, byte [r9 + rax*2 + 0x173e9d]
movzx eax, byte [r9 + 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 0x169f314
lea r8, [0x0169fb50]
mov edx, 0x5dc
lea rcx, [0x0156eed0]
call fcn.017eea00
mov esi, eax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f302
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
lea rax, [rdx + rdx*2]
movzx ecx, byte [r9 + rax*2 + 0x173e9d]
movzx eax, byte [r9 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x202
mov rcx, qword [r15 + 0x30]
cmp rdi, r8
jae 0x169fad2
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x169fad2
mov rcx, qword [r15 + 0x28]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0xf0]
call fcn.0116a950
nop
mov r9, qword [r15 + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.0118a2d0
mov esi, eax
test eax, eax
jns 0x169f3e5
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
mov qword [rsp + 0x30], r12
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f3d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov rax, qword [rbp]
lea r8, [rsp + 0xf0]
mov edx, 0x14c
mov rcx, rbp
call qword [rax + 0xc0]
mov esi, eax
test eax, eax
jns 0x169f450
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
mov qword [rsp + 0x30], r12
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f43e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov rax, qword [0x039f11b0]
lea r12, [r13 + 0x460]
mov qword [rsp + 0x80], r12
mov r9, qword [rax + 0x40]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xf0]
mov rcx, r12
call fcn.0134b3a0
cmp dword [rsp + 0xe0], 0
jne 0x169f4e2
xor ebp, ebp
mov esi, ebp
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f4d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov byte [r13 + 0x430], 0
xor ebp, ebp
mov rdi, rbp
cmp qword [r13 + 0x448], rbp
jle 0x169f524
nop
nop
mov rax, qword [r13 + 0x440]
lea rcx, [rax + rdi*8]
mov rdx, qword [r13 + 0xa8]
call fcn.0168f240
add rdi, 1
cmp rdi, qword [r13 + 0x448]
jl 0x169f500
lea rcx, [r13 + 0x438]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x169f589
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f577
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x169f9e4
test byte [rax - 5], 0x40
jne 0x169f5a6
movsxd rcx, dword [rax - 4]
jmp 0x169f5b9
mov rcx, qword [rax]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, eax
mov rax, qword [rsp + 0xf0]
shr rcx, 1
je 0x169f9e4
mov rax, qword [0x039f11b0]
mov r8, qword [rax + 0x40]
mov rdx, qword [0x03a6c818]
lea rcx, [rsp + 0xf0]
call fcn.013b3bf0
test eax, eax
jne 0x169f5fa
mov byte [r13 + 0x430], 1
mov rax, qword [rsp + 0xf0]
jmp 0x169f9e4
mov rbp, qword [rsp + 0xf0]
test rbp, rbp
je 0x169f61c
movzx eax, byte [rbp - 5]
test al, 0x40
jne 0x169f613
test al, 0x20
je 0x169f617
mov rbp, qword [rbp]
xor r14d, r14d
jmp 0x169f622
xor r14d, r14d
mov rbp, r14
mov rdi, rbp
movzx eax, word [rbp]
test ax, ax
jne 0x169f637
cmp word [rdi], ax
je 0x169f7ac
cmp ax, 0x2c
je 0x169f65a
cmp ax, 0x3b
je 0x169f65a
cmp ax, 0x20
je 0x169f65a
cmp ax, 9
je 0x169f65a
test ax, ax
je 0x169f65a
add rbp, 2
jmp 0x169f625
mov r12, rbp
sub r12, rdi
sar r12, 1
je 0x169f771
mov rcx, qword [r13 + 0xa8]
mov qword [rsp + 0x90], rcx
mov rax, qword [rcx]
mov edx, 8
call qword [rax + SafeArrayCopy]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x169f69e
mov rcx, rax
call fcn.0116a950
nop
jmp 0x169f6a1
mov rsi, r14
mov qword [rsp + 0xe0], rsi
test rsi, rsi
je 0x169f972
mov rax, qword [0x039f11b0]
mov r8, qword [rax + 0x40]
mov rdx, qword [r13 + 0xb0]
mov rcx, rsi
call fcn.01174500
mov esi, eax
test eax, eax
js 0x169f91e
mov rcx, qword [r15 + 0x30]
lea rsi, [r12 + 1]
movabs rax, 0x3fffffffffffffff
cmp rsi, rax
jae 0x169f8ab
mov rax, qword [rcx]
lea rdx, [rsi + rsi]
call qword [rax + SafeArrayCopy]
mov r14, rax
test rax, rax
je 0x169f8ab
mov r9, r12
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.MSVCR80.dll_wcsncpy_s]
mov word [r14 + r12*2], 0
mov r9d, 7
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0xe0]
call fcn.0118a4d0
mov esi, eax
test eax, eax
mov r14d, 0
cmovns esi, r14d
test esi, esi
js 0x169f857
lea r8, [rsp + 0xe0]
mov rdx, qword [r13 + 0x448]
lea rcx, [r13 + 0x438]
call fcn.01699730
mov esi, eax
test eax, eax
js 0x169f7c8
mov rdi, rbp
movzx eax, word [rbp]
test ax, ax
je 0x169f7a4
nop
cmp ax, 0x2c
je 0x169f798
cmp ax, 0x3b
je 0x169f798
cmp ax, 0x20
je 0x169f798
cmp ax, 9
jne 0x169f7a4
add rdi, 2
mov ax, word [rdi]
test ax, ax
jne 0x169f780
mov rbp, rdi
jmp 0x169f625
mov rax, qword [rsp + 0xf0]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
xor ebp, ebp
jmp 0x169f9e4
mov rdi, qword [r13 + 0xa8]
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x169f803
mov qword [rsp + 0x88], rcx
call fcn.0116a920
mov r11, qword [rdi]
mov rdx, qword [rsp + 0xe0]
mov rcx, rdi
call qword [r11 + 0x28]
mov qword [rsp + 0xe0], r14
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f843
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x78]
jmp 0x169fb27
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f897
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x78]
jmp 0x169fb27
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor ebp, ebp
mov edx, ebp
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f90a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x78]
jmp 0x169fb27
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f95e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x78]
jmp 0x169fb27
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169f9d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x78]
jmp 0x169fb27
mov r8, rbp
cmp qword [r12], 0
jne 0x169fa0e
mov dl, byte [rax - 5]
and edx, 7
lea r8, [rdx + rdx*2]
lea rcx, [0x01000000]
movzx edx, byte [rcx + r8*2 + 0x173e9a]
sub rax, rdx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0xf0]
mov rcx, r12
call fcn.01174350
mov esi, eax
test eax, eax
cmovns esi, ebp
test esi, esi
jns 0x169fa81
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169fa6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov esi, ebp
lea rcx, [rsp + 0xf0]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x30], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169fac3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
jmp 0x169fb27
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
mov qword [rsp + 0x30], r12
lea rax, [0x0109b930]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.0116d120
nop
test rbx, rbx
je 0x169fb1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x78]
mov eax, esi
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret