Function at 0x4a00e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e65d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5d8024]
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 0x4a0135
push eax
call edi
mov edx, dword [esi]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0165
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407c80
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.00406c70
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00486860
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00486c90
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.004859a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407f50
test esi, esi
je 0x4a01fc
xor bl, bl
jmp 0x4a0382
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a03b3
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.004087c0
add esp, 0xc
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a0245
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 0x4a0353
push eax
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a0353
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a0289
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 0x4a02b0
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 0x4a0341
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x4a02ea
push ecx
call edi
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4a0341
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 0x4a0341
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 0x4a0341
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a0341
push dword [ebp - 0x50]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x4a0341
mov bl, 1
jmp 0x4a0343
xor bl, bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a0355
push eax
call edi
jmp 0x4a0355
xor bl, bl
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a0363
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 0x4a0382
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 0x4a0393
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.00521781
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408fe0
int3