Function at 0x4c5c50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fea8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x4c5c95
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c5e6a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x1c]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00408670
add esp, 0xc
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4c5ce7
push eax
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
or edi, 0xffffffff
test eax, eax
jne 0x4c5e25
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4c5e25
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c5d2b
push eax
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
je 0x4c5d4a
xor bl, bl
jmp 0x4c5e15
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push 0x57cef0
push 1
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
je 0x4c5d74
xor bl, bl
jmp 0x4c5e15
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
inc eax
push eax
mov dword [ebp + 8], eax
call fcn.0049ffb0
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
push esi
push 1
push ebx
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
je 0x4c5db5
mov byte [ebp - 4], 3
push esi
call fcn.0051e384
add esp, 4
xor bl, bl
jmp 0x4c5e08
mov edi, dword [ebp + 8]
call fcn.004092a0
push eax
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040d4f0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00477830
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5df9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
push esi
call fcn.0051e384
add esp, 4
mov bl, 1
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c5e27
push eax
call esi
jmp 0x4c5e27
xor bl, bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c5e35
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4c5e54
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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 8
push 0x80004005
call fcn.00408f80
int3