Function at 0x140259b20
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x82d8]
mov eax, 0x83d8
call fcn.1401afab0
sub rsp, rax
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rbp + 0x82c0], rax
mov rsi, r8
mov qword [rsp + 0x58], rcx
mov rdi, rdx
lea rcx, [rbp + 0x2290]
xor edx, edx
mov r8d, 0x2008
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rcx, [rbp + 0x42a0]
xor edx, edx
mov dword [rsp + 0x6c], eax
mov r8d, 0x2008
mov word [rsp + 0x70], ax
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x1004
lea rdx, [rbp + 0x2290]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140259dff
xor r14d, r14d
lea r9, [rbp + 0x42a0]
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], r14
lea rcx, [rbp + 0x2290]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea r8d, [r14 + 3]
mov qword [rsp + 0x20], 0x1004
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
test eax, eax
jne 0x140259dff
xor edx, edx
mov qword [rsp + 0x83d0], rbx
mov r8d, 0x2008
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x6c]
mov edx, 0x1004
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x42a0]
mov edx, 0x1004
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.tag.txt
mov edx, 0x1004
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140259cb2
lea rdx, [0x14031fdf8]
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rbx, rax
test rax, rax
je 0x140259cb2
mov r9d, 0x80
lea r8, [rbp - 0x80]
lea rdx, [0x14031fdfc]
mov rcx, rax
call fcn.140259e10
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [str.SoftwareBlueStacks]
xor edx, edx
mov r8d, 0x1d6
movups xmm1, xmmword [0x14031fe18]
lea rcx, [rbp + 0xa8]
movaps xmmword [rbp + 0x80], xmm0
movsd xmm0, qword [0x14031fe28]
movsd qword [rbp + 0xa0], xmm0
movaps xmmword [rbp + 0x90], xmm1
call sub.VCRUNTIME140.dll_memset
cmp word [rbp - 0x80], r14w
je 0x140259d0f
lea r8, [rbp - 0x80]
mov edx, 0xff
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
lea rcx, [rbp + 0x62b0]
mov r8d, 0x2008
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], 0x2008
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140259ddb
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rbp + 0x62b0]
xor r8d, r8d
lea rdx, str.DataDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140259dce
lea rax, str.C:_virtualbox_srcVBoxMainglueGetVBoxUserHomeDirectory.cpp
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], r14
lea rcx, [rbp + 0x62b0]
call qword [sym.imp.BstkRT.dll_RTUtf16ToUtf8ExTag]
mov rcx, qword [rsp + 0x58]
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.BstkRT.dll_RTPathAppend]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x83d0]
mov rcx, qword [rbp + 0x82c0]
xor rcx, rsp
call fcn.1401af5e0
add rsp, 0x83d8
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 2
jmp 0x140259de3