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

Disassembly:
push 0x23c
mov eax, 0x461510
call fcn.004480d4
mov esi, ecx
push str.DownloadArmUpdate...
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x244], esi
call fcn.00402060
xor ebx, ebx
push ebx
lea eax, [ebp - 0x22c]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00411fb7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov edi, dword [0x49d938]
mov dword [ebp - 0x238], ebx
cmp edi, ebx
je 0x4170e4
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004051c7
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push dword [eax - 0xc]
lea ecx, [ebp - 0x234]
push eax
call fcn.00401eca
lea eax, [ebp - 0x234]
lea ecx, [edi + 8]
push eax
call fcn.00409162
mov esi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416ce7
push str.__will_not_use_existing_ARM_update_file
lea ecx, [ebp - 0x23c]
call fcn.00402060
mov byte [ebp - 4], 2
cmp dword [edi + 0x1c], 1
jne 0x416c82
lea eax, [ebp - 0x228]
push eax
push ebx
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x228], ebx
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
je 0x416a53
push str.failed_to_open_db
lea ecx, [ebp - 0x22c]
call fcn.00402060
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22c]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00411b31
add esp, 0x10
jmp 0x416c54
call fcn.00434892
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040210b
mov dword [ebp - 0x240], ebx
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 7
push str.SELECT_Version_FROM_File_WHERE_FileNameAdobeARM.exe
push dword [ebp - 0x228]
mov dword [ebp - 0x230], ebx
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
cmp esi, ebx
je 0x416aa7
push str.failed_to_open_view
lea ecx, [ebp - 0x224]
call fcn.00402060
mov byte [ebp - 4], 8
jmp 0x416b14
push ebx
push dword [ebp - 0x230]
call sub.msi.dll_MsiViewModify
mov esi, eax
cmp esi, ebx
je 0x416acf
push str.failed_to_execute_view
lea ecx, [ebp - 0x224]
call fcn.00402060
mov byte [ebp - 4], 9
jmp 0x416b14
cmp dword [ebp - 0x240], ebx
je 0x416ae2
push dword [ebp - 0x240]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x230]
mov dword [ebp - 0x240], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
cmp esi, ebx
je 0x416b17
push str.failed_to_fetch_view
lea ecx, [ebp - 0x224]
call fcn.00402060
mov byte [ebp - 4], 0xa
push esi
jmp 0x416b87
mov eax, 0x104
push eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004462a0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push dword [ebp - 0x240]
call sub.msi.dll_MsiRecordSetStreamA
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004020d4
push dword [edi + 0x20]
lea ecx, [ebp - 0x22c]
call fcn.00409001
test eax, eax
je 0x416baf
push str.versions_do_not_match
lea ecx, [ebp - 0x224]
call fcn.00402060
mov byte [ebp - 4], 0xb
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.00411b31
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x416c2e
mov ebx, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.0041e29e
lea ecx, [ebp - 0x224]
test eax, eax
je 0x416bf6
xor eax, eax
inc eax
push str.will_use_found_valid_ARM_update_file
mov dword [edi + 0x18], eax
mov dword [ebp - 0x238], eax
call fcn.00402060
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xc
call fcn.00411fb7
add esp, 0xc
jmp 0x416c1e
push str.not_valid_signature
call fcn.00402060
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xd
call fcn.00411b31
add esp, 0x10
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040253e
xor ebx, ebx
cmp dword [ebp - 0x240], ebx
je 0x416c41
push dword [ebp - 0x240]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x230], ebx
je 0x416c54
push dword [ebp - 0x230]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [ebp - 4], 2
cmp dword [ebp - 0x228], ebx
je 0x416e8c
push dword [ebp - 0x228]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x416e8c
mov ebx, dword [edi + 0x14]
call fcn.0041e29e
lea ecx, [ebp - 0x224]
test eax, eax
je 0x416e50
xor eax, eax
inc eax
push str.will_use_found_valid_ARM_update_file
mov dword [edi + 0x18], eax
mov dword [ebp - 0x238], eax
call fcn.00402060
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xe
call fcn.00411fb7
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
xor ebx, ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x230]
call fcn.004020a4
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x238], ebx
jne 0x416fba
mov dword [ebp - 0x22c], 1
call fcn.00434892
push eax
lea ecx, [ebp - 0x228]
call fcn.0040210b
lea eax, [ebp - 0x228]
push eax
push str.ARM_Update
mov byte [ebp - 4], 0x12
push dword [0x49d460]
push 0x80000002
call fcn.0042e34e
add esp, 0x10
test eax, eax
jne 0x416da4
mov eax, dword [ebp - 0x228]
cmp dword [eax - 0xc], ebx
je 0x416da4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409162
push str.ARM_update_redirection_found:
lea ecx, [ebp - 0x224]
call fcn.00402060
push ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x13
call fcn.00411b31
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
push 0x927c0
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
lea eax, [edi + 8]
push eax
call fcn.00414c33
add esp, 0x10
cmp eax, 6
jne 0x416f84
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BITS
push str.Get_ARM_Update_Result
mov esi, 0x49d488
mov byte [ebp - 0x21d], bl
call fcn.004091c1
push str.ARM_update_download_success:
lea ecx, [ebp - 0x224]
call fcn.00402060
push ebx
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x14
call fcn.00411b31
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov ebx, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.0041e29e
test eax, eax
je 0x416f19
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov dword [ebp - 0x238], eax
jmp 0x416f82
push str.not_valid_signature
call fcn.00402060
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.00411b31
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
xor ebx, ebx
cmp dword [ebp - 0x238], ebx
jne 0x416cd5
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416cd5
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.00402060
push esi
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x10
call fcn.00411fb7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, 0x49d934
call fcn.0042b523
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x4170ea
lea eax, [ebp - 0x21d]
push eax
xor ebx, ebx
push ebx
push 0x468f88
push str.Signature_Validation_Error
mov esi, 0x49d488
mov byte [ebp - 0x21d], bl
call fcn.004091c1
push str.ARM_Update_signiture_validation_failed:
lea ecx, [ebp - 0x224]
call fcn.00402060
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x15
call fcn.00411b31
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov dword [ebp - 0x238], ebx
xor ebx, ebx
lea eax, [ebp - 0x21d]
push eax
push dword [ebp - 0x22c]
mov byte [ebp - 0x21d], bl
mov eax, str.BITS_Result
mov ebx, 0x49d488
call fcn.0040922c
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040253e
xor ebx, ebx
cmp dword [0x49d548], ebx
jne 0x4170c8
cmp dword [ebp - 0x238], ebx
jne 0x4170c8
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x234]
call fcn.004182d8
mov dword [ebp - 0x238], eax
cmp eax, ebx
je 0x4170c8
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BB
push str.Get_ARM_Update_Result
mov esi, 0x49d488
mov byte [ebp - 0x21d], bl
call fcn.004091c1
push str.BITs_failed__ARM_Update_download_success_using_DownloadFileDirectly
lea ecx, [ebp - 0x228]
call fcn.00402060
mov byte [ebp - 4], 0x16
mov ebx, dword [edi + 0x14]
mov esi, dword [ebp - 0x234]
call fcn.0041e29e
test eax, eax
je 0x41705c
push 0
lea eax, [ebp - 0x228]
push eax
push 2
mov dword [edi + 0x18], 1
call fcn.00411fb7
add esp, 0xc
jmp 0x4170ba
lea eax, [ebp - 0x21d]
push eax
xor ebx, ebx
push ebx
push 0x468f88
push str.Signature_Validation_Error
mov esi, 0x49d488
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x21d], bl
call fcn.004091c1
push str.ARM_Update_is_not_valid_after_download
lea ecx, [ebp - 0x224]
call fcn.00402060
push ebx
lea eax, [ebp - 0x224]
push eax
push 1
mov byte [ebp - 4], 0x17
call fcn.00411fb7
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp - 0x238]
call fcn.00448157
ret