Function at 0x421202
Capabilities:
Reference sql statements

Disassembly:
push 0x50
mov eax, 0x45fda3
call fcn.00447d5b
push str.InitUpdateFiles...
lea ecx, [ebp - 0x40]
call fcn.00402060
xor edi, edi
push edi
lea eax, [ebp - 0x40]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
call fcn.00434582
push eax
lea ecx, [ebp - 0x34]
call fcn.0040210b
mov dword [ebp - 4], 1
call fcn.00434582
push eax
lea ecx, [ebp - 0x38]
call fcn.0040210b
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], edi
push 0x47ed38
lea ecx, [ebp - 0x44]
call fcn.00402060
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
lea ebx, [ebp - 0x44]
lea edi, [ebp - 0x50]
call fcn.0042dee0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00409158
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x4215af
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x2c]
call fcn.00402060
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x34]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401eca
push 0x481dc4
lea ecx, [ebp - 0x2c]
call fcn.00409019
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 0x4215db
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
jne 0x421648
cmp dword [ebp - 0x10], esi
je 0x421336
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 0x421586
call fcn.00434582
push eax
lea ecx, [ebp - 0x30]
call fcn.0040210b
mov byte [ebp - 4], 0xa
call fcn.00434582
push eax
lea ecx, [ebp - 0x28]
call fcn.0040210b
mov byte [ebp - 4], 0xb
call fcn.00434582
push eax
lea ecx, [ebp - 0x24]
call fcn.0040210b
mov byte [ebp - 4], 0xc
call fcn.00434582
push eax
lea ecx, [ebp - 0x20]
call fcn.0040210b
mov byte [ebp - 4], 0xd
call fcn.00434582
push eax
lea ecx, [ebp - 0x40]
call fcn.0040210b
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xe
push 1
push dword [ebp - 0x10]
call fcn.00432b8b
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42165b
mov ebx, dword [ebp - 0x40]
cmp dword [ebx - 0xc], esi
je 0x4216f8
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x48], 1
call fcn.004235ce
cmp eax, esi
jne 0x421724
cmp dword [ebp - 0x48], esi
jne 0x42142d
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x421586
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call fcn.00432b8b
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42177a
mov edi, dword [ebp - 0x30]
cmp dword [edi - 0xc], esi
je 0x4217ad
lea eax, [ebp - 0x28]
push eax
push 3
push dword [ebp - 0x10]
call fcn.00432b8b
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp eax, esi
jne 0x42180a
mov esi, dword [ebp - 0x28]
cmp dword [esi - 0xc], 0
je 0x42188a
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov dword [ebp - 0x54], eax
cmp eax, 0x80000000
je 0x4218fb
lea eax, [ebp - 0x24]
push eax
push 5
push dword [ebp - 0x10]
call fcn.00432b8b
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 6
push dword [ebp - 0x10]
call fcn.00432b8b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call fcn.00409158
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x4214d9
push 0x47ed38
lea ecx, [ebp - 0x38]
call fcn.00409019
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401eca
push str.New_file_object:
lea ecx, [ebp - 0x4c]
call fcn.00402060
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.00411b27
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x4c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x49c934
call fcn.0042b0df
push 0x467f88
lea ecx, [ebp - 0x20]
call fcn.00408ff7
test eax, eax
je 0x421554
mov dword [0x49c9d0], 1
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esi - 0x10]
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x421593
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x4215a0
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x50], 0xffffffff
jne 0x421268
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.00409158
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x42191e
xor edi, edi
jmp 0x4216e2
push 0x4816fc
lea ecx, [ebp + 0x10]
call fcn.00402060
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0x10]
push eax
push 1
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], esi
je 0x421613
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x421620
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov eax, edi
call fcn.00447e33
ret 0xc
push 0x481708
lea ecx, [ebp + 0x10]
call fcn.00402060
mov byte [ebp - 4], 9
jmp 0x4215ec
push 0x481dc8
lea ecx, [ebp + 0x10]
call fcn.00402060
push edi
lea eax, [ebp + 0x10]
push eax
push 1
mov byte [ebp - 4], 0xf
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], esi
je 0x4216ca
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x4216d7
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
jmp 0x421639
push str.Empty_UpdateID
lea ecx, [ebp + 8]
call fcn.00402060
push 0xd
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], esi
je 0x421765
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x421772
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop edi
jmp 0x4216d7
push str.MGRS_Type_
lea ecx, [ebp + 0xc]
call fcn.00402060
push edi
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.00411fad
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
jmp 0x42168c
push str.Empty_Type
lea ecx, [ebp - 0x50]
call fcn.00402060
push 0xd
lea eax, [ebp - 0x50]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.00411fad
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
jmp 0x421753
push str.MGRS_URL_
lea ecx, [ebp - 0x4c]
call fcn.00402060
mov byte [ebp - 4], 0x13
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
push 1
call fcn.00411fad
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
cmp dword [ebp - 0x10], esi
je 0x421875
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x421882
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp - 0x48]
jmp 0x4216d7
push str.Empty_URL
lea ecx, [ebp - 0x48]
call fcn.00402060
push 0xd
lea eax, [ebp - 0x48]
push eax
push 1
mov byte [ebp - 4], 0x14
call fcn.00411fad
mov ecx, dword [ebp - 0x48]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esi - 0x10]
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
cmp dword [ebp - 0x10], 0
je 0x4218f2
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
jmp 0x421768
push str.MRGI_Size_
lea ecx, [ebp - 0x44]
call fcn.00402060
push 0xd
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x15
call fcn.00411fad
mov ecx, dword [ebp - 0x44]
jmp 0x4218ab
push str.get_update_values_for_Update_ID:
lea ecx, [ebp + 0xc]
call fcn.00402060
push ebx
mov byte [ebp - 4], 0x17
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.00411b27
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
call fcn.00434582
push eax
lea ecx, [ebp - 0x24]
call fcn.0040210b
mov byte [ebp - 4], 0x18
call fcn.00434582
push eax
lea ecx, [ebp - 0x28]
call fcn.0040210b
mov byte [ebp - 4], 0x19
call fcn.00434582
push eax
lea ecx, [ebp - 0x30]
call fcn.0040210b
mov byte [ebp - 4], 0x1a
call fcn.00434582
push eax
lea ecx, [ebp + 0xc]
call fcn.0040210b
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push str.SELECT__FROM__Update__WHERE__UpdateID_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1d
call fcn.00402060
push 0x481dc4
mov byte [ebp - 4], 0x1e
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.00408f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1f
call fcn.00401e6a
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x1c], ebx
je 0x4219ec
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], ebx
push eax
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, ebx
je 0x421a81
push 0x4816fc
lea ecx, [ebp - 0x40]
call fcn.00402060
push edi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x20
call fcn.00411fad
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x18], ebx
je 0x421a4b
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], ebx
je 0x421a58
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
jmp 0x4216da
push ebx
push dword [ebp - 0x1c]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, ebx
je 0x421ab5
push 0x481708
lea ecx, [ebp - 0x20]
call fcn.00402060
push edi
lea eax, [ebp - 0x20]
push eax
push 1
mov byte [ebp - 4], 0x21
call fcn.00411fad
mov ecx, dword [ebp - 0x20]
jmp 0x421a28
cmp dword [ebp - 0x18], ebx
je 0x421ac2
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, ebx
je 0x421afc
push 0x481710
lea ecx, [ebp - 0x54]
call fcn.00402060
push edi
lea eax, [ebp - 0x54]
push eax
push 1
mov byte [ebp - 4], 0x22
call fcn.00411fad
mov ecx, dword [ebp - 0x54]
jmp 0x421a28
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x18]
call fcn.00432b8b
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x421b38
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x58]
call fcn.00402060
push edi
lea eax, [ebp - 0x58]
push eax
push 1
mov byte [ebp - 4], 0x23
call fcn.00411fad
mov ecx, dword [ebp - 0x58]
jmp 0x421a28
lea eax, [ebp - 0x24]
push eax
push 4
push dword [ebp - 0x18]
call fcn.00432b8b
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 5
push dword [ebp - 0x18]
call fcn.00432b8b
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 6
push dword [ebp - 0x18]
call fcn.00432b8b
add esp, 0xc
push 7
push dword [ebp - 0x18]
call sub.msi.dll_MsiRecordReadStream
mov edi, 0x469354
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00408ff7
lea ecx, [ebp + 8]
push ecx
test eax, eax
lea ecx, [ebp + 0xc]
push ecx
setne al
xor ecx, ecx
cmp al, bl
setne cl
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00408ff7
neg eax
sbb eax, eax
neg eax
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov esi, 0x49c934
call fcn.0042b091
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x18], ebx
je 0x421bd4
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], ebx
je 0x421be1
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x4215d4