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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
lea rbp, [rsp - 0x1fc0]
mov eax, 0x20c0
call section..text
sub rsp, rax
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov esi, ecx
mov rax, rdx
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x20], rcx
lea rdx, str.SOFTWAREPythonPythonCore
mov r12, r9
mov word [r8], bx
mov r13, r8
mov qword [rsp + 0x50], rbx
mov rcx, rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003dd2
mov qword [rsp + 0x20b8], rdi
mov edi, ebx
mov qword [rsp + 0x20b0], r14
movzx r14d, byte [rbp + 0x2010]
mov qword [rsp + 0x20a8], r15
lea r15d, [rbx + 3]
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov edx, edi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x1004
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x180003d99
test eax, eax
jne 0x180003d8b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180003d8b
lea rcx, [rsp + 0x60]
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rcx, [rcx + rax*2]
lea rdx, str.InstallPath
call sym.VBoxInstallHelper.dll_nocrt_memcpy
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003d8b
test r14b, r14b
lea rax, [r12 + r12]
mov ecx, 4
mov edx, SafeArrayCopy
cmovne ecx, edx
sub rax, rcx
cmp rax, 0x2008
ja 0x180003c1f
test r14b, r14b
lea ecx, [r12 + r12]
mov eax, 4
cmovne eax, edx
sub ecx, eax
jmp 0x180003c24
mov ecx, 0x2008
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800146d8]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x44], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x180003d89
cmp dword [rsp + 0x44], 1
jne 0x180003d89
mov ebx, dword [rsp + 0x48]
cmp ebx, 6
jb 0x180003d89
shr ebx, 1
je 0x180003ca1
nop
lea ecx, [rbx - 1]
cmp word [rsp + rcx*2 + 0x60], 0
jne 0x180003ca1
mov ebx, ecx
test ecx, ecx
jne 0x180003c90
mov eax, ebx
add rax, rax
cmp rax, 0x2026
jae 0x180003df0
lea rdx, [rsp + 0x60]
add rdx, rax
xor eax, eax
mov word [rdx], ax
cmp ebx, 2
jbe 0x180003d89
lea eax, [rbx - 1]
movzx eax, word [rsp + rax*2 + 0x60]
cmp ax, 0x5c
je 0x180003ce6
cmp ax, 0x2f
je 0x180003ce6
mov eax, 0x5c
inc ebx
mov word [rdx], ax
mov eax, ebx
lea rcx, [rsp + 0x60]
mov r8d, SafeArrayCopy
lea rdx, str.python.exe
lea rcx, [rcx + rax*2]
call sym.VBoxInstallHelper.dll_nocrt_memcpy
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180003d6d
test al, 0x10
jne 0x180003d64
test r14b, r14b
lea eax, [rbx + 0xa]
cmove eax, ebx
lea rbx, [rax + rax]
cmp rbx, 0x2026
jae 0x180003df0
xor r15d, r15d
lea r8, [rsp + 0x60]
lea rdx, str.getPythonPath:_Found:___ls_
mov word [rsp + rbx + 0x60], r15w
mov ecx, esi
call fcn.1800040a0
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, r13
call sym.VBoxInstallHelper.dll_nocrt_memcpy
mov word [rbx + r13], r15w
jmp 0x180003d89
lea rdx, str.getPythonPath:_Warning:_Skipping___ls_:_is_a_directory___x_
jmp 0x180003d7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.getPythonPath:_Warning:_Skipping___ls_:_Does_not_exist___u_
mov r9d, eax
lea r8, [rsp + 0x60]
mov ecx, esi
call fcn.1800040a0
xor ebx, ebx
inc edi
cmp edi, 0x4000
jb 0x180003b50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
je 0x180003db7
lea rdx, str.getPythonPath:_Unable_to_find_python
mov ecx, esi
call fcn.1800040a0
mov r14, qword [rsp + 0x20b0]
mov eax, r15d
mov r15, qword [rsp + 0x20a8]
mov rdi, qword [rsp + 0x20b8]
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.180001140
add rsp, 0x20c0
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
call fcn.180001179
int3