Function at 0x17e96b0
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 + 8], rbx
mov qword [rax + 0x10], 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 0x17e9700
lea rdi, [rax + 0x20]
jmp 0x17e9703
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
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea rbx, [0x01000000]
lea rcx, [rbx + 0x4f0d0]
mov qword [rsp + 0x50], rcx
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 0x17e9824
lea r8, [0x017e9d98]
mov edx, 0x1099
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 0x17e9d75
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 0x17e9d35
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17e9d35
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0xd0]
call fcn.0116a950
nop
mov r9, qword [rdi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x17e98e3
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov rcx, qword [0x039f11b0]
cmp qword [rcx + 0xb90], 0
je 0x17e9941
lea r8, [rsp + 0xd0]
mov edx, 2
call fcn.017cf920
mov ebx, eax
test eax, eax
jns 0x17e9941
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x17e9ad4
test byte [rax - 5], 0x40
jne 0x17e995e
movsxd rcx, dword [rax - 4]
jmp 0x17e9969
mov rcx, qword [rax]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, eax
shr rcx, 1
je 0x17e9ad4
mov r9b, 1
movzx r8d, r9b
movzx edx, r9b
lea rcx, [rsp + 0xd0]
call fcn.017d5690
mov ebx, eax
test eax, eax
jns 0x17e99c5
lea rcx, [rsp + 0xd0]
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 0x17e9d75
test eax, eax
jne 0x17e9ad4
lea rcx, [rsp + 0xd0]
call fcn.017e5470
mov ebx, eax
test eax, eax
jns 0x17e9a15
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov r8, r15
cmp qword [r12], r15
jne 0x17e9a45
mov rax, qword [rsp + 0xd0]
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 + 0xd0]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r15d
test ebx, ebx
jns 0x17e9a9c
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov ebx, r15d
lea rcx, [rsp + 0xd0]
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 0x17e9d75
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.012cebe0
mov ebx, eax
test eax, eax
jns 0x17e9b1e
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov rcx, qword [rbp + 0x168]
mov rax, rbp
test rcx, rcx
cmovne rax, rcx
movzx eax, byte [rax + 0x248]
shr al, 2
test al, 1
je 0x17e9b87
mov rdx, r12
mov rcx, rbp
call fcn.017e7510
mov ebx, eax
test eax, eax
jns 0x17e9d00
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov rax, rbp
test rcx, rcx
cmovne rax, rcx
movzx eax, byte [rax + 0x248]
shr al, 3
test al, 1
je 0x17e9cbd
lea rdx, [rsp + 0xd0]
mov rcx, rbp
call fcn.017d4290
mov ebx, eax
test eax, eax
jns 0x17e9bee
lea rcx, [rsp + 0xd0]
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 0x17e9d75
lea rcx, [rsp + 0xd0]
call fcn.017e5470
mov ebx, eax
test eax, eax
jns 0x17e9c36
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov r8, r15
cmp qword [r12], r15
jne 0x17e9c66
mov rax, qword [rsp + 0xd0]
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 + 0xd0]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r15d
test ebx, ebx
jns 0x17e9d00
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov rdx, r12
mov rcx, rbp
call fcn.017e6ae0
mov ebx, eax
test eax, eax
jns 0x17e9d00
lea rcx, [rsp + 0xd0]
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 0x17e9d75
mov ebx, r15d
lea rcx, [rsp + 0xd0]
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 0x17e9d75
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]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret