Function at 0x40c170
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 0x40d2b7
mov eax, dword fs:[0]
push eax
sub esp, 0xaac
mov eax, dword [0x413018]
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.00409ca0
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 0x40c249
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40ff6c
push 0x40ff88
push 0x40ff8c
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
lea edx, [ebp - 0x224]
push edx
push 0x104
lea eax, [ebp - 0x434]
push eax
call fcn.00406370
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c2a7
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40ffbc
push 0x40ffd8
push 0x40ffdc
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
push str.AdobeARM1.0AdobeARMHelper.exe
push 0x104
lea edx, [ebp - 0x434]
push edx
call fcn.004063c0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c303
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x410004
push 0x410064
push 0x410068
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c349
push 1
push 2
push 0x410090
lea edx, [ebp - 0x434]
push edx
push str.Unable_to_find:
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40c6ee
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 0x40c3b7
push 0
push 0
push 0x4100d0
push str.The_r_s_function_failed_
call fcn.0040b510
add esp, 0x10
push 0
call fcn.0040ab70
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.00406370
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c4a0
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x41013c
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
push str.AdobeARM1.0Temp_
push 0x104
lea eax, [ebp - 0xa6c]
push eax
call fcn.004063c0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c4fe
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x410198
push str.Temp
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
lea eax, [ebp - 0x85c]
push eax
push 0x104
lea ecx, [ebp - 0xa6c]
push ecx
call fcn.004063c0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c560
push 1
mov edx, dword [ebp - 0x438]
push edx
push 0x4101d4
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
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 0x40c58c
cmp dword [ebp - 0x650], 3
jne 0x40c5c5
push 1
mov eax, dword [ebp - 0x650]
push eax
push 0x410204
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_create_random_folder:
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
push 0x41027c
push 0x104
lea edx, [ebp - 0xa6c]
push edx
call fcn.004063c0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c623
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x4102a4
push str.AdobeARMHelper.exe
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
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 0x40c676
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4102fc
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_copy:
call fcn.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
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.00406370
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40c6ee
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.0040c040
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
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.00401270
mov byte [ebp - 4], 1
cmp dword [ebp - 0x228], 0
je 0x40c849
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x434]
push ecx
call fcn.0040ba10
add esp, 0xc
mov dword [ebp - 0xab8], eax
cmp dword [ebp - 0xab8], 0
je 0x40c7b0
push 1
mov edx, dword [ebp - 0xab8]
push edx
push 0x410380
lea eax, [ebp - 0x434]
push eax
push str.Service_workflow_failed__file_not_valid:
call fcn.0040c040
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
jmp 0x40c88c
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 0x40c828
push 1
push 0
mov edx, dword [ebp + 8]
push edx
push 0x41039c
call fcn.0040b510
add esp, 0x10
jmp 0x40c847
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x410424
mov eax, dword [ebp + 8]
push eax
push 0x410440
call fcn.0040c040
add esp, 0x14
jmp 0x40c86b
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.0040c040
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00407f30
mov esp, ebp
pop ebp
ret