Function at 0x140004908
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 [0x140181080]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea ecx, [rsi + 8]
mov qword [rbp + 0x10], rcx
lea r14d, [rsi + 0xf]
mov qword [rbp + 0x18], r14
movabs rax, 0x38303a37303a3631
mov qword [rbp], rax
mov byte [rbp + 8], sil
movups xmmword [rbp - 0x40], xmm0
lea ebx, [rsi + 0xb]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r14
movsd xmm0, qword [str.Aug_31_2024]
movsd qword [rbp - 0x40], xmm0
movzx eax, word [0x140157e28]
mov word [rbp - 0x38], ax
mov al, byte [0x140157e2a]
mov byte [rbp - 0x36], al
mov byte [rbp - 0x35], sil
mov qword [rsp + 0x30], rcx
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, str.moon___built_at
lea rcx, [rsp + 0x60]
call fcn.140002788
nop
lea r8d, [rsi + 1]
lea rdx, [0x140157e2c]
lea rcx, [rsp + 0x60]
call fcn.1400019f4
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 + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea rdx, [rbp - 0x40]
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.1400019f4
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], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
mov r15d, 0x1000
mov rdx, qword [rsp + 0x58]
cmp rdx, r14
jbe 0x140004a83
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140004a7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
movdqa xmm0, xmmword [0x140169e80]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], sil
mov rdx, qword [rsp + 0x78]
cmp rdx, r14
jbe 0x140004ad1
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140004acc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004acc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], r14
cmova rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x140169e80]
movdqu xmmword [rbp + 0x30], xmm1
mov byte [rbp + 0x20], sil
movups xmmword [rbp + 0x40], xmm0
movdqu xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x40], sil
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 0x140004bd4
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], si
jne 0x140004b45
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140006400
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.14000610c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004bce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140004bc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004bc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
mov rcx, qword [rbp - 0x50]
jmp 0x140004be7
movups xmmword [rbp - 0x60], xmm0
mov rcx, rsi
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x60], sil
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
mov r12d, 5
cmp rax, r12
jae 0x140004c08
call fcn.140001734
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], r12
lea r13, [0x140157e44]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.140002788
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], r14
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.140006704
nop
mov dword [rsp + 0x40], esi
lea rax, [0x140181118]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400047a4
mov dil, al
cmp dword [rsp + 0x40], esi
je 0x140004caa
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400046d0
nop
lea rcx, [rsp + 0x60]
call fcn.140005ac0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140004cee
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140004ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ce9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
test dil, dil
jne 0x140004de4
mov rax, rbx
mov rcx, qword [rbp - 0x50]
sub rax, rcx
cmp rax, r12
jae 0x140004d0c
call fcn.140001734
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
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.140002788
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
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.140006704
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
call fcn.140127284
mov qword [rsp + 0x40], rax
shr rax, 0x20
test eax, eax
je 0x140004d9f
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.create_directory
call fcn.140004670
nop
lea rcx, [rbp - 0x80]
call fcn.140005ac0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, r14
jbe 0x140004de4
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140004ddf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ddf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
mov rax, rbx
mov rcx, qword [rbp - 0x50]
sub rax, rcx
mov r12d, reloc.WS2_32.dll_listen
cmp rax, r12
jae 0x140004dff
call fcn.140001734
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
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.140002788
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
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.140006704
nop
mov dword [rsp + 0x40], esi
lea rax, [0x140181118]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1400047a4
mov dil, al
cmp dword [rsp + 0x40], esi
je 0x140004ea3
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400046d0
nop
lea rcx, [rbp - 0x80]
call fcn.140005ac0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, r14
jbe 0x140004ee8
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r15
jb 0x140004ee3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ee3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
test dil, dil
jne 0x140004fd5
mov rax, qword [rbp - 0x50]
sub rbx, rax
cmp rbx, r12
jae 0x140004f03
call fcn.140001734
int3
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], r14
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.140002788
nop
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], r14
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.140006704
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.140127284
shr rax, 0x20
test eax, eax
je 0x140004f91
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.140004670
nop
lea rcx, [rsp + 0x60]
call fcn.140005ac0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140004fd5
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r15
jb 0x140004fd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140127ed4
call fcn.14000d0d8
jmp 0x140004fda