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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039063
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x10059024]
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 0x1000e932
mov esi, 0x643
jmp 0x1000ecdd
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 0x1000ecdd
mov ax, word [ebp - 0x210]
or ecx, 0xffffffff
test ax, ax
je 0x1000ecdb
lea edi, [ebp - 0x60c]
movzx edx, ax
nop dword [eax]
cmp dx, 0x23
jne 0x1000e9a4
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 0x1000e980
test esi, esi
je 0x1000ecdb
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]
test eax, eax
je 0x1000ea15
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
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 0x1000ecbd
push eax
push dword [ebp - 0xa48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x1000ecbd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa3c]
call fcn.10003d50
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xa24]
push eax
mov dword [ebp - 0xa4c], 4
call fcn.10001620
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 - 0xa3c]
call fcn.10002db0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40e]
push str..rtf
push eax
lea edx, [ebp - 0xa24]
lea ecx, [ebp - 0xa0c]
call fcn.10004020
or esi, 8
add esp, 8
mov edi, eax
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa24]
call fcn.10002db0
mov eax, dword [ebp - 0xa50]
add eax, 4
cmp eax, edi
je 0x1000eb28
mov ecx, eax
call fcn.10002db0
movups xmm0, xmmword [edi]
mov ecx, dword [ebp - 0xa50]
xor eax, eax
movups xmmword [ecx + 4], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ecx + 0x14], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
and esi, 0xfffffff7
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0c]
call fcn.10002db0
mov dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0x16
mov edi, dword [sym.imp.msi.dll_MsiRecordSetInteger]
mov eax, dword [ebp - 0xa44]
test eax, eax
je 0x1000eb65
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
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 0x1000eca2
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa40]
push eax
push 0x10048e48
push 1
push dword [ebp - 0xa44]
call edi
cmp eax, 0xea
jne 0x1000eb54
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 edi
mov ecx, dword [ebp - 0xa50]
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ecx + 4]
call fcn.10007dd0
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x1000ec0a
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 - 0xa0c]
call fcn.10002db0
cmp edi, 0xffffffff
je 0x1000ec7f
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 0x1000ec66
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa5c], 0
jmp 0x1000eb4e
mov byte [ebp - 4], 0x16
test esi, esi
je 0x1000ec8e
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 0x1000ecc8
push eax
call edi
jmp 0x1000ecc8
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 0x1000ecdd
push eax
call edi
jmp 0x1000ecdd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa54]
test eax, eax
je 0x1000ecf5
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
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.10024a34
mov esp, ebp
pop ebp
ret 4