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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x8e8], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.DeleteLanguageMonitor
lea rcx, [rsp + 0x40]
call fcn.140017fc0
nop
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9, rsi
lea r8, str.lpszFile___s__lpszMon___s__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140017c80
test ebx, ebx
je 0x140019225
mov r8, rdi
lea rdx, str.MonitorName:__s_
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call fcn.14000c310
cmp eax, 0xa
jne 0x140019247
lea rcx, str.SPOOLER
call fcn.14000cdb0
lea rcx, str.SPOOLER
call fcn.140015e60
mov r8, rdi
xor edx, edx
xor ecx, ecx
call sub.WINSPOOL.DRV_DeleteMonitorW
test eax, eax
jne 0x140019287
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.140017c80
nop
lea rcx, [rsp + 0x40]
call fcn.140018150
xor eax, eax
jmp 0x140019528
test ebx, ebx
je 0x1400192b7
mov r8, rdi
lea rdx, str.WinAPI_DeleteMonitor__OK_n_Monitor_Point:__d_
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x380]
call fcn.140192cb0
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rsi
lea r8, [rbp + 0x380]
cmp word [rbp + rcx*2 + 0x37e], 0x5c
lea rcx, [rbp + 0x590]
lea rdx, str._s_s
jne 0x140019317
lea rdx, [0x1401c9460]
call qword [sym.imp.USER32.dll_wsprintfW]
test ebx, ebx
je 0x140019351
lea r8, [rbp + 0x590]
lea rdx, str.Delete_File:__s_
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400194c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400194c9
cmp eax, 3
je 0x1400194c9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.140192cb0
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.WININIT.INI
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140196d54
test ebx, ebx
je 0x140019424
lea r8, [rbp + 0x170]
lea rdx, str.INITIAL_File:__s_
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140019464
test ebx, ebx
je 0x1400194c9
lea rdx, str.Wininit.ini_OPEN_ERROR
jmp 0x1400194b7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x590]
lea rdx, str.NULL
lea rcx, str.rename
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1400194c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x1400194c9
mov r8d, eax
lea rdx, str.WritePrivateProfileString_Error:_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x60]
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test eax, eax
jne 0x140019502
test ebx, ebx
je 0x140019502
xor r9d, r9d
lea r8, str.DeleteLanguageMonitor
lea rdx, str.WinAPI_DeleteFile__ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140017c80
nop
lea rcx, [rsp + 0x40]
call fcn.140018150
mov eax, edi
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x8e8]
add rsp, 0x8b0
pop rdi
pop rsi
pop rbp
ret