Function at 0x4019f8
Capabilities:
Check if file exists
Delete file
Get file attributes
Reference sql statements

Disassembly:
push 0x54
mov eax, 0x4aaaf8
call fcn.0046ac08
mov esi, edx
mov dword [ebp - 0x28], esi
mov edi, ecx
mov dword [ebp - 0x30], edi
push str.Extract7zArchiveFromMsiContainer.._archive_name:
lea ecx, [ebp - 0x2c]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x2c]
push ebx
push esi
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00416dc0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x4cb28c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], 1
call fcn.00402829
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c93b
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
push ebx
push dword [edi]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.msi.dll_MsiOpenProductW]
mov edi, eax
test edi, edi
je 0x401abe
push str.MOD_failed:
lea ecx, [ebp - 0x2c]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 5
push edi
lea edx, [ebp - 0x2c]
inc ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
jmp 0x401e93
call fcn.00450db1
push eax
lea ecx, [ebp - 0x2c]
call main
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push dword [esi]
push str.SELECT__FROM__Binary__WHERE__Name__s
push eax
call main
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x401af2
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, eax
test edi, edi
je 0x401b1f
push str.MDOV_failed:
lea ecx, [ebp - 0x28]
call fcn.00402829
mov byte [ebp - 4], 7
jmp 0x401b78
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
je 0x401b42
push str.MVE_failed:
lea ecx, [ebp - 0x28]
call fcn.00402829
mov byte [ebp - 4], 8
jmp 0x401b78
cmp dword [ebp - 0x14], 0
je 0x401b51
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, eax
test edi, edi
je 0x401b8d
push str.MVF_failed:
lea ecx, [ebp - 0x28]
call fcn.00402829
mov byte [ebp - 4], 9
xor ecx, ecx
lea edx, [ebp - 0x28]
push edi
inc ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x28]
jmp 0x401e88
push 2
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
mov edi, dword [ebp - 0x28]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004024b8
add esp, 0xc
push dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x401bca
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call main
push str.___File:
lea ecx, [ebp - 0x28]
call fcn.00402829
push ebx
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
push dword [ebp - 0x30]
push 2
pop ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.___archive_file:
lea ecx, [ebp - 0x28]
call fcn.00402829
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
push 2
lea edx, [ebp - 0x28]
pop ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401d01
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x401d01
push str.Failed_to_delete_existing_archive:
lea ecx, [ebp - 0x28]
call fcn.00402829
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
xor ecx, ecx
lea edx, [ebp - 0x28]
push 0x186a0
push eax
inc ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.00450db1
push eax
lea ecx, [ebp - 0x28]
call main
push ebx
mov byte [ebp - 4], 0xf
call main
pop ecx
push eax
call main
pop ecx
call fcn.00489368
push eax
push dword [edi]
lea eax, [ebp - 0x28]
push str._s_d
push eax
call main
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call main
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.004024b8
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call main
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x48]
call main
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.004026c3
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x12
push eax
push 0x1001
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
call main
cmp dword [0x5163b8], 0x1fbd0
je 0x401e1c
test eax, eax
je 0x401e1c
mov eax, 0x989680
push eax
mov dword [ebp - 0x24], eax
call main
pop ecx
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x401dea
mov esi, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401de7
push eax
push edi
lea ecx, [ebp - 0x48]
add esi, eax
call main
movd xmm1, esi
mov eax, esi
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mov dword [ebp - 0x24], 0x989680
addsd xmm1, qword [eax*8 + 0x4fc300]
mov eax, dword [ebp - 0x34]
mulsd xmm1, qword [0x4fc2e0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4fc300]
divsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call main
lea eax, [ebp - 0x24]
push eax
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
je 0x401d70
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00451170
push ebx
push 1
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiReinstallFeatureFromDescriptorA]
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push edi
call fcn.0045066d
xor ebx, ebx
pop ecx
inc ebx
jmp 0x401e6b
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push str.Create_file_failed:
push eax
call fcn.004023f1
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 0x13
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push 0x1fbd0
mov ecx, 0x5163b0
call fcn.00415683
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x48]
call main
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x14], 0
je 0x401ea7
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x401eb6
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x20], 0
je 0x401ec5
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, ebx
call fcn.0046abd1
ret