Function at 0x1400224c0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x890
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x880], rax
test r8d, r8d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
je 0x14002251e
mov r8, rdx
lea rcx, [rsp + 0x40]
lea rdx, str.MonitorName:__s_
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call fcn.140015a10
cmp eax, 0xa
jne 0x140022540
lea rcx, str.SPOOLER
call fcn.140016250
lea rcx, str.SPOOLER
call fcn.140021630
mov r8, rdi
xor edx, edx
xor ecx, ecx
call sub.WINSPOOL.DRV_DeleteMonitorW
test eax, eax
jne 0x14002255d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x1400227ea
test ebx, ebx
je 0x14002258d
lea rdx, str.WinAPI_DeleteMonitor__OK_n_Monitor_Point:__d_
lea rcx, [rsp + 0x40]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rsp + 0x460]
xor edx, edx
mov r8d, 0x208
call fcn.140080d50
lea rcx, [rsp + 0x460]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9, rsi
lea r8, [rsp + 0x460]
movsxd rcx, eax
lea rdx, [0x1400a3e08]
cmp word [rsp + rcx*2 + 0x45e], 0x5c
lea rcx, [rsp + 0x670]
jne 0x1400225f2
lea rdx, [0x1400a3e50]
call qword [sym.imp.USER32.dll_wsprintfW]
test ebx, ebx
je 0x14002262d
lea r8, [rsp + 0x670]
lea rdx, str.Delete_File:__s_
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
lea rcx, [rsp + 0x670]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x1400227ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400227ae
cmp eax, 3
je 0x1400227ae
lea rcx, [rsp + 0x250]
xor edx, edx
mov r8d, 0x208
call fcn.140080d50
lea rcx, [rsp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.WININIT.INI
lea rcx, [rsp + 0x250]
mov edx, 0x104
call fcn.140082370
test ebx, ebx
je 0x140022706
lea r8, [rsp + 0x250]
lea rdx, str.INITIAL_File:__s_
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140022747
test ebx, ebx
je 0x1400227ae
lea rdx, str.Wininit.ini_OPEN_ERROR
jmp 0x14002279c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x250]
lea r8, [rsp + 0x670]
lea rdx, str.NULL
lea rcx, str.rename
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1400227ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x1400227ae
lea rdx, str.WritePrivateProfileString_Error:_d
lea rcx, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea r8, str.DeleteLanguageMonitor
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x670]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov edi, eax
jne 0x1400227e8
test ebx, ebx
je 0x1400227e8
lea r8, str.DeleteLanguageMonitor
lea rdx, str.WinAPI_DeleteFile__ERROR
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, edi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140081050
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret