Function at 0x40b9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c991
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 0x40ba89
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40ed88
push 0x40eda4
push 0x40eda8
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40bae7
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40edd8
push 0x40edf4
push 0x40edf8
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
push 0x40ee20
push 0x104
lea edx, [ebp - 0x434]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40bb43
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40ee64
push 0x40ee80
push 0x40ee84
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bb89
push 1
push 2
push 0x40eeac
lea edx, [ebp - 0x434]
push edx
push str.Unable_to_find:
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40bf2e
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 0x40bbf7
push 0
push 0
push 0x40eeec
push str.The_r_s_function_failed_
call fcn.0040aa30
add esp, 0x10
push 0
call fcn.0040a3a0
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 0x40bce0
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40ef58
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40bd3e
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40efb4
push str.Temp
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40bda0
push 1
mov edx, dword [ebp - 0x438]
push edx
push 0x40eff0
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40bdcc
cmp dword [ebp - 0x650], 3
jne 0x40be05
push 1
mov eax, dword [ebp - 0x650]
push eax
push 0x40f020
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_create_random_folder:
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
push 0x40f094
push 0x104
lea edx, [ebp - 0xa6c]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40be63
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40f0bc
push str.AdobeARMHelper.exe
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40beb6
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f114
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_copy:
call fcn.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40bf2e
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.0040b880
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00409430
jmp 0x40c0cc
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 0x40c089
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x434]
push ecx
call fcn.0040af30
add esp, 0xc
mov dword [ebp - 0xab8], eax
cmp dword [ebp - 0xab8], 0
je 0x40bff0
push 1
mov edx, dword [ebp - 0xab8]
push edx
push 0x40f198
lea eax, [ebp - 0x434]
push eax
push str.Service_workflow_failed__file_not_valid:
call fcn.0040b880
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 0x40c0cc
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 0x40c068
push 1
push 0
mov edx, dword [ebp + 8]
push edx
push 0x40f1b4
call fcn.0040aa30
add esp, 0x10
jmp 0x40c087
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f23c
mov eax, dword [ebp + 8]
push eax
push 0x40f258
call fcn.0040b880
add esp, 0x14
jmp 0x40c0ab
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.0040b880
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