Function at 0x4a1bc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5597c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4a1c06
push eax
call edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
je 0x4a1c29
xor bl, bl
jmp 0x4a1db1
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a1dd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ecx]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.00417cc0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a1c72
push eax
call edi
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.msi.dll_MsiEnumClientsA]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
call ebx
test eax, eax
jne 0x4a1d85
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a1d85
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a1cb7
push eax
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
mov eax, dword [ebp - 0x10]
setne byte [ebp + 0xb]
test eax, eax
je 0x4a1cde
push eax
call edi
cmp byte [ebp + 0xb], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, str.INSERT_INTO__Property____Property____Value___VALUES_______
mov dword [ebp - 0x10], 0
mov eax, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
cmove eax, ecx
push eax
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x4a1d73
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
test ecx, ecx
je 0x4a1d18
push ecx
call edi
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x4a1d73
cmp byte [ebp + 0xb], 0
mov eax, dword [ebp + 0xc]
cmovne eax, dword [ebp + 0x10]
push dword [eax]
push 1
push ebx
mov ebx, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
call ebx
test eax, eax
jne 0x4a1d73
cmp byte [ebp + 0xb], al
mov eax, dword [ebp + 0x10]
cmovne eax, dword [ebp + 0xc]
push dword [eax]
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x4a1d73
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a1d73
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x4a1d73
mov bl, 1
jmp 0x4a1d75
xor bl, bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a1d87
push eax
call edi
jmp 0x4a1d87
xor bl, bl
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a1d95
push eax
call edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1db1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4a1dc2
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004126a0
int3