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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1801da600]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov byte [rcx], r14b
mov qword [rcx + 8], r14
lea rsi, [rcx + 0x10]
lea edx, [r14 + 1]
mov rcx, rsi
call fcn.18004e410
nop
lea rdi, [rbx + 0x118]
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
mov qword [rsp + 0x40], rax
mov r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x1800523f1
mov qword [rsp + 0x48], rax
call fcn.18014dcf8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
mov rcx, rdi
call fcn.180041420
nop
xorps xmm0, xmm0
movups xmmword [rbx + 0x138], xmm0
mov qword [rbx + 0x148], r14
mov qword [rbx + 0x150], 7
mov word [rbx + 0x138], r14w
lea rcx, [rbx + 0x158]
mov edx, 1
call fcn.18004e410
nop
lea rcx, [rbx + 0x260]
mov edx, 1
call fcn.18004e410
nop
lea rcx, [rbx + 0x368]
call fcn.18013f9c0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, eax
test eax, eax
setne al
mov byte [rbx], al
test ecx, ecx
jne 0x180052495
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
lea r14, str.Galaxy
test rax, rax
je 0x180052509
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, [rsi + 8]
mov r9d, 0x40
lea r8d, [r9 - 0x36]
lea rdx, str.CONOUT_
call fcn.18003cc60
mov rcx, rax
mov rax, qword [rsi]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [rsi + rdx]
je 0x1800524fe
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x180052509
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 6
call fcn.18014dcf8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180041420
nop
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.18004ed90
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 7
jbe 0x180052598
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052593
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052593
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014e8b0
mov rdx, rdi
lea rcx, [rsp + 0x100]
call fcn.1800468e0
nop
lea rax, str.Backup
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 6
call fcn.18014dcf8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x80]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180041420
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x100]
call fcn.18004ed90
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 7
jbe 0x18005264b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052645
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052645
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014e8b0
nop
mov rcx, rdi
call fcn.18004e5c0
test al, al
jne 0x180052677
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180052664
mov rcx, qword [rdi]
call fcn.18014df58
shr rax, 0x20
test eax, eax
jne 0x1800528c7
jmp 0x1800526e8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18004e630
movsd xmm0, qword [rax]
movsd qword [rsp + 0x20], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x20]
test edx, edx
je 0x1800526a7
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x1800528d8
cmp ecx, 3
je 0x1800526e8
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1800526b9
mov rcx, qword [rdi]
call fcn.18014e404
shr rax, 0x20
test eax, eax
jne 0x1800528e7
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1800526d7
mov rcx, qword [rdi]
call fcn.18014df58
shr rax, 0x20
test eax, eax
jne 0x1800528f8
lea rdx, [rbx + 0x118]
lea rcx, [rbx + 0x138]
call fcn.18004e990
lea rax, str.Galaxy.log
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xa
call fcn.18014dcf8
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
lea r8, [rsp + 0x90]
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.180041420
nop
lea rcx, [rbx + 0x118]
lea rdx, [rsp + 0xe0]
call fcn.18004ed90
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 7
jbe 0x18005279b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052796
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052796
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014e8b0
lea rcx, [rbx + 0x158]
lea rdx, [rbx + 0x118]
call fcn.18004f030
lea rcx, [rbx + 0x260]
lea rdx, [rbx + 0x138]
call fcn.18004f030
mov rdi, qword [rbx + 0x368]
mov ecx, 0x10
call fcn.18014e8e4
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, rax
call fcn.180051ff0
nop
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18004fe60
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180052834
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x18005282a
lock xadd dword [rdx + 0xc], r15d
cmp r15d, 1
jne 0x180052825
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov edx, 0x10
call fcn.18014e8b0
mov rcx, qword [rbx + 0x368]
call fcn.180139270
nop
jmp 0x180052848
mov qword [0x1801f30b8], rbx
mov rdx, qword [rsp + 0x118]
cmp rdx, 7
jbe 0x18005289b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052895
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052895
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014e8b0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18014e890
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r8, rdi
mov edx, eax
lea rcx, str.create_directory
call fcn.180046b50
mov r8, rdi
lea rcx, str.status
call fcn.180046b50
mov r8, rdi
mov edx, eax
lea rcx, str.remove
call fcn.180046b50
mov r8, rdi
mov edx, eax
lea rcx, str.create_directory
call fcn.180046b50
int3