Function at 0x140007a7c
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x14001cf10]
xor rax, rsp
mov qword [rbp + 0x990], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x40], 0
and dword [rsp + 0x30], 0
mov rsi, rdx
lea rax, [rsp + 0x50]
mov r14, r8
mov rdi, rcx
lea rdx, str.Software
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], 0x208
mov dword [rsp + 0x58], 0x820
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140007bf7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.Autodesk
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140007bf7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.Inventor
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140007bf7
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, str.Current_Version
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140007bf7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x5c]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.RegistryVersion
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
lea rdx, str.Executable
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x170]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140007ce6
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140007ce6
mov edi, 0x410
lea r8, str.Inventor.ini
lea rcx, [rbp + 0x170]
mov edx, edi
call qword [sym.imp.MSVCR110.dll_wcscat_s]
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140007ce6
lea rax, [rbp + 0x170]
lea r9, [rsp + 0x60]
lea rdx, str.ClientType
mov qword [rsp + 0x28], rax
lea rcx, str.Autodesk_Inventor_Installation_Options
mov ebx, 0x104
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r8, [rsp + 0x60]
mov edx, edi
mov rcx, r14
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea rax, [rbp + 0x170]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultLanguage
lea rcx, str.Autodesk_Inventor_Installation_Options
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
mov al, 1
jmp 0x140007ce8
xor al, al
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.14000d430
add rsp, 0xaa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret