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

Disassembly:
push 0x244
mov eax, 0x4640d7
call fcn.00449f2b
mov esi, ecx
push str.DownloadArmUpdate...
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x24c], esi
call fcn.0040130b
xor ebx, ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov edi, dword [0x4a670c]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
cmp edi, ebx
je 0x416343
lea eax, [ebp - 0x230]
push eax
mov eax, esi
call fcn.00407866
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push dword [eax - 0xc]
lea ecx, [ebp - 0x230]
push eax
call fcn.00401175
lea eax, [ebp - 0x230]
lea ecx, [edi + 8]
push eax
mov dword [ebp - 0x22c], ecx
call fcn.004063a1
mov esi, dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415f1b
push str.__will_not_use_existing_ARM_update_file
lea ecx, [ebp - 0x244]
call fcn.0040130b
mov byte [ebp - 4], 2
cmp dword [edi + 0x1c], 1
jne 0x415ea9
lea eax, [ebp - 0x240]
push eax
push ebx
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x240], ebx
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
je 0x415c64
push str.failed_to_open_db
lea ecx, [ebp - 0x234]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x234]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.0040f821
add esp, 0x10
jmp 0x415e7b
call fcn.004366fe
push eax
lea ecx, [ebp - 0x234]
call fcn.00411d53
mov dword [ebp - 0x228], ebx
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 7
push str.SELECT_Version_FROM_File_WHERE_FileNameAdobeARM.exe
push dword [ebp - 0x240]
mov dword [ebp - 0x248], ebx
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
cmp esi, ebx
je 0x415cb8
push str.failed_to_open_view
lea ecx, [ebp - 0x224]
call fcn.0040130b
mov byte [ebp - 4], 8
jmp 0x415d25
push ebx
push dword [ebp - 0x248]
call sub.msi.dll_MsiViewModify
mov esi, eax
cmp esi, ebx
je 0x415ce0
push str.failed_to_execute_view
lea ecx, [ebp - 0x224]
call fcn.0040130b
mov byte [ebp - 4], 9
jmp 0x415d25
cmp dword [ebp - 0x228], ebx
je 0x415cf3
push dword [ebp - 0x228]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x228], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
cmp esi, ebx
je 0x415d28
push str.failed_to_fetch_view
lea ecx, [ebp - 0x224]
call fcn.0040130b
mov byte [ebp - 4], 0xa
push esi
jmp 0x415d98
mov eax, 0x104
push eax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00448000
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push dword [ebp - 0x228]
call sub.msi.dll_MsiRecordSetStreamA
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040137f
push dword [edi + 0x20]
lea ecx, [ebp - 0x234]
call fcn.00406240
test eax, eax
je 0x415dc3
push str.versions_do_not_match
lea ecx, [ebp - 0x224]
call fcn.0040130b
mov byte [ebp - 4], 0xb
push ebx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.0040f821
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x415e55
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x230]
call fcn.0041e379
test eax, eax
jne 0x415e11
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ecx + 0x18], eax
push str.will_use_found_valid_ARM_update_file
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x23c], eax
call fcn.0040130b
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xc
call fcn.0040fcf3
add esp, 0xc
jmp 0x415e3f
push str.not_valid_signature
lea ecx, [ebp - 0x224]
call fcn.0040130b
push 0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xd
call fcn.0040f821
add esp, 0x10
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017c4
mov edi, dword [ebp - 0x238]
xor ebx, ebx
cmp dword [ebp - 0x228], ebx
je 0x415e68
push dword [ebp - 0x228]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x248], ebx
je 0x415e7b
push dword [ebp - 0x248]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x240], ebx
je 0x4160db
push dword [ebp - 0x240]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x4160db
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
call fcn.0041e379
test eax, eax
jne 0x416093
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ecx + 0x18], eax
push str.will_use_found_valid_ARM_update_file
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x23c], eax
call fcn.0040130b
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xe
call fcn.0040fcf3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov edi, dword [ebp - 0x238]
xor ebx, ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x228]
call fcn.0040134f
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x23c], ebx
jne 0x41620a
mov dword [ebp - 0x234], 1
call fcn.004366fe
push eax
lea ecx, [ebp - 0x240]
call fcn.00411d53
lea eax, [ebp - 0x240]
push eax
push str.ARM_Update
mov byte [ebp - 4], 0x12
push dword [0x4a65e0]
push 0x80000002
call fcn.0042eccb
add esp, 0x10
test eax, eax
jne 0x415fd8
mov eax, dword [ebp - 0x240]
cmp dword [eax - 0xc], ebx
je 0x415fd8
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x228]
call fcn.004063a1
push str.redirection_found:
lea ecx, [ebp - 0x224]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x13
call fcn.0040f821
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
push 0x927c0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
call fcn.00413d22
add esp, 0x10
cmp eax, 6
jne 0x4161d4
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BITS
push str.Get_ARM_Update_Result
mov esi, 0x4a6608
mov byte [ebp - 0x21d], bl
call fcn.00406400
push str.download_BITs_success:
lea ecx, [ebp - 0x224]
call fcn.0040130b
push ebx
mov byte [ebp - 4], 0x14
push dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.0040f821
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x230]
call fcn.0041e379
mov esi, eax
test esi, esi
jne 0x416168
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ecx + 0x18], eax
mov dword [ebp - 0x23c], eax
mov edi, ecx
jmp 0x4161d2
push str.invalid_signature
lea ecx, [ebp - 0x224]
call fcn.0040130b
push 0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.0040f821
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov edi, dword [ebp - 0x238]
xor ebx, ebx
cmp dword [ebp - 0x23c], ebx
jne 0x415f09
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415f09
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.0040130b
push esi
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 0x10
call fcn.0040fcf3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov esi, 0x4a6708
call fcn.0042b3c0
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x416349
lea eax, [ebp - 0x21d]
push eax
push esi
mov eax, str.Signature_Validation_Error
mov ebx, 0x4a6608
mov byte [ebp - 0x21d], 0
call fcn.0040646b
push str.invalid_after_BITs_download:
lea ecx, [ebp - 0x22c]
call fcn.0040130b
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
push 2
mov byte [ebp - 4], 0x15
call fcn.0040f821
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x22c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
and dword [ebp - 0x23c], 0
mov edi, dword [ebp - 0x238]
xor ebx, ebx
lea eax, [ebp - 0x21d]
push eax
push dword [ebp - 0x234]
mov byte [ebp - 0x21d], bl
mov eax, str.BITS_Result
mov ebx, 0x4a6608
call fcn.0040646b
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004017c4
xor ebx, ebx
cmp dword [0x4a66c8], ebx
jne 0x416327
cmp dword [ebp - 0x23c], ebx
jne 0x416327
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x230]
call fcn.004175cb
mov dword [ebp - 0x23c], eax
cmp eax, ebx
je 0x4162ec
lea eax, [ebp - 0x21d]
push eax
push ebx
push str.OK_BB
push str.Get_ARM_Update_Result
mov esi, 0x4a6608
mov byte [ebp - 0x21d], bl
call fcn.00406400
mov ebx, dword [edi + 0x24]
mov edi, dword [edi + 0x14]
mov esi, dword [ebp - 0x230]
call fcn.0041e379
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4162ac
mov eax, dword [ebp - 0x238]
push str.valid_after_BB_download:
lea ecx, [ebp - 0x22c]
mov dword [eax + 0x18], 1
call fcn.0040130b
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x230]
jmp 0x416306
lea eax, [ebp - 0x21d]
push eax
mov byte [ebp - 0x21d], bl
mov dword [ebp - 0x23c], ebx
push esi
mov eax, str.Signature_Validation_Error
mov ebx, 0x4a6608
call fcn.0040646b
push str.invalid_after_BB_download:
lea ecx, [ebp - 0x22c]
call fcn.0040130b
mov byte [ebp - 4], 0x17
push esi
lea eax, [ebp - 0x230]
jmp 0x416307
push str.BB_download_failed:
lea ecx, [ebp - 0x22c]
call fcn.0040130b
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x228]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
push 2
call fcn.0040f821
mov ecx, dword [ebp - 0x22c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x23c]
call fcn.00449fae
ret