Function at 0x404d28
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Get common file path
Get file attributes

Disassembly:
push 0xa70
mov eax, 0x41a3f6
call fcn.004197de
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0xa3c]
call fcn.004064b4
xor ebx, ebx
lea eax, [ebp - 0x628]
push 0x208
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004094e0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004094e0
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push ecx
test eax, eax
jns 0x404da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_Error
mov edx, 0x421398
mov ecx, str.SHGetFolderPath_failed
jmp 0x404feb
lea eax, [ebp - 0x628]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.00403b0e
test eax, eax
jns 0x404dd6
push ecx
push eax
push str.Service_Error
mov edx, 0x421398
mov ecx, str.StringCbCopy_failed
jmp 0x404feb
push str.AdobeARM1.0AdobeARMHelper.exe
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.00403aa0
test eax, eax
jns 0x404e05
push ecx
push eax
push str.Service_Error
mov edx, 0x421398
mov ecx, str.StringCchCat_failed
jmp 0x404feb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404e2f
push ecx
push 2
push str.Service_Error
lea edx, [ebp - 0x218]
mov ecx, str.Unable_to_find:
jmp 0x404feb
push esi
call fcn.0040b51e
pop ecx
test eax, eax
je 0x405006
lea eax, [ebp - 0xa40]
push eax
call fcn.0040d209
pop ecx
test eax, eax
je 0x404e7c
push ebx
push ebx
mov edx, 0x421398
mov ecx, str.The_r_s_function_failed_
call fcn.0040461f
push ebx
call fcn.0040d2d4
push eax
call fcn.0040ccc3
add esp, 0x10
call fcn.0040cca2
mov dword [ebp - 0xa40], eax
jmp 0x404e82
mov eax, dword [ebp - 0xa40]
push eax
call fcn.0040d16e
mov esi, eax
mov dword [esp], 0x208
lea eax, [ebp - 0x830]
mov dword [ebp - 0xa40], esi
push ebx
push eax
call fcn.004094e0
push 0xa
push 0x104
lea eax, [ebp - 0x830]
push eax
push esi
call fcn.0040ce72
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004094e0
add esp, 0x24
lea eax, [ebp - 0x628]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x420]
call fcn.00403b0e
test eax, eax
jns 0x404ef4
lea edx, [ebp - 0x628]
jmp 0x404fdf
mov esi, 0x104
lea ecx, [ebp - 0x420]
push str.AdobeARM1.0Temp_
mov edx, esi
call fcn.00403aa0
test eax, eax
jns 0x404f19
mov edx, str.Temp
jmp 0x404fdf
lea eax, [ebp - 0x830]
mov edx, esi
push eax
lea ecx, [ebp - 0x420]
call fcn.00403aa0
test eax, eax
jns 0x404f3c
lea edx, [ebp - 0x830]
jmp 0x404fdf
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x404ff8
cmp eax, 3
je 0x404ff8
push str.AdobeARMHelper.exe
mov edx, esi
lea ecx, [ebp - 0x420]
call fcn.00403aa0
test eax, eax
jns 0x404f7c
mov edx, str.AdobeARMHelper.exe
jmp 0x404fdf
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404fa9
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x420]
mov ecx, str.Failed_to_copy:
jmp 0x404fe5
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004094e0
pop ecx
pop ecx
lea eax, [ebp - 0x420]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.00403b0e
test eax, eax
jns 0x405006
lea edx, [ebp - 0x420]
push ecx
mov ecx, str.create_sRandPath_failed:
push eax
push str.Self_Update_Init_Error
call fcn.00404823
add esp, 0xc
jmp 0x405107
push ecx
lea edx, [ebp - 0x420]
mov ecx, str.Failed_to_create_random_folder:
jmp 0x404fe5
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa40], esi
mov byte [ebp - 4], 1
push ecx
test esi, esi
je 0x4050e3
lea ecx, [ebp - 0x218]
call fcn.00404298
pop ecx
test eax, eax
je 0x40506d
push ecx
push eax
push str.Service_Error
lea edx, [ebp - 0x218]
mov ecx, str.Service_workflow_failed__file_not_valid:
call fcn.00404823
add esp, 0xc
jmp 0x405100
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0xa7c]
push 0
push eax
call fcn.004094e0
add esp, 0xc
mov dword [ebp - 0xa7c], ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa78], 0x540
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0xa7c]
mov dword [ebp - 0xa60], 5
push eax
mov dword [ebp - 0xa68], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4050d3
push 1
push 0
mov edx, edi
mov ecx, str.ShellExecuteEx_succeeded
call fcn.0040461f
pop ecx
pop ecx
jmp 0x4050fc
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, str.ShellExecuteEx_failed
jmp 0x4050ee
lea edx, [ebp - 0x218]
mov ecx, str.Unable_to_lock_for_validation
push eax
push str.Service_Error
call fcn.00404823
add esp, 0xc
test esi, esi
je 0x405107
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00419788
ret