Function at 0x4239ff
Capabilities:
Reference sql statements

Disassembly:
push 0x50
mov eax, 0x46bf5b
call fcn.004529c4
push str.InitUpdateFiles...
lea ecx, [ebp - 0x44]
call fcn.004012e2
xor esi, esi
push esi
lea eax, [ebp - 0x44]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x34]
call fcn.004013a1
mov dword [ebp - 4], 1
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x38]
call fcn.004013a1
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], esi
push 0x478b24
lea ecx, [ebp - 0x48]
call fcn.004012e2
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.0043403d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00407768
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], esi
je 0x423e10
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x2c]
call fcn.004012e2
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x34]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
push ebx
call main
push 0x498394
lea ecx, [ebp - 0x2c]
call fcn.004075b6
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 0x423fa4
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
jne 0x424011
cmp dword [ebp - 0x10], esi
je 0x423b31
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 0x423de7
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x30]
call fcn.004013a1
mov byte [ebp - 4], 0xa
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x28]
call fcn.004013a1
mov byte [ebp - 4], 0xb
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x20]
call fcn.004013a1
mov byte [ebp - 4], 0xc
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x24]
call fcn.004013a1
mov byte [ebp - 4], 0xd
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x40]
call fcn.004013a1
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 0x424024
mov ebx, dword [ebp - 0x40]
cmp dword [ebx - 0xc], esi
je 0x4240ca
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], 1
call fcn.00426ba4
cmp eax, esi
jne 0x4240f6
cmp dword [ebp - 0x4c], esi
jne 0x423c28
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x423de7
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42414c
mov edi, dword [ebp - 0x30]
cmp dword [edi - 0xc], esi
je 0x42417f
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 0x4241dc
mov esi, dword [ebp - 0x28]
cmp dword [esi - 0xc], 0
je 0x42425c
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov dword [ebp - 0x4c], eax
cmp eax, 0x80000000
je 0x4242cd
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.00407768
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x423cd4
push 0x478b24
lea ecx, [ebp - 0x38]
call fcn.004075b6
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.004012e2
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.004112e0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x50]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [0x4b77ac], 0
je 0x423d7d
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x44]
call fcn.004013a1
lea eax, [ebp - 0x44]
push eax
push 0x4b7bf4
mov byte [ebp - 4], 0x17
call fcn.0041607b
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
je 0x423d6e
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x423d5f
push 0x4795d4
lea ecx, [ebp - 0x20]
call fcn.004075b6
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.004017df
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 0x4b77dc
call fcn.0042fee8
push 0x4771f4
lea ecx, [ebp - 0x24]
call fcn.004074b3
test eax, eax
je 0x423db5
mov dword [0x4b78ac], 1
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x423df4
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x423e01
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x54], 0xffffffff
jne 0x423a65
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.00407768
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x4240ad
push str.get_update_values_for_Update_ID:
lea ecx, [ebp + 0xc]
call fcn.004012e2
push esi
mov byte [ebp - 4], 0x18
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.004112e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x24]
call fcn.004013a1
mov byte [ebp - 4], 0x19
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x28]
call fcn.004013a1
mov byte [ebp - 4], 0x1a
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x30]
call fcn.004013a1
mov byte [ebp - 4], 0x1b
call fcn.0043eec2
push eax
lea ecx, [ebp + 0xc]
call fcn.004013a1
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.004012e2
push 0x498394
mov byte [ebp - 4], 0x1f
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.0040740d
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x20
call fcn.00401103
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x1c], esi
je 0x423f01
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 0x4242f0
push 0x497b94
lea ecx, [ebp - 0x44]
call fcn.004012e2
push edi
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x21
call fcn.004117b0
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x18], esi
je 0x423f64
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], esi
je 0x423f71
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov esi, edi
jmp 0x4240ad
push 0x497b94
lea ecx, [ebp + 0x10]
call fcn.004012e2
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0x10]
push eax
push 1
call fcn.004117b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], esi
je 0x423fdc
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x423fe9
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov eax, edi
call fcn.00452a9c
ret 0xc
push 0x497ba0
lea ecx, [ebp + 0x10]
call fcn.004012e2
mov byte [ebp - 4], 9
jmp 0x423fb5
push 0x498398
lea ecx, [ebp + 0x10]
call fcn.004012e2
push edi
lea eax, [ebp + 0x10]
push eax
push 1
mov byte [ebp - 4], 0xf
call fcn.004117b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], esi
je 0x424093
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x4240a0
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
jmp 0x424009
push str.Empty_UpdateID
lea ecx, [ebp + 8]
call fcn.004012e2
push 0xd
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.004117b0
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], esi
je 0x424137
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x424144
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop esi
jmp 0x4240a2
push str.MGRS_Type_
lea ecx, [ebp + 0xc]
call fcn.004012e2
push edi
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.004117b0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
jmp 0x424055
push str.Empty_Type
lea ecx, [ebp - 0x54]
call fcn.004012e2
push 0xd
lea eax, [ebp - 0x54]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.004117b0
mov ecx, dword [ebp - 0x54]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
jmp 0x424125
push str.MGRS_URL_
lea ecx, [ebp - 0x50]
call fcn.004012e2
mov byte [ebp - 4], 0x13
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
push eax
push 1
call fcn.004117b0
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
cmp dword [ebp - 0x10], esi
je 0x424247
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x424254
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, dword [ebp - 0x4c]
jmp 0x4240a2
push str.Empty_URL
lea ecx, [ebp - 0x4c]
call fcn.004012e2
push 0xd
lea eax, [ebp - 0x4c]
push eax
push 1
mov byte [ebp - 4], 0x14
call fcn.004117b0
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
cmp dword [ebp - 0x10], 0
je 0x4242c4
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
jmp 0x42413a
push str.MRGI_Size_
lea ecx, [ebp - 0x48]
call fcn.004012e2
push 0xd
lea eax, [ebp - 0x48]
push eax
push 1
mov byte [ebp - 4], 0x15
call fcn.004117b0
mov ecx, dword [ebp - 0x48]
jmp 0x42427d
push esi
push dword [ebp - 0x1c]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x424324
push 0x497ba0
lea ecx, [ebp - 0x40]
call fcn.004012e2
push edi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x22
call fcn.004117b0
mov ecx, dword [ebp - 0x40]
jmp 0x423f41
cmp dword [ebp - 0x18], esi
je 0x424331
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 0x42436b
push 0x497ba8
lea ecx, [ebp - 0x20]
call fcn.004012e2
push edi
lea eax, [ebp - 0x20]
push eax
push 1
mov byte [ebp - 4], 0x23
call fcn.004117b0
mov ecx, dword [ebp - 0x20]
jmp 0x423f41
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x18]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4243a7
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x58]
call fcn.004012e2
push edi
lea eax, [ebp - 0x58]
push eax
push 1
mov byte [ebp - 4], 0x24
call fcn.004117b0
mov ecx, dword [ebp - 0x58]
jmp 0x423f41
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, 0x4b7880
mov ebx, eax
call fcn.00407768
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4b7884
call fcn.00407768
mov edi, 0x478e1c
push edi
lea ecx, [ebp - 0x24]
call fcn.004074b3
neg eax
sbb eax, eax
neg eax
push edi
lea ecx, [ebp - 0x28]
mov dword [0x4b7888], eax
call fcn.004074b3
neg eax
sbb eax, eax
neg eax
mov dword [0x4b788c], eax
lea eax, [ebp + 0xc]
push eax
mov ecx, 0x4b7894
call fcn.00407768
cmp ebx, esi
jle 0x424446
mov dword [0x4b7890], ebx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x18], esi
je 0x42445e
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], esi
je 0x42446b
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x24]
jmp 0x4240a5