Function at 0x4a79d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c95d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4a7a25
push eax
call edi
mov edx, dword [esi]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004082a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push 1
sub esp, 0x18
mov dword [ebp - 0x5c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.00407250
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0048e260
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.0048cf30
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408570
test esi, esi
je 0x4a7af7
xor bl, bl
jmp 0x4a7c7d
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a7cae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x54]
push dword [eax]
lea eax, [ebp - 0x58]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.00408de0
add esp, 0xc
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a7b40
push eax
call edi
mov esi, dword [sym.imp.msi.dll_MsiEnumClientsA]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x48], 0
push dword [ebp - 0x50]
call esi
test eax, eax
jne 0x4a7c4e
push eax
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a7c4e
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a7b84
push eax
call edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
mov eax, dword [ebp - 0x48]
setne byte [ebp - 0x41]
test eax, eax
je 0x4a7bab
push eax
call edi
cmp byte [ebp - 0x41], 0
lea eax, [ebp - 0x48]
push eax
mov ecx, str.INSERT_INTO__Property____Property____Value___VALUES_______
mov dword [ebp - 0x48], 0
mov eax, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
cmove eax, ecx
push eax
push dword [ebp - 0x50]
call esi
test eax, eax
jne 0x4a7c3c
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x4a7be5
push ecx
call edi
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4a7c3c
cmp byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x54]
cmovne eax, ebx
push dword [eax]
push 1
push esi
mov esi, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
call esi
test eax, eax
jne 0x4a7c3c
cmp byte [ebp - 0x41], al
cmovne ebx, dword [ebp - 0x54]
push dword [ebx]
push 2
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4a7c3c
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a7c3c
push dword [ebp - 0x50]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x4a7c3c
mov bl, 1
jmp 0x4a7c3e
xor bl, bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a7c50
push eax
call edi
jmp 0x4a7c50
xor bl, bl
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a7c5e
push eax
call edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7c7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4a7c8e
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00409a00
int3