Function at 0x430f55
Capabilities:
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x4b1c28
call fcn.0046c338
mov edi, ecx
mov dword [ebp - 0x64], edi
push str.InitUpdateFiles...
lea ecx, [ebp - 0x40]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x40]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.004524e1
push eax
lea ecx, [ebp - 0x28]
call fcn.00402899
xor eax, eax
inc eax
mov dword [ebp - 4], eax
call fcn.004524e1
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402899
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov byte [ebp - 4], 2
call fcn.004346d4
push 0xd
mov dword [ebp - 0x5c], ebx
pop ebx
push 0x4cd574
lea ecx, [ebp - 0x48]
call fcn.00402829
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x5c]
mov edx, esi
push eax
lea ecx, [ebp - 0x60]
call fcn.0044418d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00402e14
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [ebp - 0x28]
cmp dword [eax - 0xc], 0
je 0x4313eb
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x34]
call fcn.00402829
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x28]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push 0x4f1cbc
lea ecx, [ebp - 0x34]
call fcn.0040259d
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
and dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x34]
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov esi, eax
test esi, esi
jne 0x431589
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, eax
test esi, esi
jne 0x431576
cmp dword [ebp - 0x10], eax
je 0x431099
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x4313bb
call fcn.004524e1
push eax
lea ecx, [ebp - 0x30]
call fcn.00402899
mov byte [ebp - 4], 0xa
call fcn.004524e1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402899
mov byte [ebp - 4], 0xb
call fcn.004524e1
push eax
lea ecx, [ebp - 0x20]
call fcn.00402899
mov byte [ebp - 4], 0xc
call fcn.004524e1
push eax
lea ecx, [ebp - 0x38]
call fcn.00402899
mov byte [ebp - 4], bl
call fcn.004524e1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402899
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
xor edx, edx
push eax
inc edx
call fcn.00449d9b
mov esi, eax
pop ecx
test esi, esi
jne 0x431510
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x4314e3
xor eax, eax
mov ecx, edi
inc eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00434ec9
test eax, eax
jne 0x43153d
push str._evaluated_to
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402459
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, str.Skip
mov esi, dword [ebp - 0x4c]
mov eax, str.Install
test esi, esi
cmove eax, ecx
lea ecx, [ebp - 0x50]
push eax
call fcn.00402829
push 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x12
push eax
push 2
lea edx, [ebp - 0x40]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
jne 0x4311e3
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
jmp 0x4313ab
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
push 2
pop edx
call fcn.00449d9b
mov esi, eax
pop ecx
test esi, esi
jne 0x4314a6
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], esi
je 0x431485
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
push 3
pop edx
call fcn.00449d9b
mov esi, eax
pop ecx
test esi, esi
jne 0x431456
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 0xc], eax
je 0x431443
push 4
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
mov dword [ebp - 0x4c], eax
cmp eax, 0x80000000
je 0x431413
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push 5
pop edx
call fcn.00449d9b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push 6
pop edx
call fcn.00449d9b
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e14
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 0xc], 0
je 0x43128a
push 0x4cd574
lea ecx, [ebp - 0x3c]
call fcn.0040259d
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push str.New_file_object:
lea ecx, [ebp - 0x54]
call fcn.00402829
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x18
push 0
push eax
xor eax, eax
lea edx, [ebp - 0x54]
lea ecx, [eax + 1]
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x518f58], 0
je 0x431333
call fcn.004524e1
push eax
lea ecx, [ebp - 0x58]
call fcn.00402899
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x19
push eax
mov ecx, 0x5193e0
call fcn.0041a04b
mov edi, dword [ebp - 0x58]
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x431324
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x43131a
push 0x4cf2d0
lea ecx, [ebp - 0x20]
call fcn.0040259d
mov ecx, dword [edi - 0xc]
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.004025c6
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0x11
call fcn.00402e64
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
mov ecx, 0x518f84
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004400d9
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00433101
push 0x4ce724
lea ecx, [ebp - 0x38]
call fcn.00409b05
mov ecx, dword [0x51904c]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov dword [0x51904c], ecx
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x10], 0
je 0x4313ca
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x4313d9
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x430fcb
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00402e14
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4315dc
xor ebx, ebx
jmp 0x43187a
push str.MRGI_Size_
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x17
xor eax, eax
lea edx, [ebp - 0x5c]
push ebx
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4314d6
push str.Empty_URL
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x16
jmp 0x431424
push str.MGRS_URL_
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0x15
push esi
lea edx, [ebp - 0x5c]
lea ecx, [eax + 1]
call fcn.00417582
mov ebx, esi
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4314d3
push str.Empty_Type
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0x14
push ebx
lea edx, [ebp - 0x5c]
lea ecx, [eax + 1]
call fcn.00417582
jmp 0x431477
push str.MGRS_Type_
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0x13
push esi
lea edx, [ebp - 0x5c]
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x431540
push str.Empty_UpdateID
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0x10
push ebx
lea edx, [ebp - 0x5c]
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x43153d
push 0x4f1cc0
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0xf
push esi
lea edx, [ebp - 0x5c]
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4315b6
push 0x4f11a0
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 9
jmp 0x43159a
push 0x4f1194
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 8
xor eax, eax
lea edx, [ebp - 0x5c]
push esi
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, esi
cmp dword [ebp - 0x10], 0
je 0x4315c5
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x4315d4
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x34]
jmp 0x431872
push str.get_update_values_for_Update_ID:
lea ecx, [ebp - 0x5c]
call fcn.00402829
xor esi, esi
mov byte [ebp - 4], 0x1a
push esi
push dword [ebp + 0xc]
lea edx, [ebp - 0x5c]
push 2
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.004524e1
push eax
lea ecx, [ebp - 0x30]
call fcn.00402899
mov byte [ebp - 4], 0x1b
call fcn.004524e1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402899
mov byte [ebp - 4], 0x1c
call fcn.004524e1
push eax
lea ecx, [ebp - 0x38]
call fcn.00402899
mov byte [ebp - 4], 0x1d
call fcn.004524e1
push eax
lea ecx, [ebp - 0x40]
call fcn.00402899
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
push str.SELECT__FROM__Update__WHERE__UpdateID_
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x20
call fcn.00402829
push 0x4f1cbc
push dword [ebp + 0xc]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x21
push eax
call fcn.00402459
add esp, 0xc
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x24], esi
je 0x4316b1
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push dword [ebp - 0x44]
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov ebx, eax
test ebx, ebx
je 0x4316e0
push 0x4f1194
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x23
jmp 0x431762
push esi
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiViewModify]
mov ebx, eax
test ebx, ebx
je 0x431703
push 0x4f11a0
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x24
jmp 0x431762
cmp dword [ebp - 0x14], 0
je 0x431712
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov ebx, eax
test ebx, ebx
je 0x43173b
push 0x4f11a8
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x25
jmp 0x431762
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
push 2
pop edx
call fcn.00449d9b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x431781
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x5c]
call fcn.00402829
mov byte [ebp - 4], 0x26
xor eax, eax
lea edx, [ebp - 0x5c]
push ebx
lea ecx, [eax + 1]
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x431825
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push 4
pop edx
call fcn.00449d9b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push 5
pop edx
call fcn.00449d9b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push 6
pop edx
call fcn.00449d9b
add esp, 0xc
push 7
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
push dword [ebp + 0xc]
mov ecx, 0x519020
mov esi, eax
call fcn.00402e14
lea eax, [ebp - 0x38]
mov ecx, 0x519024
push eax
call fcn.00402e14
mov edi, 0x4d0d1c
lea ecx, [ebp - 0x30]
push edi
call fcn.00409b05
neg eax
lea ecx, [ebp - 0x34]
push edi
sbb eax, eax
neg eax
mov dword [0x519028], eax
call fcn.00409b05
neg eax
mov ecx, 0x519034
sbb eax, eax
neg eax
mov dword [0x51902c], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402e14
mov eax, dword [0x519030]
test esi, esi
cmovg eax, esi
xor ebx, ebx
mov dword [0x519030], eax
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x14], 0
je 0x43183f
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x24], 0
je 0x43184e
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402e64
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
call fcn.0046c301
ret 8