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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180086140]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x180017644
mov qword [rsp + 0x28], rcx
call fcn.180046c70
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180013f50
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x180084870]
call fcn.180016fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180011360
lea rax, [0x18004f4b0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 9
call fcn.180046c70
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180013f50
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x180084870]
call fcn.180016fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180011360
lea rcx, [0x180084870]
cmp qword [0x180084888], 7
cmova rcx, qword [0x180084870]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x30]
call fcn.180046e24
mov r8d, eax
test eax, eax
jne 0x180017773
mov edx, dword [rsp + 0x40]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x180017763
mov eax, dword [rsp + 0x44]
cmp eax, 0xa000000c
jne 0x180017750
mov edx, 4
mov ebx, 1
jmp 0x18001779f
cmp eax, 0xa0000003
jne 0x180017763
mov edx, 0xa
mov ebx, 1
jmp 0x18001779f
shr edx, 4
and edx, 1
or edx, 2
mov ebx, 1
jmp 0x18001779f
mov dword [rsp + 0x24], 0xffff
sub eax, 2
je 0x180017796
sub eax, 1
je 0x180017796
sub eax, 0x32
je 0x180017796
cmp eax, 0x46
je 0x180017796
mov ebx, 1
jmp 0x18001779d
mov ebx, 1
mov edi, ebx
mov edx, edi
mov dword [rsp + 0x20], r8d
lea rax, [0x180084808]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edx, edx
jne 0x1800177ca
test r8d, r8d
jne 0x180017983
jmp 0x1800177cf
cmp edx, 1
jne 0x1800177fa
lea rcx, [0x180084870]
cmp qword [0x180084888], 7
cmova rcx, qword [0x180084870]
call fcn.180046dac
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18001799b
lea rax, str.ModzzMenu.log
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xd
call fcn.180046c70
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180013f50
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x180084870]
call fcn.180016fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180011360
nop
jmp 0x180017855
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x18001786d
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.ModzzMenu
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
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]
mov r9d, 0x40
mov r8d, 2
lea rdx, str.CONOUT_
lea rcx, [0x180095968]
call fcn.180017f20
xor r8d, r8d
test rax, rax
mov rax, qword [0x180095960]
movsxd rcx, dword [rax + 4]
lea rax, [0x180095960]
je 0x1800178ed
add rcx, rax
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 0x1800178fb
add rcx, rax
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 r9d, 0x40
mov r8d, ebx
lea rdx, str.CONIN_
lea rcx, [0x1800848a0]
call fcn.180017f20
xor r8d, r8d
test rax, rax
mov rax, qword [0x180084890]
movsxd rcx, dword [rax + 4]
lea rax, [0x180084890]
je 0x18001793e
add rcx, rax
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 0x18001794c
add rcx, rax
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 r9d, 0x40
mov r8d, 0xa
lea rdx, [0x180084870]
lea rcx, [0x180095850]
call fcn.180016990
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800476b0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea r8, [0x180084870]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.1800143d0
shr rdx, 0x20
lea r8, [0x180084870]
lea rcx, str.create_directory
call fcn.180017e90
int3