Function at 0x4ca860
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560a08
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 0x4ca8a5
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.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4caacd
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.00419120
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 0x4ca8f7
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 0x4caa87
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4caa87
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ca93c
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 0x4ca95b
xor bl, bl
jmp 0x4caa73
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push 0x57e030
push 1
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
je 0x4ca985
xor bl, bl
jmp 0x4caa73
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.004a2520
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 0x4ca9c6
mov byte [ebp - 4], 5
push esi
call fcn.00521576
xor bl, bl
jmp 0x4caa66
mov ebx, dword [ebp + 8]
call fcn.00413cd0
push eax
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040bdf0
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 0x4caa41
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x24], ecx
jl 0x4caa35
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4caa35
mov ecx, ebx
call fcn.0040be70
mov edx, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [ebp - 0x2c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4caa2b
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 0x4caa41
push dword [eax - 0xc]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004143c0
mov byte [ebp - 4], 7
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4caa5a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
push esi
call fcn.00521576
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 0x4caa89
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x4caa89
xor bl, bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4caa9b
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 0x4caab7
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.004143a0
int3