Function at 0x140002938
Capabilities:
Get common file path
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
mov rax, qword [0x14012b040]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea ecx, [r14 + 8]
mov qword [rbp + 0x10], rcx
lea esi, [rcx + 7]
mov qword [rbp + 0x18], rsi
movabs rax, 0x33323a36353a3731
mov qword [rbp], rax
mov byte [rbp + 8], r14b
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140117e50]
movdqu xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [str.Sep_29_2024]
movsd qword [rbp - 0x40], xmm0
movzx eax, word [0x140104fe8]
mov word [rbp - 0x38], ax
mov al, byte [0x140104fea]
mov byte [rbp - 0x36], al
mov byte [rbp - 0x35], r14b
mov qword [rsp + 0x30], rcx
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x10
lea r9, str.moon___built_at
lea rcx, [rsp + 0x60]
call fcn.140005484
nop
lea rdx, [0x140104fec]
lea rcx, [rsp + 0x60]
call fcn.140003c88
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], r14
mov byte [rax], r14b
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003d0c
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rsi
mov byte [rax], r14b
mov r15d, 0x1000
mov rdx, qword [rsp + 0x58]
cmp rdx, rsi
jbe 0x140002aaf
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002aaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002aaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
movdqa xmm0, xmmword [0x140117dc0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], r14b
mov rdx, qword [rsp + 0x78]
cmp rdx, rsi
jbe 0x140002afd
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002af8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002af8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], rsi
cmova rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x140117dc0]
movdqu xmmword [rbp + 0x30], xmm1
mov byte [rbp + 0x20], r14b
movups xmmword [rbp + 0x40], xmm0
movdqu xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x40], r14b
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140002c00
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002b71
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140004d0c
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400046e4
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140002bfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140002bf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
mov rcx, qword [rbp - 0x50]
jmp 0x140002c13
movups xmmword [rbp - 0x60], xmm0
mov rcx, r14
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rsi
mov byte [rbp - 0x60], r14b
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
mov r12d, 5
cmp rax, r12
jae 0x140002c34
call fcn.140001948
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], r12
lea r13, str.moon
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.140005484
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], rsi
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005de0
nop
mov dword [rsp + 0x40], r14d
lea rax, [0x14012b0d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400027c0
mov dil, al
cmp dword [rsp + 0x40], r14d
je 0x140002cd8
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400026ec
nop
lea rcx, [rsp + 0x60]
call fcn.140003b58
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, rsi
jbe 0x140002d1c
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140002d17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
test dil, dil
jne 0x140002e12
mov rax, rbx
mov rcx, qword [rbp - 0x50]
sub rax, rcx
cmp rax, r12
jae 0x140002d3a
call fcn.140001948
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140005484
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005de0
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
call fcn.1400e3098
mov qword [rsp + 0x40], rax
shr rax, 0x20
test eax, eax
je 0x140002dcd
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.create_directory
call fcn.14000268c
nop
lea rcx, [rbp - 0x80]
call fcn.140003b58
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, rsi
jbe 0x140002e12
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002e0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
mov rax, rbx
mov rcx, qword [rbp - 0x50]
sub rax, rcx
mov r12d, 0xd
cmp rax, r12
jae 0x140002e2d
call fcn.140001948
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], r12
lea r13, str.moonconfigs
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140005484
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], rsi
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005de0
nop
mov dword [rsp + 0x40], r14d
lea rax, [0x14012b0d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1400027c0
mov dil, al
cmp dword [rsp + 0x40], r14d
je 0x140002ed3
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400026ec
nop
lea rcx, [rbp - 0x80]
call fcn.140003b58
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, rsi
jbe 0x140002f18
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140002f13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
test dil, dil
jne 0x14000300a
mov rax, qword [rbp - 0x50]
sub rbx, rax
cmp rbx, r12
jae 0x140002f33
call fcn.140001948
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], rsi
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.140005484
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], rsi
cmova rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005de0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1400e3098
mov qword [rsp + 0x40], rax
shr rax, 0x20
test eax, eax
je 0x140002fc6
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.14000268c
nop
lea rcx, [rsp + 0x60]
call fcn.140003b58
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, rsi
jbe 0x14000300a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140003005
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003005
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1b54
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
movsd xmm0, qword [str.initializing...]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140105028]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14010502c]
mov word [rsp + 0x4c], ax
mov al, byte [0x14010502e]
mov byte [rsp + 0x4e], al
mov byte [rsp + 0x4f], r14b
lea rcx, [rsp + 0x40]
call fcn.1400091bc
call fcn.14000d9c0
jmp 0x140003056