Function at 0x17e89b0
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 r12, rdx
mov rbp, rcx
xor r15d, r15d
mov qword [rax - 0x80], r15
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17e8a00
lea rdi, [rax + 0x20]
jmp 0x17e8a03
mov rdi, r15
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 rcx, qword [rbp + 0x168]
mov rax, rbp
test rcx, rcx
cmovne rax, rcx
movzx eax, byte [rax + 0x248]
shr al, 1
test al, 1
je 0x17e9059
mov rax, rbp
test rcx, rcx
cmovne rax, rcx
movzx eax, byte [rax + 0x248]
shr al, 2
test al, 1
jne 0x17e9059
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea rbx, [0x01000000]
lea rax, [rbx + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], r15
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 [rbx + rax*2 + 0x173e9d]
movzx eax, byte [rbx + 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 0x17e8b61
lea r8, [0x017e90a8]
mov edx, 0x1065
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 rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17e9080
lea rax, [rdx + rdx*2]
movzx ecx, byte [rbx + rax*2 + 0x173e9d]
movzx eax, byte [rbx + rax*2 + 0x173e9c]
add ecx, eax
movsxd rbx, ecx
add rbx, 0x20a
mov rcx, qword [rdi + 0x30]
cmp rbx, r8
jae 0x17e9017
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
mov r11, rax
test rax, rax
je 0x17e9017
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r15
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 0x17e8c23
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 0x17e9080
mov rcx, qword [0x039f11b0]
cmp qword [rcx + 0xb90], 0
je 0x17e8c81
lea r8, [rsp + 0xc0]
mov edx, 3
call fcn.017cf920
mov ebx, eax
test eax, eax
jns 0x17e8c81
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 0x17e9080
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x17e8e15
test byte [rax - 5], 0x40
jne 0x17e8c9e
movsxd rcx, dword [rax - 4]
jmp 0x17e8ca9
mov rcx, qword [rax]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, eax
shr rcx, 1
je 0x17e8e15
mov r9b, 1
movzx r8d, r9b
movzx edx, r9b
lea rcx, [rsp + 0xc0]
call fcn.017d5690
mov ebx, eax
test eax, eax
jns 0x17e8d05
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 0x17e9080
test eax, eax
jne 0x17e8e15
lea rcx, [rsp + 0xc0]
call fcn.017e5470
mov ebx, eax
test eax, eax
jns 0x17e8d55
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 0x17e9080
mov r8, r15
cmp qword [r12], r15
jne 0x17e8d85
mov rax, qword [rsp + 0xc0]
mov cl, byte [rax - 5]
and ecx, 7
lea rdx, [rcx + rcx*2]
lea rcx, [0x01000000]
movzx ecx, byte [rcx + rdx*2 + 0x173e9a]
sub rax, rcx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0xc0]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r15d
test ebx, ebx
jns 0x17e8ddc
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 0x17e9080
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 r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x78]
mov eax, r15d
jmp 0x17e9082
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.012cebe0
mov ebx, eax
test eax, eax
jns 0x17e8e5f
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 0x17e9080
mov rax, qword [rbp + 0x168]
mov rcx, rbp
test rax, rax
cmovne rcx, rax
movzx eax, byte [rcx + 0x248]
shr al, 3
test al, 1
jne 0x17e8ec8
mov rdx, r12
mov rcx, rbp
call fcn.017e6ae0
mov ebx, eax
test eax, eax
jns 0x17e8fe2
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 0x17e9080
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call fcn.017d4290
mov ebx, eax
test eax, eax
jns 0x17e8f13
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 0x17e9080
lea rcx, [rsp + 0xc0]
call fcn.017e5470
mov ebx, eax
test eax, eax
jns 0x17e8f5b
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 0x17e9080
mov r8, r15
cmp qword [r12], r15
jne 0x17e8f8b
mov rax, qword [rsp + 0xc0]
mov cl, byte [rax - 5]
and ecx, 7
lea rdx, [rcx + rcx*2]
lea rcx, [0x01000000]
movzx ecx, byte [rcx + rdx*2 + 0x173e9a]
sub rax, rcx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0xc0]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r15d
test ebx, ebx
jns 0x17e8fe2
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 0x17e9080
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, r15d
jmp 0x17e9082
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
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 0x17e9080
lea r8, [0x017e90a8]
mov edx, 0x1063
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