Function at 0x140025240
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 [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.DeleteMonitorW2K
lea rcx, [rsp + 0x30]
call fcn.140001190
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.140001370
test r15, r15
jne 0x1400252e7
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r13 + 2]
lea rcx, [rsp + 0x30]
call fcn.140001370
nop
lea rcx, [rsp + 0x30]
call fcn.140001320
xor eax, eax
jmp 0x14002553e
call fcn.140059f20
mov r14, qword [rax + 8]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400054e0
nop
mov rdx, qword [r14 + 0x250]
test rdx, rdx
jne 0x140025355
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140001370
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140025344
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.140001320
xor eax, eax
jmp 0x14002553e
mov ebx, r13d
mov rcx, rdx
mov r12, r13
nop
xor eax, eax
lea rdi, [0x1402209ac]
mov rsi, qword [rcx]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14002537b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x1400254f6
mov rdx, qword [r12 + rdx]
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
je 0x1400254eb
mov rcx, qword [rsp + 0x40]
call fcn.140199570
test eax, eax
je 0x1400253c3
inc ebx
add r12, 0x10
mov rdx, qword [r14 + 0x250]
mov ecx, ebx
shl rcx, 4
add rcx, rdx
jmp 0x140025360
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 0x1400253e8
mov edx, dword [rax - 0x10]
mov rcx, rdi
call fcn.140005c50
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400254f6
call fcn.140019870
lea rcx, str.SPOOLER
call fcn.140019a70
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x14002541c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14019d7c0
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 0x140025471
lea rdx, [0x14021c280]
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.14019d7c0
lea rcx, [rsp + 0x50]
call fcn.140020430
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 0x1400254d3
lea rdx, [0x14021c280]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r13d, eax
jmp 0x1400254f6
mov ecx, 0x80004005
call fcn.140004550
int3
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140001370
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140025531
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.140001320
mov eax, r13d
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140198b40
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