Function at 0x14001c230
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x690], rax
lea rax, [rsp + 0x270]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x26
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0xf8]
call fcn.140017fc0
nop
lea rdx, str.AMDCIMReports
lea rcx, [rsp + 0xf8]
call fcn.140023920
lea rdx, str.logfile.txt
lea rcx, [rsp + 0x128]
call fcn.140017fc0
nop
mov rax, qword [rsp + 0x6b0]
add rax, 0x50
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0xf8]
mov rcx, rax
call fcn.14001b060
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14001c31a
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x128]
call fcn.140023a10
nop
lea rcx, [rsp + 0xf8]
call fcn.140023a10
movzx eax, byte [rsp + 0x41]
jmp 0x14001c5e7
lea rcx, [rsp + 0xf8]
call fcn.140017de0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14001c364
lea rcx, [rsp + 0xf8]
call fcn.140017de0
mov rcx, rax
call fcn.14001b620
movzx eax, al
test eax, eax
jne 0x14001c364
mov rax, qword [rsp + 0x6b0]
mov byte [rax + 0xd1], 0
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x6b0]
add rax, 0x50
mov rcx, rax
call fcn.140017de0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14001c58b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xf0]
call fcn.140015400
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x148]
call fcn.140015420
lea r9, [rsp + 0x148]
lea r8, str._Y__m__d__H__M__S
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.1401e2a1c
mov edx, 0xf8
lea rcx, [rsp + 0x170]
call fcn.140017b40
lea rdx, [0x140279ad4]
lea rcx, [rsp + 0x70]
call fcn.140017fc0
nop
mov r9d, 1
mov r8d, 3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x170]
call fcn.140022020
nop
lea rcx, [rsp + 0x70]
call fcn.140023a10
lea rax, [rsp + 0x180]
mov rcx, qword [rsp + 0x6b0]
add rcx, 0x50
mov rdx, rcx
mov rcx, rax
call fcn.14002c8c0
lea rdx, [0x140279b04]
mov rcx, rax
call fcn.14002bf30
lea rdx, [rsp + 0x480]
mov rcx, rax
call fcn.14002bf30
lea rdx, str..txt
mov rcx, rax
call fcn.14002bf30
mov edx, 0x10
lea rcx, [rsp + 0x118]
call fcn.140017b40
lea rcx, [rsp + 0x118]
call fcn.140015540
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x170]
call fcn.140021f40
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140017de0
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.14002ba70
nop
mov rax, qword [rsp + 0x6b0]
add rax, 0x50
mov rcx, rax
call fcn.140017de0
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14002ba70
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.140017ee0
lea rcx, [rsp + 0x90]
call fcn.140017ec0
nop
lea rcx, [rsp + 0xb0]
call fcn.140017ec0
nop
lea rcx, [rsp + 0xd0]
call fcn.140023a10
nop
lea rcx, [rsp + 0x170]
call fcn.140019440
mov rax, qword [rsp + 0x6b0]
add rax, 0x50
mov rcx, rax
call fcn.140017de0
mov rcx, rax
call fcn.14001b7a0
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x6b0]
movzx ecx, byte [rsp + 0x40]
mov byte [rax + 0xd1], cl
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x42], al
lea rcx, [rsp + 0x128]
call fcn.140023a10
nop
lea rcx, [rsp + 0xf8]
call fcn.140023a10
movzx eax, byte [rsp + 0x42]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x6a0
pop rdi
ret