Function at 0x7cf81951
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push edi
xor edi, edi
push 0x40000027
mov dword [ebp - 4], edi
xor ebx, ebx
call sym.SHELL32.dll_SHRestricted
test eax, eax
je 0x7cf81995
push 0x10
push 0x2600
push 0x2601
push dword [ebp + 8]
push dword [0x7d04cdfc]
call sym.SHELL32.dll_ShellMessageBoxW
add esp, 0x14
xor eax, eax
jmp 0x7cf81cf9
push esi
push edi
call fcn.7cf5802a
push edi
lea eax, [ebp - 0x2bc]
push dword [ebp + 0x10]
push eax
call fcn.7cf815cc
cmp word [ebp - 0x2b8], di
jne 0x7cf819ce
push 3
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.7cf8177d
mov dword [ebp - 4], 1
jmp 0x7cf81cec
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
je 0x7cf819ef
lea eax, [ebp - 0x2b8]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindOnPathW]
jmp 0x7cf819fc
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7cf81a14
lea eax, [ebp - 0x2bc]
push eax
call fcn.7cf81879
test eax, eax
je 0x7cf81cec
push dword [ebp + 8]
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.7cf817e3
test eax, eax
je 0x7cf81cec
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.7cf8115e
cmp dword [ebp + 0x1c], edi
je 0x7cf81a6f
cmp eax, edi
je 0x7cf81a6f
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
cmp esi, edi
je 0x7cf81a6f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x7cf81a6f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], 1
jmp 0x7cf81ce3
cmp dword [ebp + 0x18], edi
je 0x7cf81ce3
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.7cf8163a
test eax, eax
je 0x7cf81ce3
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push dword [eax + 0x220]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push dword [eax + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x6c]
push eax
call fcn.7cf79659
cmp word [ebp - 0x16], di
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
je 0x7cf81ad7
cmp dword [ebp - 0xc], edi
jne 0x7cf81aee
or dword [ebp - 0x10], 1
jmp 0x7cf81aee
or dword [ebp - 0x10], 1
lea eax, [ebp - 0x6c]
push eax
call esi
cmp ax, di
mov word [ebp - 0x16], ax
je 0x7cf81cd3
cmp word [0x7d04c790], di
jne 0x7cf81b27
push 0x7cf3322c
call esi
push 0x7cf33218
mov word [0x7d04c790], ax
call esi
cmp word [0x7d04c790], di
mov word [0x7d04c794], ax
je 0x7cf81cd3
cmp ax, di
je 0x7cf81cd3
movzx eax, word [ebp - 0x18]
push eax
mov ebx, dword [sym.imp.USER32.dll_SetPropW]
movzx eax, word [0x7d04c790]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x7cf81cd3
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x7cf81cd3
cmp dword [ebp - 0x10], edi
je 0x7cf81b87
mov ax, word [0x7d04c794]
cmp ax, di
jne 0x7cf81b7b
push 0x7cf33218
call esi
mov word [0x7d04c794], ax
push dword [ebp - 0x10]
movzx eax, ax
push eax
push dword [ebp + 8]
call ebx
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x7cf81bd7
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 4]
push 0x402
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0x14], eax
jne 0x7cf81bd7
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
push 0xfffffe0c
push ebx
push ebx
call dword [sym.imp.COMCTL32.dll_Ordinal_341]
cmp dword [ebp - 0x70], edi
je 0x7cf81bf0
push dword [ebp - 0x70]
push dword [ebp - 0xc]
push 0xa
push ebx
push dword [ebp - 8]
call fcn.7cf793dd
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
cmp word [eax + 0x14], di
je 0x7cf81c4b
mov edx, dword [eax + 0x4c]
cmp edx, edi
je 0x7cf81c4b
and edx, 0xff
mov dword [ecx + 0xa4], edx
xor edx, edx
mov dl, byte [eax + 0x4d]
mov dword [ecx + 0xa8], edx
mov edx, dword [eax + 0x4c]
shr edx, 0x10
and dx, 0x3fff
mov word [ecx + 0xac], dx
mov eax, dword [eax + 0x4c]
xor eax, 0xbfffffff
shr eax, 0x1e
mov dword [ecx + 0xb0], eax
cmp dword [ebp - 0x70], edi
je 0x7cf81ca3
cmp dword [ebp - 4], edi
jne 0x7cf81cbe
push edi
push edi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x70]
push edi
push edi
call esi
push eax
push edi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x7cf81ca3
push edi
push edi
push dword [ebp + 0x14]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x70]
push edi
push edi
call esi
push ebx
push dword [ebp - 0xc]
push 9
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.7cf793dd
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], edi
jne 0x7cf81cbe
mov eax, dword [ebp + 0x10]
push dword [eax + 0x18]
push dword [ebp - 0xc]
push 5
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.7cf793dd
movzx eax, word [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_RemovePropW]
call fcn.7cf52009
push 1
pop ebx
push dword [ebp - 8]
call fcn.7cf79649
lea eax, [ebp - 0x18]
push eax
call fcn.7cf81840
cmp ebx, edi
jne 0x7cf81cf5
call fcn.7cf52009
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 0x18