Function at 0x40bd29
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45b695
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x477cb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
xor ebx, ebx
inc ebx
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x28]
push eax
push edi
push dword [ebp + 0xc]
call sub.msi.dll_MsiOpenProductW
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x40bd81
jmp 0x40c082
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x60], 4
push 0x465528
lea ecx, [esp + 0x28]
call fcn.0040b967
cmp eax, edi
mov dword [esp + 0x30], eax
jne 0x40bdb7
mov byte [esp + 0x60], bl
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
jmp 0x40c082
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x60], 7
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x40bdfc
mov byte [esp + 0x60], 4
lea eax, [esp + 0x34]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], bl
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
jmp 0x40c082
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x38]
call fcn.0040b9d7
mov byte [esp + 0x60], 9
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], edi
jne 0x40be46
mov byte [esp + 0x60], 7
lea ecx, [esp + 0x14]
call fcn.0041253c
mov byte [esp + 0x60], 4
mov eax, esi
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], bl
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
jmp 0x40c082
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.00401aea
push dword [esp + 0x14]
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 5
jne 0x40bea7
mov byte [esp + 0x60], 7
lea ecx, [esp + 0x14]
call fcn.0041253c
mov byte [esp + 0x60], 4
lea eax, [esp + 0x34]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], bl
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
or dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x28], edi
je 0x40bea0
push dword [esp + 0x28]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
jmp 0x40c098
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x60], 0xd
push str.SELECT__Property_._Value__FROM__Property__WHERE__Property_._Property_ProductVersion
lea ecx, [esp + 0x28]
call fcn.0040b967
cmp eax, edi
mov dword [esp + 0x40], eax
je 0x40c047
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x60], 0xf
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x44]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
mov dword [esp + 0x3c], eax
jne 0x40c038
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x50]
call fcn.0040b9d7
mov byte [esp + 0x60], 0x10
push dword [eax]
lea ebx, [esp + 0x48]
call fcn.004188a7
mov byte [esp + 0x60], 0xf
lea ecx, [esp + 0x18]
call fcn.0041253c
mov edx, 0x464838
mov ecx, 0x47d010
call fcn.004029b1
cmp eax, edi
je 0x40c038
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0040151c
mov byte [esp + 0x64], 0x11
mov byte [esp + 0x64], 0xf
lea ebx, [esp + 0x1c]
call fcn.00416b9f
pop ecx
mov byte [esp + 0x60], 0x12
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
je 0x40c02a
push eax
lea esi, [esp + 0x20]
call fcn.00418a0f
mov eax, dword [esp + 0x4c]
shr eax, 0x10
test ax, ax
pop ecx
jbe 0x40c02a
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x10
test cx, cx
jbe 0x40c02a
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x1c]
jne 0x40bfb5
cmp dword [esp + 0x48], eax
jne 0x40bfb5
xor eax, eax
inc eax
jmp 0x40bfb7
xor eax, eax
movzx esi, al
mov byte [esp + 0x60], 0xf
lea ecx, [esp + 0x18]
call fcn.0041253c
mov byte [esp + 0x60], 0xd
lea eax, [esp + 0x4c]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 9
lea eax, [esp + 0x3c]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 7
lea ecx, [esp + 0x14]
call fcn.0041253c
mov byte [esp + 0x60], 4
lea eax, [esp + 0x34]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 1
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
or dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x28], edi
je 0x40c026
push dword [esp + 0x28]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
jmp 0x40c098
mov byte [esp + 0x60], 0xf
lea ecx, [esp + 0x18]
call fcn.0041253c
mov byte [esp + 0x60], 0xd
lea eax, [esp + 0x4c]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 9
lea eax, [esp + 0x3c]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 7
lea ecx, [esp + 0x14]
call fcn.0041253c
mov byte [esp + 0x60], 4
lea eax, [esp + 0x34]
push eax
call fcn.0040c0ad
mov byte [esp + 0x60], 1
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0ad
or dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x28], edi
je 0x40c096
push dword [esp + 0x28]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8