Function at 0x1000250f
Capabilities:
Check if file exists
Delete file
Get common file path
Reference sql statements
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc24
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call sub.msi.dll_MsiGetFeatureCostA
xor esi, esi
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x10002540
mov eax, 0x643
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
push str.AI_PRINT_RTF
push dword [ebp + 8]
mov dword [esp + 0x28], 0xff
call sub.msi.dll_MsiGetSummaryInformationW
test eax, eax
je 0x10002570
push dword [esp + 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
jmp 0x10002537
or eax, 0xffffffff
cmp word [esp + 0x40], si
je 0x100025b7
lea ecx, [esp + 0x40]
lea edi, [esp + 0x240]
cmp word [ecx], 0x23
jne 0x100025a4
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [esp + eax*2 + 0x46]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, esi
add edi, 0x1fe
inc esi
lea ecx, [esp + esi*2 + 0x40]
cmp word [ecx], 0
jne 0x10002585
mov dword [esp + 0x28], esi
test esi, esi
jne 0x100025c9
xor ebx, ebx
push dword [esp + 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
jmp 0x10002537
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + eax*2 + 0x42]
push eax
lea eax, [esp + 0x442]
push eax
call esi
lea eax, [esp + 0x43e]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x850]
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
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x84c]
push eax
push dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x1c], edi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x1000263d
cmp dword [esp + 0x10], edi
je 0x10002633
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, 0x643
jmp 0x100025b9
push edi
push dword [esp + 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x10002624
lea eax, [esp + 0x640]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10002624
lea ecx, [esp + 0x640]
call fcn.100013d5
lea ecx, [esp + 0x43e]
mov edi, eax
call fcn.100013d5
lea eax, [eax + edi + 8]
cmp eax, 0x104
jbe 0x1000268e
cmp dword [esp + 0x10], 0
jmp 0x10002628
lea ecx, [esp + 0x640]
lea eax, [ebx + 4]
push ecx
push eax
mov dword [esp + 0x24], eax
call esi
lea eax, [esp + 0x43e]
push eax
lea eax, [ebx + edi*2 + 4]
push eax
call esi
mov ecx, dword [esp + 0x1c]
call fcn.100013d5
mov dword [esp + 0x24], eax
lea eax, [ebx + eax*2 + 4]
push str..rtf
push eax
call esi
xor edi, edi
inc edi
jmp 0x1000270c
cmp dword [esp + 0x28], 0x3e8
jge 0x1000271b
lea eax, [esp + 0x2c]
push eax
call fcn.10002481
pop ecx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
lea eax, [ebx + eax*2 + 4]
push eax
call esi
push str..rtf
lea ecx, [esp + 0x30]
call fcn.100013d5
add eax, dword [esp + 0x28]
lea eax, [ebx + eax*2 + 4]
push eax
call esi
inc edi
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x100026cd
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
je 0x1000273a
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x100027e1
lea eax, [esp + 0x18]
push eax
push 0x1000ea3e
push 1
push dword [esp + 0x20]
mov dword [esp + 0x28], ebx
call sub.msi.dll_MsiRecordSetInteger
cmp eax, 0xea
jne 0x1000272b
push dword [esp + 0x18]
call fcn.10002ad2
inc dword [esp + 0x1c]
pop ecx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
push 1
push dword [esp + 0x20]
call sub.msi.dll_MsiRecordSetInteger
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100027da
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10002adf
pop ecx
jmp 0x1000272b
push esi
call fcn.10002adf
pop ecx
cmp dword [esp + 0x14], ebx
je 0x100027f0
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x10], ebx
je 0x100025b9
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x100025b9