Function at 0x17e6ae0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, rdx
mov rbx, rcx
xor r12d, r12d
mov qword [rax - 0x80], r12
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17e6b30
lea rdi, [rax + 0x20]
jmp 0x17e6b33
mov rdi, r12
mov qword [rsp + 0x38], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rbx + 0x168]
mov rcx, rbx
test rdx, rdx
cmovne rcx, rdx
movzx ecx, byte [rcx + 0x248]
shr cl, 1
test cl, 1
je 0x17e703b
mov rax, rbx
test rdx, rdx
cmovne rax, rdx
movzx eax, byte [rax + 0x248]
shr al, 3
test al, 1
jne 0x17e703b
test rdx, rdx
cmovne rbx, rdx
movzx eax, byte [rbx + 0x248]
shr al, 2
test al, 1
jne 0x17e703b
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], r12
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
lea r13, [0x0104ef20]
mov qword [rsp + 0x50], r13
lea r14, [0x0109b930]
mov qword [rsp + 0x68], r14
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, 0x104
jge 0x17e6cae
lea r8, [0x017e7088]
mov edx, 0xfe5
lea rcx, [0x01580f90]
call fcn.017eea00
mov ebx, eax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x78]
jmp 0x17e7062
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rbx, ecx
add rbx, 0x20a
mov rcx, qword [rdi + 0x30]
cmp rbx, r8
jae 0x17e6ff9
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17e6ff9
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0xc0]
call fcn.0116a950
nop
mov r9, qword [rdi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x17e6d6f
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
mov rcx, qword [0x039f11b0]
cmp qword [rcx + 0xb90], 0
je 0x17e6dca
lea r8, [rsp + 0xc0]
xor edx, edx
call fcn.017cf920
mov ebx, eax
test eax, eax
jns 0x17e6dca
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x17e6df3
test byte [rax - 5], 0x40
jne 0x17e6de3
movsxd rcx, dword [rax - 4]
jmp 0x17e6dee
mov rcx, qword [rax]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, eax
shr rcx, 1
jne 0x17e6e51
mov r9d, 7
xor r8d, r8d
lea rdx, [0x0156e0c0]
lea rcx, [rsp + 0xc0]
call fcn.0118a4d0
mov ebx, eax
test eax, eax
cmovns ebx, r12d
test ebx, ebx
jns 0x17e6e51
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
mov r9b, 1
movzx r8d, r9b
movzx edx, r9b
lea rcx, [rsp + 0xc0]
call fcn.017d5690
mov ebx, eax
test eax, eax
jns 0x17e6ea4
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
test eax, eax
je 0x17e6efb
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, 0xc1140016
call fcn.0124e580
mov ebx, eax
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
lea rcx, [rsp + 0xc0]
call fcn.017e5470
mov ebx, eax
test eax, eax
jns 0x17e6f43
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
mov r8, r12
cmp qword [rbp], r12
jne 0x17e6f6d
mov rax, qword [rsp + 0xc0]
mov cl, byte [rax - 5]
and ecx, 7
lea rdx, [rcx + rcx*2]
movzx ecx, byte [r15 + rdx*2 + 0x173e9a]
sub rax, rcx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r12d
test ebx, ebx
jns 0x17e6fc4
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
lea rcx, [rsp + 0xc0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, r12d
jmp 0x17e7064
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, eax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e7062
lea r8, [0x017e7088]
mov edx, 0xfe3
lea rcx, [0x01580f90]
call fcn.017eea00
mov ebx, eax
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret