Function at 0x17e5470
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r12, rcx
xor r13d, r13d
mov qword [r11 - 0x268], r13
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17e54d5
lea rsi, [rax + 0x20]
jmp 0x17e54d8
mov rsi, r13
mov qword [rsp + 0xc0], rsi
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rbp, rax
mov qword [rsp + 0xc8], rax
mov rcx, qword [r12]
test rcx, rcx
je 0x17e551a
test byte [rcx - 5], 0x40
jne 0x17e550a
movsxd rdi, dword [rcx - 4]
jmp 0x17e5515
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edi, eax
shr rdi, 1
jmp 0x17e551d
mov rdi, r13
mov rbx, r13
test rdi, rdi
jne 0x17e553a
mov ebx, r13d
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov rcx, r12
call fcn.011740c0
cmp word [rax + rdi*2 - 2], 0x5c
jne 0x17e5594
nop
nop
add rbx, 1
sub rdi, 1
mov rcx, r12
call fcn.011740c0
cmp word [rax + rdi*2 - 2], 0x5c
je 0x17e5550
test rbx, rbx
jle 0x17e5594
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.012d2f30
mov ebx, eax
test eax, eax
jns 0x17e5594
mov rcx, qword [rsi + 0x30]
mov r8, qword [rcx]
mov rdx, rbp
call qword [r8 + 0x78]
jmp 0x17e5faf
lea rcx, [rsp + 0x40]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x58], rax
lea rbx, [0x01000000]
lea rax, [rbx + 0x4f0d0]
mov qword [rsp + 0x40], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea r14, [0x0104ef20]
mov qword [rsp + 0x40], r14
lea r15, [0x0109b930]
mov qword [rsp + 0x58], r15
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 [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 0x17e5697
lea r8, [0x017e5fe8]
mov edx, 0xdee
lea rcx, [0x01580f90]
call fcn.017eea00
mov ebx, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
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 [rsi + 0x30]
cmp rbx, r8
jae 0x17e5f6f
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17e5f6f
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x30]
call fcn.0116a950
nop
mov r9, qword [rsi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x17e5747
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
cmp rdi, 1
jl 0x17e5dd5
mov rax, qword [r12]
test rax, rax
je 0x17e5772
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17e576d
test cl, 0x20
jne 0x17e576d
mov rcx, rax
jmp 0x17e5775
mov rcx, qword [rax]
jmp 0x17e5775
mov rcx, r13
cmp word [rcx], 0x5c
jne 0x17e5dd5
cmp rdi, 2
jl 0x17e5815
test rax, rax
je 0x17e57a6
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17e57a1
test cl, 0x20
jne 0x17e57a1
mov rcx, rax
jmp 0x17e57a9
mov rcx, qword [rax]
jmp 0x17e57a9
mov rcx, r13
cmp word [rcx + 2], 0x5c
jne 0x17e5815
cmp rdi, 3
jl 0x17e5f3d
test rax, rax
je 0x17e57d2
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17e57cd
test cl, 0x20
je 0x17e57d5
mov rax, qword [rax]
jmp 0x17e57d5
mov rax, r13
cmp word [rax + 4], 0x3f
jne 0x17e5f3d
mov ebx, r13d
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov word [rsp + 0xe0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xe2]
call sub.MSVCR80.dll_memset
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]
lea rdi, [0x01000000]
movzx ecx, byte [rdi + rax*2 + 0x173e9d]
movzx eax, byte [rdi + 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 0x17e58f6
lea r8, [0x017e5fe8]
mov edx, 0xdfa
lea rcx, [0x01580f90]
call fcn.017eea00
mov ebx, eax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
lea rax, [rdx + rdx*2]
movzx ecx, byte [rdi + rax*2 + 0x173e9d]
movzx eax, byte [rdi + rax*2 + 0x173e9c]
add ecx, eax
movsxd rbx, ecx
add rbx, 8
mov rcx, qword [rsi + 0x30]
cmp rbx, r8
jae 0x17e5d67
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x17e5d67
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], rbx
lea rcx, [rsp + 0x38]
call fcn.0116a950
nop
mov r9, qword [rsi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x38]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x17e59db
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x17e5a6b
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc100000a
call fcn.0124e580
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xe0]
call fcn.0122c660
mov ebx, eax
test eax, eax
jns 0x17e5ae9
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov r9d, 7
xor r8d, r8d
lea rdx, [0x0156e9f8]
lea rcx, [rsp + 0x30]
call fcn.0118a4d0
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test ebx, ebx
jns 0x17e5b6a
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x17e5baa
test byte [rdx - 5], 0x40
jne 0x17e5b80
movsxd r8, dword [rdx - 4]
jmp 0x17e5b91
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
shr r8, 1
test rdx, rdx
je 0x17e5bad
movzx eax, byte [rdx - 5]
test al, 0x40
jne 0x17e5ba5
test al, 0x20
je 0x17e5bb0
mov rdx, qword [rdx]
jmp 0x17e5bb0
mov r8, r13
mov rdx, r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
call fcn.0119ad40
mov ebx, eax
test eax, eax
jns 0x17e5c28
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.012859b0
mov ebx, eax
test eax, eax
jns 0x17e5c99
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov r8, r13
cmp qword [r12], r13
jne 0x17e5cc0
mov rax, qword [rsp + 0x30]
mov dl, byte [rax - 5]
and edx, 7
lea r8, [rdx + rdx*2]
movzx edx, byte [rdi + r8*2 + 0x173e9a]
sub rax, rdx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test ebx, ebx
jns 0x17e5d3a
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
jmp 0x17e5f3d
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 + 0x80], r14
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x80]
call fcn.0116d120
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov r9d, 7
xor r8d, r8d
lea rdx, [0x0156e9f8]
lea rcx, [rsp + 0x30]
call fcn.0118a4d0
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test ebx, ebx
jns 0x17e5e2d
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov rcx, qword [r12]
test rcx, rcx
je 0x17e5e53
test byte [rcx - 5], 0x40
jne 0x17e5e42
movsxd r8, dword [rcx - 4]
jmp 0x17e5e4e
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov r8d, eax
shr r8, 1
jmp 0x17e5e56
mov r8, r13
mov rdx, qword [r12]
test rdx, rdx
je 0x17e5e70
movzx eax, byte [rdx - 5]
test al, 0x40
jne 0x17e5e6b
test al, 0x20
je 0x17e5e73
mov rdx, qword [rdx]
jmp 0x17e5e73
mov rdx, r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
call fcn.0119ad40
mov ebx, eax
test eax, eax
jns 0x17e5ec2
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov r8, r13
cmp qword [r12], r13
jne 0x17e5eef
mov rax, qword [rsp + 0x30]
mov cl, byte [rax - 5]
and ecx, 7
lea rdx, [rcx + rcx*2]
lea rdi, [0x01000000]
movzx ecx, byte [rdi + rdx*2 + 0x173e9a]
sub rax, rcx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test ebx, ebx
jns 0x17e5f3d
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
mov ebx, r13d
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x17e5faf
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 + 0x40], r14
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.0116d120
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
mov eax, ebx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.01003340
lea r11, [rsp + 0x300]
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