Function at 0x14003b570
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xac8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0xab0], rax
mov r13, r9
mov rbp, r8
mov edi, edx
mov r14, rcx
mov qword [rsp + 0x70], r8
mov r15, qword [rsp + 0xb30]
mov ebx, 0x8000ffff
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rsi + 0x3e]
lea rdx, str.PSWindowsInstallerUtilities::MsiGetParentAndDefaultDirectories
lea rcx, [rsp + 0x48]
call fcn.140001870
nop
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x32]
lea r8d, [rsi + 1]
mov rcx, r14
call fcn.1400144a0
mov dword [rsp + 0x30], esi
mov word [rsp + 0x490], si
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x492]
call fcn.1400719a0
mov dword [rsp + 0x38], 0x208
mov word [rsp + 0x80], si
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x82]
call fcn.1400719a0
mov dword [rsp + 0x3c], 0x208
cmp qword [rbp + 0x20], 8
jb 0x14003b671
lea rsi, [rbp + 8]
mov r9, qword [rsi]
jmp 0x14003b678
lea rsi, [rbp + 8]
mov r9, rsi
lea r8, str.SELECT_Directory_Parent_DefaultDir_FROM_Directory_WHERE__Directory__s
mov edx, 0x104
lea rcx, [rsp + 0x8a0]
call fcn.140066ef4
mov rax, qword [0x1400d51b8]
test rax, rax
je 0x14003b808
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x8a0]
mov ecx, edi
call rax
test eax, eax
jne 0x14003b808
mov rax, qword [0x1400d5170]
test rax, rax
je 0x14003b7f6
mov ecx, 0xa
call rax
mov r12d, eax
test eax, eax
je 0x14003b7f6
mov rax, qword [0x1400d51a8]
test rax, rax
je 0x14003b7e5
mov edx, r12d
mov ecx, dword [rsp + 0x30]
call rax
test eax, eax
jne 0x14003b7e5
mov dword [rsp + 0x34], eax
mov rax, qword [0x1400d51a0]
test rax, rax
je 0x14003b7e5
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call rax
test eax, eax
jne 0x14003b7e5
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x14003b7e5
lea ebx, [rax + 1]
mov rax, qword [0x1400d5198]
test rax, rax
je 0x14003b752
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x490]
mov edx, ebx
call rax
mov ebx, eax
test ebx, ebx
jne 0x14003b7d3
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x490]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x490]
mov rcx, r13
call fcn.140001870
mov ebx, 1
mov rax, qword [0x1400d5198]
test rax, rax
je 0x14003b7a7
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x80]
lea edx, [rbx + 1]
mov ecx, dword [rsp + 0x34]
call rax
mov ebx, eax
test ebx, ebx
jne 0x14003b7d3
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.140001870
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003b808
mov ecx, dword [rsp + 0x34]
call rax
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003b808
mov ecx, r12d
call rax
mov rax, qword [0x1400d5178]
test rax, rax
je 0x14003b808
mov ecx, dword [rsp + 0x30]
call rax
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
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, r14
call fcn.1400144a0
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, r14
call fcn.1400144a0
nop
cmp qword [rsp + 0x68], 8
jb 0x14003b87b
mov rcx, qword [rsp + 0x50]
call fcn.140065920
mov qword [rsp + 0x68], 7
xor edi, edi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
cmp qword [rbp + 0x20], 8
jb 0x14003b89f
mov rcx, qword [rsi]
call fcn.140065920
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], rdi
mov word [rsi], di
mov eax, ebx
mov rcx, qword [rsp + 0xab0]
xor rcx, rsp
call fcn.140064b70
add rsp, 0xac8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret