Function at 0x1401a6c30
Capabilities:
Create thread
Query environment variable
Set current directory

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 - 0x2cd0]
mov eax, 0x2dd0
call fcn.1401afab0
sub rsp, rax
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rbp + 0x2cc0], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
movsxd r14, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
mov qword [rbp - 0x78], rcx
cmp r14, 1
jle 0x1401a6d2f
mov ebx, 1
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax + rbx*8]
movzx eax, byte [rcx]
sub al, 0x2d
test al, 0xfd
jne 0x1401a6d23
inc rcx
lea rdx, str.embedding
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1401a6d23
mov r8d, 0x1004
lea rdx, [rbp + 0xcb0]
lea rcx, str.HOMEDRIVE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x1002
ja 0x1401a6d23
mov edi, 0x1004
sub edi, eax
mov eax, eax
lea rdx, [rbp + 0xcb0]
lea rdx, [rdx + rax*2]
mov r8d, edi
lea rcx, str.HOMEPATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1401a6d23
cmp eax, edi
jae 0x1401a6d23
lea rcx, [rbp + 0xcb0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc rbx
cmp rbx, r14
jl 0x1401a6ca0
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov ecx, r14d
call qword [sym.imp.BstkRT.dll_RTR3InitExe]
mov dil, 1
xor esi, esi
xor ebx, ebx
lea r15d, [rsi + 0xa]
mov r12d, 0x15180
mov r13d, 0x6400000
mov byte [rsp + 0x70], bl
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0x1e
lea r9, str.__embedding
mov r8, qword [rbp - 0x78]
mov edx, r14d
lea rcx, [rbp + 0x20]
call qword [sym.imp.BstkRT.dll_RTGetOptInit]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.BstkRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
je 0x1401a6e38
lea r14, [0x140000000]
lea eax, [r8 - 0x46]
cmp eax, 0x2f
ja case.0x1401a6dc7.80
movsxd rcx, eax
movzx eax, byte [r14 + rcx + 0x1a7618]
mov ecx, dword [r14 + rax*4 + 0x1a75ec]
add rcx, r14
jmp rcx
xor dil, dil
jmp case.0x1401a6dc7.77
mov rax, qword [rbp + 0x70]
lea rsi, [0x1402a5e57]
test rax, rax
cmovne rsi, rax
xor dil, dil
jmp case.0x1401a6dc7.77
mov rbx, qword [rbp + 0x70]
jmp case.0x1401a6dc7.77
mov r15d, dword [rbp + 0x70]
jmp case.0x1401a6dc7.77
mov r13, qword [rbp + 0x70]
jmp case.0x1401a6dc7.77
mov r12d, dword [rbp + 0x70]
jmp case.0x1401a6dc7.77
mov byte [rsp + 0x70], 1
jmp case.0x1401a6dc7.77
lea rdx, [rbp + 0x70]
mov ecx, r8d
call qword [sym.imp.BstkRT.dll_RTGetOptPrintError]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.BstkRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
jne 0x1401a6da7
test dil, dil
je 0x1401a6fd3
test rbx, rbx
je 0x1401a6e38
cmp byte [rbx], al
jne 0x1401a6e7c
mov r8b, 1
mov edx, 0x1004
lea rcx, [rbp + 0xcb0]
call fcn.140259a60
test eax, eax
js 0x1401a75a4
lea r8, str.BstkServer.log
mov edx, 0x1004
lea rcx, [rbp + 0xcb0]
call qword [sym.imp.BstkRT.dll_RTPathAppend]
test eax, eax
js 0x1401a75a4
lea rbx, [rbp + 0xcb0]
mov byte [rbp + 0xa8], 0
xor r14d, r14d
mov dword [rbp + 0x84], r14d
lea rax, [rbp + 0xa8]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x88], 0xc00
mov qword [rbp + 0x98], r14
mov qword [rbp + 0xa0], r14
mov dword [rbp + 0x80], 0xbabe0001
lea rax, [rbp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 1
lea rax, str.VBOXSVC_RELEASE_LOG
mov qword [rsp + 0x20], rax
lea r9, [0x1402cb714]
mov r8d, 0x4800000
mov rdx, rbx
lea rcx, str.COM_Server
call fcn.14025abd0
test eax, eax
jns 0x1401a6fd6
mov r9d, eax
mov r8, qword [rbp + 0x90]
lea rdx, str.failed_to_open_release_log___s___Rrc_
lea ecx, [r14 + 1]
call qword [sym.imp.BstkRT.dll_RTMsgErrorExit]
jmp 0x1401a75b9
xor r9d, r9d
lea r8, str.Usage
lea rdx, str.Options:_n_n_RegServer:_tregister_COM_out_of_proc_server_n_UnregServer:_tunregister_COM_out_of_proc_server_n_ReregServer:_tunregister_and_register_COM_server_nno_options:_trun_the_server
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1401a75b9
xor r14d, r14d
mov qword [rsp + 0x78], r14
call qword [sym.imp.BstkRT.dll_RTBldCfgRevisionStr]
mov rbx, rax
call qword [sym.imp.BstkRT.dll_RTBldCfgVersion]
mov r9, rbx
mov r8, rax
lea rdx, str._sr_s_n
lea rcx, [rsp + 0x78]
call fcn.14002b6d0
mov qword [rbp - 0x80], r14
lea r8, str.C:_virtualbox_srcVBoxMain_src_serverwin_svcmain.cpp
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.BstkRT.dll_RTStrToUtf16Tag]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.BstkRT.dll_RTStrFree]
xor r9d, r9d
lea r8, str.Version
mov rdx, qword [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.BstkRT.dll_RTUtf16Free]
xor eax, eax
jmp 0x1401a75b9
xor r14d, r14d
call qword [sym.imp.BstkRT.dll_RTBldCfgRevision]
mov ebx, eax
call qword [sym.imp.BstkRT.dll_RTBldCfgVersion]
lea r8, [0x1402dffb0]
mov qword [rsp + 0x60], r8
lea rdx, [0x1402dffb4]
mov qword [rsp + 0x58], rdx
lea rcx, [0x1402ccc14]
mov qword [rsp + 0x50], rcx
lea r9, [0x1402dffb8]
mov qword [rsp + 0x48], r9
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea r8, str._s_s_s_s_VirtualBox__s_r_u__s_s_s_s
mov edx, 0x30
lea rcx, [0x1403b3008]
call qword [sym.imp.BstkRT.dll_RTStrPrintf]
movzx eax, dil
neg al
sbb ecx, ecx
and ecx, 2
call fcn.14025a000
mov ebx, eax
test eax, eax
jns 0x1401a70e5
mov ecx, 0x1420010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401a70b6
lea rax, str.SUCCEEDED_hRes_
mov qword [rsp + 0x38], rax
lea rax, str.int___cdecl_WinMain_struct_HINSTANCE____struct_HINSTANCE____char__int_
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x446
lea rax, str.C:_virtualbox_srcVBoxMain_src_serverwin_svcmain.cpp
mov qword [rsp + 0x20], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x142
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1420010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a70e5
mov dword [rsp + 0x20], ebx
lea r9, str.SVCMAIN:_init_failed:__Rhrc_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x142
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x68
call fcn.1401af9cc
mov rbx, rax
test rax, rax
je 0x1401a7589
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
mov qword [0x1403b2448], rbx
lea rcx, [rbx + 8]
call qword [sym.imp.BstkRT.dll_RTCritSectInit]
test eax, eax
js 0x1401a7134
mov byte [rbx + 0x38], 1
mov qword [0x1403b2450], rbx
xor r15d, r15d
mov qword [rbx + 0x48], r15
lea rax, vtable.CExeModule.0
mov qword [rbx], rax
mov qword [0x1403b2fd8], rbx
movups xmm0, xmmword [0x14031fd70]
movups xmmword [0x1403b2ff8], xmm0
lea rax, [0x1403a1c50]
cmp rax, 0xffffffffffffffff
je 0x1401a7172
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [0x1403b2fd8]
mov dword [rcx + 0x50], eax
mov r14d, r15d
test dil, dil
jne 0x1401a71da
test rsi, rsi
je 0x1401a74d2
cmp byte [rsi], r14b
je 0x1401a71cf
lea rcx, [rbp - 0x20]
call fcn.1401a7720
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1401a79f0
mov ebx, eax
test eax, eax
js 0x1401a71be
lea rcx, [rbp - 0x20]
call fcn.1401a7f40
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.1401a7780
test ebx, ebx
jns 0x1401a74d2
mov r14d, 1
jmp 0x1401a74d2
mov rbx, qword [0x1403b2fd8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x58], rax
test rax, rax
je 0x1401a721d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401a6340]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rax, qword [0x1403b2fd8]
mov edi, r15d
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401a729f
cmp qword [rbx], rdi
je 0x1401a729f
test edi, edi
js 0x1401a729f
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401a7295
lea r8, [rbp - 0x80]
lea rdx, [0x14029c778]
mov rcx, qword [rbx + 0x10]
call qword [case.0x14000fd18.0]
mov edi, eax
test eax, eax
js 0x1401a727f
lea rax, [rbx + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov edi, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401a7295
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401a7235
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edx, 1
lea rcx, [0x1401a5c90]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1403b2fe8], rax
mov qword [rbp - 0x70], 0x200
mov qword [rbp - 0x60], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], r15
lea rdx, [0x1401a6710]
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x40], 2
lea r12, str.VirtualBox_Interface
mov qword [rbp - 0x30], r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x1401a732c
mov ecx, 0x1420010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a73a9
lea r9, str.Failed_to_register_window_class_for_session_monitoring_n
jmp 0x1401a7395
mov qword [rsp + 0x58], r15
mov rax, qword [0x1403b2fe8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r12
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1403b2fe0], rax
test rax, rax
jne 0x1401a73a9
mov ecx, 0x1420010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a73a9
lea r9, str.Failed_to_create_window_for_session_monitoring_n
mov r8d, 0x142
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov rdi, r15
movzx esi, byte [rsp + 0x70]
test sil, sil
je 0x1401a73f6
mov dword [rsp + 0x78], r15d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401a6b90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1401a743a
nop dword [rax]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1401a7410
mov rcx, qword [0x1403b2fe0]
test rcx, rcx
je 0x1401a746f
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x1403b2fe0], r15
mov rdx, qword [0x1403b2fe8]
test rdx, rdx
je 0x1401a746f
mov rcx, r12
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov qword [0x1403b2fe8], r15
test sil, sil
je 0x1401a749d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r15d
mov rax, qword [0x1403b2fd8]
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401a74d2
cmp qword [rbx], rdx
je 0x1401a74d2
test edx, edx
js 0x1401a74d2
mov ecx, dword [rbx + 0x20]
test ecx, ecx
je 0x1401a74c8
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edx, eax
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401a74b5
mov rsi, qword [0x1403b2fd8]
mov rbx, qword [rsi + 0x48]
test rbx, rbx
je 0x1401a7514
cmp qword [rbx], 0
je 0x1401a7514
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401a7506
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
mov qword [rbx + 0x18], r15
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401a74f0
cmp byte [rsi + 0x38], 0
je 0x1401a755b
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x1401a754d
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
call qword [case.0x14000fd18.0]
mov rbx, qword [rdi + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rdi
call fcn.1401af600
mov rdi, rbx
test rbx, rbx
jne 0x1401a7523
mov qword [rsi + 0x40], r15
lea rcx, [rsi + 8]
call qword [sym.imp.BstkRT.dll_RTCritSectDelete]
mov byte [rsi + 0x38], 0
call fcn.14025a710
mov rcx, qword [0x1403b2fd8]
test rcx, rcx
je 0x1401a757d
mov rdx, qword [rcx]
mov rax, qword [rdx]
mov edx, 1
call qword [case.0x14000fd18.0]
mov qword [0x1403b2fd8], r15
mov eax, r14d
jmp 0x1401a75b9
mov qword [0x1403b2fd8], r14
lea rdx, str.not_enough_memory_to_create_ExeModule.
mov ecx, 1
call qword [sym.imp.BstkRT.dll_RTMsgErrorExit]
jmp 0x1401a75b9
mov r8d, eax
lea rdx, str.failed_to_construct_release_log_filename__vrc_Rrc
mov ecx, 1
call qword [sym.imp.BstkRT.dll_RTMsgErrorExit]
mov rcx, qword [rbp + 0x2cc0]
xor rcx, rsp
call fcn.1401af5e0
lea r11, [rsp + 0x2dd0]
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