Function at 0x17d4290
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbp, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0xc0], r14
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d42f5
lea rbx, [rax + 0x20]
jmp 0x17d42f8
mov rbx, r14
mov qword [rsp + 0xc0], rbx
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0xc8], rax
mov word [rsp + 0xe0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xe2]
call sub.MSVCR80.dll_memset
mov r11, qword [rdi + 0x168]
mov rcx, rdi
test r11, r11
cmovne rcx, r11
movzx eax, byte [rcx + 0x248]
shr al, 2
test al, 1
je 0x17d4358
mov rcx, r14
jmp 0x17d435f
mov rcx, qword [rdi + 0x1e8]
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x17d43ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov ecx, 0xc1010000
call fcn.0124e580
mov edi, eax
mov rcx, qword [rbx + 0x30]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x78]
jmp 0x17d4949
lea rcx, [rsp + 0x40]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x58], rax
lea r15, [0x01000000]
lea rax, [r15 + 0x4f0d0]
mov qword [rsp + 0x40], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
lea r12, [0x0104ef20]
mov qword [rsp + 0x40], r12
lea r13, [0x0109b930]
mov qword [rsp + 0x58], r13
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.0116cfa0
xor edx, edx
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
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, 3
jge 0x17d44af
lea r8, [0x017d4978]
mov edx, 0xd43
lea rcx, [0x01580f90]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 8
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x17d4909
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17d4909
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0x30]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x17d455e
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.0118c100
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, 0x100
jge 0x17d461e
lea r8, [0x017d4978]
mov edx, 0xd44
lea rcx, [0x01580f90]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
lea rax, [rdx + rdx*2]
movzx ecx, byte [r15 + rax*2 + 0x173e9d]
movzx eax, byte [r15 + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x202
mov rcx, qword [rbx + 0x30]
cmp rdi, r8
jae 0x17d489e
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17d489e
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], rdi
lea rcx, [rsp + 0x38]
call fcn.0116a950
nop
mov r9, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x38]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x17d4708
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
mov word [rsp + 0x2e6], 0
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call fcn.0122c660
mov edi, eax
test eax, eax
jns 0x17d4792
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x17d47ae
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x17d47a9
test al, 0x20
je 0x17d47b1
mov r8, qword [r8]
jmp 0x17d47b1
mov r8, r14
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x17d47cc
movzx eax, byte [rdx - 5]
test al, 0x40
jne 0x17d47c7
test al, 0x20
je 0x17d47cf
mov rdx, qword [rdx]
jmp 0x17d47cf
mov rdx, r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, rbp
call fcn.0122c810
mov edi, eax
test eax, eax
jns 0x17d4840
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
mov edi, r14d
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], r13
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17d4949
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, edi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.01003340
mov rbx, qword [rsp + 0x350]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret