Function at 0x461ed0
Capabilities:
Delete file
Reference sql statements
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ecd5
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a0b70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Extract7zArchive...
lea ecx, [ebp - 0x60]
call fcn.00401ee0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x60]
push eax
push 2
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405260
lea ecx, [ebp - 0x20]
call fcn.00404950
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401e00
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiOpenProductW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x461fd5
push 0x48fae4
lea ecx, [ebp - 0x68]
call fcn.00401ee0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x68]
push edx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0x64]
jmp 0x4625b0
lea ecx, [ebp - 0x1c]
call fcn.004051c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00401fc0
push eax
push str.SELECT__FROM__Binary__WHERE__Name__s
lea eax, [ebp - 0x1c]
push eax
call fcn.00401dd0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00401e00
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiEnumClientsA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x462091
push str.Extract7zArchive:MsiDatabaseOpenView__
lea ecx, [ebp - 0x70]
call fcn.00401ee0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x70]
push edx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0x6c]
jmp 0x4625b0
push 0
lea ecx, [ebp - 0x28]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiViewModify
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x462117
push str.Extract7zArchive:MsiViewExecut__
lea ecx, [ebp - 0x78]
call fcn.00401ee0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0x74]
jmp 0x4625b0
lea ecx, [ebp - 0x2c]
call fcn.00401e00
push eax
lea ecx, [ebp - 0x28]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4621a4
push str.Extract7zArchive:MsiViewFetch__
lea ecx, [ebp - 0x80]
call fcn.00401ee0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x80]
push eax
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0x7c]
jmp 0x4625b0
push 2
lea ecx, [ebp - 0x2c]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jae 0x46225d
lea ecx, [ebp - 0x28]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push str.Failed_to_find_7z_archive_in_msi_file.
lea ecx, [ebp - 0x88]
call fcn.00401ee0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
push 1
call fcn.00466c70
add esp, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0x84]
jmp 0x4625b0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040ffbe
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x18], edx
mov ecx, 0x4a4b78
call fcn.00401080
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00401040
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004011b0
push str.___File:
lea ecx, [ebp - 0x90]
call fcn.00401ee0
mov byte [ebp - 4], 0xb
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x90]
push eax
push 2
call fcn.00466c70
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x90]
call fcn.00405260
push str.___archive_file:
lea ecx, [ebp - 0x94]
call fcn.00401ee0
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x94]
push edx
push 2
call fcn.00466c70
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00405260
lea eax, [ebp - 0x14]
push eax
call fcn.00401020
add esp, 4
test eax, eax
je 0x46238c
push 0x80
lea ecx, [ebp - 0x14]
call fcn.00401fc0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x14]
call fcn.00401fc0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46238c
push str.Failed_to_delete_previous_ARM_update_archive:
lea ecx, [ebp - 0x98]
call fcn.00401ee0
mov byte [ebp - 4], 0xd
push 0x3e8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x98]
push edx
push 1
call fcn.00466c70
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.00405260
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 2
lea ecx, [ebp - 0x2c]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x46251b
lea ecx, [ebp - 0x44]
call fcn.00410aa8
mov byte [ebp - 4], 0xe
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x5c]
call fcn.00401c90
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x5c]
push edx
push 0x1001
lea ecx, [ebp - 0x14]
call fcn.00401fc0
push eax
lea ecx, [ebp - 0x44]
call fcn.00410ea9
mov dword [ebp - 0x48], eax
push 0x514
mov ecx, 0x4a4b78
call fcn.004010e0
movzx eax, al
test eax, eax
jne 0x462407
cmp dword [ebp - 0x48], 0
jne 0x4624eb
lea ecx, [ebp - 0x28]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x14]
push ecx
push str.Create_file_failed:
lea edx, [ebp - 0x9c]
push edx
call fcn.004015a0
add esp, 0xc
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
push 0x514
mov ecx, 0x4a4b78
call fcn.00401100
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x9c]
call fcn.00405260
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
call fcn.00401be0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00410b83
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0xa0]
jmp 0x4625b0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.004107de
lea ecx, [ebp - 0x44]
call fcn.00410a42
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
call fcn.00401be0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00410b83
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorA
lea ecx, [ebp - 0x28]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00401fc0
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.0040ffb3
add esp, 4
mov dword [ebp - 0xa8], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00405260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401e30
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret