Function at 0x180051a00
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, 0xa0
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x78], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea edx, [rsi + 2]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
lea rdi, [rbx + 0x68]
mov qword [rsp + 0x70], rdi
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
lea r13, [rdi + 0x18]
mov qword [rsp + 0x88], r13
mov qword [rdi + 0x10], rsi
mov qword [r13], 7
mov word [rdi], si
lea r14, [rbx + 0x88]
mov qword [rsp + 0x80], r14
mov rcx, r14
call fcn.180052180
nop
lea r12, [rbx + 0x190]
mov qword [rsp + 0x68], r12
mov rcx, r12
call fcn.180052180
nop
lea r15, [rbx + 0x298]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x98], r15
lea rax, [0x1800d3738]
mov qword [r15], rax
lea rcx, [r15 + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
lea rbx, [r15 + 0x10]
mov qword [rsp + 0x90], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [r15]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + r15], rax
mov rax, qword [r15]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + r15 - 4], edx
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbx], rax
mov byte [rbx + 0x7c], sil
mov byte [rbx + 0x71], sil
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbx + 0x80], rsi
mov rax, qword [0x180135fe8]
mov qword [rbx + 0x74], rax
mov qword [rbx + 0x68], rsi
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180051b67
call fcn.18008f3e4
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180052a60
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.18001b480
nop
lea rcx, [rsp + 0x38]
call fcn.18001b6c0
call fcn.18008f3e4
lea rcx, str.Neutron
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180052a60
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.18001b480
nop
lea rcx, [rsp + 0x38]
call fcn.18001b6c0
mov rcx, rdi
call fcn.1800195c0
test al, al
jne 0x180051c1a
mov rcx, rdi
cmp qword [r13], 8
jb 0x180051c06
mov rcx, qword [rdi]
call fcn.18008f520
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180051dcb
call fcn.18008f3e4
lea rcx, str.Log.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180052a60
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.18001b480
nop
lea rcx, [rsp + 0x38]
call fcn.18001b6c0
nop
mov rbx, qword [rsp + 0x58]
jmp 0x180051c8a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180051ca2
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Log__Console__By_Sweexl
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov esi, 8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, si
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, [r12 + 8]
lea r8d, [rsi - 6]
lea rdx, str.CONOUT_
call fcn.1800522f0
mov rcx, rax
mov rax, qword [r12]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [r12 + rdx]
je 0x180051d14
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 0x180051d1f
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 r8d, 1
lea rdx, str.CONIN_
mov rcx, qword [rsp + 0x90]
call fcn.1800522f0
mov rcx, rax
mov rax, qword [r15]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [r15 + rdx]
je 0x180051d59
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 0x180051d64
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]
cmp qword [r13], rsi
jb 0x180051d6d
mov rdi, qword [rdi]
lea rcx, [r14 + 8]
mov r8d, 0xa
mov rdx, rdi
call fcn.180052bc0
mov rcx, rax
mov rax, qword [r14]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [r14 + rdx]
je 0x180051d9f
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 0x180051dab
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]
nop
mov rax, rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
shr rdx, 0x20
mov r8, rdi
lea rcx, str.create_directory
call fcn.18001aa80
int3