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

Disassembly:
push 0x244
mov eax, 0x48639c
call fcn.00464e7c
mov esi, ecx
mov dword [ebp - 0x240], esi
push str.SetupArmUpdate...
lea ecx, [ebp - 0x228]
call fcn.0040279b
xor edi, edi
lea edx, [ebp - 0x228]
push edi
push 2
pop ecx
mov dword [ebp - 4], edi
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor ebx, ebx
inc ebx
cmp byte [0x4e2586], 0
jne 0x40b621
cmp byte [0x4e1ddc], 0
jne 0x40b621
lea ecx, [esi + 0x570]
mov byte [0x4e2586], bl
call fcn.004032d8
test eax, eax
je 0x40aff3
push str.back_from_arm_update__skipping
lea ecx, [ebp - 0x228]
call fcn.0040279b
push 2
pop eax
mov dword [ebp - 4], eax
mov ecx, eax
push edi
jmp 0x40b638
lea edi, [esi + 0x2b0]
mov ecx, edi
call fcn.0041d0cd
test eax, eax
je 0x40b652
mov ecx, edi
call fcn.00422aa7
test eax, eax
jne 0x40b039
push dword [0x4e1f40]
lea ecx, [esi + 0x19c]
call fcn.0040952b
test eax, eax
jne 0x40b652
push eax
mov ecx, esi
call fcn.0040992b
jmp 0x40b652
and dword [ebp - 0x24c], 0
mov dword [ebp - method.CManifest.virtual_0], vtable.CManifest.0
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 3
call fcn.0042e250
mov ecx, dword [esi + 0x2d0]
mov edi, eax
sub ecx, 0x10
push ecx
call fcn.00402d2a
add eax, 0x10
pop ecx
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00444ae4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, dword [esi + 0x2d8]
sub eax, 0x10
push eax
call fcn.00402d2a
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov eax, esp
mov byte [ebp - 4], 5
push 0x4a0d44
lea ecx, [ebp - 0x22c]
push ecx
push eax
call fcn.004023e9
add esp, 0xc
xor ecx, ecx
call fcn.0044493b
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.00402def
test edi, edi
jne 0x40b614
push str.Continue_without_dismissed_ARM_update
lea ecx, [ebp - 0x23c]
call fcn.0040279b
mov edi, dword [ebp - 0x240]
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x130]
mov dword [ebp - 0x22c], esi
test esi, esi
je 0x40b606
push dword [0x4e1f40]
lea ecx, [edi + 0x19c]
call fcn.0040952b
test eax, eax
jne 0x40b132
push eax
mov ecx, edi
call fcn.0040992b
cmp dword [esi + 0x1c], ebx
je 0x40b184
push str.not_supported_self_update_type_
lea ecx, [ebp - 0x228]
call fcn.0040279b
push 0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 7
push eax
push 2
lea edx, [ebp - 0x228]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [edi + 0x12c]
call fcn.0043bb50
mov ebx, eax
jmp 0x40b606
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x248]
call fcn.00402824
push str.WinARM
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 8
call fcn.0040279b
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x228]
call fcn.0041402a
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp dword [0x4e24d4], 0x22344
je 0x40b5a7
lea ecx, [edi + 0x2b0]
call fcn.0041f134
test eax, eax
je 0x40b5a7
xor esi, esi
cmp dword [edi + 0xe8], esi
je 0x40b204
mov ebx, esi
jmp 0x40b5f8
push 0x105
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x40b267
push str.SHGetFolderPath_AllUsers_failed:
lea ecx, [ebp - 0x228]
call fcn.0040279b
push esi
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x228]
mov ebx, eax
lea ecx, [ecx - 0x10]
jmp 0x40b5a0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040279b
push str.AdobeARMS_
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xc
call fcn.0040252d
push 0
push dword [ebp - 0x238]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x40b54a
cmp esi, 3
je 0x40b54a
push 0
call fcn.0046bc6c
pop ecx
push eax
call fcn.0046bbd7
pop ecx
call fcn.0046bbb6
push eax
push dword [ebp - 0x238]
lea esi, [edi + 0x110]
push str._s_d
push esi
mov dword [ebp - 0x234], esi
call fcn.00402762
and dword [ebp - 0x228], 0
add esp, 0x10
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_self_update_folder_failed
jmp 0x40b387
push 0x49fb68
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.004023e9
add esp, 0xc
push 0x4e1f3c
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xe
push eax
call fcn.00402448
mov ecx, dword [ebp - 0x22c]
add esp, 0xc
add ecx, 8
mov dword [ebp - 0x22c], ecx
push 0
push dword [eax]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x230]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402def
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00402def
test esi, esi
jne 0x40b393
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_self_update_file_failed
mov ecx, edi
call fcn.0040a3af
jmp 0x40b4ba
mov esi, dword [ebp - 0x22c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b3e2
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x230]
call fcn.0040279b
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea edx, [ebp - 0x230]
mov ecx, ebx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x230]
call fcn.00402824
xor edx, edx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x230]
call fcn.00440d53
mov esi, dword [ebp - 0x230]
test eax, eax
jne 0x40b427
push 2
push str.Get_launcher_path_failed
mov ecx, edi
call fcn.0040a3af
mov dword [ebp - 0x228], eax
jmp 0x40b4a8
push 0x49fb68
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push eax
call fcn.004023e9
add esp, 0xc
push 0x4e1f34
push eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x11
push eax
call fcn.00402448
add esp, 0xc
push 0
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x234]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00402def
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00402def
test edi, edi
jne 0x40b4a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x240]
push eax
push str.Copy_launcher_failed
jmp 0x40b415
mov edi, dword [ebp - 0x240]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00402def
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40b4e0
lea ecx, [edi + 0x12c]
call fcn.0043bb50
mov ebx, eax
test ebx, ebx
je 0x40b4e0
push 0
push 2
lea edx, [ebp - 0x23c]
pop ecx
call fcn.00413e51
pop ecx
mov ecx, 0x49fde4
test ebx, ebx
mov eax, 0x49db4c
cmove eax, ecx
lea ecx, [ebp - 0x22c]
push eax
call fcn.0040279b
push str.SetupArmUpdate_returns
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x12
call fcn.0040279b
push 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x13
push eax
push 2
lea edx, [ebp - 0x230]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x40b597
push str.__SHCreateDirectoryEx_failed:
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004023e9
add esp, 0xc
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xd
push esi
push ecx
mov edx, eax
mov ecx, ebx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [edi + 0x12c]
call fcn.0043bb50
mov ebx, eax
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.00402def
jmp 0x40b5f8
lea ecx, [edi + 0x12c]
call fcn.0043bb50
mov ebx, eax
test ebx, ebx
jne 0x40b5e7
push str.DownloadArmUpdate_failed
lea ecx, [ebp - 0x22c]
call fcn.0040279b
push ebx
push 2
lea edx, [ebp - 0x22c]
mov byte [ebp - 4], 0xa
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x22c]
jmp 0x40b25f
push 0
push 2
lea edx, [ebp - 0x23c]
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x248]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [ebp - 0x250]
call fcn.0042dbc2
jmp 0x40b652
push str.skipping__already_executed
lea ecx, [ebp - 0x228]
call fcn.0040279b
push edi
push 2
mov dword [ebp - 4], ebx
pop ecx
lea edx, [ebp - 0x228]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, ebx
call fcn.00464e26
ret