Function at 0x14010bee0
Capabilities:
Get common file path
Print debug messages
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
cmp rax, 0xffffffffffffffff
jne 0x14010c138
lea rcx, [0x1409031a0]
call fcn.1400f6a30
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
cmp rax, 0xffffffffffffffff
jne 0x14010c12c
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x54], eax
mov eax, 0x104
sub eax, dword [rsp + 0x54]
mov eax, eax
mov ecx, dword [rsp + 0x54]
lea rcx, [rsp + rcx*2 + 0x1c0]
mov r8d, eax
lea rdx, str.Debug_
call fcn.14023740c
mov eax, dword [rsp + 0x54]
add eax, 7
mov dword [rsp + 0x54], eax
mov eax, 0x104
sub eax, dword [rsp + 0x54]
mov eax, eax
mov qword [rsp + 0x70], rax
lea rcx, [0x140903180]
call fcn.14000c690
mov ecx, dword [rsp + 0x54]
lea rcx, [rsp + rcx*2 + 0x1c0]
mov rdx, qword [rsp + 0x70]
mov r8, rdx
mov rdx, rax
call fcn.14023740c
lea rcx, [0x140903180]
call fcn.140016630
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
mov eax, 0x104
sub eax, dword [rsp + 0x54]
mov eax, eax
mov ecx, dword [rsp + 0x54]
lea rcx, [rsp + rcx*2 + 0x1c0]
mov r8d, eax
lea rdx, str..log
call fcn.14023740c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], MsiSetFeatureStateW
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 1
mov edx, 0x100004
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x3f0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
cmp rax, 0xffffffffffffffff
jne 0x14010c0d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x1a0]
call fcn.1400150f0
nop
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0xa0]
call fcn.140048710
lea r8, [rsp + 0xa0]
lea rdx, str.CreateFile_failed__error:__d
lea rcx, [rsp + 0x1a0]
call fcn.14001d910
lea rcx, [rsp + 0x1a0]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x1a0]
call fcn.140015480
jmp 0x14010c12c
mov rcx, qword [str._r_n__You_should_not_see_this_file__it_was_created_only_when_system_eventlog_has_not_been_started.___r_n__________________________________________________________________________________________________r_n]
call fcn.140229d80
mov dword [rsp + 0x68], eax
mov rax, qword [str._r_n__You_should_not_see_this_file__it_was_created_only_when_system_eventlog_has_not_been_started.___r_n__________________________________________________________________________________________________r_n]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1409031a0]
call fcn.1400f6a60
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsp + 0x180]
call fcn.1400150f0
nop
movzx eax, word [rsp + 0x17e]
mov edx, eax
lea rcx, [rsp + 0xb0]
call fcn.1400486c0
movzx eax, word [rsp + 0x17c]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1400486c0
movzx eax, word [rsp + 0x17a]
mov edx, eax
lea rcx, [rsp + 0xd0]
call fcn.1400486c0
movzx eax, word [rsp + 0x178]
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.1400486c0
movzx eax, word [rsp + 0x176]
mov edx, eax
lea rcx, [rsp + 0xf0]
call fcn.1400486c0
movzx eax, word [rsp + 0x172]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.1400486c0
movzx eax, word [rsp + 0x170]
mov edx, eax
lea rcx, [rsp + 0x110]
call fcn.1400486c0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x110]
lea rdx, str._02u__02u__02u__02u:_02u:_02u._03u
lea rcx, [rsp + 0x180]
call fcn.140107cf0
mov rdx, qword [rsp + 0x3f8]
lea rcx, [rsp + 0x120]
call fcn.140017fc0
movsxd rax, dword [rsp + 0x400]
and rax, 3
lea rcx, [0x1408cec98]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x130]
call fcn.140017fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.140048710
mov rax, qword [rsp + 0x3f0]
mov edx, dword [rax + 0x10]
lea rcx, [rsp + 0x150]
call fcn.140048710
lea rcx, [0x140903180]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.14001e490
lea rax, [rsp + 0x120]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x160]
lea rdx, str.____ls___d__d___s:__s_r_n
lea rcx, [rsp + 0x180]
call fcn.1401078e0
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
cmp rax, 0xffffffffffffffff
je 0x14010c3fe
lea rcx, [0x1409031a0]
call fcn.1400f6a30
lea rcx, [rsp + 0x180]
call fcn.140016630
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x180]
call fcn.140016520
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14010c3e1
mov eax, dword [rsp + 0x5c]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x180]
call fcn.140016630
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
jne 0x14010c3e1
mov dword [rsp + 0x60], 1
jmp 0x14010c3e9
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x50], al
lea rcx, [0x1409031a0]
call fcn.1400f6a60
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x14010c41d
lea rcx, [rsp + 0x180]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x58], al
lea rcx, [rsp + 0x180]
call fcn.140015480
movzx eax, byte [rsp + 0x58]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x3e0
pop rdi
ret