Function at 0x42f28c
Capabilities:
Reference sql statements

Disassembly:
push 0x50
mov eax, 0x48a3d8
call fcn.00464e48
mov edi, ecx
mov dword [ebp - 0x54], edi
push str.InitUpdateFiles...
lea ecx, [ebp - 0x3c]
call fcn.0040279b
xor ebx, ebx
lea edx, [ebp - 0x3c]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x24]
call fcn.00402824
xor eax, eax
inc eax
mov dword [ebp - 4], eax
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402824
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
push 0xd
mov dword [ebp - 0x58], ebx
pop ebx
push 0x49c824
lea ecx, [ebp - 0x44]
call fcn.0040279b
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
mov edx, esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.0043f8a9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00402d9f
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
je 0x42f6bc
push str.SELECT__UpdateID____Type____URL____Size____Args____AllowNotElevatedInstall__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x30]
call fcn.0040279b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
push eax
call fcn.00402556
push 0x4c0a54
lea ecx, [ebp - 0x30]
call fcn.0040252d
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
and dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x30]
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov esi, eax
test esi, esi
jne 0x42f843
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, eax
test esi, esi
jne 0x42f830
cmp dword [ebp - 0x10], eax
je 0x42f3c8
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 0x42f68c
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402824
mov byte [ebp - 4], 0xa
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402824
mov byte [ebp - 4], 0xb
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402824
mov byte [ebp - 4], 0xc
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x38]
call fcn.00402824
mov byte [ebp - 4], bl
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x28]
call fcn.00402824
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
xor edx, edx
push eax
inc edx
call fcn.0044518f
mov esi, eax
pop ecx
test esi, esi
jne 0x42f7ca
mov eax, dword [ebp - 0x28]
cmp dword [eax - 0xc], esi
je 0x42f7a9
xor eax, eax
mov ecx, edi
inc eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00432a00
test eax, eax
jne 0x42f7f7
cmp dword [ebp - 0x48], eax
jne 0x42f4be
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x42f68c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
push 2
pop edx
call fcn.0044518f
mov esi, eax
pop ecx
test esi, esi
jne 0x42f77a
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 0xc], eax
je 0x42f759
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
push 3
pop edx
call fcn.0044518f
mov edi, eax
pop ecx
test edi, edi
jne 0x42f727
mov edi, dword [ebp - 0x34]
cmp dword [edi - 0xc], eax
je 0x42f714
push 4
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
mov dword [ebp - 0x48], eax
cmp eax, 0x80000000
je 0x42f6e4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push 5
pop edx
call fcn.0044518f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push 6
pop edx
call fcn.0044518f
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00402d9f
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 0xc], 0
je 0x42f565
push 0x49c824
lea ecx, [ebp - 0x3c]
call fcn.0040252d
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push dword [eax - 0xc]
push eax
call fcn.00402556
push str.New_file_object:
lea ecx, [ebp - 0x4c]
call fcn.0040279b
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x16
push 0
push eax
xor eax, eax
lea edx, [ebp - 0x4c]
lea ecx, [eax + 1]
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp dword [0x4e2090], 0
je 0x42f60e
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x50]
call fcn.00402824
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x17
push eax
mov ecx, 0x4e2500
call fcn.004169ff
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x42f5ff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x42f5f5
push 0x4a050c
lea ecx, [ebp - 0x1c]
call fcn.0040252d
mov ecx, dword [esi - 0xc]
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402556
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xe
call fcn.00402def
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x48]
lea eax, [ebp - 0x1c]
mov ecx, 0x4e20bc
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043b9e1
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
call fcn.0043142d
push 0x49db4c
lea ecx, [ebp - 0x38]
call fcn.0040952b
mov ecx, dword [0x4e2188]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov dword [0x4e2188], ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [edi - 0x10]
call fcn.00402def
lea ecx, [esi - 0x10]
call fcn.00402def
mov edi, dword [ebp - 0x54]
cmp dword [ebp - 0x10], 0
je 0x42f69b
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x42f6aa
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x58], 0xffffffff
jne 0x42f2fa
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00402d9f
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x42f896
xor ebx, ebx
jmp 0x42fb34
push str.MRGI_Size_
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x15
xor eax, eax
lea edx, [ebp - 0x58]
push ebx
lea ecx, [eax + 1]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x42f7fd
push str.Empty_URL
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x14
jmp 0x42f6f5
push str.MGRS_URL_
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor eax, eax
mov byte [ebp - 4], 0x13
push edi
lea edx, [ebp - 0x58]
lea ecx, [eax + 1]
call fcn.00413e51
mov ebx, edi
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x42f7fa
push str.Empty_Type
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor eax, eax
mov byte [ebp - 4], 0x12
push ebx
lea edx, [ebp - 0x58]
lea ecx, [eax + 1]
call fcn.00413e51
jmp 0x42f748
push str.MGRS_Type_
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor eax, eax
mov byte [ebp - 4], 0x11
push esi
lea edx, [ebp - 0x58]
lea ecx, [eax + 1]
call fcn.00413e51
mov ebx, esi
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x42f7f7
push str.Empty_UpdateID
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor eax, eax
mov byte [ebp - 4], 0x10
push ebx
lea edx, [ebp - 0x58]
lea ecx, [eax + 1]
call fcn.00413e51
jmp 0x42f79b
push 0x4c0a58
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor eax, eax
mov byte [ebp - 4], 0xf
push esi
lea edx, [ebp - 0x58]
lea ecx, [eax + 1]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ebx, esi
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [edi - 0x10]
call fcn.00402def
lea ecx, [esi - 0x10]
call fcn.00402def
jmp 0x42f870
push 0x4c00c0
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 9
jmp 0x42f854
push 0x4c00b4
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 8
xor eax, eax
lea edx, [ebp - 0x58]
push esi
lea ecx, [eax + 1]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ebx, esi
cmp dword [ebp - 0x10], 0
je 0x42f87f
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x42f88e
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x30]
jmp 0x42fb2c
push str.get_update_values_for_Update_ID:
lea ecx, [ebp - 0x58]
call fcn.0040279b
xor esi, esi
mov byte [ebp - 4], 0x18
push esi
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
push 2
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402824
mov byte [ebp - 4], 0x19
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x30]
call fcn.00402824
mov byte [ebp - 4], 0x1a
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402824
mov byte [ebp - 4], 0x1b
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x38]
call fcn.00402824
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push str.SELECT__FROM__Update__WHERE__UpdateID_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1e
call fcn.0040279b
push 0x4c0a54
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x1f
push eax
call fcn.004023e9
add esp, 0xc
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x40]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402556
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp dword [ebp - 0x20], esi
je 0x42f96b
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push dword [ebp - 0x40]
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov ebx, eax
test ebx, ebx
je 0x42f99a
push 0x4c00b4
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x21
jmp 0x42fa1c
push esi
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiViewModify]
mov ebx, eax
test ebx, ebx
je 0x42f9bd
push 0x4c00c0
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x22
jmp 0x42fa1c
cmp dword [ebp - 0x14], 0
je 0x42f9cc
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 - 0x20]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov ebx, eax
test ebx, ebx
je 0x42f9f5
push 0x4c00c8
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x23
jmp 0x42fa1c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push 2
pop edx
call fcn.0044518f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x42fa3b
push str.MGRS_MoreInfoURL_
lea ecx, [ebp - 0x58]
call fcn.0040279b
mov byte [ebp - 4], 0x24
xor eax, eax
lea edx, [ebp - 0x58]
push ebx
lea ecx, [eax + 1]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x42fadf
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push 4
pop edx
call fcn.0044518f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push 5
pop edx
call fcn.0044518f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
push 6
pop edx
call fcn.0044518f
add esp, 0xc
push 7
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
push dword [ebp + 0xc]
mov ecx, 0x4e215c
mov esi, eax
call fcn.00402d9f
lea eax, [ebp - 0x34]
mov ecx, 0x4e2160
push eax
call fcn.00402d9f
mov edi, 0x49fde4
lea ecx, [ebp - 0x2c]
push edi
call fcn.0040952b
neg eax
lea ecx, [ebp - 0x30]
push edi
sbb eax, eax
neg eax
mov dword [0x4e2164], eax
call fcn.0040952b
neg eax
mov ecx, 0x4e2170
sbb eax, eax
neg eax
mov dword [0x4e2168], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402d9f
mov eax, dword [0x4e216c]
test esi, esi
cmovg eax, esi
xor ebx, ebx
mov dword [0x4e216c], eax
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp dword [ebp - 0x14], 0
je 0x42faf9
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x20], 0
je 0x42fb08
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402def
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, ebx
call fcn.00464e11
ret 8