Function at 0x17577a0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r15, r8
mov rdi, rdx
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17577f1
lea rbp, [rax + 0x20]
jmp 0x17577f4
mov rbp, r13
mov qword [rsp + 0x58], rbp
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r12, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x30], r13
mov rax, qword [0x039f11b0]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x178]
mov rcx, qword [rax + 0xb60]
call fcn.013db4d0
mov esi, eax
test eax, eax
jns 0x1757875
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x175784f
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757863
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov qword [rsp + 0x38], r13
mov r8d, 4
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x38]
call fcn.013a8820
mov esi, eax
test eax, eax
jns 0x17578da
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x17578b4
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x17578c8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
lea r14, [fcn.013d7f00]
mov qword [rsp + 0x20], r14
lea r9, [fcn.01285da0]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.011885f0
nop
mov rax, qword [rdi]
test rax, rax
je 0x175791f
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x175791a
test cl, 0x20
je 0x1757922
mov rax, qword [rax]
jmp 0x1757922
mov rax, r13
lea rsi, [rax + 2]
mov dx, VarDateFromDisp
mov rcx, rsi
call qword [sym.imp.MSVCR80.dll_wcschr]
mov rdi, rax
mov rbx, r13
nop
nop
mov rcx, rbx
test rbx, rbx
je 0x175796d
sub rcx, 1
je 0x1757966
sub rcx, 1
je 0x175795f
cmp rcx, 1
jne 0x17579cb
lea edx, [rcx + 3]
jmp 0x1757970
mov edx, 3
jmp 0x1757970
mov edx, 2
jmp 0x1757970
mov rdx, r13
add rbx, 1
test rdi, rdi
je 0x1757aa1
lea rcx, [rsp + rdx*8 + 0x80]
mov r8, rdi
sub r8, rsi
sar r8, 1
mov dword [rsp + 0x20], 7
mov r9, qword [rbp + 0x28]
mov rdx, rsi
call fcn.0118a560
mov esi, eax
test eax, eax
cmovns esi, r13d
test esi, esi
js 0x1757a45
lea rsi, [rdi + 2]
mov dx, VarDateFromDisp
mov rcx, rsi
call qword [sym.imp.MSVCR80.dll_wcschr]
mov rdi, rax
jmp 0x1757940
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1000001
call fcn.0124e580
mov esi, eax
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757a1f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757a33
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757a7b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757a8f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rax, [rsp + rdx*8 + 0x80]
mov dword [rsp + 0x20], 7
mov r9, qword [rbp + 0x28]
lea r8, [rcx - 1]
mov rdx, rsi
mov rcx, rax
call fcn.0118a560
mov esi, eax
test eax, eax
cmovns esi, r13d
test esi, esi
jns 0x1757b3b
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757b15
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757b29
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
cmp rbx, 4
je 0x1757bbb
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1000001
call fcn.0124e580
mov esi, eax
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757b95
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757ba9
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], r13
mov r9b, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x178]
call fcn.02732750
mov esi, eax
test eax, eax
jns 0x1757c55
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757bf9
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757c2f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757c43
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0xd8]
cmp eax, 0x186b5
je 0x1757cf9
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1000001
call fcn.0124e580
mov esi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757c9d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov r9, r14
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757cd3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757ce7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov r13, qword [rsp + 0x40]
mov rax, qword [r13]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov r14, rax
xor esi, esi
mov rdi, rsi
mov qword [rsp + 0x50], rsi
mov rcx, qword [0x039fbf00]
test rcx, rcx
jne 0x1757d3f
mov r8b, 1
mov edx, 0x140
lea rcx, [0x039fbf00]
call fcn.01322e30
mov rcx, qword [0x039fbf00]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
mov edx, 0x140
call qword [rax + SafeArrayCopy]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1757d7d
mov rcx, rax
call fcn.012702d0
nop
mov dword [rbx + 0x138], esi
mov dword [rbx + 0x13c], esi
lea rax, [0x010a53b0]
mov qword [rbx], rax
jmp 0x1757d80
mov rbx, rsi
test rbx, rbx
jne 0x1757da4
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
jmp 0x1757db3
mov dword [rbx + 8], 1
mov rdi, rbx
mov qword [rsp + 0x50], rbx
test esi, esi
jns 0x1757e3b
test rdi, rdi
je 0x1757dca
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757ddb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757e15
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757e29
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
xor r8d, r8d
mov rdx, qword [r14 + 0x3d8]
mov rcx, rdi
call fcn.01331640
mov esi, eax
test eax, eax
jns 0x1757ed7
test rdi, rdi
je 0x1757e66
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757e77
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757eb1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757ec5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.016d15c0
mov esi, eax
test eax, eax
jns 0x1757f96
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1757f16
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rdi, rdi
je 0x1757f25
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757f36
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1757f70
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1757f84
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov r8d, 5
mov rdx, r15
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.016e23d0
mov esi, eax
test eax, eax
jns 0x1758045
test rbx, rbx
je 0x1757fc5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rdi, rdi
je 0x1757fd4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1757fe5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x175801f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1758033
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
test rbx, rbx
je 0x1758050
lea rcx, [rbx + 0x18]
jmp 0x1758053
mov rcx, r14
mov rax, qword [r13]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x30f
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rsp + 0x178]
mov rcx, r13
call qword [rax + 0x3f8]
mov esi, eax
test eax, eax
jns 0x1758114
test rbx, rbx
je 0x1758094
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rdi, rdi
je 0x17580a3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x17580b4
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x17580ee
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1758102
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
jmp 0x17581a1
mov esi, r14d
test rbx, rbx
je 0x1758126
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rdi, rdi
je 0x1758135
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1758146
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea r9, [fcn.013d7f00]
mov edx, 8
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x80]
call fcn.0119bd40
nop
lea rcx, [rsp + 0x38]
call fcn.01350100
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1758180
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x1758194
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
lea r11, [rsp + 0x130]
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