Function at 0x42dfc0
Capabilities:
Reference sql statements

Disassembly:
push 0x20
mov eax, 0x47829c
call fcn.0045be74
push str.InitAlternativePayload...
lea ecx, [ebp - 0x24]
call fcn.004020a6
xor esi, esi
push esi
lea eax, [ebp - 0x24]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x20]
push eax
mov eax, 0x4c4964
call main
push esi
push 0x80
push 3
push esi
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x20]
push SysReAllocString
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
inc edi
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
je 0x42e64e
mov ebx, str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
or edi, 0xffffffff
call main
test eax, eax
jne 0x42e602
mov edi, dword [ebp + 8]
add edi, 4
mov eax, dword [edi]
test eax, eax
je 0x42e066
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [edi], 0
push edi
push 0
push dword [ebp - 0x20]
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x42e632
push str.Init_from:
lea ecx, [ebp - 0x28]
call fcn.004020a6
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.00414e01
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push str.SELECT__FROM__UpdateAlternative__WHERE__FileName_
lea ecx, [ebp - 0x1c]
call fcn.004020a6
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00401ec7
push 0x4a2fa0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040aac0
mov dword [ebp + 8], esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
mov eax, dword [edi]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
call sub.msi.dll_MsiEnumClientsA
mov ebx, eax
cmp ebx, esi
je 0x42e16c
push 0x4a2fa4
lea ecx, [ebp + 0x14]
call fcn.004020a6
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp + 0x14]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e132
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e13f
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, ebx
call fcn.0045bf4c
ret 0x1c
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov ebx, eax
cmp ebx, esi
je 0x42e191
push 0x4a2fb0
lea ecx, [ebp + 0x14]
call fcn.004020a6
mov byte [ebp - 4], 8
jmp 0x42e10b
call fcn.0044825c
push eax
lea ecx, [ebp + 0xc]
call fcn.0041872d
mov byte [ebp - 4], 9
cmp dword [ebp + 8], esi
je 0x42e1b0
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp + 8], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, esi
jne 0x42e1d4
lea eax, [ebp + 0xc]
push eax
push 2
push dword [ebp + 8]
call main
add esp, 0xc
push str.SELECT__Type____URL____Size____Args__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x1c]
call fcn.0040211a
mov ebx, dword [ebp + 0xc]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x1c]
push ebx
call main
push 0x4a37fc
lea ecx, [ebp - 0x1c]
call fcn.0040af5f
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xb
mov edi, dword [edi]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push edi
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
je 0x42e2b1
push 0x4a2fa4
lea ecx, [ebp + 0x14]
call fcn.004020a6
mov byte [ebp - 4], 0xc
push edi
lea eax, [ebp + 0x14]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42e258
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], esi
je 0x42e265
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e27a
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e287
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
jmp 0x42e164
push esi
push dword [ebp - 0x18]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x42e2d6
push 0x4a2fb0
lea ecx, [ebp + 0x14]
call fcn.004020a6
mov byte [ebp - 4], 0xd
jmp 0x42e231
cmp dword [ebp - 0x10], esi
je 0x42e2e3
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, esi
je 0x42e30e
push 0x4a2fb8
lea ecx, [ebp + 0x14]
call fcn.004020a6
mov byte [ebp - 4], 0xe
jmp 0x42e231
push str.found_matching_alternative_payload_record
lea ecx, [ebp - 0x28]
call fcn.004020a6
push esi
lea eax, [ebp - 0x28]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.004152d1
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.00402573
push dword [ebp + 0x14]
push 1
push dword [ebp - 0x10]
call main
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x42e3f6
push str.MGRS_Type_
lea ecx, [ebp + 0x14]
call fcn.004020a6
push edi
lea eax, [ebp + 0x14]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.004152d1
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42e39b
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], esi
je 0x42e3a8
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e3bd
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e3ca
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, edi
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, esi
jmp 0x42e164
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
jne 0x42e47b
push str.Empty_Type
lea ecx, [ebp + 0x10]
call fcn.004020a6
push 0xd
lea eax, [ebp + 0x10]
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.004152d1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42e439
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], esi
je 0x42e446
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e45b
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e468
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
push 0xd
pop esi
jmp 0x42e3d7
mov edi, dword [ebp + 0x18]
push edi
push 2
push dword [ebp - 0x10]
call main
add esp, 0xc
mov dword [ebp + 0x14], eax
cmp eax, esi
je 0x42e50f
push str.MGRS_URL_
lea ecx, [ebp + 0x18]
call fcn.004020a6
mov byte [ebp - 4], 0x12
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp + 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42e4cd
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], esi
je 0x42e4da
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e4ef
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e4fc
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [ebp + 0x14]
jmp 0x42e3d7
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x42e53c
push str.Empty_URL
lea ecx, [ebp + 0x20]
call fcn.004020a6
push 0xd
lea eax, [ebp + 0x20]
push eax
push 1
mov byte [ebp - 4], 0x13
call fcn.004152d1
mov ecx, dword [ebp + 0x20]
jmp 0x42e421
push 3
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
cmp eax, 0x80000000
jne 0x42e578
push str.MRGI_Size_
lea ecx, [ebp + 0x1c]
call fcn.004020a6
push 0xd
lea eax, [ebp + 0x1c]
push eax
push 1
mov byte [ebp - 4], 0x14
call fcn.004152d1
mov ecx, dword [ebp + 0x1c]
jmp 0x42e421
push dword [ebp + 0x1c]
push 4
push dword [ebp - 0x10]
call main
add esp, 0xc
push str.Alternative_payload_initialized:
lea ecx, [ebp + 0x14]
call fcn.004020a6
push esi
mov byte [ebp - 4], 0x15
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push 2
call fcn.00414e01
mov ecx, dword [ebp + 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x10], esi
je 0x42e5c3
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], esi
je 0x42e5d0
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025d2
cmp dword [ebp + 8], esi
je 0x42e5e5
push dword [ebp + 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x42e5f2
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x42e3d7
push str.Manifest_file_not_valid:
lea ecx, [ebp + 0x14]
call fcn.004020a6
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.00414e01
mov ecx, dword [ebp + 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test edi, edi
je 0x42e644
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, 0x490
jmp 0x42e3e4
push str.Failed_to_lock_Manifest_file:
lea ecx, [ebp + 0x14]
call fcn.004020a6
push 0x186a0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
mov byte [ebp - 4], 0x17
call fcn.00414e01
mov ecx, dword [ebp + 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x42e635