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

Disassembly:
push 0x18
mov eax, 0x455a2b
call fcn.0043bf0a
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.0040e5e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, dword [0x48a908]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x412366
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x48aa20], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [0x48aa44], 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.00408b20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4120ff
mov ebx, dword [edi + 0x14]
call fcn.00416fe1
test eax, eax
je 0x4120f2
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
and dword [0x48aa2c], 0
mov dword [ebp - 0x10], eax
mov dword [0x48aa44], eax
jmp 0x4120fd
lea esi, [ebp - 0x14]
call fcn.00411779
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 0x412261
mov dword [ebp - 0x24], 1
call fcn.00428b72
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fd20
lea eax, [ebp - 0x1c]
push eax
push str.ARM_Update
mov byte [ebp - 4], 3
push dword [0x48a438]
push 0x80000002
call fcn.00423590
add esp, 0x10
test eax, eax
jne 0x412198
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
je 0x412198
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408b20
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.0040e15a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push 0x927c0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
lea ebx, [edi + 8]
push ebx
call fcn.00410ced
add esp, 0x10
cmp eax, 6
jne 0x412248
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.0040e15a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov ebx, dword [edi + 0x14]
call fcn.00416fe1
test eax, eax
je 0x412206
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov dword [0x48aa44], eax
mov dword [ebp - 0x10], eax
jmp 0x412248
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, 0x48aa88
call fcn.0040c9a1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
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 [0x48aa2c], eax
call fcn.004025dc
xor ebx, ebx
cmp dword [0x48a518], ebx
jne 0x412317
cmp dword [ebp - 0x10], ebx
jne 0x412317
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004133e6
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x412317
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.00416fe1
test eax, eax
je 0x4122d8
push dword [ebp + 8]
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov ecx, 0x48aa34
mov dword [0x48aa44], eax
call fcn.0040b2b8
push 0
lea eax, [ebp + 8]
push eax
push 2
call fcn.0040e5e0
add esp, 0xc
jmp 0x412308
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.0040e5e0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025dc
mov dword [0x48aa28], 1
mov eax, dword [edi + 0x14]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [0x48aa24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x48aa20]
push 2
dec eax
mov dword [0x48aa20], eax
mov eax, 0x48a9f4
call fcn.004150e9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [esi - 0x10]
call fcn.004025dc
mov eax, dword [ebp - 0x10]
call fcn.0043bfe2
ret 4