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

Disassembly:
push 0x244
mov eax, 0x46b5ea
call fcn.0045091b
mov esi, ecx
push str.DownloadArmUpdate...
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x24c], esi
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x238]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00410d56
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x238]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov edi, dword [0x4b27e0]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
cmp edi, ebx
je 0x4182b4
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00408052
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push dword [eax - 0xc]
lea ecx, [ebp - 0x234]
push eax
call fcn.00401163
lea eax, [ebp - 0x234]
lea ecx, [edi + 8]
push eax
mov dword [ebp - 0x230], ecx
call fcn.00406b64
mov esi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417e65
push str.__will_not_use_existing_ARM_update_file
lea ecx, [ebp - 0x228]
call fcn.004012e2
mov byte [ebp - 4], 2
cmp dword [edi + 0x1c], 1
jne 0x417df3
lea eax, [ebp - 0x248]
push eax
push ebx
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x248], ebx
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
je 0x417bae
push str.failed_to_open_db
lea ecx, [ebp - 0x238]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00410886
add esp, 0x10
jmp 0x417dc5
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x238]
call fcn.00413a25
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 7
push str.SELECT_Version_FROM_File_WHERE_FileNameAdobeARM.exe
push dword [ebp - 0x248]
mov dword [ebp - 0x244], ebx
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
cmp esi, ebx
je 0x417c02
push str.failed_to_open_view
lea ecx, [ebp - 0x224]
call fcn.004012e2
mov byte [ebp - 4], 8
jmp 0x417c6f
push ebx
push dword [ebp - 0x244]
call sub.msi.dll_MsiViewModify
mov esi, eax
cmp esi, ebx
je 0x417c2a
push str.failed_to_execute_view
lea ecx, [ebp - 0x224]
call fcn.004012e2
mov byte [ebp - 4], 9
jmp 0x417c6f
cmp dword [ebp - 0x22c], ebx
je 0x417c3d
push dword [ebp - 0x22c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x22c], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
cmp esi, ebx
je 0x417c72
push str.failed_to_fetch_view
lea ecx, [ebp - 0x224]
call fcn.004012e2
mov byte [ebp - 4], 0xa
push esi
jmp 0x417ce2
mov eax, 0x104
push eax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0044e740
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push dword [ebp - 0x22c]
call sub.msi.dll_MsiRecordSetStreamA
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401356
push dword [edi + 0x20]
lea ecx, [ebp - 0x238]
call fcn.00406a03
test eax, eax
je 0x417d0d
push str.versions_do_not_match
lea ecx, [ebp - 0x224]
call fcn.004012e2
mov byte [ebp - 4], 0xb
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.00410886
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
jmp 0x417d9f
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.00420f8b
test eax, eax
jne 0x417d5b
mov ecx, dword [ebp - 0x23c]
inc eax
mov dword [ecx + 0x18], eax
push str.will_use_found_valid_ARM_update_file
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x240], eax
call fcn.004012e2
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xc
call fcn.00410d56
add esp, 0xc
jmp 0x417d89
push str.not_valid_signature
lea ecx, [ebp - 0x224]
call fcn.004012e2
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xd
call fcn.00410886
add esp, 0x10
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017ba
mov edi, dword [ebp - 0x23c]
xor ebx, ebx
cmp dword [ebp - 0x22c], ebx
je 0x417db2
push dword [ebp - 0x22c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x244], ebx
je 0x417dc5
push dword [ebp - 0x244]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 2
cmp dword [ebp - 0x248], ebx
je 0x418048
push dword [ebp - 0x248]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x418048
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
call fcn.00420f8b
test eax, eax
jne 0x418000
mov ecx, dword [ebp - 0x23c]
inc eax
mov dword [ecx + 0x18], eax
push str.will_use_found_valid_ARM_update_file
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x240], eax
call fcn.004012e2
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xe
call fcn.00410d56
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov edi, dword [ebp - 0x23c]
xor ebx, ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401326
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x240], ebx
jne 0x418175
mov dword [ebp - 0x238], 1
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x22c]
call fcn.00413a25
lea eax, [ebp - 0x22c]
push eax
push str.ARM_Update_2
mov byte [ebp - 4], 0x12
push dword [0x4b26a8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.00432795
mov eax, dword [ebp - 0x22c]
add esp, 0x10
cmp dword [eax - 0xc], ebx
jne 0x417ee9
lea eax, [ebp - 0x22c]
push eax
push str.ARM_Update
push dword [0x4b26a8]
push esi
call fcn.00432795
add esp, 0x10
mov eax, dword [ebp - 0x22c]
cmp dword [eax - 0xc], ebx
je 0x417f45
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406b64
push str.ARM_update_redirected_to:
lea ecx, [ebp - 0x224]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x13
call fcn.00410886
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
push 0x927c0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x230]
call fcn.00415922
add esp, 0x10
cmp eax, 6
jne 0x418141
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BITS
push str.Get_ARM_Update_Result
mov esi, 0x4b26d8
mov byte [ebp - 0x21d], bl
call fcn.00406bc3
push str.download_BITs_success:
lea ecx, [ebp - 0x224]
call fcn.004012e2
push ebx
mov byte [ebp - 4], 0x14
push dword [ebp - 0x230]
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.00410886
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.00420f8b
mov esi, eax
test esi, esi
jne 0x4180d5
mov ecx, dword [ebp - 0x23c]
inc eax
mov dword [ecx + 0x18], eax
mov dword [ebp - 0x240], eax
mov edi, ecx
jmp 0x41813f
push str.invalid_signature
lea ecx, [ebp - 0x224]
call fcn.004012e2
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.00410886
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov edi, dword [ebp - 0x23c]
xor ebx, ebx
cmp dword [ebp - 0x240], ebx
jne 0x417e53
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_delete_invalid_ARM_update_file
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.004012e2
push esi
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x10
call fcn.00410d56
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov esi, 0x4b27dc
call fcn.0042ecf4
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
jmp 0x4182ba
lea eax, [ebp - 0x21d]
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x4b26d8
mov byte [ebp - 0x21d], 0
call fcn.00406c2e
push str.invalid_after_BITs_download:
lea ecx, [ebp - 0x230]
call fcn.004012e2
push esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
push 2
mov byte [ebp - 4], 0x15
call fcn.00410886
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x230]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
and dword [ebp - 0x240], 0
mov edi, dword [ebp - 0x23c]
xor ebx, ebx
lea eax, [ebp - 0x21d]
push eax
push dword [ebp - 0x238]
mov ecx, 0x4b26d8
push str.BITS_Result_Self_Update
mov byte [ebp - 0x21d], bl
call fcn.00406c2e
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017ba
cmp dword [0x4b2798], ebx
jne 0x418298
cmp dword [ebp - 0x240], ebx
jne 0x418298
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x24c]
call fcn.004198ae
mov dword [ebp - 0x240], eax
cmp eax, ebx
je 0x41825d
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BB
push str.Get_ARM_Update_Result
mov esi, 0x4b26d8
mov byte [ebp - 0x21d], bl
call fcn.00406bc3
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.00420f8b
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x41821d
mov eax, dword [ebp - 0x23c]
push str.valid_after_BB_download:
lea ecx, [ebp - 0x230]
mov dword [eax + 0x18], 1
call fcn.004012e2
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x234]
jmp 0x418277
lea eax, [ebp - 0x21d]
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x4b26d8
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x21d], bl
call fcn.00406c2e
push str.invalid_after_BB_download:
lea ecx, [ebp - 0x230]
call fcn.004012e2
mov byte [ebp - 4], 0x17
push esi
lea eax, [ebp - 0x234]
jmp 0x418278
push str.BB_download_failed:
lea ecx, [ebp - 0x230]
call fcn.004012e2
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x228]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
push 2
call fcn.00410886
mov ecx, dword [ebp - 0x230]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, dword [ebp - 0x240]
call fcn.0045099e
ret