Function at 0x43142d
Capabilities:
Reference sql statements

Disassembly:
push 0x2c
mov eax, 0x48a978
call fcn.00464e48
mov ebx, ecx
push str.InitAlternativePayload...
lea ecx, [ebp - 0x34]
call fcn.0040279b
xor edi, edi
lea edx, [ebp - 0x34]
push edi
push 2
pop ecx
mov dword [ebp - 4], edi
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x30]
call fcn.00402824
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402824
mov byte [ebp - 4], 2
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x28]
call fcn.00402824
mov byte [ebp - 4], 3
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402824
push str.SELECT__FROM__UpdateAlternative__WHERE__FileName_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040279b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402556
push 0x4c00b0
lea ecx, [ebp - 0x14]
call fcn.0040945f
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
push dword [ebx + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, eax
test edi, edi
je 0x43152a
push 0x4c00b4
lea ecx, [ebp - 0x24]
call fcn.0040279b
mov byte [ebp - 4], 8
push edi
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
jmp 0x43182d
push 0
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
je 0x43154e
push 0x4c00c0
lea ecx, [ebp - 0x24]
call fcn.0040279b
mov byte [ebp - 4], 9
jmp 0x431513
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x24]
call fcn.00402824
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], 0
je 0x43156f
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], edi
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x431595
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push 2
pop edx
call fcn.0044518f
pop ecx
push str.SELECT__Type____URL____Size____Args__FROM__UpdateFiles__WHERE__File_
lea ecx, [ebp - 0x14]
call fcn.004027df
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push dword [esi - 0xc]
push esi
call fcn.00402556
push 0x4c0a54
lea ecx, [ebp - 0x14]
call fcn.0040252d
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
push dword [ebx + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, eax
test edi, edi
je 0x4315f7
push 0x4c00b4
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0xd
xor ecx, ecx
inc ecx
jmp 0x431743
xor ebx, ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
je 0x43161c
push 0x4c00c0
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0xe
jmp 0x4315ef
cmp dword [ebp - 0x10], ebx
je 0x43162a
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, eax
lea ecx, [ebp - 0x38]
test edi, edi
je 0x431653
push 0x4c00c8
call fcn.0040279b
mov byte [ebp - 4], 0xf
jmp 0x4315ef
push str.found_matching_alternative_payload_record
call fcn.0040279b
push ebx
push 2
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402d9f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
xor ebx, ebx
inc ebx
push eax
mov edx, ebx
call fcn.0044518f
mov edi, eax
pop ecx
test edi, edi
je 0x4316b7
push str.MGRS_Type_
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0x11
jmp 0x431741
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4316d3
push str.Empty_Type
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0x12
jmp 0x43173e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
push 2
pop edx
call fcn.0044518f
mov edi, eax
pop ecx
test edi, edi
je 0x4316fc
push str.MGRS_URL_
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0x13
jmp 0x431741
mov eax, dword [ebp - 0x28]
cmp dword [eax - 0xc], 0
jne 0x431718
push str.Empty_URL
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0x14
jmp 0x43173e
push 3
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
mov dword [ebp - 0x38], eax
cmp eax, 0x80000000
jne 0x43175d
push str.MRGI_Size_
lea ecx, [ebp - 0x38]
call fcn.0040279b
mov byte [ebp - 4], 0x15
push 0xd
pop edi
mov ecx, ebx
lea edx, [ebp - 0x38]
push edi
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x43180c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
push 4
pop edx
call fcn.0044518f
xor ebx, ebx
pop ecx
cmp dword [0x4e20cc], ebx
jle 0x4317db
mov esi, dword [ebp - 0x38]
push ebx
mov ecx, 0x4e20c4
call fcn.0040979f
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
push dword [eax]
add ecx, 4
call fcn.0040952b
test eax, eax
jne 0x4317cf
mov edi, dword [edi]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x38]
call fcn.00402d9f
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0x3c]
push eax
call fcn.00402d9f
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x44]
push eax
call fcn.00402d9f
lea eax, [ebp - 0x34]
lea ecx, [edi + 0x40]
push eax
call fcn.00402d9f
mov dword [edi + 0x48], esi
inc ebx
cmp ebx, dword [0x4e20cc]
jl 0x43177a
mov esi, dword [ebp - 0x24]
push str.Alternative_payload_initialized:
lea ecx, [ebp - 0x38]
call fcn.0040279b
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x16
push eax
push 2
lea edx, [ebp - 0x38]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43181b
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x1c], 0
je 0x43182a
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea ecx, [esi - 0x10]
call fcn.00402def
cmp dword [ebp - 0x18], 0
je 0x431841
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x20], 0
je 0x431850
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00402def
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, edi
call fcn.00464e11
ret 4