Function at 0x403fa0
Capabilities:
Copy file
Delete file
Get common file path
Reference sql statements
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12e0
call fcn.00406850
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov dword [ebp - 0x10], esp
push eax
call esi
test eax, eax
je 0x404320
mov edi, dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x404320
lea ecx, [ebp - 0x2f0]
push ecx
push 0x104
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x404035
mov eax, dword [0x4134e8]
push 0x1000
lea edx, [ebp - 0x12f0]
push edx
push 0xe
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1ec]
push ecx
xor ebx, ebx
push ebx
push str.DEPLOYMSI
lea edx, [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x1ec]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4042ab
push 0x80
lea edx, [ebp - 0x1ec]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x1ec]
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call sub.msi.dll_MsiOpenProductA
test eax, eax
je 0x4040b4
push 0x4106a8
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], ebx
call fcn.00406cb6
mov eax, dword [ebp - 0x14]
push ebx
push edi
push eax
call sub.msi.dll_MsiDatabaseExportW
test eax, eax
je 0x4040d4
push 0x4106a8
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], ebx
call fcn.00406cb6
mov edx, dword [ebp - 0x14]
push edx
call sub.msi.dll_MsiDatabaseGenerateTransformW
test eax, eax
je 0x4040f2
push 0x4106a8
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call fcn.00406cb6
mov ecx, dword [ebp - 0x14]
push ecx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x14]
call fcn.004038c0
push eax
push ebx
lea edx, [ebp - 0x1ec]
push edx
call sub.msi.dll_MsiOpenProductA
test eax, eax
je 0x404126
push 0x4106a8
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call fcn.00406cb6
mov ecx, 0xf
mov esi, str.SELECT__FROM__Property__WHERE__Property_NIW_MAXFILEPATHLEN
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004038c0
push eax
lea ecx, [ebp - 0xe8]
push ecx
push esi
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
je 0x404169
push 0x4106a8
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ebx
call fcn.00406cb6
mov eax, dword [ebp - 0x18]
push ebx
push eax
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x404188
push 0x4106a8
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x34], ebx
call fcn.00406cb6
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.004038c0
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x4041af
push 0x4106a8
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], ebx
call fcn.00406cb6
mov eax, dword [ebp - 0x1c]
push 2
push eax
call sub.msi.dll_MsiRecordReadStream
push 0x40f2a4
lea ecx, [ebp - 0x84]
mov esi, eax
call fcn.00402ea0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00402ea0
push 0xffffffffffffffff
lea edx, [ebp - 0x84]
mov bl, 5
push edx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00402830
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401dc0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00402580
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], bl
call fcn.00401d70
lea ecx, [ebp - 0x60]
call fcn.004014b0
add eax, esi
cmp eax, 0x104
jl 0x404235
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404242
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40424f
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40425c
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x1ec]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00401d70
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401d70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404291
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40429e
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4042ab
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret