Function at 0x1400419d0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140084880]
movdqu xmmword [rbp - 0x30], xmm1
mov byte [rbp - 0x40], dil
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea rdx, str.__.__
lea rcx, [rbp]
call fcn.14001a730
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0x30], rdi
mov byte [rbp + 0x38], dil
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x60], rdi
mov byte [rbp + 0x68], dil
movdqa xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x80], dil
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x98], dil
add rbx, 0x110
cmp qword [rbx + 0x18], 0xf
jbe 0x140041ac2
mov r8, qword [rbx]
mov rdx, r8
add rdx, qword [rbx + 0x10]
mov rbx, r8
jmp 0x140041acc
mov rdx, qword [rbx + 0x10]
add rdx, rbx
mov r8, rbx
mov qword [rsp + 0x28], r8
lea r9, [rbp]
lea r8, [rbp + 0x30]
mov rcx, rbx
call fcn.14001f7c0
test al, al
je 0x140041bd0
mov rcx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x140041b25
lea rax, [rbp + 0x88]
lea r8, [rbp + 0x98]
jmp 0x140041b2d
lea rax, [r8 + 0x18]
add r8, 0x28
cmp byte [r8], 0
je 0x140041b3d
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
jmp 0x140041b46
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
cmp rdx, r8
jne 0x140041b76
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
jmp 0x140041b83
sub r8, rdx
lea rcx, [rsp + 0x30]
call fcn.1400055d0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041bbe
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041bb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424ad
call fcn.1400491b0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x30], xmm1
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rdi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140041c00
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400055d0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140041eab
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
mov r15, qword [rbp - 0x10]
sub rax, r15
cmp rax, 5
jb 0x1400424b3
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea r12, [r15 + 5]
mov ebx, 0xf
lea rdi, [rsp + 0x58]
cmp r12, rbx
jbe 0x140041d03
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140041cc5
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x1400424b9
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140041cfe
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140041ced
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140042495
jmp 0x140041ca6
test rcx, rcx
je 0x140041cfc
call fcn.1400491b8
mov rdi, rax
jmp 0x140041cfe
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], rbx
mov eax, dword [str.File]
mov dword [rdi], eax
movzx eax, byte [0x1400844cc]
mov byte [rdi + 4], al
lea rcx, [rdi + 5]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 0xd
lea rdx, str._doesnt_exist
lea rcx, [rsp + 0x58]
call fcn.140004e50
xorps xmm0, xmm0
mov rcx, qword [rsp + 0x50]
movups xmmword [rcx], xmm0
xor edx, edx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], 0xf
mov byte [rax], dl
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140041db8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424b9
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
cmp r14, 0xf
jbe 0x140041e03
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140041dfa
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424bf
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140041e38
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140041e38
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041e73
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041e6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424c5
call fcn.1400491b0
mov rbx, qword [rsp + 0x50]
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140049190
lea r11, [rsp + 0x1b0]
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
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400421b3
lea rcx, [rbp - 0x68]
call fcn.1400136e0
mov qword [rsp + 0x58], rax
movabs rdx, 0x7fffffffffffffff
mov rcx, rdx
mov r15, qword [rbp - 0x10]
sub rcx, r15
cmp rcx, 0x11
jb 0x1400424cb
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r12, [r15 + 0x11]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
cmp r12, rbx
jbe 0x140041fa5
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140041f67
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x1400424d7
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140041fa0
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140041f8f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004249b
jmp 0x140041f48
test rcx, rcx
je 0x140041f9e
call fcn.1400491b8
mov rdi, rax
jmp 0x140041fa0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [str.Failed_to_delete]
movups xmmword [rdi], xmm0
movzx eax, byte [0x1400844e0]
mov byte [rdi + 0x10], al
lea rcx, [rdi + 0x11]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 4
lea rdx, str._on
lea rcx, [rsp + 0x30]
call fcn.140004e50
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140035540
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140042066
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042060
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424d1
call fcn.1400491b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400420a3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004209e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424d7
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x1400420f1
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400420ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424dd
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
cmp r14, 0xf
jbe 0x14004213a
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140042131
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424e3
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14004216f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14004216f
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041e78
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400421a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424e9
call fcn.1400491b0
jmp 0x140041e78
lea rcx, [rsp + 0x78]
call fcn.1400136e0
mov qword [rsp + 0x58], rax
movabs rdx, 0x7fffffffffffffff
mov rcx, rdx
mov r15, qword [rbp - 0x10]
sub rcx, r15
cmp rcx, 8
jb 0x1400424ef
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r12, [r15 + 8]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
cmp r12, rbx
jbe 0x140042292
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140042254
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x1400424fb
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14004228d
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14004227c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400424a1
jmp 0x140042235
test rcx, rcx
je 0x14004228b
call fcn.1400491b8
mov rdi, rax
jmp 0x14004228d
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
movabs rax, 0x20646574656c6544
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 4
lea rdx, str._on
lea rcx, [rsp + 0x30]
call fcn.140004e50
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, qword [rsp + 0x58]
lea r8, [rbp - 0x68]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140035540
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140042349
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424f5
call fcn.1400491b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140042386
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042381
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424fb
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x1400423d5
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400423d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042501
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
cmp r14, 0xf
jbe 0x14004241b
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140042412
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004248f
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140042450
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140042450
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041e78
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400421a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424a7
jmp 0x1400421a9
call fcn.1400500ac
nop
call fcn.140002390
nop
call fcn.140002390
nop
call fcn.140002390
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
int3
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
int3