Function at 0x140002c10
Capabilities:
Get common file path

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 - 0x1e80]
mov eax, 0x1f80
call fcn.140006cc0
sub rsp, rax
mov rax, qword [0x140012068]
xor rax, rsp
mov qword [rbp + 0x1e70], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
mov qword [rsp + 0x70], rcx
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.VBoxRT.dll_RTR3InitExe]
mov sil, 1
xor r13b, r13b
xor r12b, r12b
xor edi, edi
lea r14d, [rdi + 0xa]
mov r15d, 0x15180
mov qword [rsp + 0x60], 0x6400000
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
lea r9, str.__embedding
mov r8, qword [rsp + 0x70]
mov edx, ebx
lea rcx, [rbp - 0x60]
call qword [sym.imp.VBoxRT.dll_RTGetOptInit]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
je 0x140002d66
lea rbx, [0x140000000]
nop
lea ecx, [r8 - 0x46]
cmp ecx, 0x2f
ja case.0x140002d02.80
movsxd rcx, ecx
movzx eax, byte [rbx + rcx + 0x3604]
mov ecx, dword [rbx + rax*4 + 0x35d8]
add rcx, rbx
jmp rcx
mov r12b, 1
xor sil, sil
jmp case.0x140002d02.75
mov r13b, 1
xor sil, sil
jmp case.0x140002d02.75
mov r12b, 1
movzx r13d, r12b
xor sil, sil
jmp case.0x140002d02.75
mov rdi, qword [rbp - 0x10]
jmp case.0x140002d02.75
mov r14d, dword [rbp - 0x10]
jmp case.0x140002d02.75
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x60], rax
jmp case.0x140002d02.75
mov r15d, dword [rbp - 0x10]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
jne 0x140002ce0
test sil, sil
je 0x140003021
test rdi, rdi
je 0x140002d66
cmp byte [rdi], al
jne 0x140002f84
mov r9d, 1
lea r8d, [r9 + 0x22]
lea rdx, [rbp + 0xc30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140002ec5
lea rax, [rbp + 0xe60]
mov qword [rsp + 0x68], rax
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_globalwinVBoxSDS.cpp
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xff8
lea r8, [rsp + 0x68]
lea rdx, [rdi - 1]
lea rcx, [rbp + 0xc30]
call qword [sym.imp.VBoxRT.dll_RTUtf16ToUtf8ExTag]
jmp 0x140002ee2
xor r9d, r9d
lea r8, str.VBoxSDS___Usage
lea rdx, str.Options:_n_n_RegService_tregister_COM_out_of_proc_service_n_UnregService_tunregister_COM_out_of_proc_service_n_ReregService_tunregister_and_register_COM_service_nno_options_trun_the_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400035a6
xor edi, edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.VBoxRT.dll_RTBldCfgRevisionStr]
mov rbx, rax
call qword [sym.imp.VBoxRT.dll_RTBldCfgVersion]
mov r9, rbx
mov r8, rax
lea rdx, str._sr_s_n
lea rcx, [rsp + 0x68]
call fcn.140002be0
mov qword [rsp + 0x60], rdi
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_globalwinVBoxSDS.cpp
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_RTStrToUtf16Tag]
xor r9d, r9d
lea r8, str.VBoxSDS___Version
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_RTStrFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_RTUtf16Free]
xor eax, eax
jmp 0x1400035a6
lea r9, [rbp - 0x10]
mov edx, 0x100
lea rcx, [rbp + 0xc30]
call qword [sym.imp.VBoxRT.dll_RTGetOptFormatError]
xor edi, edi
mov qword [rsp + 0x60], rdi
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_globalwinVBoxSDS.cpp
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xc30]
call qword [sym.imp.VBoxRT.dll_RTStrToUtf16Tag]
lea r9d, [rdi + 0x10]
lea r8, str.VBoxSDS___Syntax_error
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_RTUtf16Free]
lea eax, [rdi + 2]
jmp 0x1400035a6
xor r9d, r9d
mov r8d, 0xff8
lea rdx, [rbp + 0xe60]
lea rcx, str.ProgramData
call qword [sym.imp.VBoxRT.dll_RTEnvGetUtf8]
test eax, eax
js 0x140002f3f
lea r8, str.VirtualBox_
mov edx, 0x1004
lea rcx, [rbp + 0xe60]
call qword [sym.imp.VBoxRT.dll_RTPathAppend]
test eax, eax
js 0x140002f3f
lea rcx, [rbp + 0xe60]
call qword [sym.imp.VBoxRT.dll_RTDirExists]
test al, al
jne 0x140002f30
mov edx, 0x1ed
mov r8d, 2
lea rcx, [rbp + 0xe60]
call qword [sym.imp.VBoxRT.dll_RTDirCreate]
test eax, eax
js 0x140002f3f
lea rcx, [rbp + 0xe60]
call qword [sym.imp.VBoxRT.dll_RTPathSetCurrent]
jmp 0x140002f46
mov byte [rbp + 0xe60], 0
lea r8, str.VBoxSDS.log
mov edx, 0x1004
lea rcx, [rbp + 0xe60]
call qword [sym.imp.VBoxRT.dll_RTStrCat]
test eax, eax
jns 0x140002f7d
mov r8d, eax
lea rdx, str.Failed_to_construct_release_log_filename:__Rrc
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1400035a6
lea rdi, [rbp + 0xe60]
mov byte [rbp + 0x28], 0
xor ebx, ebx
mov dword [rbp + 4], ebx
lea rax, [rbp + 0x28]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], 0xc00
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], rbx
mov dword [rbp], 0xbabe0001
lea rax, [rbp]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x3000001
lea rax, str.VBOXSDS_RELEASE_LOG
mov qword [rsp + 0x20], rax
lea r9, [0x14000a5b4]
mov r8d, 0x4800000
mov rdx, rdi
lea rcx, str.COM_Service
call fcn.1400075e0
test eax, eax
jns 0x140003023
mov r9d, eax
mov r8, qword [rbp + 0x10]
lea rdx, str.failed_to_open_release_log___s___Rrc_
lea ecx, [rbx + 1]
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1400035a6
xor ebx, ebx
mov ecx, 2
call fcn.140007d70
mov r14d, eax
test eax, eax
js 0x140003515
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
lea r15, str.int___cdecl_WinMain_struct_HINSTANCE____struct_HINSTANCE____char__int_
test rax, rax
je 0x1400030ad
mov dword [rsp + 0x30], ebx
lea rcx, str.VBoxSDS:_InitializeSecurity:__x_n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x698
call fcn.140006660
mov rdi, rax
test rax, rax
je 0x140003496
xor r14d, r14d
mov qword [rax + 0x608], r14
mov dword [rax + 0x610], 0x10
mov dword [rax + 0x614], 1
mov qword [rax + 0x618], 1
mov qword [rax + 0x620], r14
mov dword [rax + 0x628], 0xbb8
mov qword [0x140012600], rax
lea rbx, [rax + 0x630]
lea rcx, [rbx + 8]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
mov byte [rbx + 0x38], r14b
mov dword [rbx + 0x3c], r14d
mov qword [rbx + 0x40], r14
mov qword [0x140012610], rbx
call qword [sym.imp.VBoxRT.dll_RTCritSectInit]
test eax, eax
js 0x14000313e
mov byte [rbx + 0x38], 1
mov qword [0x140012618], rbx
mov qword [rbx + 0x48], r14
lea rax, vtable.CComServiceModule.0
mov qword [rdi], rax
lea rax, vtable.CComServiceModule.1.0
mov qword [rbx], rax
mov word [rdi + 0x680], r14w
mov byte [rdi + 0x682], r14b
mov qword [rdi + 0x688], 0xffffffffffffffff
mov dword [rdi + 0x690], 0xffffffd5
mov dword [rdi + 0x694], 0x7d0
movups xmm0, xmmword [0x14000e330]
movups xmmword [0x140012620], xmm0
lea rax, section..data
cmp rax, 0xffffffffffffffff
je 0x1400031ad
mov qword [rdi + 0x678], rax
lea rbx, [rdi + 8]
lea r8, [0x14000a700]
mov edx, 0x200
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTUtf16Copy]
test eax, eax
js 0x140003439
lea rcx, [rdi + 0x208]
lea r8, str.VirtualBox_system_service
mov edx, 0x200
call qword [sym.imp.VBoxRT.dll_RTUtf16Copy]
test eax, eax
js 0x140003439
lea rcx, [rdi + 0x408]
lea r8, str.Used_as_a_COM_server_for_VirtualBox_API.
mov edx, 0x200
call qword [sym.imp.VBoxRT.dll_RTUtf16Copy]
test eax, eax
js 0x140003439
mov byte [rdi + 0x680], 1
test sil, sil
jne 0x140003326
test r12b, r12b
je 0x140003238
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x1400096a0]
mov r14d, eax
test r13b, r13b
je 0x140003250
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400096a0]
mov r14d, eax
xor r12d, r12d
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140003290
lea rcx, str.VBoxSDS:_Calling__ServiceModule.Term__..._n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
nop
mov rbx, qword [rdi + 0x678]
test rbx, rbx
je 0x1400032c6
cmp qword [rbx], 0
je 0x1400032c6
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400032b8
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400096a0]
mov qword [rbx + 0x18], r12
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1400032a2
cmp byte [rdi + 0x668], 0
je 0x140003321
mov rsi, qword [rdi + 0x670]
test rsi, rsi
je 0x14000330d
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
call qword [0x1400096a0]
mov rbx, qword [rsi + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rsi
call fcn.14000669c
mov rsi, rbx
test rbx, rbx
jne 0x1400032e0
mov qword [rdi + 0x670], r12
lea rcx, [rdi + 0x638]
call qword [sym.imp.VBoxRT.dll_RTCritSectDelete]
mov byte [rdi + 0x668], 0
jmp 0x140003480
mov qword [0x140012608], rdi
mov qword [rsp + 0x78], rbx
lea rax, [0x140002740]
mov qword [rbp - 0x80], rax
xor r12d, r12d
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400033b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x61c], eax
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1400033b0
mov ecx, dword [rdi + 0x61c]
mov dword [rsp + 0x30], ecx
lea rcx, str.Error:_Cannot_start_service_in_console_mode._Code:__u_n
mov qword [rsp + 0x28], rcx
lea rcx, str.long___cdecl_CWindowsServiceModule::startService_int__noexcept
mov qword [rsp + 0x20], rcx
lea r9, str._Rfn:__M
lea edx, [r12 + 0x10]
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov r14d, dword [rdi + 0x61c]
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1400033f3
lea rcx, str.VBoxSDS:_Calling__ServiceModule.RevokeClassObjects__..._n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov qword [0x140012608], r12
mov eax, r12d
mov rbx, qword [rdi + 0x678]
test rbx, rbx
je 0x140003253
cmp qword [rbx], rax
je 0x140003253
test eax, eax
js 0x140003253
mov ecx, dword [rbx + 0x20]
test ecx, ecx
je 0x14000342b
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rbx, 0x28
cmp qword [rbx], r12
jne 0x140003416
jmp 0x140003253
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov r14d, 0x8007007a
test rax, rax
je 0x140003480
mov dword [rsp + 0x30], r14d
lea rcx, str.VBoxSDS:_new_CComServiceModule::Init_failed:__Rhrc_n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [0x1400096a0]
jmp 0x1400034d2
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1400034d2
lea rcx, str.VBoxSDS:_new_CComServiceModule___failed_n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x14000350e
lea rcx, str.VBoxSDS:_Calling_com::Shutdown_n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
call fcn.1400084b0
jmp 0x14000355d
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
lea r15, str.int___cdecl_WinMain_struct_HINSTANCE____struct_HINSTANCE____char__int_
test rax, rax
je 0x14000355d
mov dword [rsp + 0x30], r14d
lea rcx, str.VBoxSDS:_COM_initialization_failed:__Rrc_n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1470010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1400035a3
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
lea rcx, str.VBoxSDS:_COM_service_process_ends:_hrcExit_Rhrc___x__n
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, str._Rfn:__M
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x147
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov eax, r14d
mov rcx, qword [rbp + 0x1e70]
xor rcx, rsp
call fcn.140006d20
lea r11, [rsp + 0x1f80]
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