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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e7018]
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.0040f160
add esp, 0xc
test edi, edi
jne 0x4187ef
push str.VNLDeleteSystemFile:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x105
push eax
push ebx
push edi
call fcn.00418ee0
add esp, 0x10
test eax, eax
jne 0x41882c
push str.VNLDeleteSystemFile:_failed_to_get_system_directory_path
push 1
call fcn.004439a0
add esp, 8
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
call fcn.004179f0
add esp, 4
test eax, eax
je 0x418855
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_read_only_attribute_from_file__S
push 0x20
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4188a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41888b
lea eax, [ebp - 0x210]
push eax
push 2
push str.VNLDeleteSystemFile:_failed_to_delete_0x_08x__S
push 4
call fcn.004439a0
add esp, 0x10
jmp 0x4188ba
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLDeleteSystemFile:_failed_to_delete_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x4188ba
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_deleted__S
push 2
call fcn.004439a0
add esp, 0xc
call fcn.00431600
test eax, eax
je 0x418960
push 1
call fcn.00431cf0
lea eax, [ebp - 0x210]
push eax
call fcn.004179f0
add esp, 8
test eax, eax
je 0x4188f7
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_2_read_only_attribute_from_file__S
push 0x20
call fcn.004439a0
add esp, 0xc
push esi
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 ebx, eax
call fcn.00431cf0
add esp, 4
lea eax, [ebp - 0x210]
test esi, esi
pop esi
push eax
jne 0x41894e
cmp ebx, 2
jne 0x41893c
push ebx
push str.VNLDeleteSystemFile:_failed_2_to_delete_0x_08x__S
push 4
call fcn.004439a0
add esp, 0x10
jmp 0x41895d
push ebx
push str.VNLDeleteSystemFile:_failed_2_to_delete_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x41895d
push str.VNLDeleteSystemFile:_deleted_2__S
push 2
call fcn.004439a0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
call fcn.004315d0
test eax, eax
je 0x418a3e
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x105
push eax
push ebx
push edi
call fcn.004316b0
add esp, 0x10
test eax, eax
je 0x418a3e
lea eax, [ebp - 0x210]
push eax
call fcn.004179f0
add esp, 4
test eax, eax
je 0x4189bd
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_removed_3_read_only_attribute_from_file__S
push 0x20
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418a01
lea eax, [ebp - 0x210]
push eax
push 2
push str.VNLDeleteSystemFile:_failed_3_to_delete_0x_08x__S
push 4
call fcn.004439a0
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLDeleteSystemFile:_failed_3_to_delete_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteSystemFile:_deleted_3__S
push 2
call fcn.004439a0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret