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

Disassembly:
push 0x54
mov eax, 0x4ac518
call fcn.0046c638
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.00417010
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x4cd2bc
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.0040c8aa
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.00417741
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
jmp 0x401e93
call fcn.004527d1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402899
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push dword [esi]
push str.SELECT__FROM__Binary__WHERE__Name__s
push eax
call fcn.004027d2
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.00417741
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 fcn.0040259d
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.00417010
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.00417010
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.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.004527d1
push eax
lea ecx, [ebp - 0x28]
call fcn.00402899
push ebx
mov byte [ebp - 4], 0xf
call fcn.0048ae3e
pop ecx
push eax
call fcn.0048ada9
pop ecx
call fcn.0048ad88
push eax
push dword [edi]
lea eax, [ebp - 0x28]
push str._s_d
push eax
call fcn.004027d2
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402e14
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 fcn.00402e14
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 fcn.004528d0
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 fcn.00452e40
cmp dword [0x51a3b4], 0x1fbd0
je 0x401e1c
test eax, eax
je 0x401e1c
mov eax, 0x989680
push eax
mov dword [ebp - 0x24], eax
call fcn.00452092
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 fcn.00453210
movd xmm1, esi
mov eax, esi
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mov dword [ebp - 0x24], 0x989680
addsd xmm1, qword [eax*8 + 0x4ff0e0]
mov eax, dword [ebp - 0x34]
mulsd xmm1, qword [0x4ff0c0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4ff0e0]
divsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040c945
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.00452b90
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.0045208d
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, 0x51a3ac
call fcn.00415893
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 fcn.00452900
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.0046c601
ret