Function at 0x14018dbc0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x728
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov byte [rsp + 0x20], 0
lea rax, str.SELECT_a.name__b.name____CASE_c.name_____WHEN_nvarchar_THEN_str_____WHEN_char_THEN_bool_____WHEN_uniqueidentifier_THEN_guid_____WHEN_varbinary_THEN_binary_____WHEN_datetime_THEN_date_____WHEN_image_THEN_binary_____WHEN_ntext_THEN_str_____WHEN_bigint_THEN_long_____ELSE_c.name___END____CASE_____WHEN_c.name__nvarchar_AND_b.max_length___0_THEN_b.max_length___2_____WHEN_c.name__nvarchar_AND_b.max_length__0_THEN__1_____WHEN_c.name__ntext_THEN__1_____WHEN_c.name__image_THEN__1_____ELSE_b.max_length_END____b.is_nullable____cc.definition____b.collation_name_FROM_sys.objects_a_INNER_JOIN_sys.schemas_a2___ON_a.schema_id__a2.schema_id_INNER_JOIN_sys.columns_b___ON_a.object_id__b.object_id_LEFT_JOIN_sys.computed_columns_cc___ON_b.object_id__cc.object_id___AND_b.column_id__cc.column_id_INNER_JOIN_sys.types_c___ON_b.user_type_id__c.user_type_id_WHERE_a.typeU_AND_a2.name___S_ORDER_BY_a.name
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x730]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018dc2f
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x730]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018e355
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x38], rax
mov dl, 1
mov rcx, qword [rsp + 0x730]
call qword [rsp + MsiGetFeatureValidStatesW]
movzx eax, al
test eax, eax
je 0x14018e355
lea rcx, [rsp + 0x108]
call fcn.14000df30
nop
lea rcx, [rsp + 0x188]
call fcn.14000a280
nop
mov rax, qword [rsp + 0x730]
add rax, 0x100
mov rcx, rax
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14018dcb5
mov rax, qword [rsp + 0x730]
add rax, 0x180
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x30], rax
jmp 0x14018dcd0
mov rax, qword [rsp + 0x730]
add rax, 0x100
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x130]
call fcn.14001e490
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x188]
call fcn.140014cf0
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x108]
mov r8d, 7
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0x730]
call qword [rsp + SQLSetEnvAttr]
test eax, eax
jne 0x14018e323
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x108]
call fcn.14000e6a0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x108]
call fcn.14000e890
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e0f0
movzx eax, al
test eax, eax
je 0x14018e323
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 + 0x168]
call fcn.140015150
nop
lea rdx, [0x14031c824]
lea rcx, [rsp + 0x1a8]
call fcn.1400179b0
nop
xor r9d, r9d
lea r8, [rsp + 0x1a8]
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x350]
call fcn.140142410
nop
lea rcx, [rsp + 0x1a8]
call fcn.14000a800
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x108]
call fcn.14000e890
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e0f0
movzx eax, al
test eax, eax
je 0x14018e2ed
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140071750
lea rdx, [rsp + 0x168]
mov rcx, rax
call fcn.140024f20
movzx eax, al
test eax, eax
je 0x14018e2ed
lea rdx, [0x14031c844]
lea rcx, [rsp + 0x1c8]
call fcn.1400179b0
nop
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x60], rax
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.140071750
xor r9d, r9d
lea r8, [rsp + 0x1c8]
mov rdx, rax
lea rcx, [rsp + 0x2b0]
call fcn.140142410
nop
lea rcx, [rsp + 0x1c8]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x68], rax
mov edx, 2
mov rcx, qword [rsp + 0x68]
call fcn.140071750
mov qword [rsp + 0x70], rax
lea rdx, [0x14031e258]
lea rcx, [rsp + 0x1e8]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x3f0]
call fcn.140142410
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x2b0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x3f0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x1e8]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0x88], rax
mov edx, 3
mov rcx, qword [rsp + 0x88]
call fcn.140071750
mov qword [rsp + 0x90], rax
lea rdx, [0x14031da68]
lea rcx, [rsp + 0x208]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0x490]
call fcn.140142410
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x2b0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x490]
call fcn.140049b90
nop
lea rcx, [rsp + 0x208]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xa8], rax
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call fcn.140071750
mov qword [rsp + 0xb0], rax
lea rdx, str.isNullable
lea rcx, [rsp + 0x228]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x530]
call fcn.140142410
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x2b0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x530]
call fcn.140049b90
nop
lea rcx, [rsp + 0x228]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xc8], rax
mov edx, 5
mov rcx, qword [rsp + 0xc8]
call fcn.140071750
mov rdx, rax
lea rcx, [rsp + 0x148]
call fcn.140015150
nop
lea rcx, [rsp + 0x148]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x14018e17f
lea rcx, [rsp + 0x148]
call fcn.140196030
movzx eax, word [rax]
cmp eax, 0x28
jne 0x14018e17f
lea rcx, [rsp + 0x148]
call fcn.140164750
movzx eax, word [rax]
cmp eax, 0x29
jne 0x14018e17f
lea rcx, [rsp + 0x148]
call fcn.140016630
sub rax, 2
mov r9, rax
mov r8d, 1
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x148]
call fcn.1400375d0
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x148]
call fcn.14001e7a0
lea rcx, [rsp + 0x288]
call fcn.14000a800
lea rdx, [0x14031d328]
lea rcx, [rsp + 0x248]
call fcn.1400179b0
nop
mov r9d, 1
lea r8, [rsp + 0x148]
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x5d0]
call fcn.140142410
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x2b0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x5d0]
call fcn.140049b90
nop
lea rcx, [rsp + 0x248]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.140009d90
mov qword [rsp + 0xe8], rax
mov edx, 6
mov rcx, qword [rsp + 0xe8]
call fcn.140071750
mov qword [rsp + 0xf0], rax
lea rdx, [0x14031d538]
lea rcx, [rsp + 0x268]
call fcn.1400179b0
nop
mov r9d, 1
mov r8, qword [rsp + 0xf0]
lea rdx, [rsp + 0x268]
lea rcx, [rsp + 0x670]
call fcn.140142410
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x2b0]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x670]
call fcn.140049b90
nop
lea rcx, [rsp + 0x268]
call fcn.14000a800
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x350]
call fcn.14004cec0
lea rcx, [rsp + 0x28]
call fcn.1401953f0
nop
lea rcx, [rsp + 0x148]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2b0]
call fcn.140049b90
jmp 0x14018ddfb
lea rdx, [rsp + 0x350]
mov rcx, qword [rsp + 0x738]
call fcn.14004cec0
nop
lea rcx, [rsp + 0x350]
call fcn.140049b90
nop
lea rcx, [rsp + 0x168]
call fcn.14000a800
jmp 0x14018dd5f
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x730]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x188]
call fcn.14000a800
nop
lea rcx, [rsp + 0x108]
call fcn.140057b10
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x728
ret