Function at 0x140046290
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 [0x140114040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, qword [0x140125838]
test rdi, rdi
je 0x1400462ee
lea rbx, [0x1400fdace]
mov rcx, rdi
mov rdx, rbx
call fcn.14000a0d0
test al, al
jne 0x1400463c0
lea rdx, str.vmodule
mov rcx, rdi
call fcn.14000a0d0
test al, al
jne 0x1400463c0
mov eax, dword [rsi]
mov dword [0x140116568], eax
test al, 1
jne 0x140046319
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400941a0
mov al, 1
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1401257b8]
test rcx, rcx
jne 0x140046333
mov rcx, qword [0x1401257a8]
test rcx, rcx
je 0x140046357
jmp 0x140046379
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401257b8], 0
mov rcx, qword [0x1401257a8]
test rcx, rcx
jne 0x140046379
and byte [0x140116568], 0xfe
mov ecx, 0x18
call fcn.14009208c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401257a8], rax
mov rdx, qword [rsi + 8]
call fcn.140017fa0
cmp dword [rsi + 0x14], 0
jne 0x14004639e
mov rcx, qword [0x1401257a8]
cmp byte [rcx + 0x17], 0
jns 0x140046398
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400941a0
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400df720
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.140048c50
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.140048c50
mov ecx, 0x20
call fcn.14009208c
mov rdi, rax
mov rcx, rax
mov rdx, r14
call fcn.14004d5b0
lea r14, [0x1401257b0]
mov rax, qword [0x1401165a0]
and rax, r14
cmp rax, qword [0x140116588]
jne 0x140046445
lea rcx, [0x1401257b0]
call fcn.140056440
mov qword [rdi + 0x18], r14
mov dword [rsp + 0x8c], 0
movzx ecx, byte [rsp + 0x4f]
mov rax, rcx
test cl, cl
jns 0x140046465
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14004649f
test cl, cl
jns 0x140046473
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov qword [rcx], rbx
mov qword [rcx + 8], rax
lea rdx, [rsp + 0x8c]
call fcn.140091490
test al, al
je 0x14004649f
xor eax, eax
sub eax, dword [rsp + 0x8c]
mov rcx, qword [rdi + 0x18]
mov dword [rcx], eax
cmp byte [rsp + 0x4f], 0
jns 0x1400464b0
mov rcx, qword [rsp + 0x38]
call fcn.140092084
cmp byte [rsp + 0x77], 0
jns 0x1400464c1
mov rcx, qword [rsp + 0x60]
call fcn.140092084
test rdi, rdi
je 0x1400462ee
xor eax, eax
lock cmpxchg qword [0x1401257c0], rdi
je 0x1400462ee
mov rcx, qword [rdi + 0x18]
mov rax, qword [0x1401165a0]
and rax, rcx
cmp rax, qword [0x140116588]
jne 0x1400464f7
call fcn.140056990
mov qword [rdi + 0x18], 0
mov rbx, qword [rdi]
test rbx, rbx
je 0x140046538
mov r14, qword [rdi + 8]
mov rcx, rbx
cmp r14, rbx
je 0x14004652f
cmp byte [r14 - 9], 0
jns 0x140046523
mov rcx, qword [r14 - 0x20]
call fcn.140092084
add r14, 0xffffffffffffffe0
cmp r14, rbx
jne 0x140046513
mov rcx, qword [rdi]
mov qword [rdi + 8], rbx
call fcn.140092084
mov rcx, rdi
call fcn.140092084
jmp 0x1400462ee