Function at 0x4190e0
Capabilities:
Reference sql statements

Disassembly:
push 0x40
mov eax, 0x44ee14
call fcn.00436706
push str.InitUpdateFiles...
lea ecx, [ebp - 0x30]
call fcn.00402148
xor esi, esi
push esi
lea eax, [ebp - 0x30]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040e1e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
call fcn.004234c0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f910
mov dword [ebp - 4], 1
mov dword [ebp - 0x3c], esi
push 0x46b370
lea ecx, [ebp - 0x34]
call fcn.00402148
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
lea ebx, [ebp - 0x34]
lea edi, [ebp - 0x3c]
call fcn.0041e81d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00408894
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004025ca
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025ca
mov ebx, dword [ebp - 0x24]
cmp dword [ebx - 0xc], esi
je 0x4193ef
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x2c]
call fcn.00402148
mov byte [ebp - 4], 4
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401f7d
push 0x46c134
lea ecx, [ebp - 0x2c]
call fcn.004086b5
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], esi
push eax
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
jne 0x4193fd
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
jne 0x419461
cmp dword [ebp - 0x10], esi
je 0x4191fd
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, esi
jne 0x4193c3
call fcn.004234c0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f910
mov byte [ebp - 4], 9
call fcn.004234c0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f910
mov byte [ebp - 4], 0xa
call fcn.004234c0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040f910
mov byte [ebp - 4], 0xb
call fcn.004234c0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f910
mov byte [ebp - 4], 0xc
mov ebx, dword [ebp + 0x10]
push ebx
push 1
push dword [ebp - 0x10]
call fcn.004222be
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x419483
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x4194d6
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x10]
call fcn.004222be
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x4194f9
mov edi, dword [ebp - 0x28]
cmp dword [edi - 0xc], esi
je 0x41951b
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp - 0x10]
call fcn.004222be
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x419590
mov ebx, dword [ebp - 0x20]
cmp dword [ebx - 0xc], esi
je 0x4195b2
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov dword [ebp - 0x48], eax
cmp eax, 0x80000000
je 0x419626
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 0x10]
call fcn.004222be
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x419649
lea eax, [ebp - 0x18]
push eax
push 6
push dword [ebp - 0x10]
call fcn.004222be
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x419670
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], esi
je 0x41933c
push 0x457784
lea ecx, [ebp - 0x18]
call fcn.0040af22
mov esi, eax
neg esi
sbb esi, esi
inc esi
push str.New_file_object:
lea ecx, [ebp - 0x38]
call fcn.00402148
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.0040dd5d
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x38]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
push dword [ebp - 0x48]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4808dc
call fcn.0041d314
test esi, esi
jne 0x41939b
mov dword [0x48094c], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [ebx - 0x10]
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x4193d0
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x4193dd
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x419134
xor edi, edi
jmp 0x41944f
push str.MDOV
lea ecx, [ebp + 0xc]
call fcn.00402148
lea eax, [ebp + 0xc]
push edi
push eax
mov byte [ebp - 4], 7
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov edi, eax
add ecx, 0xfffffff0
call fcn.004025ca
cmp dword [ebp - 0x10], esi
je 0x419434
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x419441
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ebx, dword [ebp - 0x24]
lea ecx, [ebx - 0x10]
call fcn.004025ca
mov eax, edi
call fcn.004367de
ret 0xc
push 0x46bd30
lea ecx, [ebp + 8]
call fcn.00402148
lea eax, [ebp + 8]
push edi
push eax
mov byte [ebp - 4], 8
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
jmp 0x41941d
push 0x46c138
lea ecx, [ebp + 0x10]
call fcn.00402148
lea eax, [ebp + 0x10]
push edi
push eax
mov byte [ebp - 4], 0xd
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004025ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x28]
jmp 0x41941f
push str.Empty_UpdateID
lea ecx, [ebp - 0x3c]
call fcn.00402148
lea eax, [ebp - 0x3c]
push 0xd
push eax
mov byte [ebp - 4], 0xe
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
jmp 0x4194a3
push str.MGRS_Type_
lea ecx, [ebp - 0x38]
call fcn.00402148
lea eax, [ebp - 0x38]
push edi
push eax
mov byte [ebp - 4], 0xf
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
jmp 0x4194a3
push str.Empty_Type
lea ecx, [ebp - 0x34]
call fcn.00402148
lea eax, [ebp - 0x34]
push 0xd
push eax
mov byte [ebp - 4], 0x10
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004025ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
cmp dword [ebp - 0x10], esi
je 0x41957c
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x419589
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, ebx
jmp 0x419441
push str.MGRS_URL_
lea ecx, [ebp - 0x30]
call fcn.00402148
lea eax, [ebp - 0x30]
push ebx
push eax
mov byte [ebp - 4], 0x11
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
jmp 0x41953c
push str.Empty_URL
lea ecx, [ebp - 0x40]
call fcn.00402148
lea eax, [ebp - 0x40]
push 0xd
push eax
mov byte [ebp - 4], 0x12
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov dword [ebp + 0xc], eax
call fcn.004025ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [ebx - 0x10]
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
cmp dword [ebp - 0x10], esi
je 0x419611
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x41961e
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp + 0xc]
jmp 0x419441
push str.MRGI_Size_
lea ecx, [ebp - 0x44]
call fcn.00402148
lea eax, [ebp - 0x44]
push 0xd
push eax
mov byte [ebp - 4], 0x13
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
jmp 0x4195d3
push str.MGRS_Args_
lea ecx, [ebp - 0x48]
call fcn.00402148
mov byte [ebp - 4], 0x14
push dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
jmp 0x4195d3
push str.MGRS_AllowNotElevated_
lea ecx, [ebp - 0x4c]
call fcn.00402148
mov byte [ebp - 4], 0x15
push dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
jmp 0x4195d3