Function at 0x14002fc20
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1403284b0]
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, [0x14003aec0]
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, [0x14003aec0]
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, [0x1402c2d18]
call fcn.1400377f0
mov rcx, rax
mov rdx, qword [str.1.2.4commit.74368bdd]
call fcn.1400377f0
mov rcx, rax
lea rdx, [0x14003aec0]
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.1400377f0
mov rcx, rax
mov rdx, qword [str.windows]
call fcn.1400377f0
mov rcx, rax
lea rdx, [0x1402be778]
call fcn.1400377f0
mov rcx, rax
mov rdx, qword [str.release]
call fcn.1400377f0
mov rcx, rax
lea rdx, [0x1402be778]
call fcn.1400377f0
mov rcx, rax
mov rdx, qword [str.msvc]
call fcn.1400377f0
mov rcx, rax
lea rdx, [0x14003aec0]
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, [0x14003aec0]
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 0x14002fd89
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.1400377f0
mov rcx, rax
lea rdx, [0x14003aec0]
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_kawpowminer___help_to_get_a_list_of_arguments.
call fcn.1400377f0
mov rcx, rax
lea rdx, [0x14003aec0]
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, [0x14003aec0]
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 0x14002fed4
lea rcx, [rsp + 0x50]
call fcn.140027740
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 0x14002fdba
lea rdx, [0x1402c2d7c]
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 0x14002fde0
lea rdx, [0x1402c2d7c]
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 0x14002fe06
lea rdx, [0x1402c2d7c]
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.140028910
test al, al
jne 0x14002fe2a
lea rcx, [rsp + 0x50]
call fcn.140027bc0
xor eax, eax
jmp 0x14002fed4
lea rcx, str.SYSLOG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002fef5
mov byte [0x140335684], 1
mov byte [0x140335662], 1
lea rcx, [rsp + 0x50]
call fcn.14002b9a0
lea rdx, [0x14003aec0]
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, [0x14003aec0]
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.140027bc0
xor eax, eax
jmp 0x14002fed4
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402225a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret
cmp byte [0x140335684], 0
jne 0x14002fe47
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002fe47
cmp byte [0x140335662], al
jne 0x14002fe4e
mov byte [0x140335662], 1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002fe4e
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 0x14002fe4e
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 [0x140335662]
test eax, eax
cmovne ecx, edi
mov byte [0x140335662], cl
jmp 0x14002fe4e