Function at 0x41ff60
Capabilities:
Reference sql statements

Disassembly:
push 0x50
mov eax, 0x4623b2
call fcn.00449ec2
push str.InitUpdateFiles...
lea ecx, [ebp - 0x44]
call fcn.0040130b
xor edi, edi
push edi
lea eax, [ebp - 0x44]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
call fcn.004366fe
push eax
lea ecx, [ebp - 0x34]
call fcn.00411d53
mov dword [ebp - 4], 1
call fcn.004366fe
push eax
lea ecx, [ebp - 0x38]
call fcn.00411d53
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], edi
push 0x486920
lea ecx, [ebp - 0x48]
call fcn.0040130b
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.0042eac8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004063a1
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x420373
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x2c]
call fcn.0040130b
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x34]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401175
push 0x48a1a4
lea ecx, [ebp - 0x2c]
call fcn.00406262
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 0x42039f
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
jne 0x42040c
cmp dword [ebp - 0x10], esi
je 0x420094
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 0x42034a
call fcn.004366fe
push eax
lea ecx, [ebp - 0x30]
call fcn.00411d53
mov byte [ebp - 4], 0xa
call fcn.004366fe
push eax
lea ecx, [ebp - 0x28]
call fcn.00411d53
mov byte [ebp - 4], 0xb
call fcn.004366fe
push eax
lea ecx, [ebp - 0x20]
call fcn.00411d53
mov byte [ebp - 4], 0xc
call fcn.004366fe
push eax
lea ecx, [ebp - 0x24]
call fcn.00411d53
mov byte [ebp - 4], 0xd
call fcn.004366fe
push eax
lea ecx, [ebp - 0x40]
call fcn.00411d53
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xe
push 1
push dword [ebp - 0x10]
call fcn.00433e0c
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42041f
mov ebx, dword [ebp - 0x40]
cmp dword [ebx - 0xc], esi
je 0x4204bc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], 1
call fcn.00422715
cmp eax, esi
jne 0x4204e8
cmp dword [ebp - 0x4c], esi
jne 0x42018b
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x42034a
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call fcn.00433e0c
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x42053e
mov edi, dword [ebp - 0x30]
cmp dword [edi - 0xc], esi
je 0x420571
lea eax, [ebp - 0x28]
push eax
push 3
push dword [ebp - 0x10]
call fcn.00433e0c
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp eax, esi
jne 0x4205ce
mov esi, dword [ebp - 0x28]
cmp dword [esi - 0xc], 0
je 0x42064e
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov dword [ebp - 0x4c], eax
cmp eax, 0x80000000
je 0x4206bf
lea eax, [ebp - 0x20]
push eax
push 5
push dword [ebp - 0x10]
call fcn.00433e0c
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push 6
push dword [ebp - 0x10]
call fcn.00433e0c
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call fcn.004063a1
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x420237
push 0x486920
lea ecx, [ebp - 0x38]
call fcn.00406262
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401175
push str.New_file_object:
lea ecx, [ebp - 0x50]
call fcn.0040130b
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.0040f821
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x50]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [0x4a66dc], 0
je 0x4202e0
call fcn.004366fe
push eax
lea ecx, [ebp - 0x44]
call fcn.00411d53
lea eax, [ebp - 0x44]
push eax
push 0x4a6ae0
mov byte [ebp - 4], 0x17
call fcn.004139d5
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
je 0x4202d1
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x4202c2
push 0x46db0c
lea ecx, [ebp - 0x20]
call fcn.00406262
mov eax, dword [ebp - 0x44]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401175
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004017c4
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 0x4a6708
call fcn.0042b25e
push 0x46bd84
lea ecx, [ebp - 0x24]
call fcn.00406240
test eax, eax
je 0x420318
mov dword [0x4a67a8], 1
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x420357
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x420364
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x54], 0xffffffff
jne 0x41ffc6
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.004063a1
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x4206e2
xor edi, edi
jmp 0x4204a6
push 0x4899dc
lea ecx, [ebp + 0x10]
call fcn.0040130b
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0x10]
push eax
push 1
call fcn.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x4203d7
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x4203e4
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov eax, edi
call fcn.00449f9a
ret 0xc
push 0x4899e8
lea ecx, [ebp + 0x10]
call fcn.0040130b
mov byte [ebp - 4], 9
jmp 0x4203b0
push 0x48a1a8
lea ecx, [ebp + 0x10]
call fcn.0040130b
push edi
lea eax, [ebp + 0x10]
push eax
push 1
mov byte [ebp - 4], 0xf
call fcn.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x42048e
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42049b
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
jmp 0x4203fd
push str.Empty_UpdateID
lea ecx, [ebp + 8]
call fcn.0040130b
push 0xd
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x420529
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x420536
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop edi
jmp 0x42049b
push str.MGRS_Type_
lea ecx, [ebp + 0xc]
call fcn.0040130b
push edi
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.0040fcf3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
jmp 0x420450
push str.Empty_Type
lea ecx, [ebp - 0x54]
call fcn.0040130b
push 0xd
lea eax, [ebp - 0x54]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.0040fcf3
mov ecx, dword [ebp - 0x54]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [edi - 0x10]
jmp 0x420517
push str.MGRS_URL_
lea ecx, [ebp - 0x50]
call fcn.0040130b
mov byte [ebp - 4], 0x13
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
push eax
push 1
call fcn.0040fcf3
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x420639
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x420646
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp - 0x4c]
jmp 0x42049b
push str.Empty_URL
lea ecx, [ebp - 0x4c]
call fcn.0040130b
push 0xd
lea eax, [ebp - 0x4c]
push eax
push 1
mov byte [ebp - 4], 0x14
call fcn.0040fcf3
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
cmp dword [ebp - 0x10], 0
je 0x4206b6
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
jmp 0x42052c
push str.MRGI_Size_
lea ecx, [ebp - 0x48]
call fcn.0040130b
push 0xd
lea eax, [ebp - 0x48]
push eax
push 1
mov byte [ebp - 4], 0x15
call fcn.0040fcf3
mov ecx, dword [ebp - 0x48]
jmp 0x42066f
push str.get_update_values_for_Update_ID:
lea ecx, [ebp + 0xc]
call fcn.0040130b
push ebx
mov byte [ebp - 4], 0x18
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.0040f821
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
call fcn.004366fe
push eax
lea ecx, [ebp - 0x24]
call fcn.00411d53
mov byte [ebp - 4], 0x19
call fcn.004366fe
push eax
lea ecx, [ebp - 0x28]
call fcn.00411d53
mov byte [ebp - 4], 0x1a
call fcn.004366fe
push eax
lea ecx, [ebp - 0x30]
call fcn.00411d53
mov byte [ebp - 4], 0x1b
call fcn.004366fe
push eax
lea ecx, [ebp + 0xc]
call fcn.00411d53
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], 0x1e
call fcn.0040130b
push 0x48a1a4
mov byte [ebp - 4], 0x1f
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.004061c9
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x20
call fcn.00401115
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x1c], ebx
je 0x4207b0
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 0x420845
push 0x4899dc
lea ecx, [ebp - 0x44]
call fcn.0040130b
push edi
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x21
call fcn.0040fcf3
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x18], ebx
je 0x42080f
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], ebx
je 0x42081c
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
jmp 0x42049e
push ebx
push dword [ebp - 0x1c]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, ebx
je 0x420879
push 0x4899e8
lea ecx, [ebp - 0x40]
call fcn.0040130b
push edi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x22
call fcn.0040fcf3
mov ecx, dword [ebp - 0x40]
jmp 0x4207ec
cmp dword [ebp - 0x18], ebx
je 0x420886
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 0x4208c0
push 0x4899f0
lea ecx, [ebp - 0x20]
call fcn.0040130b
push edi
lea eax, [ebp - 0x20]
push eax
push 1
mov byte [ebp - 4], 0x23
call fcn.0040fcf3
mov ecx, dword [ebp - 0x20]
jmp 0x4207ec
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x18]
call fcn.00433e0c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4208fc
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x58]
call fcn.0040130b
push edi
lea eax, [ebp - 0x58]
push eax
push 1
mov byte [ebp - 4], 0x24
call fcn.0040fcf3
mov ecx, dword [ebp - 0x58]
jmp 0x4207ec
lea eax, [ebp - 0x24]
push eax
push 4
push dword [ebp - 0x18]
call fcn.00433e0c
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 5
push dword [ebp - 0x18]
call fcn.00433e0c
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 6
push dword [ebp - 0x18]
call fcn.00433e0c
add esp, 0xc
push 7
push dword [ebp - 0x18]
call sub.msi.dll_MsiRecordReadStream
mov edi, 0x46c978
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00406240
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.00406240
neg eax
sbb eax, eax
neg eax
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov esi, 0x4a6708
call fcn.0042b210
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x18], ebx
je 0x420998
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1c], ebx
je 0x4209a5
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x420398