Function at 0x412069
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x18
mov eax, 0x456bf2
call fcn.0043cf0a
push str.DownloadArmUpdate...
lea ecx, [ebp - 0x1c]
call fcn.0040215a
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov edi, dword [0x48b908]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x41239b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x48ba2c], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [0x48ba68], ebx
call fcn.00401013
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00401f90
lea eax, [ebp - 0x14]
lea ecx, [edi + 8]
push eax
call fcn.00408b86
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412134
mov ebx, dword [edi + 0x14]
call fcn.00417c21
test eax, eax
je 0x412127
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
and dword [0x48ba38], 0
mov dword [ebp - 0x10], eax
mov dword [0x48ba68], eax
jmp 0x412132
lea esi, [ebp - 0x14]
call fcn.004117e8
mov esi, dword [ebp - 0x14]
xor ebx, ebx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040219e
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], ebx
jne 0x412296
mov dword [ebp - 0x24], 1
call fcn.00429b48
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fc71
lea eax, [ebp - 0x1c]
push eax
push str.ARM_Update
mov byte [ebp - 4], 3
push dword [0x48b438]
push 0x80000002
call fcn.0042429b
add esp, 0x10
test eax, eax
jne 0x4121cd
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
je 0x4121cd
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408b86
push str.ARM_update_redirection_found:
lea ecx, [ebp - 0x20]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.0040e087
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
push 0x927c0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
lea ebx, [edi + 8]
push ebx
call fcn.00410d5c
add esp, 0x10
cmp eax, 6
jne 0x41227d
push str.AdobeARM_Downloaded:
lea ecx, [ebp - 0x20]
call fcn.0040215a
push 0
push ebx
lea eax, [ebp - 0x20]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.0040e087
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
mov ebx, dword [edi + 0x14]
call fcn.00417c21
test eax, eax
je 0x41223b
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov dword [0x48ba68], eax
mov dword [ebp - 0x10], eax
jmp 0x41227d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push str.ARM_Update_signiture_validation_failed:
push eax
call fcn.00401e97
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x1fc98
mov ecx, eax
mov edx, 0x48baa8
call fcn.0040c8ce
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025e7
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [0x48ba38], eax
call fcn.004025e7
xor ebx, ebx
cmp dword [0x48b518], ebx
jne 0x41234c
cmp dword [ebp - 0x10], ebx
jne 0x41234c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004135fb
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x41234c
push str.BITs_failed__ARM_Update_download_success_using_DownloadFileDirectly.
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 7
mov ebx, dword [edi + 0x14]
call fcn.00417c21
test eax, eax
je 0x41230d
push dword [ebp + 8]
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov ecx, 0x48ba40
mov dword [0x48ba68], eax
call fcn.0040b33a
push 0
lea eax, [ebp + 8]
push eax
push 2
call fcn.0040e50d
add esp, 0xc
jmp 0x41233d
and dword [ebp - 0x10], 0
push str.ARM_Update_is_not_valid_after_download
lea ecx, [ebp - 0x24]
call fcn.0040215a
push 0
lea eax, [ebp - 0x24]
push eax
push 1
mov byte [ebp - 4], 8
call fcn.0040e50d
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025e7
mov dword [0x48ba34], 1
mov eax, dword [edi + 0x14]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [0x48ba30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x48ba2c]
push 2
dec eax
mov dword [0x48ba2c], eax
mov eax, 0x48ba00
call fcn.00415ceb
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025e7
lea ecx, [esi - 0x10]
call fcn.004025e7
mov eax, dword [ebp - 0x10]
call fcn.0043cfe2
ret 4