Function at 0x7cf7e4e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.7d041c90
push ebx
push esi
mov ebx, dword [ebp + 8]
push edi
push 1
pop edi
push dword [ebp + 0x10]
mov dword [ebx + 0x508], edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
je 0x7cf7e5c8
push 2
pop esi
push dword [ebp + 0xc]
call fcn.7cf7df11
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.7cf9cee3
test eax, eax
je 0x7cf7e537
and dword [ebp + 8], 0
jmp 0x7cf7e540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
sub eax, ecx
je 0x7cf7e640
sub eax, 3
je 0x7cf7e591
sub eax, 0x4d
je 0x7cf7e55c
sub eax, 0x67
jne 0x7cf7e5bc
cmp dword [ebp + 0x1c], ecx
jne 0x7cf7e5c8
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100
push ebx
call fcn.7cf7e08e
mov ecx, eax
dec ecx
je 0x7cf7e5c8
dec ecx
je 0x7cf7e639
sub ecx, esi
jne 0x7cf7e61f
mov dword [ebp + 0x1c], edi
jmp 0x7cf7e5a1
push ecx
push 3
push dword [ebp + 0x10]
push ebx
call fcn.7cf7d3f2
test eax, eax
jne 0x7cf7e618
push dword [ebp + 0x10]
mov dword [ebx + 0x508], edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
je 0x7cf7e5c8
jmp 0x7cf7e519
sub eax, 0x17
je 0x7cf7e626
sub eax, 0x415
je 0x7cf7e626
mov ecx, dword [ebx + 0x98]
lea eax, [ebx + 0x98]
cmp dword [ecx + 4], 0
jne 0x7cf7e5de
or dword [ecx + 4], 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x7cf7e604
test byte [eax + 0x30], 4
je 0x7cf7e604
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7cf7e604
add ebx, 0x58
push ebx
call fcn.7cf7a9ac
xor eax, eax
jmp 0x7cf7e618
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.7cf7e20e
pop edi
pop esi
pop ebx
leave
ret 0x18
sub ecx, 3
je 0x7cf7e634
jmp 0x7cf7e618
add ebx, 0x58
push ebx
call fcn.7cf7a9ac
mov eax, dword [ebp + 8]
jmp 0x7cf7e618
push 7
pop eax
jmp 0x7cf7e618
mov dword [ebx + 0x28], edi
mov eax, esi
jmp 0x7cf7e618
lea eax, [ebx + 0x58]
push eax
call fcn.7cf7a9ac
mov edi, dword [ebp + 0x14]
push dword [edi]
push dword [ebp + 0x10]
call fcn.7cf7d82a
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x7cf7e681
mov eax, dword [ebx + 0x98]
cmp dword [eax + 8], 0
jne 0x7cf7e681
test eax, eax
je 0x7cf7e673
test byte [eax + 0x30], 4
jne 0x7cf7e681
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.7cf7f942
push 0x40000045
call sym.SHELL32.dll_SHRestricted
test eax, eax
jne 0x7cf7e600
test byte [edi + 1], 0x40
jne 0x7cf7e600
push 0x104
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7cf7e600
test ah, 0x40
je 0x7cf7e600
and dword [ebp - 0x1030], 0
push 5
push dword [ebx + 0x14]
mov ecx, 0x389
xor eax, eax
lea edi, [ebp - 0x102c]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetWindow]
push 1
mov dword [ebp - 0xff8], eax
pop eax
and dword [ebp - 0xbd0], 0
push 0x104
mov dword [ebp - 0x2a0], eax
push dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0xbb8], eax
lea eax, [ebp - 0xff4]
mov dword [ebp - 0xbe4], esi
push eax
mov dword [ebp - 0xbe0], esi
mov dword [ebp - 0xbd8], esi
mov dword [ebp - 0xbdc], esi
mov dword [ebp - 0xbd4], esi
mov dword [ebp - 0xbcc], esi
mov dword [ebp - 0xbc8], esi
mov dword [ebp - 0xbc0], esi
mov dword [ebp - 0xbc4], esi
mov dword [ebp - 0xbbc], esi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x1030]
push eax
call fcn.7cf99555
jmp 0x7cf7e600