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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.DeleteMonitorW2K
lea rcx, [rsp + 0x30]
call fcn.14000b870
nop
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov r9, r15
lea r8, str.lpszMonitor___s__bDebug___d
lea edx, [r13 + 1]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
test r15, r15
jne 0x14001b3f7
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r13 + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14001b64e
call fcn.140050920
mov r14, qword [rax + 8]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140001110
nop
mov rdx, qword [r14 + 0x250]
test rdx, rdx
jne 0x14001b465
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001b454
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14001b64e
mov ebx, r13d
mov rcx, rdx
mov r12, r13
nop
xor eax, eax
lea rdi, [0x1402145dc]
mov rsi, qword [rcx]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14001b48b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x14001b606
mov rdx, qword [r12 + rdx]
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
je 0x14001b5fb
mov rcx, qword [rsp + 0x40]
call fcn.14018ea5c
test eax, eax
je 0x14001b4d3
inc ebx
add r12, 0x10
mov rdx, qword [r14 + 0x250]
mov ecx, ebx
shl rcx, 4
add rcx, rdx
jmp 0x14001b470
mov ecx, ebx
add rcx, rcx
mov rax, qword [r14 + 0x250]
lea rdi, [rax + rcx*8 + 8]
mov rax, qword [rdi]
cmp dword [rax - 8], 1
jle 0x14001b4f8
mov edx, dword [rax - 0x10]
mov rcx, rdi
call fcn.1400016c0
mov rdi, qword [rdi]
test rdi, rdi
je 0x14001b606
call fcn.14000fc40
lea rcx, str.SPOOLER
call fcn.14000fe40
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x14001b52c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140193010
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x50]
cmp word [rsp + rcx*2 + 0x4e], 0x5c
lea rcx, [rbp + 0x160]
lea rdx, str._s_s
jne 0x14001b581
lea rdx, [0x140212328]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140193010
lea rcx, [rsp + 0x50]
call fcn.140016900
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x50]
cmp word [rsp + rcx*2 + 0x4e], 0x5c
lea rcx, [rbp + 0x160]
lea rdx, str._s_s
jne 0x14001b5e3
lea rdx, [0x140212328]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r13d, eax
jmp 0x14001b606
mov ecx, 0x80004005
call fcn.140001000
int3
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001b641
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
mov eax, r13d
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret