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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1801da5d0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov byte [rcx], r15b
mov qword [rcx + 8], r15
lea rsi, [rcx + 0x10]
lea edx, [r15 + 1]
mov rcx, rsi
call fcn.18004e670
nop
lea rbx, [rdi + 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 r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x1800525d5
mov qword [rsp + 0x48], rax
call fcn.18014e4f4
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
mov rcx, rbx
call fcn.180041880
nop
lea r12, [rdi + 0x138]
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], r15
mov qword [r12 + 0x18], 7
mov word [r12], r15w
lea rcx, [rdi + 0x158]
mov edx, 1
call fcn.18004e670
nop
lea rcx, [rdi + 0x260]
mov edx, 1
call fcn.18004e670
nop
lea rcx, [rdi + 0x368]
call fcn.180140030
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 [rdi], al
test ecx, ecx
jne 0x180052677
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
lea r15, str.Galaxy
test rax, rax
je 0x1800526e7
mov rcx, r15
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.18003d110
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
xor r8d, r8d
add rcx, rsi
test rax, rax
je 0x1800526dc
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 0x1800526e7
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], r15
mov qword [rsp + 0x48], 6
call fcn.18014e4f4
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180041880
nop
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.18004efe0
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x180052776
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052771
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052771
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
mov rdx, rbx
lea rcx, [rsp + 0x100]
call fcn.180046ce0
nop
lea rax, str.Backup
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 6
call fcn.18014e4f4
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x80]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180041880
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x100]
call fcn.18004efe0
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x180052829
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052823
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052823
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
nop
mov rcx, rbx
call fcn.18004e820
test al, al
jne 0x180052855
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180052842
mov rcx, qword [rbx]
call fcn.18014e754
shr rax, 0x20
test eax, eax
jne 0x180052a95
jmp 0x1800528c6
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18004e890
movsd xmm0, qword [rax]
movsd qword [rsp + 0x20], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x20]
test edx, edx
je 0x180052885
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x180052aa6
cmp ecx, 3
je 0x1800528c6
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180052897
mov rcx, qword [rbx]
call fcn.18014ec00
shr rax, 0x20
test eax, eax
jne 0x180052ab5
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800528b5
mov rcx, qword [rbx]
call fcn.18014e754
shr rax, 0x20
test eax, eax
jne 0x180052ac6
mov rdx, rbx
mov rcx, r12
call fcn.18004ebe0
lea rax, str.Galaxy.log
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xa
call fcn.18014e4f4
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
lea r8, [rsp + 0x90]
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.180041880
nop
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.18004efe0
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 8
jb 0x18005296d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052968
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052968
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
mov rdx, rbx
lea rcx, [rdi + 0x158]
call fcn.18004f250
mov rdx, r12
lea rcx, [rdi + 0x260]
call fcn.18004f250
mov rbx, qword [rdi + 0x368]
mov ecx, 0x10
call fcn.18014f0c4
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, rax
call fcn.1800521d0
nop
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180050040
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800529fe
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x1800529f4
lock xadd dword [rdx + 0xc], r14d
cmp r14d, 1
jne 0x1800529ef
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov edx, 0x10
call fcn.18014f090
mov rcx, qword [rdi + 0x368]
call fcn.1801393f0
nop
jmp 0x180052a12
mov qword [0x1801f3048], rdi
mov rdx, qword [rsp + 0x118]
cmp rdx, 8
jb 0x180052a65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052a5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052a5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
nop
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18014f070
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rbx
mov edx, eax
lea rcx, str.create_directory
call fcn.180046f50
mov r8, rbx
lea rcx, str.status
call fcn.180046f50
mov r8, rbx
mov edx, eax
lea rcx, str.remove
call fcn.180046f50
mov r8, rbx
mov edx, eax
lea rcx, str.create_directory
call fcn.180046f50
int3