Function at 0x40b550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c531
mov eax, dword fs:[0]
push eax
sub esp, 0xaa8
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.00409660
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 0x40b629
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40ed18
push 0x40ed34
push 0x40ed38
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40b687
push 1
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40ed68
push 0x40ed84
push 0x40ed88
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
push str.AdobeARM1.0AdobeARMHelper.exe
push 0x104
lea edx, [ebp - 0x434]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40b6e3
push 1
mov eax, dword [ebp - 0x438]
push eax
push 0x40edf4
push 0x40ee10
push 0x40ee14
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b729
push 1
push 2
push 0x40ee3c
lea edx, [ebp - 0x434]
push edx
push str.Unable_to_find:
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40bace
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 0x40b797
push 0
push 0
push 0x40ee7c
push str.The_r_s_function_failed_
call fcn.0040ad80
add esp, 0x10
push 0
call fcn.0040a2d0
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 0x40b880
push 0
mov eax, dword [ebp - 0x438]
push eax
push 0x40eee8
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40b8de
push 0
mov ecx, dword [ebp - 0x438]
push ecx
push 0x40ef44
push str.Temp
mov edx, dword [ebp - 0x860]
push edx
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40b940
push 0
mov edx, dword [ebp - 0x438]
push edx
push 0x40ef80
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40b96c
cmp dword [ebp - 0x650], 3
jne 0x40b9a5
push 0
mov eax, dword [ebp - 0x650]
push eax
push 0x40efb0
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_create_random_folder:
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
push 0x40f024
push 0x104
lea edx, [ebp - 0xa6c]
push edx
call fcn.004063f0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x40ba03
push 0
mov eax, dword [ebp - 0x438]
push eax
push 0x40f04c
push str.AdobeARMHelper.exe
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40ba56
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f0a4
lea ecx, [ebp - 0xa6c]
push ecx
push str.Failed_to_copy:
call fcn.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40bace
push 0
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.0040b420
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.004093e0
jmp 0x40bc71
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 0x40bc24
push 0xffffffffffffffff
lea ecx, [ebp - 0x434]
push ecx
call fcn.0040ac90
add esp, 8
test eax, eax
jne 0x40bb81
push 1
push 0x357
push 0x40f128
lea edx, [ebp - 0x434]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.0040b420
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.004093e0
jmp 0x40bc71
mov dword [ebp - 0xab4], 0
push 0x38
push 0
lea eax, [ebp - 0xab0]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xab4], 0x3c
mov dword [ebp - 0xab0], 0x540
mov dword [ebp - 0xa98], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xaa0], ecx
lea edx, [ebp - 0x434]
mov dword [ebp - 0xaa4], edx
lea eax, [ebp - 0xab4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40bbf9
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x40f144
call fcn.0040ad80
add esp, 0x10
jmp 0x40bc22
movzx edx, byte [ebp - 0x11]
neg edx
sbb edx, edx
add edx, 1
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f1cc
mov eax, dword [ebp + 8]
push eax
push 0x40f1e8
call fcn.0040b420
add esp, 0x14
jmp 0x40bc50
movzx ecx, byte [ebp - 0x11]
neg ecx
sbb ecx, ecx
add ecx, 1
push ecx
mov edx, dword [ebp - 0x22c]
push edx
push str.Service_Error
lea eax, [ebp - 0x434]
push eax
push str.Unable_to_lock_for_validation
call fcn.0040b420
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.004093e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret