Function at 0x42bfa5
Capabilities:
Reference sql statements

Disassembly:
push 0x50
mov eax, 0x475a42
call fcn.0045be74
push str.InitUpdateFiles...
lea ecx, [ebp - 0x44]
call fcn.004020a6
xor esi, esi
push esi
lea eax, [ebp - 0x44]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
call fcn.0044825c
push eax
lea ecx, [ebp - 0x34]
call fcn.0041872d
mov dword [ebp - 4], 1
call fcn.0044825c
push eax
lea ecx, [ebp - 0x38]
call fcn.0041872d
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], esi
push 0x48325c
lea ecx, [ebp - 0x48]
call fcn.004020a6
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x54]
call fcn.0043d075
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00402573
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004025d2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], esi
je 0x42c3b6
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x2c]
call fcn.004020a6
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x34]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
push ebx
call main
push 0x4a37fc
lea ecx, [ebp - 0x2c]
call fcn.0040af5f
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 7
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 0x42c54a
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
jne 0x42c5b7
cmp dword [ebp - 0x10], esi
je 0x42c0d7
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 0x42c38d
call fcn.0044825c
push eax
lea ecx, [ebp - 0x30]
call fcn.0041872d
mov byte [ebp - 4], 0xa
call fcn.0044825c
push eax
lea ecx, [ebp - 0x28]
call fcn.0041872d
mov byte [ebp - 4], 0xb
call fcn.0044825c
push eax
lea ecx, [ebp - 0x20]
call fcn.0041872d
mov byte [ebp - 4], 0xc
call fcn.0044825c
push eax
lea ecx, [ebp - 0x24]
call fcn.0041872d
mov byte [ebp - 4], 0xd
call fcn.0044825c
push eax
lea ecx, [ebp - 0x40]
call fcn.0041872d
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xe
push 1
push dword [ebp - 0x10]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42c5ca
mov ebx, dword [ebp - 0x40]
cmp dword [ebx - 0xc], esi
je 0x42c670
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], 1
call fcn.0042f986
cmp eax, esi
jne 0x42c69c
cmp dword [ebp - 0x4c], esi
jne 0x42c1ce
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x42c38d
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42c6f2
mov edi, dword [ebp - 0x30]
cmp dword [edi - 0xc], esi
je 0x42c725
lea eax, [ebp - 0x28]
push eax
push 3
push dword [ebp - 0x10]
call main
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp eax, esi
jne 0x42c782
mov esi, dword [ebp - 0x28]
cmp dword [esi - 0xc], 0
je 0x42c802
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov dword [ebp - 0x4c], eax
cmp eax, 0x80000000
je 0x42c873
lea eax, [ebp - 0x20]
push eax
push 5
push dword [ebp - 0x10]
call main
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push 6
push dword [ebp - 0x10]
call main
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call fcn.00402573
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x42c27a
push 0x48325c
lea ecx, [ebp - 0x38]
call fcn.0040af5f
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
lea ecx, [ebp - 0x38]
push eax
call main
push str.New_file_object:
lea ecx, [ebp - 0x50]
call fcn.004020a6
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.00414e01
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x50]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [0x4c47bc], 0
je 0x42c323
call fcn.0044825c
push eax
lea ecx, [ebp - 0x44]
call fcn.0041872d
lea eax, [ebp - 0x44]
push eax
push 0x4c4c24
mov byte [ebp - 4], 0x17
call fcn.0041a87c
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
je 0x42c314
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x42c305
push 0x483c7c
lea ecx, [ebp - 0x20]
call fcn.0040af5f
mov eax, dword [ebp - 0x44]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call main
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x4c47ec
call fcn.00439073
push 0x48173c
lea ecx, [ebp - 0x24]
call fcn.0040ae5c
test eax, eax
je 0x42c35b
mov dword [0x4c48bc], 1
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x42c39a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42c3a7
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x54], 0xffffffff
jne 0x42c00b
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.00402573
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x42c653
push str.get_update_values_for_Update_ID:
lea ecx, [ebp + 0xc]
call fcn.004020a6
push esi
mov byte [ebp - 4], 0x18
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.00414e01
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
call fcn.0044825c
push eax
lea ecx, [ebp - 0x24]
call fcn.0041872d
mov byte [ebp - 4], 0x19
call fcn.0044825c
push eax
lea ecx, [ebp - 0x28]
call fcn.0041872d
mov byte [ebp - 4], 0x1a
call fcn.0044825c
push eax
lea ecx, [ebp - 0x30]
call fcn.0041872d
mov byte [ebp - 4], 0x1b
call fcn.0044825c
push eax
lea ecx, [ebp + 0xc]
call fcn.0041872d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push str.SELECT__FROM__Update__WHERE__UpdateID_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1e
call fcn.004020a6
push 0x4a37fc
mov byte [ebp - 4], 0x1f
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.0040adb6
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x20
call fcn.00401ec7
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x1c], esi
je 0x42c4a7
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x1c], esi
push eax
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
je 0x42c896
push 0x4a2fa4
lea ecx, [ebp - 0x44]
call fcn.004020a6
push edi
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x21
call fcn.004152d1
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x18], esi
je 0x42c50a
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], esi
je 0x42c517
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, edi
jmp 0x42c653
push 0x4a2fa4
lea ecx, [ebp + 0x10]
call fcn.004020a6
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0x10]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42c582
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42c58f
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov eax, edi
call fcn.0045bf4c
ret 0xc
push 0x4a2fb0
lea ecx, [ebp + 0x10]
call fcn.004020a6
mov byte [ebp - 4], 9
jmp 0x42c55b
push 0x4a3800
lea ecx, [ebp + 0x10]
call fcn.004020a6
push edi
lea eax, [ebp + 0x10]
push eax
push 1
mov byte [ebp - 4], 0xf
call fcn.004152d1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42c639
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42c646
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, esi
jmp 0x42c5af
push str.Empty_UpdateID
lea ecx, [ebp + 8]
call fcn.004020a6
push 0xd
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.004152d1
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42c6dd
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42c6ea
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop esi
jmp 0x42c648
push str.MGRS_Type_
lea ecx, [ebp + 0xc]
call fcn.004020a6
push edi
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.004152d1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
jmp 0x42c5fb
push str.Empty_Type
lea ecx, [ebp - 0x54]
call fcn.004020a6
push 0xd
lea eax, [ebp - 0x54]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.004152d1
mov ecx, dword [ebp - 0x54]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
jmp 0x42c6cb
push str.MGRS_URL_
lea ecx, [ebp - 0x50]
call fcn.004020a6
mov byte [ebp - 4], 0x13
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42c7ed
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42c7fa
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, dword [ebp - 0x4c]
jmp 0x42c648
push str.Empty_URL
lea ecx, [ebp - 0x4c]
call fcn.004020a6
push 0xd
lea eax, [ebp - 0x4c]
push eax
push 1
mov byte [ebp - 4], 0x14
call fcn.004152d1
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
cmp dword [ebp - 0x10], 0
je 0x42c86a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
jmp 0x42c6e0
push str.MRGI_Size_
lea ecx, [ebp - 0x48]
call fcn.004020a6
push 0xd
lea eax, [ebp - 0x48]
push eax
push 1
mov byte [ebp - 4], 0x15
call fcn.004152d1
mov ecx, dword [ebp - 0x48]
jmp 0x42c823
push esi
push dword [ebp - 0x1c]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x42c8ca
push 0x4a2fb0
lea ecx, [ebp - 0x40]
call fcn.004020a6
push edi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x22
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
jmp 0x42c4e7
cmp dword [ebp - 0x18], esi
je 0x42c8d7
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, esi
je 0x42c911
push 0x4a2fb8
lea ecx, [ebp - 0x20]
call fcn.004020a6
push edi
lea eax, [ebp - 0x20]
push eax
push 1
mov byte [ebp - 4], 0x23
call fcn.004152d1
mov ecx, dword [ebp - 0x20]
jmp 0x42c4e7
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x18]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x42c94d
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x58]
call fcn.004020a6
push edi
lea eax, [ebp - 0x58]
push eax
push 1
mov byte [ebp - 4], 0x24
call fcn.004152d1
mov ecx, dword [ebp - 0x58]
jmp 0x42c4e7
lea eax, [ebp - 0x24]
push eax
push 4
push dword [ebp - 0x18]
call main
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 5
push dword [ebp - 0x18]
call main
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 6
push dword [ebp - 0x18]
call main
add esp, 0xc
push 7
push dword [ebp - 0x18]
call sub.msi.dll_MsiRecordReadStream
push dword [ebp + 0x10]
mov ecx, 0x4c4890
mov ebx, eax
call fcn.00402573
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4c4894
call fcn.00402573
mov edi, 0x483554
push edi
lea ecx, [ebp - 0x24]
call fcn.0040ae5c
neg eax
sbb eax, eax
neg eax
push edi
lea ecx, [ebp - 0x28]
mov dword [0x4c4898], eax
call fcn.0040ae5c
neg eax
sbb eax, eax
neg eax
mov dword [0x4c489c], eax
lea eax, [ebp + 0xc]
push eax
mov ecx, 0x4c48a4
call fcn.00402573
cmp ebx, esi
jle 0x42c9ec
mov dword [0x4c48a0], ebx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x18], esi
je 0x42ca04
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], esi
je 0x42ca11
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
jmp 0x42c64b