Function at 0x40c84b
Capabilities:
Copy file
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4792d3
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4bfd60]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4bfd60]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, ecx
push str.SetupArmUpdate...
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
push 2
mov dword [esp + 0x26c], ebx
call fcn.004152d1
or dword [esp + 0x26c], 0xffffffff
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
xor esi, esi
inc esi
mov dword [esp + 0x20], esi
cmp byte [0x4c4c50], bl
jne 0x40cf8c
cmp byte [0x4c44e8], bl
jne 0x40cf8c
lea eax, [edi + 0x53c]
mov byte [0x4c4c50], 1
call fcn.0040536e
test eax, eax
je 0x40c92e
push str.back_from_arm_update__skipping
lea ecx, [esp + 0x18]
call fcn.004020a6
push 2
pop eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x26c], eax
call fcn.004152d1
mov ecx, dword [esp + 0x20]
jmp 0x40cfb2
lea esi, [edi + 0x27c]
mov ecx, esi
call fcn.0041c001
test eax, eax
jne 0x40c947
xor eax, eax
inc eax
jmp 0x40cfbf
push esi
call fcn.00421431
test eax, eax
jne 0x40c96e
push dword [0x4c4698]
lea ecx, [edi + 0x174]
call fcn.0040ae5c
test eax, eax
jne 0x40c93f
push ebx
call fcn.0040b181
jmp 0x40c93f
mov dword [esp + 0x34], vtable.CManifest.0
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x264], 3
call fcn.0042af37
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.0040c4ca
mov ecx, eax
mov byte [esp + 0x260], 4
call fcn.0044254b
mov byte [esp + 0x260], 3
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
push ebx
lea eax, [esp + 0x1c]
push eax
mov eax, esi
call fcn.0040c4af
push ecx
mov ecx, esp
mov byte [esp + 0x268], 5
mov dword [esp + 0x38], esp
push 0x4844b4
push eax
push ecx
call fcn.0040adb6
add esp, 0xc
call fcn.004423ba
pop ecx
pop ecx
mov byte [esp + 0x260], 3
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [esp + 0x10], ebx
je 0x40ca1c
lea ecx, [esp + 0x34]
call fcn.0042a7ad
jmp 0x40c93f
push str.Continue_without_dismissed_ARM_update
lea ecx, [esp + 0x30]
call fcn.004020a6
mov byte [esp + 0x260], 6
mov esi, dword [edi + 0x108]
cmp esi, ebx
jne 0x40ca5b
xor ebx, ebx
inc ebx
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esp + 0x34]
call fcn.0042a7ad
mov eax, ebx
jmp 0x40cfbf
push dword [0x4c4698]
lea ecx, [edi + 0x174]
call fcn.0040ae5c
test eax, eax
jne 0x40ca76
push ebx
call fcn.0040b181
cmp dword [esi + 0x1c], 1
je 0x40cacd
push str.not_supported_self_update_type_
lea ecx, [esp + 0x18]
call fcn.004020a6
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x270], 7
call fcn.00414e01
mov byte [esp + 0x270], 6
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea esi, [edi + 0x104]
call fcn.004391d5
mov ebx, eax
jmp 0x40ca3f
call fcn.0044825c
push eax
lea ecx, [esp + 0x2c]
call fcn.0041872d
push str.WinARM
lea ecx, [esp + 0x20]
mov byte [esp + 0x264], 8
call fcn.004020a6
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x268], 9
call fcn.0041549b
pop ecx
pop ecx
mov byte [esp + 0x260], 8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [0x4c4bf8], 0x22344
je 0x40cf24
lea eax, [edi + 0x27c]
push eax
call fcn.0041df0e
test eax, eax
je 0x40cf24
cmp dword [edi + 0xc0], ebx
je 0x40cb5c
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x40ca3f
push 0x105
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00459cf0
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jge 0x40cbc3
push str.SHGetFolderPath_AllUsers_failed:
lea ecx, [esp + 0x18]
call fcn.004020a6
mov byte [esp + 0x260], 0xb
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push 1
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004025d2
jmp 0x40cb4b
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.004020a6
push str.AdobeARMS_
lea ecx, [esp + 0x28]
mov byte [esp + 0x264], 0xc
call fcn.0040af5f
push ebx
push dword [esp + 0x28]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [esp + 0x30], eax
cmp eax, 0xa1
je 0x40cec9
cmp eax, 3
je 0x40cec9
push ebx
call fcn.00459264
pop ecx
push eax
call fcn.00459230
pop ecx
call fcn.00459242
push eax
push dword [esp + 0x28]
lea ecx, [edi + 0xe4]
push str._s_d
push ecx
mov dword [esp + 0x20], ecx
call fcn.00402086
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cc61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_self_update_folder_failed
mov ebx, edi
jmp 0x40cce0
push 0x48415c
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.0040adb6
add esp, 0xc
push 0x4c4694
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x26c], 0xe
call fcn.00401de9
mov eax, dword [eax]
add esp, 0xc
push ebx
lea edi, [esi + 8]
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
push ecx
call esi
mov ecx, dword [esp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004025d2
mov byte [esp + 0x260], 0xc
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
test bl, bl
je 0x40ccee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
push eax
push 0x484160
call fcn.0040bbe7
mov dword [esp + 0x1c], eax
jmp 0x40ce03
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cd3b
push str.failed_to_cleanup_file:
lea ecx, [esp + 0x14]
call fcn.004020a6
mov byte [esp + 0x260], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [esp + 0x18]
push eax
push 1
call fcn.00414e01
mov byte [esp + 0x270], 0xc
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
call fcn.0044825c
push eax
lea ecx, [esp + 0x14]
call fcn.0041872d
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 0x10
call fcn.0043e40a
mov edi, dword [esp + 0x14]
pop ecx
test eax, eax
jne 0x40cd6f
push 2
push str.Get_launcher_path_failed
jmp 0x40cde6
mov eax, dword [esp + 0x14]
add eax, 0xe4
push 0x48415c
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040adb6
add esp, 0xc
push 0x4c468c
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x26c], 0x11
call fcn.00401de9
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push edi
call esi
mov ecx, dword [esp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004025d2
mov byte [esp + 0x260], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
test bl, bl
je 0x40cdf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_launcher_failed
mov ebx, dword [esp + 0x1c]
call fcn.0040bbe7
mov dword [esp + 0x1c], eax
lea ecx, [edi - 0x10]
mov byte [esp + 0x260], 0xc
call fcn.004025d2
xor edi, edi
cmp dword [esp + 0x1c], edi
je 0x40ce32
mov esi, dword [esp + 0x14]
add esi, 0x104
call fcn.004391d5
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x40ce39
push edi
lea eax, [esp + 0x30]
push eax
push 2
call fcn.004152d1
add esp, 0xc
mov eax, 0x48173c
jmp 0x40ce3e
mov eax, 0x483554
push eax
lea ecx, [esp + 0x1c]
call fcn.004020a6
push str.SetupArmUpdate_returns
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 0x12
call fcn.004020a6
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x270], 0x13
call fcn.00414e01
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esp + 0x34]
call fcn.0042a7ad
mov eax, dword [esp + 0x20]
jmp 0x40cfbf
push str.__SHCreateDirectoryEx_failed:
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040adb6
add esp, 0xc
mov byte [esp + 0x260], 0xd
push dword [esp + 0x30]
lea ecx, [esp + 0x28]
push ecx
push eax
push 1
call fcn.00414e01
mov byte [esp + 0x270], 0xc
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea esi, [edi + 0x104]
call fcn.004391d5
mov ecx, dword [esp + 0x24]
jmp 0x40cbb7
lea esi, [edi + 0x104]
call fcn.004391d5
mov esi, eax
cmp esi, ebx
jne 0x40cf69
push str.DownloadArmUpdate_failed
lea ecx, [esp + 0x24]
call fcn.004020a6
push ebx
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x26c], 0xa
call fcn.004152d1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x40cf79
push ebx
lea eax, [esp + 0x30]
push eax
push 2
call fcn.004152d1
add esp, 0xc
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ebx, esi
jmp 0x40ca3f
push str.skipping__already_executed
lea ecx, [esp + 0x24]
call fcn.004020a6
push ebx
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x26c], esi
call fcn.004152d1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00458e0e
mov esp, ebp
pop ebp
ret