Function at 0x4a0810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562f5d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5dd024]
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 0x4a0865
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 0x4a0895
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407c60
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.00406c50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00486fe0
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00487410
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.00486130
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407f30
test esi, esi
je 0x4a092c
xor bl, bl
jmp 0x4a0ab2
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a0ae3
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.004087a0
add esp, 0xc
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a0975
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 0x4a0a83
push eax
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a0a83
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a09b9
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 0x4a09e0
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 0x4a0a71
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x4a0a1a
push ecx
call edi
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4a0a71
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 0x4a0a71
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 0x4a0a71
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a0a71
push dword [ebp - 0x50]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x4a0a71
mov bl, 1
jmp 0x4a0a73
xor bl, bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4a0a85
push eax
call edi
jmp 0x4a0a85
xor bl, bl
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a0a93
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 0x4a0ab2
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 0x4a0ac3
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.005255bb
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408fc0
int3