Function at 0x401673
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x4563bf
call fcn.0043dfc3
push str.Extract7zArchive...
lea ecx, [ebp - 0x20]
call fcn.0040215a
xor edi, edi
push edi
lea eax, [ebp - 0x20]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.0040ed4d
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
mov dword [ebp - 0x18], edi
call fcn.0042a7ac
mov esi, eax
cmp esi, edi
je 0x40172e
push str.MsiOpenDatabase__
lea ecx, [ebp + 8]
call fcn.0040215a
push esi
lea eax, [ebp + 8]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.0040ed4d
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x40170d
push dword [ebp - 0x14]
call fcn.0042a7a6
cmp dword [ebp - 0x10], edi
je 0x40171a
push dword [ebp - 0x10]
call fcn.0042a7a6
cmp dword [ebp - 0x18], edi
je 0x401727
push dword [ebp - 0x18]
call fcn.0042a7a6
mov eax, esi
jmp 0x401a24
call fcn.0042ac34
push eax
lea ecx, [ebp - 0x24]
call fcn.004104de
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x24]
push str.SELECT__FROM__Binary__WHERE__Name__s
push eax
call fcn.004020ef
add esp, 0xc
cmp dword [ebp - 0x10], edi
je 0x401763
push dword [ebp - 0x10]
call fcn.0042a7a6
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call fcn.0042a7b2
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4017e1
push str.Extract7zArchive:MsiDatabaseOpenView__
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 6
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040ed4d
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004025dc
lea ecx, [esi - 0x10]
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x4017c0
push dword [ebp - 0x14]
call fcn.0042a7a6
cmp dword [ebp - 0x10], edi
je 0x4017cd
push dword [ebp - 0x10]
call fcn.0042a7a6
cmp dword [ebp - 0x18], edi
je 0x4017da
push dword [ebp - 0x18]
call fcn.0042a7a6
mov eax, ebx
jmp 0x401a24
push edi
push dword [ebp - 0x10]
call fcn.0042a7b8
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x401804
push str.Extract7zArchive:MsiViewExecut__
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 7
jmp 0x40178e
cmp dword [ebp - 0x14], edi
je 0x401811
push dword [ebp - 0x14]
call fcn.0042a7a6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.0042a7be
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40183d
push str.Extract7zArchive:MsiViewFetch__
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 8
jmp 0x40178e
push 2
push dword [ebp - 0x14]
call fcn.0042a7c4
push eax
mov dword [ebp - 0x2c], eax
call fcn.0042a898
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x48e9ec
call fcn.00401013
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00401f30
push str.___File:
lea ecx, [ebp - 0x28]
call fcn.0040215a
push edi
mov byte [ebp - 4], 0xb
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.0040e8c7
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push str.___archive_file:
lea ecx, [ebp + 8]
call fcn.0040215a
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 0xc
call fcn.0040e8c7
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [0x4593ec]
cmp eax, 0xffffffff
je 0x401933
push 0x80
push ebx
call dword [0x4593d8]
push ebx
call dword [0x4593d4]
test eax, eax
jne 0x401933
push str.Failed_to_delete_previous_ARM_update_archive:
lea ecx, [ebp + 8]
call fcn.0040215a
push 0x186a0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.0040e8c7
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
push 2
push dword [ebp - 0x14]
call fcn.0042a7ca
test eax, eax
jne 0x4019c6
lea ecx, [ebp - 0x3c]
call fcn.0042b363
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.00402056
lea eax, [ebp - 0x50]
push eax
push 0x1001
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0042b764
mov ebx, 0x1fbd0
cmp dword [0x48eac4], ebx
je 0x401a2a
cmp eax, edi
je 0x401a2a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x20]
call fcn.0042b099
lea ecx, [ebp - 0x3c]
call fcn.0042b2fd
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov dword [ebp - 0x50], 0x4599f4
call fcn.004025dc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042b43e
mov ebx, dword [ebp - 0x1c]
push edi
push 1
push dword [ebp - 0x14]
call fcn.0042a7d0
push dword [ebp - 0x10]
call fcn.0042a7a6
push dword [ebp - 0x18]
call fcn.0042a7a6
push dword [ebp - 0x20]
call fcn.0042a88d
pop ecx
lea ecx, [ebx - 0x10]
call fcn.004025dc
lea ecx, [esi - 0x10]
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x401a07
push dword [ebp - 0x14]
call fcn.0042a7a6
cmp dword [ebp - 0x10], edi
je 0x401a14
push dword [ebp - 0x10]
call fcn.0042a7a6
cmp dword [ebp - 0x18], edi
je 0x401a21
push dword [ebp - 0x18]
call fcn.0042a7a6
xor eax, eax
inc eax
call fcn.0043e09b
ret
push dword [ebp - 0x10]
call fcn.0042a7a6
push dword [ebp - 0x18]
call fcn.0042a7a6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push str.Create_file_failed:
push eax
call fcn.00401e97
add esp, 0xc
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x10
call dword [0x4593e4]
push dword [ebp + 8]
mov ecx, eax
push ebx
mov edx, 0x48eabc
call fcn.0040d172
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov dword [ebp - 0x50], 0x4599f4
call fcn.004025dc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042b43e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [esi - 0x10]
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x401ab5
push dword [ebp - 0x14]
call fcn.0042a7a6
cmp dword [ebp - 0x10], edi
je 0x401ac2
push dword [ebp - 0x10]
call fcn.0042a7a6
cmp dword [ebp - 0x18], edi
je 0x401acf
push dword [ebp - 0x18]
call fcn.0042a7a6
xor eax, eax
jmp 0x401a24