Function at 0x100007828
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x300
mov rax, qword [0x10000c110]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov eax, 0x67727473
lea rbp, [0x10000c794]
mov rsi, rcx
mov r13, r8
mov r12, rdx
xor edi, edi
mov dword [rsp + 0x80], eax
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xc0], eax
lea rcx, [r11 - 0x256]
xor edx, edx
mov r8d, 0x206
mov qword [r11 - 0x2b0], rbp
mov qword [r11 - 0x260], rbp
mov qword [r11 - 0x280], rbp
mov qword [r11 - 0x2a0], rbp
mov qword [r11 - 0x290], rbp
mov qword [r11 - 0x270], rbp
mov r14, r9
mov ebx, edi
mov word [rsp + 0xe0], di
call sub.msvcrt.dll_memset
or eax, 0xffffffff
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x30], ax
cmp dword [rsp + 0x368], ebx
je 0x100007977
test r12, r12
je 0x1000078fe
test r13, r13
jne 0x100007977
mov ebx, 0x80070057
xor r14d, r14d
cmp dword [rsp + 0x368], r14d
je 0x100007a46
cmp ebx, r14d
jl 0x100007b54
lea rdx, [rsp + 0xd0]
mov rcx, r12
call fcn.100007bf8
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
lea rdx, [rsp + 0xb0]
mov rcx, r13
call fcn.100007bf8
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
mov rax, qword [rsp + 0xb8]
mov r9, qword [rsp + 0xd8]
mov r8, rbp
mov qword [rsp + 0x20], rax
lea rdx, [0x1000018f0]
jmp 0x100007aad
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1000079aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100007903
lea rdx, [0x1000018e0]
lea rcx, [rsp + 0xe0]
mov r9, r14
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1000079dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100007903
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov r11d, 8
mov rcx, r14
mov word [rsp + 0x40], r11w
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor r14d, r14d
cmp rax, r14
mov ecx, 0x8007000e
mov qword [rsp + 0x48], rax
cmove ebx, ecx
cmp ebx, r14d
jl 0x100007906
lea rcx, [rsp + 0xa0]
mov r8d, 0x2afa
mov rdx, rsi
call fcn.100008da8
mov rbp, qword [rsp + 0xa8]
mov ebx, eax
jmp 0x100007906
cmp ebx, r14d
jl 0x100007b54
lea rcx, [rsp + 0x90]
mov r8d, 0x2af8
mov rdx, rsi
call fcn.100008da8
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
lea rcx, [rsp + 0xc0]
mov r8d, 0x2af9
mov rdx, rsi
call fcn.100008da8
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x98]
mov qword [rsp + 0x20], rbp
lea rdx, [0x100001ae0]
lea rcx, [rsp + 0x80]
call fcn.100008ebc
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
lea r9, [0x100001e70]
mov rdi, rax
lea rax, [rsp + 0x38]
lea r8d, [rdx + 1]
lea rcx, [0x100001e80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov r9, qword [rcx]
call qword [r9 + 0x208]
cmp eax, r14d
mov ebx, eax
jl 0x100007b54
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x38]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x210]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, r14
je 0x100007b64
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp rdi, r14
je 0x100007b72
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0xc0]
call fcn.100008b3c
lea rcx, [rsp + 0xa0]
call fcn.100008b3c
lea rcx, [rsp + 0x90]
call fcn.100008b3c
lea rcx, [rsp + 0xb0]
call fcn.100008b3c
lea rcx, [rsp + 0xd0]
call fcn.100008b3c
lea rcx, [rsp + 0x80]
call fcn.100008b3c
mov eax, ebx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.100009a00
add rsp, 0x300
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret