Function at 0x14002eb30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov ebx, ecx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rdx, [0x140036eb0]
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, [0x140036eb0]
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, [0x14028fff8]
call fcn.140035180
mov rcx, rax
lea rdx, str.0.19.0_18commit.8eaf50ab.dirty
call fcn.140035180
mov rcx, rax
lea rdx, [0x140036eb0]
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.140035180
mov rcx, rax
lea rdx, str.windows
call fcn.140035180
mov rcx, rax
lea rdx, [0x14028ffec]
call fcn.140035180
mov rcx, rax
lea rdx, str.release
call fcn.140035180
mov rcx, rax
lea rdx, [0x14028ffec]
call fcn.140035180
mov rcx, rax
lea rdx, str.msvc
call fcn.140035180
mov rcx, rax
lea rdx, [0x140036eb0]
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, [0x140036eb0]
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 0x14002ec8c
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.140035180
mov rcx, rax
lea rdx, [0x140036eb0]
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_ethminer___help_to_get_a_list_of_arguments.
call fcn.140035180
mov rcx, rax
lea rdx, [0x140036eb0]
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, [0x140036eb0]
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 0x14002edd7
lea rcx, [rsp + 0x50]
call fcn.140026fe0
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 0x14002ecbd
lea rdx, [0x14029005c]
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 0x14002ece3
lea rdx, [0x14029005c]
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 0x14002ed09
lea rdx, [0x14029005c]
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.140027fe0
test al, al
jne 0x14002ed2d
lea rcx, [rsp + 0x50]
call fcn.140027360
xor eax, eax
jmp 0x14002edd7
lea rcx, str.SYSLOG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002edf8
mov byte [0x1402da522], 1
mov byte [0x1402da523], 1
lea rcx, [rsp + 0x50]
call fcn.14002ac30
lea rdx, [0x140036eb0]
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, [0x140036eb0]
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.140027360
xor eax, eax
jmp 0x14002edd7
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401fb000
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp byte [0x1402da522], 0
jne 0x14002ed4a
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002ed4a
cmp byte [0x1402da523], al
jne 0x14002ed51
mov byte [0x1402da523], 1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002ed51
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14002ed51
mov edx, dword [rsp + 0x20]
or edx, 4
mov dword [rsp + 0x20], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x14002ed51
mov byte [0x1402da523], 0
jmp 0x14002ed51