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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, qword [0x140124838]
test rdi, rdi
je 0x1400466ae
lea rbx, [0x1400fcb0e]
mov rcx, rdi
mov rdx, rbx
call fcn.14000e0a0
test al, al
jne 0x140046780
lea rdx, str.vmodule
mov rcx, rdi
call fcn.14000e0a0
test al, al
jne 0x140046780
mov eax, dword [rsi]
mov dword [0x140115568], eax
test al, 1
jne 0x1400466d9
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400935c0
mov al, 1
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1401247b8]
test rcx, rcx
jne 0x1400466f3
mov rcx, qword [0x1401247a8]
test rcx, rcx
je 0x140046717
jmp 0x140046739
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401247b8], 0
mov rcx, qword [0x1401247a8]
test rcx, rcx
jne 0x140046739
and byte [0x140115568], 0xfe
mov ecx, 0x18
call fcn.1400914ac
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401247a8], rax
mov rdx, qword [rsi + 8]
call fcn.140018090
cmp dword [rsi + 0x14], 0
jne 0x14004675e
mov rcx, qword [0x1401247a8]
cmp byte [rcx + 0x17], 0
jns 0x140046758
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400935c0
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400de3a0
lea rax, str.vmodule
lea r8, [rsp + 0x50]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r14, [rsp + 0x60]
mov rcx, rdi
mov rdx, r14
call fcn.140049010
lea r8, [rsp + 0x28]
mov qword [r8], rbx
mov qword [r8 + 8], 1
lea rbx, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
call fcn.140049010
mov ecx, 0x20
call fcn.1400914ac
mov rdi, rax
mov rcx, rax
mov rdx, r14
call fcn.14004d9c0
lea r14, [0x1401247b0]
mov rax, qword [0x1401155a0]
and rax, r14
cmp rax, qword [0x140115588]
jne 0x140046805
lea rcx, [0x1401247b0]
call fcn.140056850
mov qword [rdi + 0x18], r14
mov dword [rsp + 0x8c], 0
movzx ecx, byte [rsp + 0x4f]
mov rax, rcx
test cl, cl
jns 0x140046825
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14004685f
test cl, cl
jns 0x140046833
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov qword [rcx], rbx
mov qword [rcx + 8], rax
lea rdx, [rsp + 0x8c]
call fcn.1400908b0
test al, al
je 0x14004685f
xor eax, eax
sub eax, dword [rsp + 0x8c]
mov rcx, qword [rdi + 0x18]
mov dword [rcx], eax
cmp byte [rsp + 0x4f], 0
jns 0x140046870
mov rcx, qword [rsp + 0x38]
call fcn.1400914a4
cmp byte [rsp + 0x77], 0
jns 0x140046881
mov rcx, qword [rsp + 0x60]
call fcn.1400914a4
test rdi, rdi
je 0x1400466ae
xor eax, eax
lock cmpxchg qword [0x1401247c0], rdi
je 0x1400466ae
mov rcx, qword [rdi + 0x18]
mov rax, qword [0x1401155a0]
and rax, rcx
cmp rax, qword [0x140115588]
jne 0x1400468b7
call fcn.140056da0
mov qword [rdi + 0x18], 0
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400468f8
mov r14, qword [rdi + 8]
mov rcx, rbx
cmp r14, rbx
je 0x1400468ef
cmp byte [r14 - 9], 0
jns 0x1400468e3
mov rcx, qword [r14 - 0x20]
call fcn.1400914a4
add r14, 0xffffffffffffffe0
cmp r14, rbx
jne 0x1400468d3
mov rcx, qword [rdi]
mov qword [rdi + 8], rbx
call fcn.1400914a4
mov rcx, rdi
call fcn.1400914a4
jmp 0x1400466ae