Function at 0x14018ba30
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov dword [rsp + 0x34], 0
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x3d0]
call fcn.140191d50
movzx eax, al
test eax, eax
je 0x14018ba76
mov al, 1
jmp 0x14018c454
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018bab1
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018c44f
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0xf8], rax
mov dl, 1
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + 0xf8]
movzx eax, al
test eax, eax
je 0x14018c432
lea rcx, [rsp + 0x58]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x100], rax
lea rdx, [0x14031be18]
lea rcx, [rsp + 0x278]
call fcn.1400179b0
nop
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x278]
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + 0x100]
test eax, eax
jne 0x14018bb6d
lea rcx, [rsp + 0x58]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018bb6d
mov dword [rsp + 0x40], 1
jmp 0x14018bb75
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x34]
and eax, 1
test eax, eax
je 0x14018bb9b
and dword [rsp + 0x34], 0xfffffffe
lea rcx, [rsp + 0x278]
call fcn.14000a800
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14018c3c4
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14002d0f0
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x1b8]
call fcn.140015150
nop
lea rcx, [rsp + 0x58]
call fcn.14005aaa0
mov byte [rsp + 0x32], 0
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0xa0], rax
lea rdx, str.SELECT_default_database_name_FROM_sys.server_principals_WHERE_name__SYSTEM_USER
lea rcx, [rsp + 0x298]
call fcn.1400179b0
nop
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + reloc.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x14018bc66
lea rcx, [rsp + 0x58]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018bc66
mov dword [rsp + 0x44], 1
jmp 0x14018bc6e
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x39], al
mov eax, dword [rsp + 0x34]
and eax, 2
test eax, eax
je 0x14018bc94
and dword [rsp + 0x34], 0xfffffffd
lea rcx, [rsp + 0x298]
call fcn.14000a800
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x14018bd7a
mov byte [rsp + 0x32], 1
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14002d0f0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x3d0]
add rax, 0xe0
mov qword [rsp + 0xb0], rax
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call fcn.140071750
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x3b]
call fcn.1401954c0
movzx eax, al
test eax, eax
jne 0x14018bd70
mov rax, qword [rsp + 0x3d0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.14001e490
lea rcx, [rsp + 0x1b8]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.14001e490
mov rax, qword [rsp + 0x3d0]
add rax, 0x90
lea r9, [rsp + 0x168]
lea r8, [rsp + 0x178]
lea rdx, [0x14031bef0]
mov rcx, rax
call fcn.14001d950
jmp 0x14018bd75
mov byte [rsp + 0x30], 1
jmp 0x14018c2ee
mov rax, qword [rsp + 0x3d0]
add rax, 0x160
mov rdx, qword [0x1408cfdd8]
mov rcx, rax
call fcn.14003a7a0
movzx eax, al
test eax, eax
je 0x14018c2ee
lea rcx, [rsp + 0x58]
call fcn.14005aaa0
lea rcx, [rsp + 0x120]
call fcn.14000df30
nop
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x120]
mov r8b, 1
lea rdx, [0x14031bd34]
lea rcx, [rsp + 0x1b8]
call fcn.1401949f0
lea rcx, [rsp + 0x120]
call fcn.140037560
cmp rax, 2
jne 0x14018be6c
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0xb8], rax
lea rdx, str.SELECT_name__default_database_name_FROM_sys.server_principals_WHERE_type__G
lea rcx, [rsp + 0x2b8]
call fcn.1400179b0
nop
mov eax, dword [rsp + 0x34]
or eax, 4
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x58]
mov r8d, 2
lea rdx, [rsp + 0x2b8]
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + MsiConfigureProductExA]
test eax, eax
jne 0x14018be6c
lea rcx, [rsp + 0x58]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018be6c
mov dword [rsp + 0x48], 1
jmp 0x14018be74
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x3a], al
mov eax, dword [rsp + 0x34]
and eax, 4
test eax, eax
je 0x14018be9a
and dword [rsp + 0x34], 0xfffffffb
lea rcx, [rsp + 0x2b8]
call fcn.14000a800
movzx eax, byte [rsp + 0x3a]
test eax, eax
je 0x14018c2e1
mov byte [rsp + 0x32], 1
mov edx, 1
lea rcx, [rsp + 0x120]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x258]
call fcn.140015150
nop
lea rcx, [rsp + 0x320]
call fcn.1401757c0
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140009d90
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000af40
mov qword [rsp + 0xc0], rax
jmp 0x14018bf18
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0x50], rax
je 0x14018c2c5
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x108]
call fcn.140017b80
nop
mov edx, 1
lea rcx, [rsp + 0x108]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x238]
call fcn.140015150
nop
lea rcx, [rsp + 0x80]
call fcn.14000df30
nop
xor edx, edx
lea rcx, [rsp + 0x108]
call fcn.140071750
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8b, 1
lea rdx, [0x14031bd54]
mov rcx, rax
call fcn.1401949f0
lea rcx, [rsp + 0x80]
call fcn.140037560
cmp rax, 2
jae 0x14018bfde
lea rcx, [rsp + 0x80]
call fcn.1400183c0
nop
lea rcx, [rsp + 0x238]
call fcn.14000a800
nop
lea rcx, [rsp + 0x108]
call fcn.1400183c0
jmp 0x14018bf0a
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.140015150
nop
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.140015150
nop
lea rcx, [rsp + 0x1d8]
call fcn.14000a280
nop
lea rcx, [rsp + 0x198]
call fcn.14000a280
nop
mov byte [rsp + 0x31], 0
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x320]
call fcn.140176190
movzx eax, al
test eax, eax
je 0x14018c091
xor r8d, r8d
mov dx, reloc.msi.dll_MsiGetComponentStateA
lea rcx, [rsp + 0x198]
call fcn.1400786e0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x14018c091
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x198]
call fcn.1400d7d40
lea r8, [rsp + 0x1f8]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x3c]
call fcn.1401954c0
movzx eax, al
test eax, eax
je 0x14018c173
lea rcx, [rsp + 0x2f8]
call fcn.14000a280
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x2d8]
call fcn.14000a280
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf0]
lea r8, [rsp + 0x218]
lea rdx, [rsp + 0x258]
lea rcx, [rsp + 0x320]
call fcn.14017e0c0
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x2d8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2f8]
call fcn.14000a800
jmp 0x14018c1c0
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x320]
call fcn.140176380
movzx eax, al
test eax, eax
je 0x14018c1c0
lea r9, [rsp + 0x1d8]
lea r8, [rsp + 0x218]
lea rdx, [rsp + 0x258]
lea rcx, [rsp + 0x320]
call fcn.14017e500
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x14018c25f
mov rax, qword [rsp + 0x3d0]
add rax, 0xe0
mov r8, rax
lea rdx, [rsp + 0x238]
lea rcx, [rsp + 0x3d]
call fcn.1401954c0
movzx eax, al
test eax, eax
je 0x14018c25f
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x198]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1d8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1f8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x218]
call fcn.14000a800
nop
lea rcx, [rsp + 0x80]
call fcn.1400183c0
nop
lea rcx, [rsp + 0x238]
call fcn.14000a800
nop
lea rcx, [rsp + 0x108]
call fcn.1400183c0
jmp 0x14018c2c5
lea rcx, [rsp + 0x198]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1d8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1f8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x218]
call fcn.14000a800
nop
lea rcx, [rsp + 0x80]
call fcn.1400183c0
nop
lea rcx, [rsp + 0x238]
call fcn.14000a800
nop
lea rcx, [rsp + 0x108]
call fcn.1400183c0
jmp 0x14018bf0a
lea rcx, [rsp + 0x320]
call fcn.140175840
nop
lea rcx, [rsp + 0x258]
call fcn.14000a800
nop
lea rcx, [rsp + 0x120]
call fcn.1400183c0
movzx eax, byte [rsp + 0x32]
test eax, eax
jne 0x14018c33b
lea rcx, [rsp + 0x1b8]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x188]
call fcn.14001e490
mov rax, qword [rsp + 0x3d0]
add rax, 0x90
lea r8, [rsp + 0x188]
lea rdx, str._Unable_to_determine_default_database_of_DB_login__S._
mov rcx, rax
call fcn.140014cf0
jmp 0x14018c3b5
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14018c3b5
mov rax, qword [rsp + 0x3d0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x138]
call fcn.14001e490
lea rcx, [rsp + 0x1b8]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x148]
call fcn.14001e490
mov rax, qword [rsp + 0x3d0]
add rax, 0x90
lea r9, [rsp + 0x138]
lea r8, [rsp + 0x148]
lea rdx, str._The_default_database_of_DB_login__S_is_not__S_
mov rcx, rax
call fcn.14001d950
nop
lea rcx, [rsp + 0x1b8]
call fcn.14000a800
jmp 0x14018c40f
mov rax, qword [rsp + 0x3d0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.14001e490
mov rax, qword [rsp + 0x3d0]
add rax, 0x90
lea r8, [rsp + 0x158]
lea rdx, str._Unable_to_determine_current_DB_login_of__S._
mov rcx, rax
call fcn.140014cf0
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x58]
call fcn.140057b10
jmp 0x14018c44f
mov rax, qword [rsp + 0x3d0]
add rax, 0x90
lea rdx, str._Unable_to_connect_to_database._
mov rcx, rax
call fcn.140015550
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x3c8
ret