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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e303
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x10088020]
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 0x10022752
mov esi, 0x643
jmp 0x10022b18
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 0x10022b18
mov ax, word [ebp - 0x210]
or ecx, 0xffffffff
test ax, ax
je 0x10022b16
lea edi, [ebp - 0x60c]
movzx edx, ax
nop dword [eax]
cmp dx, 0x23
jne 0x100227c4
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 0x100227a0
test esi, esi
je 0x10022b16
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 0x10022837
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 0x10022af8
push eax
push dword [ebp - 0xa48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10022af8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa24]
call fcn.10013410
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xa3c]
push eax
mov dword [ebp - 0xa4c], 4
call fcn.10005780
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.100055a0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40e]
push str..rtf
push eax
lea edx, [ebp - 0xa3c]
lea ecx, [ebp - 0xa0c]
call fcn.10013cf0
or esi, 8
add esp, 8
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa3c]
call fcn.100055a0
mov eax, dword [ebp - 0xa50]
lea ecx, [ebp - 0xa0c]
add eax, 4
cmp eax, ecx
je 0x1002295f
mov ecx, eax
call fcn.100055a0
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
and esi, 0xfffffff7
mov dword [ebp - 0xa4c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0c]
call fcn.100055a0
mov dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0xa44]
test eax, eax
je 0x10022992
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 0x10022add
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa40]
push eax
push 0x10072770
push 1
push dword [ebp - 0xa44]
call dword [sym.imp.msi.dll_MsiRecordSetInteger]
cmp eax, 0xea
jne 0x10022985
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.10018180
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x10022a3f
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.100055a0
cmp edi, 0xffffffff
je 0x10022aba
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 0x10022a9b
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 0x10022985
mov byte [ebp - 4], 0x16
test esi, esi
je 0x10022ac9
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 0x10022b03
push eax
call edi
jmp 0x10022b03
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 0x10022b1e
push eax
call edi
jmp 0x10022b1e
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 0x10022b32
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.10044a98
mov esp, ebp
pop ebp
ret 4