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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c9e1
mov eax, dword fs:[0]
push eax
sub esp, 0xaac
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x64c]
call fcn.004096b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x11], 0
xor edx, edx
mov word [ebp - 0x434], dx
push 0x206
push 0
lea eax, [ebp - 0x432]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40bad9
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40ed98
push 0x40edb4
push 0x40edb8
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
lea edx, [ebp - 0x224]
push edx
push 0x104
lea eax, [ebp - 0x434]
push eax
call fcn.004063a0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bb37
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40ede8
push 0x40ee04
push 0x40ee08
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0x40ee30
push 0x104
lea edx, [ebp - 0x434]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bb93
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40ee74
push 0x40ee90
push 0x40ee94
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bbd9
push 1
push 2
push 0x40eebc
lea edx, [ebp - 0x434]
push edx
push str.Unable_to_find:
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40bf7e
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0xa78]
push ecx
call dword [sym.imp.MSVCR90.dll_rand_s]
add esp, 4
mov dword [ebp - 0xa70], eax
cmp dword [ebp - 0xa70], 0
je 0x40bc47
push 0
push 0
push 0x40eefc
push str.The_r_s_function_failed_
call fcn.0040aa80
add esp, 0x10
push 0
call fcn.0040a110
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll_srand]
add esp, 4
call dword [sym.imp.MSVCR90.dll_rand]
mov dword [ebp - 0xa78], eax
mov edx, dword [ebp - 0xa78]
push edx
call sub.MSVCR90.dll_abs
add esp, 4
mov dword [ebp - 0xa74], eax
mov eax, dword [ebp - 0xa74]
mov dword [ebp - 0xa78], eax
xor ecx, ecx
mov word [ebp - 0x85c], cx
push 0x206
push 0
lea edx, [ebp - 0x85a]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0xa
push 0x104
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0xa78]
push ecx
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
xor edx, edx
mov word [ebp - 0xa6c], dx
push 0x206
push 0
lea eax, [ebp - 0xa6a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x860], str.create_sRandPath_failed:
lea ecx, [ebp - 0x224]
push ecx
push 0x104
lea edx, [ebp - 0xa6c]
push edx
call fcn.004063a0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bd30
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40ef68
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push str.AdobeARM1.0Temp_
push 0x104
lea eax, [ebp - 0xa6c]
push eax
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bd8e
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40efc4
push str.Temp
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
lea eax, [ebp - 0x85c]
push eax
push 0x104
lea ecx, [ebp - 0xa6c]
push ecx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bdf0
push 1
mov edx, dword [ebp - 0x438]
push edx
push 0x40f000
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0
lea edx, [ebp - 0xa6c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0xa1
je 0x40be1c
cmp dword [ebp - 0x650], 3
jne 0x40be55
push 1
mov eax, dword [ebp - 0x650]
push eax
push 0x40f030
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_create_random_folder:
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0x40f0a4
push 0x104
lea edx, [ebp - 0xa6c]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40beb3
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40f0cc
push str.AdobeARMHelper.exe
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0
lea edx, [ebp - 0xa6c]
push edx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40bf06
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f124
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_copy:
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0x208
push 0
lea edx, [ebp - 0x434]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa6c]
push eax
push 0x104
lea ecx, [ebp - 0x434]
push ecx
call fcn.004063a0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bf7e
push 1
mov edx, dword [ebp - 0x438]
push edx
push str.Self_Update_Init_Error
lea eax, [ebp - 0xa6c]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b8d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401730
mov byte [ebp - 4], 1
cmp dword [ebp - 0x228], 0
je 0x40c0d9
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x434]
push ecx
call fcn.0040af80
add esp, 0xc
mov dword [ebp - 0xab8], eax
cmp dword [ebp - 0xab8], 0
je 0x40c040
push 1
mov edx, dword [ebp - 0xab8]
push edx
push 0x40f1a8
lea eax, [ebp - 0x434]
push eax
push str.Service_workflow_failed__file_not_valid:
call fcn.0040b8d0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c11c
mov dword [ebp - 0xab4], 0
push 0x38
push 0
lea ecx, [ebp - 0xab0]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xab4], 0x3c
mov dword [ebp - 0xab0], 0x540
mov dword [ebp - 0xa98], 5
mov edx, dword [ebp + 8]
mov dword [ebp - 0xaa0], edx
lea eax, [ebp - 0x434]
mov dword [ebp - 0xaa4], eax
lea ecx, [ebp - 0xab4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c0b8
push 1
push 0
mov edx, dword [ebp + 8]
push edx
push 0x40f1c4
call fcn.0040aa80
add esp, 0x10
jmp 0x40c0d7
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f24c
mov eax, dword [ebp + 8]
push eax
push 0x40f268
call fcn.0040b8d0
add esp, 0x14
jmp 0x40c0fb
push 1
mov ecx, dword [ebp - 0x22c]
push ecx
push str.Service_Error
lea edx, [ebp - 0x434]
push edx
push str.Unable_to_lock_for_validation
call fcn.0040b8d0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004076b8
mov esp, ebp
pop ebp
ret