Function at 0x14018b360
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov dword [rsp + 0x34], 0x65ad
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1b0]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018b3c6
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1b0]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018b9ff
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x68], rax
xor edx, edx
mov rcx, qword [rsp + 0x1b0]
call qword [rsp + 0x68]
movzx eax, al
test eax, eax
je 0x14018b9ff
mov byte [rsp + 0x32], 0
mov byte [rsp + 0x31], 0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x158]
call fcn.14000a280
nop
lea rcx, [rsp + 0x50]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x1b0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.14001e490
lea r8, [rsp + 0xb8]
lea rdx, str.SELECT_is_read_committed_snapshot_on_snapshot_isolation_state_is_broker_enabled_FROM_sys.databases_WHERE_name_S
lea rcx, [rsp + 0x158]
call fcn.140014cf0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x50]
mov r8d, 3
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x1b0]
call qword [rsp + MsiRecordGetStringA]
test eax, eax
jne 0x14018b641
lea rcx, [rsp + 0x50]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b641
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14002d0f0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b4f7
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140071750
lea rdx, [0x14031c6ac]
mov rcx, rax
call fcn.14003a7a0
movzx eax, al
test eax, eax
je 0x14018b4fc
mov byte [rsp + 0x32], 1
mov rcx, qword [rsp + 0x38]
call fcn.140037560
cmp rax, 2
jb 0x14018b531
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140071750
lea rdx, [0x14031c6ec]
mov rcx, rax
call fcn.14003a7a0
movzx eax, al
test eax, eax
je 0x14018b536
mov byte [rsp + 0x31], 1
mov rcx, qword [rsp + 0x38]
call fcn.140037560
cmp rax, 3
jb 0x14018b56f
mov edx, 2
mov rcx, qword [rsp + 0x38]
call fcn.140071750
lea rdx, [0x14031c724]
mov rcx, rax
call fcn.14003a7a0
movzx eax, al
test eax, eax
je 0x14018b637
mov rcx, qword [rsp + 0x1b8]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x14018b632
mov r8w, reloc.msi.dll_MsiGetComponentStateA
mov edx, 1
lea rcx, [rsp + 0x178]
call fcn.1400708b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x128]
call fcn.1401724c0
nop
lea rcx, [rsp + 0x178]
call fcn.14000a800
mov rax, qword [rsp + 0x128]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 3
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0x140]
call fcn.1401723f0
mov rdx, rax
lea rcx, [rsp + 0x128]
call qword [rsp + reloc.ODBC32.dll_SQLGetDiagRecW]
movzx eax, al
test eax, eax
je 0x14018b630
mov byte [rsp + 0x30], 1
jmp 0x14018b637
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x50]
call fcn.14005aaa0
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x14018b653
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x14018b660
mov dword [rsp + 0x34], 0x65b5
jmp 0x14018b9d0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14018b676
mov dword [rsp + 0x34], 0x65ce
jmp 0x14018b9d0
mov rax, qword [rsp + 0x1b0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.14001e490
lea r8, [rsp + 0xc8]
lea rdx, str.SELECT_databasepropertyex___S__collation__
lea rcx, [rsp + 0x158]
call fcn.140014cf0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x1b0]
call qword [rsp + MsiSummaryInfoSetPropertyW]
test eax, eax
jne 0x14018b9d0
lea rcx, [rsp + 0x50]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b985
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14002d0f0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b74e
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140071750
mov rcx, rax
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14018b79e
mov rax, qword [rsp + 0x1b0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.14001e490
mov rax, qword [rsp + 0x1b0]
add rax, 0x90
lea r8, [rsp + 0xd8]
lea rdx, [0x14031d3a0]
mov rcx, rax
call fcn.140014cf0
jmp 0x14018b983
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140071750
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.14001e490
lea r8, [rsp + 0xe8]
lea rdx, str.SELECT_description_FROM_fn_helpcollations___WHERE_name___S
lea rcx, [rsp + 0x158]
call fcn.140014cf0
lea rcx, [rsp + 0xa0]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0xa0]
mov r8d, 1
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x1b0]
call qword [rsp + MsiVerifyPackageW]
test eax, eax
jne 0x14018b976
lea rcx, [rsp + 0xa0]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b92c
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.14002d0f0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018b8e1
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.140071750
xor r8d, r8d
lea rdx, str.case_insensitive
mov rcx, rax
call fcn.140194020
cmp rax, 0xffffffffffffffff
je 0x14018b8c1
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140071750
mov rcx, qword [rsp + 0x1b0]
add rcx, 0x90
mov rdx, rax
call fcn.1400185b0
mov dword [rsp + 0x34], 0x65ae
jmp 0x14018b8df
mov rax, qword [rsp + 0x1b0]
add rax, 0x90
mov rcx, rax
call fcn.140016540
mov dword [rsp + 0x34], 0
jmp 0x14018b92a
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140071750
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.14001e490
mov rax, qword [rsp + 0x1b0]
add rax, 0x90
lea r8, [rsp + 0xf8]
lea rdx, [0x14031d4b0]
mov rcx, rax
call fcn.140014cf0
jmp 0x14018b976
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140071750
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.14001e490
mov rax, qword [rsp + 0x1b0]
add rax, 0x90
lea r8, [rsp + 0x108]
lea rdx, str._Empty_description_returned_from_database_server_for_collation__S_
mov rcx, rax
call fcn.140014cf0
nop
lea rcx, [rsp + 0xa0]
call fcn.140057b10
jmp 0x14018b9d0
mov rax, qword [rsp + 0x1b0]
add rax, 0xe0
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.14001e490
mov rax, qword [rsp + 0x1b0]
add rax, 0x90
lea r8, [rsp + 0x118]
lea rdx, str._Empty_collation_name_returned_from_database_server_for_database__S_
mov rcx, rax
call fcn.140014cf0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1b0]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x50]
call fcn.140057b10
nop
lea rcx, [rsp + 0x158]
call fcn.14000a800
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x1a8
ret