Function at 0x140002c80
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 r15, r9
mov r13d, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [rbp + 0x3c0]
mov qword [rsp + 0x40], rax
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rsp + 0x38], rax
xor esi, esi
cmp dword [rcx + 0xc], esi
je 0x140002f18
lea rcx, [rsp + 0x28]
call fcn.140015078
nop
lea rcx, [rsp + 0x28]
test r13d, r13d
lea rdx, str.SELECT__FROM_Registry_WHERE_Root__2_AND_Registry.Name___
jne 0x140002d13
lea rdx, str.SELECT__FROM_Registry_WHERE_Root__1_AND_Registry.Name___
call fcn.140014f10
mov ecx, 1
call sub.msi.dll_MsiDatabaseExportA
mov edi, eax
test eax, eax
je 0x140002f0e
mov r8, qword [rsp + 0x40]
mov edx, 1
mov ecx, eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
test eax, eax
jne 0x140002f06
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rbx + 0xc]
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
jne 0x140002f06
mov edx, edi
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x140002efd
lea rdx, [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x140002e4a
mov dword [rsp + 0x30], 0x400
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea edx, [rax + 3]
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x140002dbb
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.14001714c
test eax, eax
je 0x140002dc6
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x140002d72
test r12, r12
je 0x140002e24
mov rcx, r12
call fcn.1400179f0
test rax, rax
je 0x140002e24
mov r8, r14
mov ebx, 1
mov edx, ebx
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8, r12
lea edx, [rbx + 4]
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8, qword [rsp + 0x38]
lea edx, [rbx + 5]
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8d, dword [rsp + 0x20]
lea edx, [rbx + 1]
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordClearData
test eax, eax
jne 0x140002e41
mov esi, ebx
jmp 0x140002e41
mov r8d, dword [rsp + 0x20]
mov edx, 6
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordClearData
test eax, eax
mov eax, 1
cmove esi, eax
mov ecx, dword [rsp + 0x20]
jmp 0x140002ef8
test r12, r12
je 0x140002efd
mov rcx, r12
call fcn.1400179f0
test rax, rax
je 0x140002efd
mov ecx, 6
call sub.msi.dll_MsiDatabaseExportA
mov ebx, eax
test eax, eax
je 0x140002efd
mov r8, r14
mov r14d, 1
mov edx, r14d
mov ecx, eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
lea edx, [r14 + 1]
mov ecx, ebx
test r13d, r13d
mov r8d, edx
jne 0x140002e9c
mov r8d, r14d
call sub.msi.dll_MsiRecordSetStringW
mov r8, r15
mov edx, 3
mov ecx, ebx
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8, qword [rsp + 0x40]
mov edx, 4
mov ecx, ebx
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8, r12
mov edx, 5
mov ecx, ebx
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8, qword [rsp + 0x38]
mov edx, 6
mov ecx, ebx
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
mov r8d, ebx
mov edx, r14d
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiRecordClearData
test eax, eax
cmove esi, r14d
mov ecx, ebx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, edi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
lea rcx, [rsp + 0x28]
call fcn.1400149a0
mov eax, esi
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