Function at 0x1401d2460
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.1401db860
sub rsp, rax
mov rax, qword [0x140445eb8]
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 0x1401d255f
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 0x1401d2553
inc rcx
lea rdx, str.embedding
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1401d2553
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 0x1401d2553
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 0x1401d2553
cmp eax, edi
jae 0x1401d2553
lea rcx, [rbp + 0xcb0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc rbx
cmp rbx, r14
jl 0x1401d24d0
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov ecx, r14d
call qword [sym.imp.VBoxRT.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.VBoxRT.dll_RTGetOptInit]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
je 0x1401d2668
lea r14, [0x140000000]
lea eax, [r8 - 0x46]
cmp eax, 0x2f
ja case.0x1401d25f7.80
movsxd rcx, eax
movzx eax, byte [r14 + rcx + 0x1d2e4c]
mov ecx, dword [r14 + rax*4 + 0x1d2e20]
add rcx, r14
jmp rcx
xor dil, dil
jmp case.0x1401d25f7.77
mov rax, qword [rbp + 0x70]
lea rsi, [0x1402de907]
test rax, rax
cmovne rsi, rax
xor dil, dil
jmp case.0x1401d25f7.77
mov rbx, qword [rbp + 0x70]
jmp case.0x1401d25f7.77
mov r15d, dword [rbp + 0x70]
jmp case.0x1401d25f7.77
mov r13, qword [rbp + 0x70]
jmp case.0x1401d25f7.77
mov r12d, dword [rbp + 0x70]
jmp case.0x1401d25f7.77
mov byte [rsp + 0x70], 1
jmp case.0x1401d25f7.77
lea rdx, [rbp + 0x70]
mov ecx, r8d
call qword [sym.imp.VBoxRT.dll_RTGetOptPrintError]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
jne 0x1401d25d7
test dil, dil
je 0x1401d2803
test rbx, rbx
je 0x1401d2668
cmp byte [rbx], al
jne 0x1401d26ac
mov r8b, 1
mov edx, 0x1004
lea rcx, [rbp + 0xcb0]
call fcn.14028f250
test eax, eax
js 0x1401d2ddb
lea r8, str.VBoxSVC.log
mov edx, 0x1004
lea rcx, [rbp + 0xcb0]
call qword [sym.imp.VBoxRT.dll_RTPathAppend]
test eax, eax
js 0x1401d2ddb
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], 0x20001
lea rax, str.VBOXSVC_RELEASE_LOG
mov qword [rsp + 0x20], rax
lea r9, [0x140305ee4]
mov r8d, 0x4800000
mov rdx, rbx
lea rcx, str.COM_Server
call fcn.140290180
test eax, eax
jns 0x1401d2806
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.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1401d2df0
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 0x1401d2df0
xor r14d, r14d
mov qword [rsp + 0x78], r14
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 + 0x78]
call fcn.14002d7a0
mov qword [rbp - 0x80], r14
lea r8, str.D:_tinderboxawin_7.0_srcVBoxMain_src_serverwin_svcmain.cpp
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_RTStrToUtf16Tag]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.VBoxRT.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.VBoxRT.dll_RTUtf16Free]
xor eax, eax
jmp 0x1401d2df0
xor r14d, r14d
call qword [sym.imp.VBoxRT.dll_RTBldCfgRevision]
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTBldCfgVersion]
lea r8, [0x140377118]
mov qword [rsp + 0x60], r8
lea rdx, [0x14037711c]
mov qword [rsp + 0x58], rdx
lea rcx, [0x140307454]
mov qword [rsp + 0x50], rcx
lea r9, [0x140377120]
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, [0x140458548]
call qword [sym.imp.VBoxRT.dll_RTStrPrintf]
movzx eax, dil
neg al
sbb ecx, ecx
and ecx, 2
call fcn.14028f580
mov ebx, eax
test eax, eax
jns 0x1401d2915
mov ecx, 0x1430010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401d28e6
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.D:_tinderboxawin_7.0_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, 0x143
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1430010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401d2915
mov dword [rsp + 0x20], ebx
lea r9, str.SVCMAIN:_init_failed:__Rhrc_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x143
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x68
call fcn.1401db77c
mov rbx, rax
test rax, rax
je 0x1401d2dc0
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 [0x140457938], rbx
lea rcx, [rbx + 8]
call qword [sym.imp.VBoxRT.dll_RTCritSectInit]
test eax, eax
js 0x1401d2964
mov byte [rbx + 0x38], 1
mov qword [0x140457940], rbx
xor r15d, r15d
mov qword [rbx + 0x48], r15
lea rax, vtable.CExeModule.0
mov qword [rbx], rax
mov qword [0x140458518], rbx
movups xmm0, xmmword [0x1403ba2c8]
movups xmmword [0x140458538], xmm0
lea rax, [0x140445de0]
cmp rax, 0xffffffffffffffff
je 0x1401d29a2
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [0x140458518]
mov dword [rcx + 0x50], eax
mov r14d, r15d
test dil, dil
jne 0x1401d2a0a
test rsi, rsi
je 0x1401d2d02
cmp byte [rsi], r14b
je 0x1401d29ff
lea rcx, [rbp - 0x20]
call fcn.1401d2f50
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1401d3220
mov ebx, eax
test eax, eax
js 0x1401d29ee
lea rcx, [rbp - 0x20]
call fcn.1401d3770
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.1401d2fb0
test ebx, ebx
jns 0x1401d2d02
mov r14d, 1
jmp 0x1401d2d02
mov rbx, qword [0x140458518]
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 0x1401d2a4d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401d1870]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rax, qword [0x140458518]
mov edi, r15d
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401d2acf
cmp qword [rbx], rdi
je 0x1401d2acf
test edi, edi
js 0x1401d2acf
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401d2ac5
lea r8, [rbp - 0x80]
lea rdx, [0x1402d4ec0]
mov rcx, qword [rbx + 0x10]
call qword [case.0x140010858.0]
mov edi, eax
test eax, eax
js 0x1401d2aaf
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 0x1401d2ac5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140010858.0]
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401d2a65
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edx, 1
lea rcx, [0x1401d1040]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140458528], 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, [0x1401d1d10]
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x40], 2
lea r12, [0x140376970]
mov qword [rbp - 0x30], r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x1401d2b5c
mov ecx, 0x1430010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401d2bd9
lea r9, str.Failed_to_register_window_class_for_session_monitoring_n
jmp 0x1401d2bc5
mov qword [rsp + 0x58], r15
mov rax, qword [0x140458528]
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 [0x140458520], rax
test rax, rax
jne 0x1401d2bd9
mov ecx, 0x1430010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401d2bd9
lea r9, str.Failed_to_create_window_for_session_monitoring_n
mov r8d, 0x143
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
call qword [sym.imp.VBoxRT.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 0x1401d2c26
mov dword [rsp + 0x78], r15d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401d23c0]
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 0x1401d2c6a
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 0x1401d2c40
mov rcx, qword [0x140458520]
test rcx, rcx
je 0x1401d2c9f
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x140458520], r15
mov rdx, qword [0x140458528]
test rdx, rdx
je 0x1401d2c9f
mov rcx, r12
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov qword [0x140458528], r15
test sil, sil
je 0x1401d2ccd
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 [0x140458518]
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401d2d02
cmp qword [rbx], rdx
je 0x1401d2d02
test edx, edx
js 0x1401d2d02
mov ecx, dword [rbx + 0x20]
test ecx, ecx
je 0x1401d2cf8
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edx, eax
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401d2ce5
mov rsi, qword [0x140458518]
mov rbx, qword [rsi + 0x48]
test rbx, rbx
je 0x1401d2d44
cmp qword [rbx], 0
je 0x1401d2d44
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401d2d36
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140010858.0]
mov qword [rbx + 0x18], r15
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401d2d20
cmp byte [rsi + 0x38], 0
je 0x1401d2d8b
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x1401d2d7d
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
call qword [case.0x140010858.0]
mov rbx, qword [rdi + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rdi
call fcn.1401db600
mov rdi, rbx
test rbx, rbx
jne 0x1401d2d53
mov qword [rsi + 0x40], r15
lea rcx, [rsi + 8]
call qword [sym.imp.VBoxRT.dll_RTCritSectDelete]
mov byte [rsi + 0x38], 0
mov byte [0x140458530], 0
call fcn.14028fcc0
mov rcx, qword [0x140458518]
test rcx, rcx
je 0x1401d2db4
mov rdx, qword [rcx]
mov rax, qword [rdx]
mov edx, 1
call qword [case.0x140010858.0]
mov qword [0x140458518], r15
mov eax, r14d
jmp 0x1401d2df0
mov qword [0x140458518], r14
lea rdx, str.not_enough_memory_to_create_ExeModule.
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1401d2df0
mov r8d, eax
lea rdx, str.failed_to_construct_release_log_filename__vrc_Rrc
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov rcx, qword [rbp + 0x2cc0]
xor rcx, rsp
call fcn.1401db5e0
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