Function at 0x651160
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, edx
push edi
cmp ecx, 0x2d
ja case.0x651180.16
jmp dword [ecx*4 + 0x651908]
push ecx
mov ecx, 0x26
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x2a
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x2b
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x2c
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x24
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x25
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x29
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x14
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x17
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x28
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 5
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push 0
push 0
push 0x7ea380
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js case.0x651180.16
mov edx, dword [ebp - 0x218]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x651304
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00426d40
push dword [ebp - 0x218]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x1a
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x1c
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x23
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x2e
call fcn.00650b50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650c90
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je case.0x651180.16
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6513f0
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je case.0x651180.16
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je case.0x651180.16
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x651460
jmp 0x6513fb
mov ecx, esi
call fcn.00650ee0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650d20
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
push 0x7ea5d0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00705f39
lea ecx, [ebp - 0x214]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6514e0
jmp 0x6513fb
push 0
push 0x1c
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
push 0x7ea5d0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00705f39
lea ecx, [ebp - 0x214]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x651530
jmp 0x6513fb
push ecx
mov ecx, 0x23
call fcn.00650b50
add esp, 4
mov ecx, esi
push 6
push 0x7ea5d0
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650ee0
test al, al
je case.0x651180.16
mov ecx, 5
mov eax, str.OOBE
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0x1c
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
push 0x7ea5d0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00705f39
lea ecx, [ebp - 0x214]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6515e0
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov ecx, 5
mov eax, str.OOBE
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x23
call fcn.00650b50
add esp, 4
mov ecx, esi
push 6
push 0x7ea5d0
call fcn.0044a2e0
mov ecx, 5
mov eax, str.OOBE
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650ee0
test al, al
je case.0x651180.16
mov ecx, 0xb
mov eax, str.OOBEPDApp
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0x1c
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
push 0x7ea5d0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00705f39
lea ecx, [ebp - 0x214]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6516d5
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov ecx, 0xb
mov eax, str.OOBEPDApp
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650ee0
test al, al
je case.0x651180.16
mov ecx, 0x20
mov eax, str.AdobeApplicationManagerAAMRefs
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650ee0
jmp 0x65175c
mov ecx, esi
call fcn.00650d20
test al, al
je case.0x651180.16
mov ecx, 8
mov eax, str.ADCRefs
push ecx
push eax
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.0065a6f0
cmp dword [ebp - 0x218], 2
jne 0x6517d2
mov ecx, esi
call fcn.00650d20
test al, al
je case.0x651180.16
push 0x15
push str.Adobe_Desktop_Common
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0x2b
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6517f6
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
push 0x1b
push str.AdobeAdobe_Desktop_Common
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.0065a6f0
cmp dword [ebp - 0x218], 2
je case.0x651180.38
push 0
push 0x26
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x651180.16
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x651876
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
push 0x1b
push 0x7ea598
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650d20
test al, al
je case.0x651180.16
push 0x15
push str.Adobe_Desktop_Common
mov ecx, esi
call fcn.0044a2e0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00650fa0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret