Function at 0x14018aca0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x140]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018acfe
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x140]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018b042
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x40], rax
mov dl, 1
mov rcx, qword [rsp + 0x140]
call qword [rsp + 0x40]
movzx eax, al
test eax, eax
je 0x14018aff7
lea rcx, [rsp + 0x100]
call fcn.14000a280
nop
lea rcx, [rsp + 0x58]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x140]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001e490
lea r8, [rsp + 0x70]
lea rdx, str.SELECT_compatibility_level_FROM_sys.databases_WHERE_name_S
lea rcx, [rsp + 0x100]
call fcn.140014cf0
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x140]
call qword [rsp + SQLSetEnvAttr]
test eax, eax
jne 0x14018afc6
lea rcx, [rsp + 0x58]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018af61
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14002d0f0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140071750
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x34]
mov rcx, rax
call fcn.14008db90
movzx eax, al
test eax, eax
je 0x14018aefa
cmp dword [rsp + 0x34], 0
jl 0x14018aefa
cmp dword [rsp + 0x34], 0x6e
jl 0x14018ae38
mov dword [rsp + 0x38], 1
jmp 0x14018ae40
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14018aedb
mov edx, MsiRecordGetStringA
lea rcx, [rsp + 0x80]
call fcn.1400486c0
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x90]
call fcn.1400486c0
mov rax, qword [rsp + 0x140]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14001e490
mov rax, qword [rsp + 0x140]
add rax, 0x90
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xa0]
lea rdx, str._The_compatibility_level_of_database__S_is__d__which_is_below_the_minimum_required_level_of__d._
mov rcx, rax
call fcn.140070040
jmp 0x14018aef8
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x140]
call qword [rax + 0x80]
mov byte [rsp + 0x30], al
jmp 0x14018af5f
mov edx, MsiRecordGetStringA
lea rcx, [rsp + 0xb0]
call fcn.1400486c0
mov rax, qword [rsp + 0x140]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.14001e490
mov rax, qword [rsp + 0x140]
add rax, 0x90
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xc0]
lea rdx, str._Invalid_compatibility_level_of_database__S.__Minimum_required_level_is__d._
mov rcx, rax
call fcn.14001d950
jmp 0x14018afc6
mov edx, MsiRecordGetStringA
lea rcx, [rsp + 0xd0]
call fcn.1400486c0
mov rax, qword [rsp + 0x140]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14001e490
mov rax, qword [rsp + 0x140]
add rax, 0x90
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xe0]
lea rdx, str._Unable_to_determine_compatibility_level_of_database__S.__Minimum_required_level_is__d._
mov rcx, rax
call fcn.14001d950
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x140]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x58]
call fcn.140057b10
nop
lea rcx, [rsp + 0x100]
call fcn.14000a800
jmp 0x14018b042
mov rax, qword [rsp + 0x140]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14001e490
mov rax, qword [rsp + 0x140]
add rax, 0x90
lea r8, [rsp + 0xf0]
lea rdx, str._Unable_to_open_database__S._
mov rcx, rax
call fcn.140014cf0
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x138
ret