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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, rcx
mov qword [rbp - 0x50], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
lea rax, [0x1401323d8]
mov qword [rcx], rax
lea rax, [0x1401323e8]
mov qword [rcx + 0x38], rax
lea rdi, [rcx + 0xa0]
lea rax, [0x1401323f0]
mov qword [rdi], rax
lea rax, vtable.CSpyModule.0
mov qword [rcx + 0x28], rax
mov dword [rsp + 0x20], 1
add rcx, 0x30
call fcn.1400450c0
nop
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x28], rdi
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CSystemInjectedSpyModuleBase.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CSystemInjectedSpyModuleBase.1.0
mov qword [rcx + rdi], rax
mov eax, 4
or eax, 3
mov dword [rsp + 0x20], eax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CNetManager.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CNetManager.1.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x28]
mov dword [rcx + rsi - 4], edx
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov qword [0x140183750], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x18], rax
lea rcx, [rsp + 0x28]
call fcn.140085530
nop
lea r8, str.Nmanager.log
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400162e0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140001cf0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400899d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400899f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x200
mov r13d, 0x414
cmp eax, ebx
jbe 0x140089a18
test eax, eax
je 0x140089a94
lea r8, str._WF.tmp
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.1400d9a0c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8, rbx
sub r8, rcx
lea rcx, [rbp + rcx*2 - 0x40]
xor edx, edx
call fcn.1400dd9f0
mov qword [rsp + 0x70], r12
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x78], 3
lea rax, [rbp - 0x40]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x6c], r12d
mov word [rbp - 0x70], r13w
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jbe 0x140089ab0
test eax, eax
jne 0x140089ab0
jmp 0x140089b35
lea r8, str._WB.tmp
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.1400d9a0c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
sub rbx, rcx
lea rcx, [rbp + rcx*2 - 0x40]
mov r8, rbx
xor edx, edx
call fcn.1400dd9f0
mov qword [rsp + 0x38], r12
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 3
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x5c], r12d
mov word [rsp + 0x58], r13w
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret