Function at 0x14003ab90
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, r9
mov rsi, r8
mov r15d, edx
mov r13, rcx
mov rdi, qword [rsp + 0x310]
mov rbx, qword [rsp + 0x318]
mov r14, qword [rsp + 0x320]
mov qword [rsp + 0x78], 7
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
lea r8d, [r12 + 0x37]
lea rdx, str.PSWindowsInstallerUtilities::PSWIUTIL_MsiRecordGetValue
lea rcx, [rsp + 0x58]
call fcn.140001870
nop
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0x32]
lea r8d, [r12 + 1]
mov rcx, r13
call fcn.1400144a0
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
mov r9, rbx
lea r8, str.SELECT__s_FROM__s_WHERE___s__s
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140066ef4
lea ebx, [r12 + 1]
mov rax, qword [0x1400d51b8]
test rax, rax
je 0x14003ac95
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov ecx, r15d
call rax
mov ebx, eax
test ebx, ebx
jne 0x14003afa3
mov rax, qword [0x1400d5170]
test rax, rax
je 0x14003af4b
lea ecx, [rbx + 0xa]
call rax
mov ebp, eax
test eax, eax
je 0x14003af4b
mov ebx, 1
mov rax, qword [0x1400d51a8]
test rax, rax
je 0x14003acd7
mov edx, ebp
mov ecx, dword [rsp + 0x40]
call rax
mov ebx, eax
test ebx, ebx
jne 0x14003aef7
mov dword [rsp + 0x44], r12d
lea eax, [rbx + 1]
mov rdi, qword [0x1400d51a0]
test rdi, rdi
je 0x14003aeb2
lea rdx, [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call rdi
test eax, eax
jne 0x14003aeb2
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x14003aeb2
mov dword [rsp + 0x48], r12d
lea ebx, [rax + 1]
mov rax, qword [0x1400d5198]
test rax, rax
je 0x14003ad3d
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, ebx
call rax
mov ebx, eax
mov r12d, dword [rsp + 0x48]
cmp ebx, 0xea
je 0x14003ada9
test r12d, r12d
jne 0x14003ada9
test ebx, ebx
je 0x14003ad92
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.MsiRecordGetStringW
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0xa]
lea r8d, [r12 + 1]
mov rcx, r13
call fcn.1400144a0
jmp 0x14003ae97
xor r8d, r8d
lea rdx, [0x1400ad318]
mov rcx, r14
call fcn.140001870
jmp 0x14003ae97
inc r12d
mov dword [rsp + 0x48], r12d
mov ecx, r12d
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140067ea4
mov rsi, rax
test rax, rax
je 0x14003ae67
lea ebx, [rdi + 2]
mov rax, qword [0x1400d5198]
test rax, rax
je 0x14003adfc
lea r9, [rsp + 0x48]
mov r8, rsi
mov edx, ebx
mov ecx, dword [rsp + 0x44]
call rax
mov ebx, eax
test ebx, ebx
je 0x14003ae40
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.MsiRecordGetStringW
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r13
call fcn.1400144a0
jmp 0x14003ae5d
xor eax, eax
mov rcx, rdi
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
mov rcx, r14
call fcn.140001870
mov rcx, rsi
call fcn.140067eac
jmp 0x14003ae97
mov ebx, 8
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], rbx
cmovae r9, qword [rsp + 0x60]
lea rax, str.Insufficient_memory
mov qword [rsp + 0x20], rax
lea edx, [rbx + 2]
lea r8d, [rbx - 7]
mov rcx, r13
call fcn.1400144a0
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003afe1
mov ecx, dword [rsp + 0x44]
call rax
jmp 0x14003af35
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rcx, str.MsiViewFetch
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r13
call fcn.1400144a0
mov ebx, 0x8000ffff
jmp 0x14003af35
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.MsiViewExecute
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r13
call fcn.1400144a0
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003afe1
mov ecx, ebp
call rax
jmp 0x14003af8f
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.MsiCreateRecord
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r13
call fcn.1400144a0
mov ebx, 0x8000ffff
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003afe1
mov ecx, dword [rsp + 0x40]
call rax
jmp 0x14003afe1
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.MsiDatabaseOpenViewW
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r13
call fcn.1400144a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
mov dword [rsp + 0x28], ebx
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov edx, 0x28
lea r8d, [rdx - 0x27]
mov rcx, r13
call fcn.1400144a0
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, r13
call fcn.1400144a0
nop
cmp qword [rsp + 0x78], 8
jb 0x14003b060
mov rcx, qword [rsp + 0x60]
call fcn.140065920
mov eax, ebx
jmp 0x14003b062
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140064b70
add rsp, 0x2a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret