Function at 0x14016e170
Capabilities:
Get common file path
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x418]
sub rsp, 0x500
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x60], r14
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x5c], edx
cmp rdx, 0x200000
ja 0x14016dafe
mov dword [rsp + 0x58], 1
mov rcx, rdx
call fcn.14028fd08
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14016db0a
lea rbx, [rsi + 0x10]
mov qword [rsp + 0x68], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14016d920
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rax + 0x10], xmm1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + InitCommonControls]
nop
cmp qword [rsp + 0x60], 0
jne 0x14016def1
mov dword [rsp + 0x58], r14d
movdqa xmm6, xmmword [0x1402ecd10]
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.140289490
lea rdx, [rbp + 0x1d0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x14016dba3
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140289490
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, [0x140329850]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14016dba3
lea rax, [rbp - 0x40]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14016db84
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400810d0
movdqu xmm6, xmmword [rbp - 0x50]
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x70], xmm6
movups xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14016dc36
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016ddc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016ddbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df28
jmp 0x14016ddbb
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14016dc98
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016ddc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016ddbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df2e
jmp 0x14016ddbb
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14016dcef
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016ddc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016ddbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df34
jmp 0x14016ddbb
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14016dd58
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016ddc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016ddbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df3a
jmp 0x14016ddbb
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14016de0d
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016ddd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016ddbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df40
call fcn.140171af0
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14016ddd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x60], r14
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14016ddf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], r14
mov rax, qword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14016def1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14016def1
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x78], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
mov rbx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x14016de58
mov rcx, qword [rsp + 0x60]
cmp qword [rax + 0x20], rcx
jae 0x14016de41
mov rax, qword [rax + 0x10]
jmp 0x14016de47
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14016de35
cmp rbx, rdx
je 0x14016de58
cmp rcx, qword [rbx + 0x20]
jae 0x14016de99
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x68]
lea rdx, [0x14032971d]
mov rcx, rsi
call fcn.14016d2b0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14016d580
mov rbx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x28], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x38], xmm1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + InitCommonControls]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016def1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016deec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016df22
call fcn.140171af0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14028c66c
int3
call fcn.14028c66c
int3
call fcn.14028c66c
int3
call fcn.14028c66c
int3
call fcn.14028c66c
int3
call fcn.14028c66c
int3
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14016e090
mov rcx, rax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x14016da40