Function at 0x14001fc60
Capabilities:
Delete file
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x6f0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x590], rax
movsxd rbx, edx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rdx, str.DeleteMonitorW2K
lea rcx, [rsp + 0x30]
call fcn.140017fc0
nop
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, str.lpszMonitor___s__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140017c80
test rdi, rdi
jne 0x14001fd08
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x1400200a6
cmp ebx, 1
jne 0x14001fd22
xor r9d, r9d
lea r8, str.DeleteMonitorW2K_Delete_Monitor_Name_
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call fcn.140054cb8
mov r15, qword [rax + 8]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400020c0
nop
mov rdx, qword [r15 + 0x250]
test rdx, rdx
jne 0x14001fd90
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001fd7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x1400200a6
xor r12d, r12d
mov r14d, r12d
mov rcx, rdx
mov r13d, r12d
mov r8, rbx
xor eax, eax
lea rdi, [0x1401c6ea8]
mov rsi, qword [rcx]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14001fdba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x14002005e
cmp r8, 1
jne 0x14001fde4
xor r9d, r9d
lea r8, str.DeleteMonitorW2K_Search_Monitor_
mov rdx, qword [r13 + rdx]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, qword [r15 + 0x250]
mov rdx, qword [r13 + rax]
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
je 0x140020053
mov rcx, qword [rsp + 0x40]
call fcn.1401936c8
test eax, eax
je 0x14001fe2c
inc r14d
add r13, 0x10
mov rdx, qword [r15 + 0x250]
mov ecx, r14d
shl rcx, 4
add rcx, rdx
jmp 0x14001fd9c
mov ecx, r14d
add rcx, rcx
mov rax, qword [r15 + 0x250]
lea rdi, [rax + rcx*8 + 8]
mov rax, qword [rdi]
cmp dword [rax - 8], 1
jle 0x14001fe52
mov edx, dword [rax - 0x10]
mov rcx, rdi
call fcn.1400015a0
mov rdi, qword [rdi]
test rdi, rdi
je 0x14002005e
lea rcx, str.SPOOLER
call fcn.14000cdb0
lea rcx, str.SPOOLER
call fcn.140015e60
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call sub.WINSPOOL.DRV_DeleteMonitorW
test eax, eax
jne 0x14001fe9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x14001fed2
mov r8d, eax
lea rdx, str.WinAPI_DeleteMonitor__ERROR_n_Error_Code:__d_
jmp 0x14001feac
test ebx, ebx
je 0x14001fed2
mov r8d, r14d
lea rdx, str.WinAPI_DeleteMonitor__OK_n_Monitor_Point:__d_
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteMonitorW2K
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140192cb0
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x60]
cmp word [rsp + rcx*2 + 0x5e], 0x5c
lea rcx, [rbp + 0x380]
lea rdx, str._s_s
jne 0x14001ff27
lea rdx, [0x1401c9460]
call qword [sym.imp.USER32.dll_wsprintfW]
test ebx, ebx
je 0x14001ff65
lea r8, [rbp + 0x380]
lea rdx, str.Delete_File:__s_
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteMonitorW2K
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001ff93
test ebx, ebx
je 0x14001ff93
xor r9d, r9d
lea r8, str.DeleteMonitorW2K
lea rdx, str.WinAPI_DeleteFile__ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140192cb0
lea rcx, [rsp + 0x60]
call fcn.140018970
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x60]
cmp word [rsp + rcx*2 + 0x5e], 0x5c
lea rcx, [rbp + 0x380]
lea rdx, str._s_s
jne 0x14001ffe2
lea rdx, [0x1401c9460]
call qword [sym.imp.USER32.dll_wsprintfW]
test ebx, ebx
je 0x140020020
lea r8, [rbp + 0x380]
lea rdx, str.Delete_File:__s_
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.DeleteMonitorW2K_for_WinNT_Win2000_
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12d, eax
test eax, eax
jne 0x14002005e
test ebx, ebx
je 0x14002005e
xor r9d, r9d
lea r8, str.DeleteMonitorW2K
lea rdx, str.WinAPI_DeleteFile_NT_2K___ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14002005e
mov ecx, 0x80004005
call fcn.140001010
int3
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020099
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
mov eax, r12d
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x6f0]
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret