Function at 0x7cf98f03
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [eax], ebx
cmp dword [esi + 0xd90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jne 0x7cf98f35
cmp dword [esi + 0xd8c], ebx
je 0x7cf98fa7
push esi
push dword [ebp + 8]
call fcn.7cf98d52
test eax, eax
je 0x7cf98fa7
cmp dword [esi + 0x494], ebx
je 0x7cf98f9f
mov edx, dword [esi + 0x944]
mov eax, dword [esi + 0x4a4]
mov edi, dword [esi + 0x948]
mov ecx, dword [esi + 0x4a0]
cmp eax, edx
ja 0x7cf98f7a
jb 0x7cf98f6c
cmp ecx, edi
jae 0x7cf98f7a
mov dword [esi + 0x4a0], ebx
mov dword [esi + 0x4a4], ebx
jmp 0x7cf98f8a
sub ecx, edi
sbb eax, edx
mov dword [esi + 0x4a0], ecx
mov dword [esi + 0x4a4], eax
sub dword [esi + 0x498], edi
lea eax, [esi + 0x498]
push esi
sbb dword [eax + 4], edx
call fcn.7cff8897
push 1
pop eax
jmp 0x7cf992fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7cf99190
cmp dword [esi + 0x494], ebx
je 0x7cf98fce
push 1
push dword [ebp + 8]
push esi
call fcn.7cff8858
and edi, 0x3127
push 1
mov ebx, edi
pop ecx
mov eax, ebx
and eax, 6
sub al, 6
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x44c]
cmp eax, dword [esi + 0x464]
je 0x7cf9904d
test cl, bl
mov edi, ecx
je 0x7cf99036
push dword [ebp + 8]
call sym.SHELL32.dll_Ordinal_159
test eax, eax
je 0x7cf99033
push 0x7cf32ec8
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsAndAttributesW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
push 1
pop ecx
test edi, edi
je 0x7cf9904d
cmp dword [esi + 0x464], 0
je 0x7cf99047
or ebx, ecx
jmp 0x7cf9904a
and ebx, 0xfffffffe
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x468]
cmp dword [esi + 0x450], eax
je 0x7cf9906f
test bl, 4
jne 0x7cf9906f
test eax, eax
je 0x7cf99069
or ebx, 2
jmp 0x7cf9906c
and ebx, 0xfffffffd
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x46c]
cmp dword [esi + 0x454], eax
je 0x7cf9908c
test eax, eax
je 0x7cf99086
or ebx, 0x20
jmp 0x7cf99089
and ebx, 0xffffffdf
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x470]
cmp dword [esi + 0x458], eax
je 0x7cf990a9
test eax, eax
je 0x7cf990a3
and bh, 0xdf
jmp 0x7cf990a6
or bh, 0x20
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x7cf990cb
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x7cf99190
mov eax, dword [ebp + 0x14]
push 1
pop edi
mov dword [eax], edi
jmp 0x7cf990ce
push 1
pop edi
mov eax, dword [esi + 0x474]
cmp dword [esi + 0x45c], eax
je 0x7cf990f6
test eax, eax
jne 0x7cf990f6
push eax
push dword [ebp + 8]
call fcn.7cf989de
test eax, eax
je 0x7cf99190
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [esi + 0x478]
cmp dword [esi + 0x460], eax
je 0x7cf99171
test eax, eax
jne 0x7cf99171
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.7cf9895e
mov edi, eax
cmp edi, ebx
jne 0x7cf99161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
jne 0x7cf99159
push dword [ebp + 8]
call sym.SHELL32.dll_ILCreateFromPath
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7cf99141
push ebx
push 1
push eax
push 1
call sym.SHELL32.dll_SHChangeNotifySuspendResume
push ebx
push dword [ebp + 8]
call fcn.7cf9895e
mov edi, eax
cmp edi, ebx
jne 0x7cf99161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp edi, ebx
je 0x7cf99237
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push 1
mov dword [eax], 1
pop edi
mov eax, dword [esi + 0x474]
cmp dword [esi + 0x45c], eax
je 0x7cf991a3
cmp eax, edi
jne 0x7cf991a3
push edi
push dword [ebp + 8]
call fcn.7cf989de
test eax, eax
jne 0x7cf9919e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x7cf99237
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [esi + 0x478]
cmp dword [esi + 0x460], eax
je 0x7cf99237
cmp eax, 1
jne 0x7cf99237
cmp dword [esi + 0xd90], 0
jne 0x7cf991d6
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.7cf98e55
test eax, eax
je 0x7cf992bc
push 1
pop ebx
push ebx
push dword [ebp + 8]
call fcn.7cf9895e
mov edi, eax
test edi, edi
jne 0x7cf9922a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
jne 0x7cf99226
push dword [ebp + 8]
call sym.SHELL32.dll_ILCreateFromPath
test eax, eax
mov dword [ebp - 8], eax
je 0x7cf9920e
push edi
push ebx
push eax
push ebx
call sym.SHELL32.dll_SHChangeNotifySuspendResume
push ebx
push dword [ebp + 8]
call fcn.7cf9895e
mov edi, eax
test edi, edi
jne 0x7cf9922a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x7cf99237
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [eax], 1
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x7cf99255
push ebx
push 1
push dword [ebp - 8]
push ebx
call sym.SHELL32.dll_SHChangeNotifySuspendResume
push dword [ebp - 8]
call sym.SHELL32.dll_ILFree
mov dword [ebp - 8], ebx
cmp dword [esi + 0xda0], ebx
jne 0x7cf99262
cmp dword [ebp + 0x10], ebx
jne 0x7cf99266
xor edi, edi
jmp 0x7cf99269
mov edi, dword [ebp - 4]
cmp edi, 0x4d3
je 0x7cf992bc
cmp edi, ebx
je 0x7cf992cc
cmp dword [ebp - 0x10], ebx
je 0x7cf99290
call fcn.7cfb3475
test eax, eax
jne 0x7cf99290
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x7cf992ca
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.7cf98d2a
sub eax, 4
jne 0x7cf992b2
mov dword [ebp - 4], ebx
jmp 0x7cf98fa7
dec eax
je 0x7cf992ca
sub eax, 5
je 0x7cf992c0
jmp 0x7cf992cc
xor eax, eax
jmp 0x7cf992fc
mov dword [esi + 0xda0], 1
xor edi, edi
cmp dword [esi + 0x494], ebx
je 0x7cf992f5
mov ecx, dword [esi + 0x948]
mov edx, dword [esi + 0x944]
add dword [esi + 0x4a0], ecx
lea eax, [esi + 0x4a0]
push esi
adc dword [eax + 4], edx
call fcn.7cff8897
xor eax, eax
cmp edi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x10