Function at 0x50c7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5efa9d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x69001c]
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 0x50c7f5
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 0x50c830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406e80
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.00406350
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004f1d70
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.004f4730
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004075e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004075e0
test esi, esi
je 0x50c8c7
xor bl, bl
jmp 0x50ca4d
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x50ca7e
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.00408c40
add esp, 0xc
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x50c910
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 0x50ca1e
push eax
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x50ca1e
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50c954
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 0x50c97b
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 0x50ca0c
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x50c9b5
push ecx
call edi
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x50ca0c
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 0x50ca0c
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 0x50ca0c
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x50ca0c
push dword [ebp - 0x50]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x50ca0c
mov bl, 1
jmp 0x50ca0e
xor bl, bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50ca20
push eax
call edi
jmp 0x50ca20
xor bl, bl
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x50ca2e
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 0x50ca4d
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 0x50ca5e
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.0059046a
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00409920
int3