Function at 0x140002a08
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x398]
sub rsp, 0x460
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140034ab8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, r9
mov ebx, r8d
mov r15, rdx
mov rsi, rcx
mov r12, qword [rbp + 0x3c0]
mov r13, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rsp + 0x40], rax
xor edi, edi
cmp dword [rcx + 0xc], edi
je 0x140002c53
lea rcx, [rsp + 0x30]
call fcn.140015078
nop
lea rcx, [rsp + 0x30]
test ebx, ebx
lea rdx, str.SELECT__FROM_Registry_WHERE_Root__2_AND_Registry.Name___
jne 0x140002a95
lea rdx, str.SELECT__FROM_Registry_WHERE_Root__1_AND_Registry.Name___
call fcn.140014f10
mov ecx, 1
call sub.msi.dll_MsiDatabaseExportA
mov ebx, eax
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140002c3d
mov r8, r12
mov r12d, 1
mov edx, r12d
mov ecx, eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
test eax, eax
jne 0x140002c3d
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsi + 0xc]
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
jne 0x140002c3d
mov edx, ebx
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x140002c33
lea rdx, [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x140002c33
mov esi, 0x400
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x50]
mov edx, 3
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x140002b46
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14001714c
test eax, eax
je 0x140002b67
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea rdx, [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x140002c33
jmp 0x140002b15
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x50]
mov r14d, 5
mov edx, r14d
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordSetInteger
cmp eax, 0xea
jne 0x140002bbc
mov edx, dword [rsp + 0x20]
add edx, r12d
mov dword [rsp + 0x20], edx
mov rcx, r13
call fcn.140014a38
lea r9, [rsp + 0x20]
mov r8, qword [r13]
mov edx, r14d
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x140002bd0
jmp 0x140002bcd
test eax, eax
jne 0x140002bd0
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.140014f10
mov edi, r12d
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x50]
mov edx, 6
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x140002bff
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140014f10
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x50]
mov edx, r12d
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x140002c2a
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140014f10
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
test ebx, ebx
je 0x140002c49
mov ecx, ebx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
lea rcx, [rsp + 0x30]
call fcn.1400149a0
mov eax, edi
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140017020
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret