Function at 0x1400046d4
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b8]
sub rsp, 0x4b8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140034ab8]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x40], r9
mov edi, r8d
mov rbx, rdx
mov r12, rcx
mov r13, qword [rbp + 0x420]
mov r15, qword [rbp + 0x428]
mov r14, qword [rbp + 0x430]
xor esi, esi
lea rcx, [rsp + 0x50]
call fcn.140015b94
nop
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, r12
call fcn.140003b10
test eax, eax
je 0x14000491b
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14001193c
mov rdi, rax
test rax, rax
je 0x14000491b
lea rcx, [rsp + 0x30]
call fcn.140015078
nop
lea rdx, str.SELECT__FROM_Registry_WHERE_Registry.Registry___
lea rcx, [rsp + 0x30]
call fcn.140014f10
lea ecx, [rsi + 1]
call sub.msi.dll_MsiDatabaseExportA
mov ebx, eax
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140004904
mov r8, qword [rdi]
lea edx, [rsi + 1]
mov ecx, eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
test eax, eax
jne 0x140004904
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [r12 + 0xc]
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
jne 0x140004904
mov edx, ebx
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x1400048fa
lea rdx, [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1400048fa
mov r12d, 0x400
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x60]
mov edx, 1
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x14000482c
mov rdx, qword [rdi]
lea rcx, [rbp - 0x60]
call fcn.14001714c
test eax, eax
je 0x14000484d
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea rdx, [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1400048fa
jmp 0x1400047fc
mov edx, 2
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordReadStream
xor edx, edx
cmp eax, 1
setne dl
mov rax, qword [rsp + 0x40]
mov dword [rax], edx
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x60]
mov edx, 3
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x14000489b
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.140014f10
mov esi, 1
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x60]
mov edx, 4
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x1400048c7
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.140014f10
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x60]
mov edx, 5
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x1400048f1
cmp byte [rbp - 0x60], 0x23
sete al
mov dword [r14], eax
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
test ebx, ebx
je 0x140004910
mov ecx, ebx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
lea rcx, [rsp + 0x30]
call fcn.1400149a0
nop
lea rcx, [rsp + 0x50]
call fcn.14001604c
mov eax, esi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140017020
add rsp, 0x4b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret