Function at 0x17da2d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rbp, rdx
mov r12d, ecx
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17da31d
lea rdi, [rax + 0x20]
jmp 0x17da320
mov rdi, r13
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 rax, [rbx + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
lea r14, [0x0104ef20]
mov qword [rsp + 0x50], r14
lea r15, [0x0109b930]
mov qword [rsp + 0x68], r15
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, 0x2000
jge 0x17da442
lea r8, [0x017da710]
mov edx, 0x153e
lea rcx, [0x01580f90]
call fcn.017eea00
mov ebx, eax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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
jmp 0x17da6f4
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, 0x4002
mov rcx, qword [rdi + 0x30]
cmp rbx, r8
jae 0x17da6b1
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
mov r11, rax
test rax, rax
je 0x17da6b1
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0xe0]
call fcn.0116a950
nop
mov r9, qword [rdi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xe0]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x17da506
lea rcx, [rsp + 0xe0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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
jmp 0x17da6f4
test rbp, rbp
jne 0x17da5c5
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.01804d70
test eax, eax
js 0x17da67b
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x17da54e
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17da541
test cl, 0x20
je 0x17da544
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
jmp 0x17da556
mov qword [rsp + 0xe8], r13
mov rcx, qword [0x039f11b0]
add rcx, 0x98
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, r12d
mov edx, 0xffffffff
call fcn.01805140
mov ebx, eax
test eax, eax
jns 0x17da67b
lea rcx, [rsp + 0xe0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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
jmp 0x17da6f4
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0xe0]
mov rcx, rbp
call fcn.017f9860
test eax, eax
js 0x17da67b
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x17da60b
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17da5fe
test cl, 0x20
je 0x17da601
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
jmp 0x17da613
mov qword [rsp + 0xe8], r13
mov rcx, qword [0x039f11b0]
add rcx, 0x98
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, r12d
mov edx, 0xffffffff
call fcn.01805140
mov ebx, eax
test eax, eax
jns 0x17da67b
lea rcx, [rsp + 0xe0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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
jmp 0x17da6f4
lea rcx, [rsp + 0xe0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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, r13d
jmp 0x17da6f4
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, eax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
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, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret