Function at 0x484340
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
lea r14, [rsp + 0x90]
mov rsi, rcx
mov ebp, edx
mov rdi, r8
mov rcx, r14
call method.el::Configurations.Configurations__
xor r9d, r9d
mov r8, rsi
mov edx, 0x10
mov rcx, r14
call method.el::Configurations.setGlobally_el::ConfigurationType__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
lea r12, [rsp + 0x70]
lea r8, [0x0087e0d1]
xor r9d, r9d
lea rbx, [rsp + 0x80]
lea rdx, [r8 - 4]
mov rcx, r12
mov qword [rsp + 0x70], rbx
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
xor r9d, r9d
mov r8, r12
mov edx, 2
mov rcx, r14
call method.el::Configurations.setGlobally_el::ConfigurationType__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x4843c8
call sym.operator_delete_void_
lea rcx, str.MONERO_LOG_FORMAT
call sym.getenv
mov qword [rsp + 0x70], rbx
test rax, rax
mov r13, rax
lea rax, str._datetime_Y__M__d__H:_m:_s._g_t_thread_t_level_t_logger_t_loc_t_msg
cmove r13, rax
mov rcx, r13
call sym.strlen
xor r9d, r9d
mov rdx, r13
mov rcx, r12
lea r8, [r13 + rax]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
xor r9d, r9d
mov r8, r12
mov edx, 8
mov rcx, r14
call method.el::Configurations.setGlobally_el::ConfigurationType__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x484427
call sym.operator_delete_void_
test bpl, bpl
lea rdx, [0x0087e0d2]
mov qword [rsp + 0x70], rbx
lea r13, [0x0087e0cd]
cmove r13, rdx
mov rcx, r13
call sym.strlen
xor r9d, r9d
mov rdx, r13
mov rcx, r12
lea r8, [r13 + rax]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
xor r9d, r9d
mov r8, r12
mov edx, 4
mov rcx, r14
call method.el::Configurations.setGlobally_el::ConfigurationType__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x48447e
call sym.operator_delete_void_
mov qword [rsp + 0x20], rdi
mov r8d, 0x20
mov rcx, r12
lea r9, [0x0087e12b]
lea rdx, [fcn.00482870]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char______gnu_cxx::__to_xstring_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_____char__int____char__unsigned_long_long__char_const__char___un
xor r9d, r9d
mov r8, r12
mov edx, pe_nt_image_headers64
mov rcx, r14
call method.el::Configurations.setGlobally_el::ConfigurationType__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x4844c1
call sym.operator_delete_void_
mov edx, 1
mov rcx, r14
call method.el::Loggers.setDefaultConfigurations_el::Configurations_const__bool_
mov rbp, qword [0x0099e5d0]
lea rdi, [rsp + 0x40]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rax, qword [rbp]
or dword [rax + 0x48], 0x1868
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
add r8, rdx
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
mov qword [rsp + 0x60], 0
mov ecx, 0x20
call sym.operator_new_unsigned_long_long_
mov r13, rax
lea rax, [rax + 0x10]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov qword [r13], rax
mov rcx, r13
add r8, rdx
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
lea rax, [method.std._Function_handler_void__char_const__unsigned_long_long___mlog_configure_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool__unsigned_long_long__unsigned_long_long_::lambda_char_const__unsigned_long_l]
lea r15, [rsp + 0x50]
mov rcx, r12
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x68], rax
mov rdx, r15
lea rax, [sym._ZNSt14_Function_base13_Base_managerIZ14mlog_configureRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbyyEUlPKcyE_E10_M_]
mov r8d, 2
mov qword [rsp + 0x60], rax
mov r13, qword [rbp]
mov qword [rsp + 0x80], 0
call sym._ZNSt14_Function_base13_Base_managerIZ14mlog_configureRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbyyEUlPKcyE_E10_M_
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
movdqu xmm0, xmmword [r13 + 0xb8]
mov rax, qword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov qword [r13 + 0xc0], r9
mov r9, qword [r13 + 0xc8]
mov qword [r13 + 0xb8], r8
mov qword [rsp + 0x80], r9
mov rdx, qword [r13 + 0xd0]
mov qword [r13 + 0xc8], rax
mov qword [rsp + 0x88], rdx
mov rdx, qword [rsp + 0x68]
mov qword [r13 + 0xd0], rdx
test r9, r9
je 0x4845ef
mov r8d, 3
mov rdx, r12
mov rcx, r12
call r9
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x484602
mov r8d, 3
mov rdx, r15
mov rcx, r15
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x484611
call sym.operator_delete_void_
lea r8, [0x0087df60]
xor r9d, r9d
mov rcx, r12
mov qword [rsp + 0x70], rbx
lea rdx, [r8 - 0x10]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
mov rcx, r12
call method.el::Loggers.setFilenameCommonPrefix_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x484643
call sym.operator_delete_void_
lea rcx, str.MONERO_LOGS
call sym.getenv
mov rcx, rax
test rax, rax
lea rax, str.:WARNING_net:FATAL_net.p2p:FATAL_net.cn:FATAL_global:INFO_verify:FATAL_stacktrace:INFO_logging:INFO_msgwriter:INFO
cmove rcx, rax
call sym.mlog_set_log_char_const_
call sym.EnableVTMode__
lea rax, method.el::base::threading::ThreadSafe.acquireLock__
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xf0]
cmp rcx, rax
je 0x484693
call sym.operator_delete_void_
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
lea rax, method.el::base::threading::ThreadSafe.acquireLock__
mov qword [rsp + 0x90], rax
cmp rsi, rcx
je 0x48474a
mov rax, qword [0x0099ecc0]
mov r12, rcx
lea rdi, [method.el::Configuration.Configuration__]
lea rbx, [rax + 0x10]
jmp 0x48470c
mov rcx, qword [r13 + 0x10]
lea rax, [r13 + 0x20]
mov qword [r13], rbx
cmp rcx, rax
je 0x4846ee
call sym.operator_delete_void_
mov edx, 0x30
mov rcx, r13
call sym.operator_delete_void__unsigned_long_long_
mov qword [r12], 0
add r12, 8
cmp rsi, r12
je 0x484730
mov r13, qword [r12]
test r13, r13
je 0x484703
mov rax, qword [r13]
mov rax, qword [rax + 8]
cmp rax, rdi
je 0x4846d8
mov rcx, r13
call rax
jmp 0x4846fb
mov rcx, qword [rsp + 0xc8]
cmp rcx, qword [rsp + 0xd0]
je 0x48474a
mov qword [rsp + 0xd0], rcx
lea rax, method.el::base::threading::ThreadSafe.acquireLock__
mov qword [rsp + 0x90], rax
test rcx, rcx
je 0x484763
call sym.operator_delete_void_
lea rax, method.el::base::threading::ThreadSafe.acquireLock__
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
lea rax, method.el::base::threading::internal::Mutex.Mutex__
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret