Function at 0x40a822
Capabilities:
Copy file
Create directory

Disassembly:
push 0x28
mov eax, 0x461abc
call fcn.00447d5b
push str.SetupArmUpdate...
lea ecx, [ebp - 0x1c]
call fcn.00402060
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
xor ebx, ebx
inc ebx
cmp byte [0x49c3a9], 0
mov dword [ebp - 0x1c], ebx
jne 0x40ae2d
mov edi, dword [ebp + 8]
cmp dword [edi + 0x554], esi
jne 0x40ae2d
lea eax, [edi + 0x86c]
mov byte [0x49c3a9], bl
call fcn.0040527a
test eax, eax
je 0x40a8b3
push str.back_from_arm_update__skipping
lea ecx, [ebp + 8]
call fcn.00402060
push 2
pop eax
push esi
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], eax
push eax
jmp 0x40ae44
lea ecx, [edi + 0x5c4]
call fcn.00415881
test eax, eax
je 0x40ae57
lea eax, [edi + 0x5c4]
push eax
call fcn.00418833
test eax, eax
jne 0x40a8fa
push dword [0x49c440]
lea ecx, [edi + 0x524]
call fcn.00408ff7
test eax, eax
jne 0x40ae57
push esi
call fcn.00409285
jmp 0x40ae57
mov dword [ebp - 0x34], vtable.CManifest.0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 3
call fcn.00420598
test eax, eax
je 0x40a925
lea ecx, [ebp - 0x34]
call fcn.0041fdde
jmp 0x40ae57
push str.Continue_without_dismissed_ARM_update
lea ecx, [ebp - 0x18]
call fcn.00402060
mov byte [ebp - 4], 4
mov ebx, dword [edi + 0x4b0]
cmp ebx, esi
jne 0x40a95d
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebp - 0x34]
call fcn.0041fdde
mov eax, esi
jmp 0x40ae59
push dword [0x49c440]
lea ecx, [edi + 0x524]
call fcn.00408ff7
test eax, eax
jne 0x40a978
push esi
call fcn.00409285
cmp dword [0x49ccc8], 0x22344
je 0x40addf
lea ecx, [edi + 0x5c4]
call fcn.00416937
test eax, eax
je 0x40addf
cmp dword [edi + 0xc0], esi
jne 0x40a943
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x5c4]
call fcn.004051bf
push esi
mov byte [ebp - 4], 6
call fcn.004463cc
pop ecx
push eax
call fcn.00446398
pop ecx
call fcn.004463aa
push eax
push dword [ebp - 0x10]
lea esi, [edi + 0xd8]
push str._s_d
push esi
call fcn.0040202c
mov eax, dword [ebx + 0x1c]
add esp, 0x10
cmp eax, 3
jne 0x40ac30
lea eax, [ebp - 0x10]
push eax
push 0x49c438
add ebx, 8
push ebx
call fcn.00401658
add esp, 0xc
test eax, eax
jne 0x40aa23
lea esi, [edi + 0x4ac]
call fcn.0042b241
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x40a943
push 0x49c438
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401d7a
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00401aba
mov ebx, eax
pop ecx
neg ebx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040253e
test bl, bl
jne 0x40aa06
push 0x469ddc
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00408f80
add esp, 0xc
call fcn.00401000
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040253e
test bl, bl
je 0x40add5
mov edi, str.AdobeARM.exe_not_found_in_folder:
push edi
lea ecx, [ebp - 0x14]
call fcn.00402060
push 0
push esi
lea eax, [ebp - 0x14]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00411b27
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
push str.msi_stage
mov ecx, esi
call fcn.00409019
push str.ARM_update_folder:
lea ecx, [ebp - 0x14]
call fcn.00402060
push 0
push esi
lea eax, [ebp - 0x14]
push eax
push 2
mov byte [ebp - 4], 9
call fcn.00411b27
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
push 0x469ddc
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00408f80
add esp, 0xc
call fcn.00401000
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040253e
test bl, bl
je 0x40add5
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402060
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 0xa
call fcn.00411b27
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, dword [ebp + 8]
add esi, 0x4ac
call fcn.0042b241
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40ac1c
push str.Extract_ARM_update_failed
lea ecx, [ebp + 8]
call fcn.00402060
push edi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 0xb
call fcn.00411fad
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, 0x469354
push eax
lea ecx, [ebp - 0x14]
call fcn.00402060
push str.SetupArmUpdate_returns
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
call fcn.00402060
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.00411b27
mov ecx, dword [ebp - 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebp - 0x34]
call fcn.0041fdde
mov eax, dword [ebp - 0x1c]
jmp 0x40ae59
push edi
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411fad
add esp, 0xc
jmp 0x40adcb
cmp eax, 1
jne 0x40add5
call fcn.00434582
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040210b
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
and dword [ebp - 0x14], 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ac6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_self_update_folder_failed
mov ebx, edi
jmp 0x40acda
push 0x469efc
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00408f80
add esp, 0xc
push 0x49c43c
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xd
call fcn.00401d7a
mov eax, dword [eax]
mov ebx, dword [ebx + 8]
add esp, 0xc
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040253e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
test bl, bl
je 0x40ace7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 8]
push eax
push 0x469f00
call fcn.00409da7
mov dword [ebp - 0x14], eax
jmp 0x40ad91
call fcn.00434582
push eax
lea ecx, [ebp - 0x20]
call fcn.0040210b
push 0
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.0042f089
mov edi, dword [ebp - 0x20]
pop ecx
test eax, eax
jne 0x40ad14
push 2
push str.Get_launcher_path_failed
jmp 0x40ad7a
push 0x469efc
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00408f80
add esp, 0xc
push 0x49c434
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xf
call fcn.00401d7a
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x24]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040253e
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
test bl, bl
je 0x40ad85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_launcher_failed
mov ebx, dword [ebp + 8]
call fcn.00409da7
mov dword [ebp - 0x14], eax
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0xc
call fcn.0040253e
cmp dword [ebp - 0x14], 0
je 0x40adbc
mov esi, dword [ebp + 8]
add esi, 0x4ac
call fcn.0042b241
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40adbc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411fad
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x1c], 0
je 0x40aba9
mov eax, 0x467f88
jmp 0x40abae
lea esi, [edi + 0x4ac]
call fcn.0042b241
mov esi, eax
test esi, esi
jne 0x40ae18
push str.DownloadArmUpdate_failed
lea ecx, [ebp + 8]
call fcn.00402060
push esi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
jmp 0x40aa16
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411fad
add esp, 0xc
jmp 0x40a943
push str.skipping__already_executed
lea ecx, [ebp + 8]
call fcn.00402060
push esi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
push 2
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, ebx
call fcn.00447e33
ret 4