Function at 0x14018e380
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x8a8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov byte [rsp + 0x20], 0
lea rax, str.SELECT_a.name__d.name__c.name__b.is_included_column__CASE_WHEN_a.type_desc__CLUSTERED_THEN_1_ELSE_0_END__a.is_unique__a.allow_page_locks__a.ignore_dup_key__a.filter_definition_FROM_sys.indexes_a_INNER_JOIN_sys.index_columns_b_ON_a.object_id__b.object_id_AND_a.index_id__b.index_id_INNER_JOIN_sys.columns_c_ON_b.object_id__c.object_id_AND_b.column_id__c.column_id_INNER_JOIN_sys.objects_d_ON_c.object_id__d.object_id_INNER_JOIN_sys.schemas_e_ON_d.schema_id__e.schema_id_WHERE_e.name___S_AND_a.type___0_ORDER_BY_a.name
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x8b0]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018e3ef
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x8b0]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018ec2d
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x38], rax
mov dl, 1
mov rcx, qword [rsp + 0x8b0]
call qword [rsp + MsiGetFeatureValidStatesW]
movzx eax, al
test eax, eax
je 0x14018ec2d
lea rcx, [rsp + 0x1a8]
call fcn.14000a280
nop
lea rcx, [rsp + 0x128]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x8b0]
add rax, 0x100
mov rcx, rax
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14018e475
mov rax, qword [rsp + 0x8b0]
add rax, 0x180
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x30], rax
jmp 0x14018e490
mov rax, qword [rsp + 0x8b0]
add rax, 0x100
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x150]
call fcn.14001e490
lea r8, [rsp + 0x150]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x1a8]
call fcn.140014cf0
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x128]
mov r8d, 9
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0x8b0]
call qword [rsp + SQLSetEnvAttr]
test eax, eax
jne 0x14018ebfb
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x128]
call fcn.14000e6a0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x128]
call fcn.14000e890
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e0f0
movzx eax, al
test eax, eax
je 0x14018ebfb
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x188]
call fcn.140015150
nop
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x58], rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140071750
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x2f0]
call fcn.140142410
nop
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x60], rax
mov edx, 4
mov rcx, qword [rsp + 0x60]
call fcn.140071750
mov qword [rsp + 0x68], rax
lea rdx, str.clustered
lea rcx, [rsp + 0x1c8]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x4d0]
call fcn.140142410
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x4d0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x1c8]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x80], rax
mov edx, 5
mov rcx, qword [rsp + 0x80]
call fcn.140071750
mov qword [rsp + 0x88], rax
lea rdx, str.unique
lea rcx, [rsp + 0x1e8]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x570]
call fcn.140142410
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x570]
call fcn.140049b90
nop
lea rcx, [rsp + 0x1e8]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xa0], rax
mov edx, 6
mov rcx, qword [rsp + 0xa0]
call fcn.140071750
mov qword [rsp + 0xa8], rax
lea rdx, [0x14031e6b8]
lea rcx, [rsp + 0x208]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0x610]
call fcn.140142410
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x610]
call fcn.140049b90
nop
lea rcx, [rsp + 0x208]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xc0], rax
mov edx, 7
mov rcx, qword [rsp + 0xc0]
call fcn.140071750
mov qword [rsp + 0xc8], rax
lea rdx, [0x14031da78]
lea rcx, [rsp + 0x228]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0xc8]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x6b0]
call fcn.140142410
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x6b0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x228]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xe0], rax
mov edx, 8
mov rcx, qword [rsp + 0xe0]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.140015150
nop
lea rdx, [0x14031c9e4]
lea rcx, [rsp + 0x168]
call fcn.14003d1f0
movzx eax, al
test eax, eax
je 0x14018e8b3
mov r8d, 1
xor edx, edx
lea rcx, [rsp + 0x168]
call fcn.140078570
lea rdx, [0x14031ca3c]
lea rcx, [rsp + 0x168]
call fcn.140029be0
movzx eax, al
test eax, eax
je 0x14018e903
lea rcx, [rsp + 0x168]
call fcn.140016630
test rax, rax
jbe 0x14018e903
lea rcx, [rsp + 0x168]
call fcn.140016630
dec rax
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.1400371f0
lea rdx, str.filterdef
lea rcx, [rsp + 0x248]
call fcn.1400179b0
nop
mov r9d, 1
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x750]
call fcn.140142410
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x750]
call fcn.140049b90
nop
lea rcx, [rsp + 0x248]
call fcn.14000a800
lea rdx, [0x14031cc94]
lea rcx, [rsp + 0x288]
call fcn.1400179b0
nop
lea rdx, [0x14031e6d8]
lea rcx, [rsp + 0x268]
call fcn.1400179b0
nop
xor r9d, r9d
lea r8, [rsp + 0x288]
lea rdx, [rsp + 0x268]
lea rcx, [rsp + 0x430]
call fcn.140194f00
nop
lea rcx, [rsp + 0x268]
call fcn.14000a800
nop
lea rcx, [rsp + 0x288]
call fcn.14000a800
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x128]
call fcn.14000e890
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e0f0
movzx eax, al
test eax, eax
je 0x14018eb94
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xf8], rax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.140071750
lea rdx, [rsp + 0x188]
mov rcx, rax
call fcn.140024f20
movzx eax, al
test eax, eax
je 0x14018eb94
lea rdx, [0x14031ce44]
lea rcx, [rsp + 0x2a8]
call fcn.1400179b0
nop
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x100], rax
mov edx, 2
mov rcx, qword [rsp + 0x100]
call fcn.140071750
xor r9d, r9d
lea r8, [rsp + 0x2a8]
mov rdx, rax
lea rcx, [rsp + 0x390]
call fcn.140142410
nop
lea rcx, [rsp + 0x2a8]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x108], rax
mov edx, 3
mov rcx, qword [rsp + 0x108]
call fcn.140071750
mov qword [rsp + 0x110], rax
lea rdx, [0x14031e6e8]
lea rcx, [rsp + 0x2c8]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0x110]
lea rdx, [rsp + 0x2c8]
lea rcx, [rsp + 0x7f0]
call fcn.140142410
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x390]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x7f0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x2c8]
call fcn.14000a800
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0x430]
call fcn.14004cec0
lea rcx, [rsp + 0x28]
call fcn.1401953f0
nop
lea rcx, [rsp + 0x390]
call fcn.140049b90
jmp 0x14018e9ea
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x2f0]
call fcn.14004cec0
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x8b8]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x430]
call fcn.140049b90
nop
lea rcx, [rsp + 0x168]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2f0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x188]
call fcn.14000a800
jmp 0x14018e51f
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x8b0]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x128]
call fcn.140057b10
nop
lea rcx, [rsp + 0x1a8]
call fcn.14000a800
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x8a8
ret