Function at 0x140026870
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1402c94a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov ebx, ecx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rdx, [0x140030e90]
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, [0x140030e90]
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, [0x140278a08]
call fcn.14002e0a0
mov rcx, rax
mov rdx, qword [str.0.19.0_alpha.0commit.08f8697c.dirty]
call fcn.14002e0a0
mov rcx, rax
lea rdx, [0x140030e90]
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.14002e0a0
mov rcx, rax
mov rdx, qword [str.windows]
call fcn.14002e0a0
mov rcx, rax
lea rdx, [0x1402789fc]
call fcn.14002e0a0
mov rcx, rax
mov rdx, qword [str.release]
call fcn.14002e0a0
mov rcx, rax
lea rdx, [0x1402789fc]
call fcn.14002e0a0
mov rcx, rax
mov rdx, qword [str.msvc]
call fcn.14002e0a0
mov rcx, rax
lea rdx, [0x140030e90]
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, [0x140030e90]
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 0x1400269d9
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.14002e0a0
mov rcx, rax
lea rdx, [0x140030e90]
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.14002e0a0
mov rcx, rax
lea rdx, [0x140030e90]
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, [0x140030e90]
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 0x140026b24
lea rcx, [rsp + 0x50]
call fcn.14001ef90
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 0x140026a0a
lea rdx, [0x140278a6c]
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 0x140026a30
lea rdx, [0x140278a6c]
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 0x140026a56
lea rdx, [0x140278a6c]
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.140020080
test al, al
jne 0x140026a7a
lea rcx, [rsp + 0x50]
call fcn.14001f340
xor eax, eax
jmp 0x140026b24
lea rcx, str.SYSLOG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140026b45
mov byte [0x1402d3103], 1
mov byte [0x1402d3124], 1
lea rcx, [rsp + 0x50]
call fcn.1400229f0
lea rdx, [0x140030e90]
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, [0x140030e90]
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.14001f340
xor eax, eax
jmp 0x140026b24
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e4940
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret
cmp byte [0x1402d3103], 0
jne 0x140026a97
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140026a97
cmp byte [0x1402d3124], al
jne 0x140026a9e
mov byte [0x1402d3124], 1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026a9e
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 0x140026a9e
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 [0x1402d3124]
test eax, eax
cmovne ecx, edi
mov byte [0x1402d3124], cl
jmp 0x140026a9e