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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46418c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x494680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Extract7zArchive...
lea ecx, [ebp - 0x60]
call fcn.00401a60
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x60]
push eax
push 2
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405030
lea ecx, [ebp - 0x20]
call fcn.004019b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004019b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004019b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401960
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00404b10
push eax
call sub.msi.dll_MsiOpenProductW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4589c5
push str.MsiOpenDatabase__
lea ecx, [ebp - 0x68]
call fcn.00401a60
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x68]
push edx
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x64]
jmp 0x458fa0
lea ecx, [ebp - 0x1c]
call fcn.00404f90
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00404b10
push eax
push str.SELECT__FROM__Binary__WHERE__Name__s
lea eax, [ebp - 0x1c]
push eax
call fcn.00401930
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00401960
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404b10
push eax
lea ecx, [ebp - 0x20]
call fcn.00404b10
push eax
call sub.msi.dll_MsiEnumClientsA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x458a81
push str.Extract7zArchive:MsiDatabaseOpenView__
lea ecx, [ebp - 0x70]
call fcn.00401a60
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x70]
push edx
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x6c]
jmp 0x458fa0
push 0
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
call sub.msi.dll_MsiViewModify
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x458b07
push str.Extract7zArchive:MsiViewExecut__
lea ecx, [ebp - 0x78]
call fcn.00401a60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x74]
jmp 0x458fa0
lea ecx, [ebp - 0x2c]
call fcn.00401960
push eax
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x458b94
push str.Extract7zArchive:MsiViewFetch__
lea ecx, [ebp - 0x80]
call fcn.00401a60
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x80]
push eax
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x7c]
jmp 0x458fa0
push 2
lea ecx, [ebp - 0x2c]
call fcn.00404b10
push eax
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jae 0x458c4d
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00404b10
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push str.Failed_to_find_7z_archive_in_msi_file.
lea ecx, [ebp - 0x88]
call fcn.00401a60
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.0045c270
add esp, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x84]
jmp 0x458fa0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040915b
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x18], edx
mov ecx, 0x498b90
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.004010f0
push str.___File:
lea ecx, [ebp - 0x90]
call fcn.00401a60
mov byte [ebp - 4], 0xb
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x90]
push eax
push 2
call fcn.0045c270
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x90]
call fcn.00405030
push str.___archive_file:
lea ecx, [ebp - 0x94]
call fcn.00401a60
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x94]
push edx
push 2
call fcn.0045c270
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00405030
lea eax, [ebp - 0x14]
push eax
call fcn.00401020
add esp, 4
test eax, eax
je 0x458d7c
push 0x80
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x458d7c
push str.Failed_to_delete_previous_ARM_update_archive:
lea ecx, [ebp - 0x98]
call fcn.00401a60
mov byte [ebp - 4], 0xd
push 0x3e8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x98]
push edx
push 1
call fcn.0045c270
add esp, 0x10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.00405030
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 2
lea ecx, [ebp - 0x2c]
call fcn.00404b10
push eax
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x458f0b
lea ecx, [ebp - 0x44]
call fcn.00409c50
mov byte [ebp - 4], 0xe
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x5c]
call fcn.004017f0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x5c]
push edx
push 0x1001
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a051
mov dword [ebp - 0x48], eax
push 0x514
mov ecx, 0x498b90
call fcn.004010a0
movzx eax, al
test eax, eax
jne 0x458df7
cmp dword [ebp - 0x48], 0
jne 0x458edb
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00404b10
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.00401310
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, 0x498b90
call fcn.004010c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x9c]
call fcn.00405030
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
call fcn.00401730
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00409d2b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0xa0]
jmp 0x458fa0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.00409986
lea ecx, [ebp - 0x44]
call fcn.00409bea
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
call fcn.00401730
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00409d2b
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404b10
push eax
call sub.msi.dll_MsiReinstallFeatureFromDescriptorA
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x20]
call fcn.00404b10
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.00409166
add esp, 4
mov dword [ebp - 0xa8], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00405030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret