Function at 0x4cad70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560d28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 esi, ecx
cmp dword [esi], 0
jne 0x4cadb5
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.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4cafdd
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.00417cc0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4cae07
push eax
call ebx
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [esi]
mov dword [ebp - 0x10], 0
call dword [sym.imp.msi.dll_MsiEnumClientsA]
or esi, 0xffffffff
test eax, eax
jne 0x4caf97
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4caf97
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cae4c
push eax
call ebx
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 0x4cae6b
xor bl, bl
jmp 0x4caf83
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push 0x57df48
push 1
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
je 0x4cae95
xor bl, bl
jmp 0x4caf83
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
inc eax
push eax
mov dword [ebp + 8], eax
call fcn.004a2900
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 0x4caed6
mov byte [ebp - 4], 5
push esi
call fcn.00521c5a
xor bl, bl
jmp 0x4caf76
mov ebx, dword [ebp + 8]
call fcn.00411fd0
push eax
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040a150
mov byte [ebp - 4], 9
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx]
sub edx, 0x10
lea ebx, [eax - 0x10]
mov dword [ebp - 0x28], edx
cmp ebx, edx
je 0x4caf51
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x24], ecx
jl 0x4caf45
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4caf45
mov ecx, ebx
call fcn.0040a1d0
mov edx, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [ebp - 0x2c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4caf3b
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4caf51
push dword [eax - 0xc]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004126c0
mov byte [ebp - 4], 7
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4caf6a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
push esi
call fcn.00521c5a
mov bl, 1
add esp, 4
mov dword [ebp - 0x18], 0
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4caf99
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x4caf99
xor bl, bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4cafab
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4cafc7
mov ecx, dword [edi]
push edi
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.004126a0
int3