Function at 0x18006c110
Capabilities:
Query environment variable
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180144040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x30], rcx
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x20], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x18006c155
mov qword [rbp - 0x18], rcx
call fcn.1800d1fe0
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
mov rcx, rdi
call fcn.180016570
nop
lea rcx, [rdi + 0x20]
call fcn.18001a9e0
nop
lea rcx, [rdi + 0x128]
call fcn.18001a9e0
nop
lea rax, str.Pluto
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 5
call fcn.1800d1fe0
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.180016570
nop
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1800167e0
nop
lea rcx, [rbp - 0x50]
call fcn.180009140
mov qword [rbp - 0x20], 0
lea rax, [0x1801440d0]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.180064190
cmp dword [rbp - 0x20], 0
jne 0x18006c36b
test al, al
jne 0x18006c22b
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18006c217
mov rcx, qword [rdi]
call fcn.1800d2240
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18006c357
lea rax, str.Log.txt
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 7
call fcn.1800d1fe0
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.180016570
nop
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1800167e0
nop
lea rcx, [rbp - 0x50]
call fcn.180009140
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.18006bf20
nop
cmp qword [rax + 0x18], 0xf
jbe 0x18006c289
mov rax, qword [rax]
mov r8d, 0x12
mov rdx, rax
lea rcx, [rdi + 0x128]
call fcn.18006d660
nop
lea rcx, [rbp - 0x50]
call fcn.1800091b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x18006c2c0
call qword [sym.imp.KERNEL32.dll_AllocConsole]
cmp qword [rbx + 0x18], 0xf
jbe 0x18006c2ca
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov r8d, 2
lea rdx, str.CONOUT_
lea rcx, [rdi + 0x20]
call fcn.18006d660
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x18010f648]
lea rdx, str.CONOUT_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
nop
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d0f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
shr rdx, 0x20
mov r8, rdi
lea rcx, str.create_directory
call fcn.18006c010
int3
mov r8, rdi
lea rdx, [rbp - 0x20]
call fcn.180064130
int3