Function at 0x41c480
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.00411960
add esp, 0xc
test edi, edi
jne 0x41c4cf
push str.VNLDeleteSystemFile:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x105
push eax
push esi
push edi
call fcn.0041ca90
add esp, 0x10
test eax, eax
jne 0x41c50c
push str.VNLDeleteSystemFile:_failed_to_get_system_directory_path
push 1
call fcn.00446b80
add esp, 8
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
call fcn.0041b6c0
add esp, 4
test eax, eax
je 0x41c535
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_read_only_attribute_from_file__S
push 0x20
call fcn.00446b80
add esp, 0xc
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
test eax, eax
jne 0x41c577
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov edx, 4
mov ecx, ebx
cmove ecx, edx
lea edx, [ebp - 0x210]
push edx
push eax
push str.VNLDeleteSystemFile:_failed_to_delete_0x_08x__S
push ecx
call fcn.00446b80
add esp, 0x10
jmp 0x41c58d
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_deleted__S
push 2
call fcn.00446b80
add esp, 0xc
call fcn.00435210
test eax, eax
je 0x41c637
push 1
call fcn.00435910
lea eax, [ebp - 0x210]
push eax
call fcn.0041b6c0
add esp, 8
test eax, eax
je 0x41c5ca
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_2_read_only_attribute_from_file__S
push 0x20
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 0x214], eax
call fcn.00435910
add esp, 4
test esi, esi
jne 0x41c61e
mov eax, dword [ebp - 0x214]
mov edx, 4
cmp eax, 2
mov ecx, ebx
cmove ecx, edx
lea edx, [ebp - 0x210]
push edx
push eax
push str.VNLDeleteSystemFile:_failed_2_to_delete_0x_08x__S
push ecx
call fcn.00446b80
add esp, 0x10
jmp 0x41c634
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_deleted_2__S
push 2
call fcn.00446b80
add esp, 0xc
mov esi, dword [ebp + 0xc]
call fcn.004351e0
test eax, eax
je 0x41c6f3
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x105
push eax
push esi
push edi
call fcn.004352a0
add esp, 0x10
test eax, eax
je 0x41c6f3
lea eax, [ebp - 0x210]
push eax
call fcn.0041b6c0
add esp, 4
test eax, eax
je 0x41c694
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_3_read_only_attribute_from_file__S
push 0x20
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41c6dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, 4
cmove ebx, ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLDeleteSystemFile:_failed_3_to_delete_0x_08x__S
push ebx
call fcn.00446b80
add esp, 0x10
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_deleted_3__S
push 2
call fcn.00446b80
add esp, 0xc
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00401bd5
mov esp, ebp
pop ebp
ret