Function at 0x14002fdc0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rdx
mov ebx, ecx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rdx, [0x14003b060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x1402c1618]
call fcn.140037990
mov rcx, rax
mov rdx, qword [str.1.2.4]
call fcn.140037990
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.Build:
call fcn.140037990
mov rcx, rax
mov rdx, qword [str._bf__]
call fcn.140037990
mov rcx, rax
lea rdx, [0x1402bcfd0]
call fcn.140037990
mov rcx, rax
mov rdx, qword [str.release]
call fcn.140037990
mov rcx, rax
lea rdx, [0x1402bcfd0]
call fcn.140037990
mov rcx, rax
mov rdx, qword [str.msvc]
call fcn.140037990
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp ebx, 2
jge 0x14002ff29
lea rdx, str.No_arguments_specified.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140037990
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.Try_phihashminer___help_to_get_a_list_of_arguments.
call fcn.140037990
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x14003b060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140030074
lea rcx, [rsp + 0x50]
call fcn.1400278e0
nop
lea rcx, str.GPU_MAX_HEAP_SIZE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002ff5a
lea rdx, [0x1402c167c]
lea rcx, str.GPU_MAX_HEAP_SIZE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002ff80
lea rdx, [0x1402c167c]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002ffa6
lea rdx, [0x1402c167c]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
mov r8, rdi
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140028ab0
test al, al
jne 0x14002ffca
lea rcx, [rsp + 0x50]
call fcn.140027d60
xor eax, eax
jmp 0x140030074
lea rcx, str.SYSLOG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140030095
mov byte [0x1403375e4], 1
mov byte [0x1403375c2], 1
lea rcx, [rsp + 0x50]
call fcn.14002bb40
lea rdx, [0x14003b060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14003b060]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.140027d60
xor eax, eax
jmp 0x140030074
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140220f90
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret
cmp byte [0x1403375e4], 0
jne 0x14002ffe7
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002ffe7
cmp byte [0x1403375c2], al
jne 0x14002ffee
mov byte [0x1403375c2], 1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002ffee
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14002ffee
mov edx, dword [rsp + 0x20]
or edx, 4
mov dword [rsp + 0x20], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movzx ecx, byte [0x1403375c2]
test eax, eax
cmovne ecx, edi
mov byte [0x1403375c2], cl
jmp 0x14002ffee