Function at 0x6010f2c0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Get file size
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x60148e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x448]
test edi, edi
sete al
test al, al
mov byte [esp + 0xf], al
je 0x6010f371
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6010f310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x6010f332
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x6010f332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6010f34c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
add esp, 0x434
ret
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
mov bl, 1
je 0x6010f389
push eax
push esi
push str.CAVQuarantine::EnsureMoveFile_Failed_to_delete__s._Error__u
push 2
push 0x80
push ecx
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x18
jmp 0x6010f389
test edi, edi
je 0x6010f387
push 1
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x6010f387
mov bl, 1
jmp 0x6010f389
xor bl, bl
push ebp
mov byte [esp + 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x6010f4bf
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x6010f4bf
push 0x6014ec70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x6010f479
test bl, bl
mov byte [esp + 0x13], 0
jne 0x6010f43f
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne bl
test bl, bl
mov byte [esp + 0x12], bl
je 0x6010f3f9
push esi
call sym.scnkrnl.dll_public:_static_bool___cdecl_CAVQuarantine::DoSimpleDeletion_char_const__
add esp, 4
mov byte [esp + 0x13], al
jmp 0x6010f421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x6010f421
push eax
push edi
push esi
push str.CAVQuarantine::EnsureMoveFile_failed_to_copy_file__s_to__s._Error__u
push 4
push 0x80
push ecx
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x1c
test bl, bl
mov dword [esp + 0x44c], 0
je 0x6010f479
mov al, byte [esp + 0x13]
test al, al
jne 0x6010f479
mov edi, dword [esp + 0x44c]
push 4
push edi
push esi
call ebp
test eax, eax
setne al
test al, al
mov byte [esp + 0x12], al
jne 0x6010f479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x6010f479
push eax
push esi
push str.CAVQuarantine::EnsureMoveFile_failed_to_postpone_move_file__s._Error__u
push 4
push 0x80
push ecx
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x18
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x6010f4a2
push str.CAVQuarantine::EnsureMoveFile_finished
push 1
push 0x80
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x438]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov dword [esp + 0x440], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
push 0
push esi
mov byte [esp + 0x44c], 1
call edi
mov ebp, eax
mov eax, dword [ebx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, ebp
or eax, ecx
jge 0x6010f52b
push ebp
lea ecx, [esp + 0x1c]
call fcn.601042f0
mov ebx, dword [esp + 0x18]
push ebp
push ebx
push esi
call edi
test ebx, ebx
jne 0x6010f538
xor eax, eax
jmp 0x6010f54f
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6010f540
sub eax, edx
js 0x6010f895
cmp eax, dword [ebx - 8]
jg 0x6010f895
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
mov al, byte [esp + 0x13]
test al, al
je 0x6010f5aa
mov esi, dword [0x6015b14c]
test esi, esi
jne 0x6010f587
xor eax, eax
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.60104370
mov ebp, dword [esp + 0x14]
jmp 0x6010f607
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6010f590
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.60104370
mov ebp, dword [esp + 0x14]
jmp 0x6010f607
mov esi, dword [esp + 0x44c]
push 0
push 0
push esi
call edi
test eax, eax
lea ecx, [esp + 0x14]
jne 0x6010f5cc
push esi
call fcn.60104570
mov ebp, dword [esp + 0x14]
jmp 0x6010f607
push eax
push eax
call fcn.60104340
push eax
push esi
call edi
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x6010f5e3
xor eax, eax
jmp 0x6010f5f7
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6010f5e8
sub eax, edx
js 0x6010f895
cmp eax, dword [ebp - 8]
jg 0x6010f895
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
mov ecx, dword [str._hs_hs_r_n]
push ebx
push ebp
push ecx
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
push 0x104
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [str.wininit.ini]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x6010f6dd
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x6010f68f
push str.CAVQuarantine::EnsureMoveFile_Cant_open_wininit.ini_file
push 4
push 0x80
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
lea eax, [ebp - 0x10]
mov byte [esp + 0x440], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6010f6b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x440], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x6010f6d6
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
xor al, al
jmp 0x6010f4a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebx + edi + 0xa]
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x20], eax
je 0x6010f7e3
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x6010f7b4
push str._rename__r_n
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x6010f74e
push str._rename__r_n
lea ecx, [ebx + ebp]
push 0x6014eb6c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
mov eax, ebx
jmp 0x6010f773
push 0xa
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
inc esi
mov edx, ebp
sub edx, esi
add edx, ebx
push edx
lea eax, [esi + edi]
push esi
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
sub esi, ebp
mov eax, esi
mov ecx, edi
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
lea esi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
add ebx, eax
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x16], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x14]
jmp 0x6010f809
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x6010f7d2
push str.CAVQuarantine::EnsureMoveFile_Cant_map_file
push 2
push 0x80
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x14]
jmp 0x6010f809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x6010f809
push eax
push str.CAVQuarantine::EnsureMoveFile_Cant_create_map_file._Error__u
push 4
push 0x80
push ecx
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x14
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x6010f841
push str.CAVQuarantine::EnsureMoveFile_finished
push 1
push 0x80
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
lea eax, [ebp - 0x10]
mov byte [esp + 0x440], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6010f863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x440], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6010f4a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x6010f4a2
push 0x80070057
call fcn.601040a0
int3