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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066ec3
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x100ad040]
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 0x100291a2
mov esi, 0x643
jmp 0x1002955e
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 0x1002955e
mov ax, word [ebp - 0x210]
or ecx, 0xffffffff
test ax, ax
je 0x1002955c
lea edi, [ebp - 0x60c]
movzx edx, ax
nop dword [eax]
cmp dx, 0x23
jne 0x10029214
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 0x100291f0
test esi, esi
je 0x1002955c
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 0x10029285
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 0x10029540
push eax
push dword [ebp - 0xa48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10029540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa24]
call fcn.10013fa0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xa3c]
push eax
mov dword [ebp - 0xa4c], 4
call fcn.100057f0
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.10005610
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40e]
push str..rtf
push eax
lea edx, [ebp - 0xa3c]
lea ecx, [ebp - 0xa0c]
call fcn.10014860
or esi, 8
add esp, 8
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa3c]
call fcn.10005610
mov edi, dword [ebp - 0xa50]
lea eax, [ebp - 0xa0c]
add edi, 4
mov dword [ebp - 0xa50], edi
cmp edi, eax
je 0x100293ac
mov ecx, edi
call fcn.10005610
movups xmm0, xmmword [ebp - 0xa0c]
xor eax, eax
mov word [ebp - 0xa0c], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x9fc]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x9fc], 0
mov dword [ebp - 0x9f8], 7
and esi, 0xfffffff7
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0c]
call fcn.10005610
mov dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0xa44]
test eax, eax
je 0x100293e3
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 0x10029527
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa40]
push eax
push 0x1009407e
push 1
push dword [ebp - 0xa44]
call dword [sym.imp.msi.dll_MsiRecordSetInteger]
cmp eax, 0xea
jne 0x100293d2
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]
lea eax, [ebp - 0xa24]
mov ecx, edi
push eax
call fcn.10018e60
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 7
jbe 0x10029489
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.10005610
cmp edi, 0xffffffff
je 0x10029504
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 0x100294e5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0xa50]
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa5c], 0
jmp 0x100293d2
mov byte [ebp - 4], 0x16
test esi, esi
je 0x10029513
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]
test eax, eax
je 0x10029545
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x10029545
mov esi, 0x643
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xa48]
test eax, eax
je 0x1002955e
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x1002955e
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa54]
test eax, eax
je 0x10029576
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.1004d46a
mov esp, ebp
pop ebp
ret 4