Function at 0x18006cd50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
sub rsp, 0x40
mov rbp, r9
mov r12, r8
mov r13d, edx
mov ebx, ecx
call fcn.180082010
test eax, eax
js 0x18006cfc9
lea rdx, [0x180235cc3]
mov ecx, 2
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.MSVCR100.dll_setlocale]
call qword [sym.imp.MSVCR100.dll__getpid]
or dword [0x1803d9684], ebx
lea rcx, str.VBOX_DISABLE_HOST_DISK_CACHE
mov dword [0x1803c0b44], eax
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x18006cdf0
cmp byte [rax], 0
je 0x18006cdf0
lea rdi, [0x180236500]
mov rsi, rax
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x18006cdf0
xor r8d, r8d
mov edx, 0x8000
lea ecx, [r8 + 2]
call sym.VBoxRT.dll_RTFileSetForceFlags
xor r8d, r8d
mov edx, 0x8000
lea ecx, [r8 + 3]
call sym.VBoxRT.dll_RTFileSetForceFlags
call fcn.18003a0a0
test eax, eax
js 0x18006cfbf
mov edi, ebx
and edi, 1
je 0x18006ce13
xor ecx, ecx
call sym.VBoxRT.dll_SUPR3Init
test eax, eax
js 0x18006cfbf
mov rcx, rbp
call fcn.18006cba0
mov esi, eax
test eax, eax
jns 0x18006ce9d
call sym.VBoxRT.dll_RTLogRelDefaultInstance
test rax, rax
je 0x18006ce76
test byte [rax + 0xc008], 1
jne 0x18006ce76
lea rcx, str.RT_SUCCESS_NP_rc_
xor r8d, r8d
lea r9, str.AssertLogRel__s__d___s:__s_n
mov qword [rsp + 0x38], rcx
lea rcx, str.int___cdecl_rtR3InitBody_unsigned_int_int_char__const_char__
lea edx, [r8 + 2]
mov qword [rsp + 0x30], rcx
lea rcx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3init.cpp
mov dword [rsp + 0x28], 0x195
mov qword [rsp + 0x20], rcx
mov rcx, rax
call sym.VBoxRT.dll_RTLogLoggerEx
call sym.VBoxRT.dll_RTLogRelDefaultInstance
test rax, rax
je 0x18006cf34
test byte [rax + 0xc008], 1
jne 0x18006cf34
lea r9, str.Failed_to_get_executable_directory_path__rc_Rrc__n
jmp 0x18006cf21
mov rdx, r12
mov ecx, r13d
call fcn.18006cc40
mov esi, eax
test eax, eax
jns 0x18006cf3b
call sym.VBoxRT.dll_RTLogRelDefaultInstance
test rax, rax
je 0x18006cf07
test byte [rax + 0xc008], 1
jne 0x18006cf07
lea rcx, str.RT_SUCCESS_NP_rc_
xor r8d, r8d
lea r9, str.AssertLogRel__s__d___s:__s_n
mov qword [rsp + 0x38], rcx
lea rcx, str.int___cdecl_rtR3InitBody_unsigned_int_int_char__const_char__
lea edx, [r8 + 2]
mov qword [rsp + 0x30], rcx
lea rcx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3init.cpp
mov dword [rsp + 0x28], 0x198
mov qword [rsp + 0x20], rcx
mov rcx, rax
call sym.VBoxRT.dll_RTLogLoggerEx
call sym.VBoxRT.dll_RTLogRelDefaultInstance
test rax, rax
je 0x18006cf34
test byte [rax + 0xc008], 1
jne 0x18006cf34
lea r9, str.Failed_to_convert_the_arguments__rc_Rrc__n
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x20], esi
lea edx, [r8 + 2]
call sym.VBoxRT.dll_RTLogLoggerEx
mov eax, esi
jmp 0x18006cfbf
test edi, edi
je 0x18006cf58
cmp qword [sym.VBoxRT.dll_g_pSUPGlobalInfoPage], 0
je 0x18006cf58
mov ecx, reloc.WS2_32.dll_sendto
call sym.VBoxRT.dll_RTThreadSleep
call sym.VBoxRT.dll_RTTimeNanoTS
call sym.VBoxRT.dll_RTTimeNanoTS
mov rdi, rax
mov qword [0x1803d9688], rax
movabs rax, 0x624dd2f1a9fbe77
mov rcx, rdi
mul rdi
sub rcx, rdx
movabs rax, 0x431bde82d7b634db
shr rcx, 1
add rcx, rdx
shr rcx, 9
mov qword [0x1803d9690], rcx
lea rcx, [0x18006cb50]
mul rdi
shr rdx, 0x12
mov qword [0x1803d96a8], rdx
call fcn.18008c2c0
mov ecx, ebx
call fcn.180082080
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rbp
ret