Function at 0x10014550
Capabilities:
Reference sql statements
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043733
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa50], ecx
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xa4c], 0
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov dword [ebp - 0xa54], eax
mov dword [ebp - 4], 0
test eax, eax
jne 0x100145b2
mov esi, 0x643
jmp 0x10014979
lea eax, [ebp - 0xa40]
mov dword [ebp - 0xa40], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push str.AI_PRINT_RTF
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
xor esi, esi
test eax, eax
jne 0x10014979
mov ax, word [ebp - 0x210]
or ecx, 0xffffffff
test ax, ax
je 0x10014977
lea edi, [ebp - 0x60c]
movzx edx, ax
nop dword [eax]
cmp dx, 0x23
jne 0x10014624
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0x20e]
lea eax, [eax + ecx*2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, esi
add edi, 0x1fe
movzx eax, word [ebp + esi*2 - 0x20e]
inc esi
mov edx, eax
test ax, ax
jne 0x10014600
test esi, esi
je 0x10014977
lea eax, [ebp - 0x20e]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x40e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x40e]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x9f4]
push str.SELECT__Text__FROM__Control__WHERE__Control_._Dialog___s_AND__Control_._Control__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0xa48], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa48]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x10014697
push eax
call edi
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa48], 0
push eax
lea eax, [ebp - 0x9f4]
push eax
push dword [ebp - 0xa54]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x10014959
push eax
push dword [ebp - 0xa48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10014959
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa24]
call fcn.100090b0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xa3c]
push eax
mov dword [ebp - 0xa4c], 4
call fcn.10002020
mov dword [ebp - 4], 0xb
mov esi, 4
mov dword [ebp - 0xa4c], esi
and esi, 0xfffffffb
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa24]
call fcn.10003630
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40e]
push str..rtf
push eax
lea edx, [ebp - 0xa3c]
lea ecx, [ebp - 0xa0c]
call fcn.10009390
or esi, 8
add esp, 8
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa3c]
call fcn.10003630
mov eax, dword [ebp - 0xa50]
lea ecx, [ebp - 0xa0c]
add eax, 4
cmp eax, ecx
je 0x100147c0
mov ecx, eax
call fcn.10003630
movups xmm0, xmmword [ebp - 0xa0c]
mov ecx, dword [ebp - 0xa50]
xor eax, eax
mov word [ebp - 0xa0c], ax
movups xmmword [ecx + 4], xmm0
movq xmm0, qword [ebp - 0x9fc]
movq qword [ecx + 0x14], xmm0
mov dword [ebp - 0x9fc], 0
mov dword [ebp - 0x9f8], 7
nop
and esi, 0xfffffff7
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0c]
call fcn.10003630
mov dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0xa44]
test eax, eax
je 0x100147f3
push eax
call edi
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xa44], 0
push eax
push dword [ebp - 0xa48]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x1001493e
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa40]
push eax
push 0x10055ce4
push 1
push dword [ebp - 0xa44]
call dword [sym.imp.msi.dll_MsiRecordSetInteger]
cmp eax, 0xea
jne 0x100147e6
push dword [ebp - 0xa40]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0xa5c], 0xffffffff
mov dword [ebp - 0xa58], esi
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0xa40]
inc dword [ebp - 0xa40]
push eax
push esi
push 1
push dword [ebp - 0xa44]
call dword [sym.imp.msi.dll_MsiRecordSetInteger]
mov ecx, dword [ebp - 0xa50]
lea eax, [ebp - 0xa24]
push eax
lea ecx, [ecx + 4]
call fcn.1000d6e0
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x100148a0
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xa24]
call fcn.10003630
cmp edi, 0xffffffff
je 0x1001491b
push 0
lea eax, [ebp - 0xa60]
push eax
push dword [ebp - 0xa40]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x16
test esi, esi
je 0x100148fc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa5c], 0
jmp 0x100147e6
mov byte [ebp - 4], 0x16
test esi, esi
je 0x1001492a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa5c], 0
xor esi, esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa44]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x10014964
push eax
call edi
jmp 0x10014964
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, 0x643
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xa48]
test eax, eax
je 0x1001497f
push eax
call edi
jmp 0x1001497f
xor esi, esi
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa54]
test eax, eax
je 0x10014993
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c803
mov esp, ebp
pop ebp
ret 4