Function at 0x1005d630
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10223656
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x1025b044
call fcn.1000afa0
test al, al
jne 0x1005d68e
cmp esi, edi
je 0x1005da5a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1005d683
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
jmp 0x1005da55
push 0
push 0x1025b044
mov ecx, esi
call fcn.10010360
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.10150080
cmp dword [ebp - 0x224], 2
jne 0x1005d6ca
mov ecx, esi
call fcn.1014d440
test al, al
je 0x1005d71c
push 0x15
push str.Adobe_Desktop_Common
jmp 0x1005d715
push 0
push 0x2b
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1005d71c
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d6f0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10010360
push 0x1b
push str.AdobeAdobe_Desktop_Common
mov ecx, esi
call fcn.10010650
push 0x12
push str.AdobeGenuineClient
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.1000aef0
lea eax, [esi + 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov ebx, 2
mov dword [ebp - 0x224], eax
test ecx, ecx
je 0x1005d806
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x1005d806
add eax, 0xb
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x220], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005d801
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x1005d7a8
mov ecx, dword [esi]
push ecx
push dword [ebp - 0x220]
push ebx
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
cmovae eax, dword [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d7e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.10010360
push ebx
call fcn.101dbd83
add esp, 4
mov ebx, 2
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
push 0xa
push str.customhook
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.1000aef0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1005d8f1
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x1005d8f1
add eax, 0xb
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x220], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005d8f1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x1005d89c
mov ecx, dword [esi]
push ecx
push dword [ebp - 0x220]
push ebx
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
cmovae eax, dword [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d8d0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.10010360
push ebx
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
push 0x10
push str.gccustomhook.exe
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
call fcn.1000aef0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005d9e1
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1005d9e1
add eax, 0xb
mov edx, 2
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x220], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005d9e1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1005d98c
mov eax, dword [esi]
push eax
push dword [ebp - 0x220]
push ebx
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d9c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.10010360
push ebx
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1005d9fd
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005da3e
mov esi, dword [0x102eec30]
test esi, esi
je 0x1005da3a
push str.gccustomhook_not_found
push 0x1025b044
push 0x1025b044
push str.GCWorkflowManager
push str.c3containerBL
push 0x32
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
xor al, al
jmp 0x1005da5c
cmp edi, esi
je 0x1005da5a
cmp dword [esi + 0x14], 8
jb 0x1005da4a
mov esi, dword [esi]
mov eax, dword [ebp - 0x224]
mov ecx, edi
push dword [eax]
push esi
call fcn.10010360
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4