Function at 0x4680c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x51a9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
cmp esi, ebx
jne 0x468160
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x468142
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x468156
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, 0x57
jmp 0x4682bd
push str.PackageInfo.xml
push str.SELECT__Data__FROM__Binary__WHERE__Binary_._Name__s
lea edx, [ebp]
call fcn.00404380
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x468182
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x2664]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push eax
call sub.msi.dll_MsiEnumClientsA
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.msi.dll_MsiViewModify
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4681b9
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov dword [ebp - 0x1c], ebx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov dword [ebp - 0x18], eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x20], eax
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x468215
push str.Insufficient_Buffer___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x5814b0
lea edx, [ebp - 0x24]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
push ebx
push esi
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x1c]
push edx
call sub.msi.dll_MsiRecordSetStringA
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], esi
mov ecx, dword [ebp - 0x14]
push ecx
call sub.msi.dll_MsiViewGetErrorW
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x2664]
push eax
call sub.msi.dll_MsiDatabaseGenerateTransformW
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
jmp 0x468296
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4682a6
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4682ba
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret