Function at 0x14002ba00
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x31e0
call fcn.140072a00
sub rsp, rax
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x31d0], rax
mov rbx, rcx
lea rcx, [rsp + 0x81]
xor edx, edx
mov r8d, 0x143
mov dword [rsp + 0x78], 0
mov byte [rsp + 0x80], 0
call fcn.14005fe50
lea rcx, [rsp + 0x1d1]
xor edx, edx
mov r8d, 0x2fff
mov byte [rsp + 0x1d0], 0
call fcn.14005fe50
xor eax, eax
lea rcx, [rsp + 0x80]
mov edx, 0x144
mov byte [rsp + 0x50], 0
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
mov byte [rsp + 0x58], al
mov word [rsp + 0x59], ax
mov byte [rsp + 0x5b], al
mov byte [rsp + 0x60], al
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
mov byte [rsp + 0x5c], al
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
mov byte [rsp + 0x54], al
mov word [rsp + 0x55], ax
mov byte [rsp + 0x57], al
call fcn.14000c600
test eax, eax
jne 0x14002bad7
lea rcx, [rsp + 0x80]
mov edx, 0x103
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
mov rax, qword [str.ErrorReport.Log]
lea rcx, [rsp + 0x68]
mov qword [rdi - 1], rax
mov rax, qword [0x14007e608]
mov qword [rdi + 7], rax
movzx eax, byte [0x14007e610]
mov byte [rdi + 0xf], al
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x6a]
mov edx, 3
lea rcx, [rsp + 0x50]
movzx r9d, ax
lea r8, [0x140075fec]
cmp ax, 0xa
jb 0x14002bb45
lea r8, [0x140075868]
call fcn.14005ff3c
movzx eax, word [rsp + 0x6e]
mov edx, 3
lea rcx, [rsp + 0x58]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14002bb71
lea r8, [0x140075868]
call fcn.14005ff3c
mov rax, qword [rsp + 0x70]
mov edx, 3
lea rcx, [rsp + 0x60]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14002bb9d
lea r8, [0x140075868]
call fcn.14005ff3c
movzx eax, word [rsp + 0x72]
mov edx, 3
lea rcx, [rsp + 0x5c]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14002bbc9
lea r8, [0x140075868]
call fcn.14005ff3c
movzx eax, word [rsp + 0x74]
mov edx, 3
lea rcx, [rsp + 0x54]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14002bbf5
lea r8, [0x140075868]
call fcn.14005ff3c
movzx r9d, word [rsp + 0x68]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x54]
lea r8, str._d__s__s__s:_s:_s_tError_Report:__s_r_n
lea rcx, [rsp + 0x1d0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x5c]
mov edx, 0x2fff
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14005ff3c
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
lea r8d, [r9 + 2]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002bc90
xor eax, eax
jmp 0x14002bce3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1d0]
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x1d0]
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rax
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x31d0]
xor rcx, rsp
call fcn.14005fe20
mov rbx, qword [rsp + 0x31f8]
add rsp, 0x31e0
pop rdi
ret