Function at 0x60110270
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60148f01
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp eax, 5
push edi
mov edi, ecx
je 0x60110444
cmp eax, 6
je 0x60110444
mov eax, dword [esi]
push 0x80
push 1
push eax
call sym.scnkrnl.dll_bool___cdecl_CreateDirectoryTree_char_const___bool__unsigned_long_int_
add esp, 0xc
test al, al
jne 0x601102f5
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x601102dd
mov ecx, dword [str.Restore_operation_failed]
push ecx
push str.CAVQuarantine::RestoreObject__s
push 2
push 0x80
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x14
mov eax, 0x80000007
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x60110345
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x6011032d
push 0x8000000a
call sym.scnkrnl.dll_public:_static_char_const____cdecl_CAVQuarantine::GetErrorDescription_int_
push eax
push str.CAVQuarantine::RestoreObject__s
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
mov eax, 0x8000000a
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.601045b0
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.601044e0
mov esi, dword [esi]
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x60110426
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x601103db
mov dword [edi + 0x48], eax
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x601103ba
push reloc.OLEAUT32.dll_SysReAllocStringLen
call sym.scnkrnl.dll_public:_static_char_const____cdecl_CAVQuarantine::GetErrorDescription_int_
push eax
push str.CAVQuarantine::RestoreObject__s
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
lea ecx, [esp + 0x18]
call fcn.601042d0
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov ecx, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test ecx, ecx
je 0x60110405
push 0x80000007
call sym.scnkrnl.dll_public:_static_char_const____cdecl_CAVQuarantine::GetErrorDescription_int_
push eax
push str.CAVQuarantine::RestoreObject__s
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
lea ecx, [esp + 0x18]
call fcn.601042d0
mov eax, 0x80000007
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
lea ecx, [esp + 0x18]
call fcn.601042d0
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov eax, dword [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.6010ffd0
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8