Function at 0x1400039d0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x140013028]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
call fcn.140002eb0
test eax, eax
js 0x140003daf
lea rcx, str.VBOXAUTOSTART_CONFIG
call qword [sym.imp.VBoxRT.dll_RTEnvGet]
test rax, rax
jne 0x140003a3d
lea rdx, str.Starting_VMs_failed._VBOXAUTOSTART_CONFIG_environment_variable_is_not_defined._n
mov ecx, 0xfffffd12
call fcn.1400033a0
jmp 0x140003daf
xor r12b, r12b
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400018f0
test eax, eax
jns 0x140003a6c
lea rdx, str.Starting_VMs_failed._Failed_to_parse_the_config_file._Check_the_access_permissions_and_file_structure._n
mov ecx, eax
call fcn.1400033a0
jmp 0x140003daf
lea rdx, str.default_policy
mov rcx, qword [rsp + 0x20]
call fcn.140001110
test rax, rax
je 0x140003ace
cmp dword [rax], 1
jne 0x140003b2c
lea rbx, [rax + 0x18]
lea rdx, str.allow
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
je 0x140003ab7
lea rdx, str.deny
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
jne 0x140003b2c
lea rdx, str.allow
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
jne 0x140003ace
mov r12b, 1
lea rcx, [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
lea r13, vtable.com::Utf8Str.0
mov qword [rsp + 0x78], r13
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x20]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x140003b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
mov edi, eax
jmp 0x140003b8a
mov rcx, qword [rsp + 0x20]
call fcn.1400010a0
lea rdx, str.default_policy_must_be_either_allow_or_deny._n
mov ecx, 0xfffffffe
call fcn.1400033a0
jmp 0x140003daf
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxFrontendsVBoxAutostartVBoxAutostart_win.cpp
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.VBoxRT.dll_RTUtf16ToUtf8Tag]
mov edi, eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_char_const____ptr64____ptr64]
lea rcx, [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::toLower_void____ptr64]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VBoxRT.dll_RTStrFree]
mov rcx, qword [rsp + 0x20]
test edi, edi
jns 0x140003bb0
call fcn.1400010a0
mov r8d, edi
lea rdx, str.Failed_to_query_username_of_the_process___Rrc_._n
mov ecx, edi
call fcn.1400033a0
mov edi, eax
jmp 0x140003da2
mov esi, r15d
cmp dword [rcx + 0x10], r15d
jbe 0x140003c91
nop dword [rax]
mov eax, esi
mov r14, qword [rcx + rax*8 + 0x18]
lea rcx, [rsp + 0x58]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rsp + 0x38], r13
mov rdx, qword [r14 + 8]
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
mov qword [rbp - 0x68], r13
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.1400036b0
mov edi, eax
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
test edi, edi
js 0x140003c6a
lea rcx, [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rbx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r9, rbx
mov r8, rax
lea rdx, str._s_s
lea rcx, [rbp - 0x48]
call fcn.140003610
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public:_bool___cdecl_RTCString::operator_class_RTCString_const____ptr64_const___ptr64]
test al, al
jne 0x140003cb7
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
inc esi
mov rcx, qword [rsp + 0x20]
cmp esi, dword [rcx + 0x10]
jb 0x140003bc0
test r12b, r12b
jne 0x140003d89
call fcn.1400010a0
lea rdx, str.User_is_not_allowed_to_autostart_VMs._n
mov ecx, 0xfffffffe
call fcn.1400033a0
mov edi, eax
jmp 0x140003da2
mov r15, r14
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
cmp dword [r14], 2
jne 0x140003d6a
lea rdx, str.allow
mov rcx, r14
call fcn.140001110
test rax, rax
je 0x140003d41
cmp dword [rax], 1
jne 0x140003d4b
lea rbx, [rax + 0x18]
lea rdx, str.true
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
je 0x140003d2b
lea rdx, str.false
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
jne 0x140003d4b
lea rdx, str.true
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTStrCmp]
test eax, eax
sete r12b
mov rcx, qword [rsp + 0x20]
jmp 0x140003c91
mov rcx, qword [rsp + 0x20]
call fcn.1400010a0
lea rdx, str.allow_must_be_either_true_or_false._n
mov ecx, 0xfffffffe
call fcn.1400033a0
mov edi, eax
jmp 0x140003da2
mov rcx, qword [rsp + 0x20]
call fcn.1400010a0
lea rdx, str.Invalid_config__user_is_not_a_compound_node._n
mov ecx, 0xfffffffe
call fcn.1400033a0
mov edi, eax
jmp 0x140003da2
test edi, edi
js 0x140003d9c
mov rcx, r15
call fcn.140001f10
mov edi, eax
mov rcx, qword [rsp + 0x20]
call fcn.1400010a0
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov eax, edi
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.140005f70
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret