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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002d8a0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r13, rcx
mov qword [rbp + 0x58], 0xf
xor r14d, r14d
mov qword [rbp + 0x50], r14
mov byte [rbp + 0x40], r14b
lea r8d, [r14 + 0x2f]
lea rdx, str.C:WindowsSystem32DriverStoreFileRepository_
lea rcx, [rbp + 0x40]
call fcn.140007d60
nop
mov r8, r13
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x18]
call fcn.14000a070
nop
lea r8d, [r14 + 1]
lea rdx, [0x140026e38]
lea rcx, [rbp + 0x18]
call fcn.140006620
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rcx, qword [rbp + 0x18]
lea rdx, [rbp + 0x70]
call fcn.14000d21c
mov r12, rax
lea r15d, [r14 + 4]
or rsi, 0xffffffffffffffff
cmp rax, rsi
je 0x1400028f5
nop dword [rax + rax]
cmp dword [rbp + 0x70], 0x10
jne 0x14000288a
lea r8, [rbp + 0x94]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.14000a070
nop
lea rdx, str.start_to_remove_dir_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.14000a140
mov rcx, rax
lea rdx, [0x140026e88]
call fcn.140009e30
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140005350
mov edi, r14d
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400023ad
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r15d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x1400023d2
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x1400023ca
or edx, 4
xor r8d, r8d
call fcn.140001540
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
mov r8d, 0xb
lea rdx, str.takeown__F
lea rcx, [rsp + 0x50]
call fcn.140007d60
mov rbx, rsi
mov rax, qword [rbp - 0x50]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
mov rax, rsi
mov rcx, qword [rsp + 0x60]
sub rax, rcx
cmp rax, rbx
jbe 0x1400028e0
test rbx, rbx
je 0x1400024c4
lea rdi, [rcx + rbx]
cmp rdi, 0xfffffffffffffffe
ja 0x14000289f
mov r8, qword [rsp + 0x68]
cmp r8, rdi
jae 0x140002452
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400093a0
jmp 0x14000246e
test rdi, rdi
jne 0x14000247b
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax], dil
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
test rdi, rdi
setne al
test al, al
je 0x1400024c4
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
add rcx, rax
mov r8, rbx
call fcn.14000c4b0
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rdi], 0
mov r8d, 6
lea rdx, str.__A__R
lea rcx, [rsp + 0x50]
call fcn.140006620
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x20], 0
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140006860
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140001840
cmp qword [rbp + 8], 0x10
jb 0x140002521
mov rcx, qword [rbp - 0x10]
call fcn.14000d68c
mov r8d, 6
lea rdx, str.cacls
lea rcx, [rsp + 0x50]
call fcn.140007d60
mov rbx, rsi
mov rax, qword [rbp - 0x50]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
mov rax, rsi
mov rcx, qword [rsp + 0x60]
sub rax, rcx
cmp rax, rbx
jbe 0x1400028d3
test rbx, rbx
je 0x140002600
lea rdi, [rcx + rbx]
cmp rdi, 0xfffffffffffffffe
ja 0x1400028ac
mov r8, qword [rsp + 0x68]
cmp r8, rdi
jae 0x14000258e
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400093a0
jmp 0x1400025aa
test rdi, rdi
jne 0x1400025b7
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax], dil
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
test rdi, rdi
setne al
test al, al
je 0x140002600
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
add rcx, rax
mov r8, rbx
call fcn.14000c4b0
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rdi + rax], 0
mov r8d, 0x14
lea rdx, [0x140026fb8]
lea rcx, [rsp + 0x50]
call fcn.140006620
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x20], 0
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140006860
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140001840
cmp qword [rbp + 8], 0x10
jb 0x14000265d
mov rcx, qword [rbp - 0x10]
call fcn.14000d68c
mov r8d, 6
lea rdx, str.cacls
lea rcx, [rsp + 0x50]
call fcn.140007d60
mov rbx, rsi
mov rax, qword [rbp - 0x50]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
mov rax, rsi
mov rcx, qword [rsp + 0x60]
sub rax, rcx
cmp rax, rbx
jbe 0x1400028c6
test rbx, rbx
je 0x14000273c
lea rdi, [rcx + rbx]
cmp rdi, 0xfffffffffffffffe
ja 0x1400028b9
mov r8, qword [rsp + 0x68]
cmp r8, rdi
jae 0x1400026ca
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400093a0
jmp 0x1400026e6
test rdi, rdi
jne 0x1400026f3
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax], dil
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
test rdi, rdi
setne al
test al, al
je 0x14000273c
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
add rcx, rax
mov r8, rbx
call fcn.14000c4b0
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rdi], 0
mov r8d, 0x15
lea rdx, str..__E__G_Everyone:F
lea rcx, [rsp + 0x50]
call fcn.140006620
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x20], 0
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140006860
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140001840
cmp qword [rbp + 8], 0x10
jb 0x140002799
mov rcx, qword [rbp - 0x10]
call fcn.14000d68c
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
call fcn.140001fe0
lea rcx, [0x14002d190]
test al, al
je 0x1400027d8
lea rdx, str.remove_
call fcn.140009e30
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.14000a140
lea rdx, str.__successful
jmp 0x1400027f7
lea rdx, str.ERROR::remove_
call fcn.140009e30
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.14000a140
lea rdx, str.__failed
mov rcx, rax
call fcn.140009e30
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140005350
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
mov edi, r14d
jne 0x14000282f
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r15d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140002855
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x14000284c
or edx, 4
xor r8d, r8d
call fcn.140001540
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140002867
mov rcx, qword [rsp + 0x50]
call fcn.14000d68c
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
cmp qword [rbp - 0x48], 0x10
jb 0x14000288a
mov rcx, qword [rbp - 0x60]
call fcn.14000d68c
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.14000d364
test eax, eax
jne 0x1400028ed
jmp 0x140002330
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
lea rcx, str.string_too_long
call fcn.14000b4dc
nop
mov rcx, r12
call fcn.14000d488
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x38], 0
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.140007d60
nop
mov r9, qword [rbp - 0x28]
add r9, 0xfffffffffffffffc
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.140005100
nop
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14000a370
mov rdi, rax
lea rax, [rbp - 0x38]
cmp rax, rdi
je 0x1400029b9
cmp qword [rbp - 0x20], 0x10
jb 0x140002964
mov rcx, qword [rbp - 0x38]
call fcn.14000d68c
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x38], 0
cmp qword [rdi + 0x18], 0x10
jae 0x140002990
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.14000c4b0
jmp 0x14000299a
mov rax, qword [rdi]
mov qword [rbp - 0x38], rax
mov qword [rdi], r14
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x20], rax
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov byte [rdi], 0
cmp qword [rbp - 0x48], 0x10
jb 0x1400029c9
mov rcx, qword [rbp - 0x60]
call fcn.14000d68c
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x60], 0
cmp qword [rbp + 8], 0x10
jb 0x1400029e9
mov rcx, qword [rbp - 0x10]
call fcn.14000d68c
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], r14
mov byte [rsp + 0x78], 0
mov r8d, 0x1c
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rsp + 0x78]
call fcn.140007d60
nop
mov rbx, rsi
mov rax, qword [rbp - 0x28]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
mov rcx, qword [rbp - 0x78]
sub rsi, rcx
cmp rsi, rbx
ja 0x140002a3a
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
test rbx, rbx
je 0x140002add
lea rdi, [rcx + rbx]
cmp rdi, 0xfffffffffffffffe
jbe 0x140002a5a
lea rcx, str.string_too_long
call fcn.14000b4dc
int3
cmp qword [rbp - 0x70], rdi
jae 0x140002a72
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1400093a0
jmp 0x140002a8e
test rdi, rdi
jne 0x140002a95
mov qword [rbp - 0x78], r14
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov byte [rax], dil
mov rcx, qword [rbp - 0x78]
test rdi, rdi
setne al
test al, al
je 0x140002add
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
add rcx, rax
mov r8, rbx
call fcn.14000c4b0
mov qword [rbp - 0x78], rdi
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov byte [rax + rdi], 0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140002c68
lea rdx, str.start_to_delete_file_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.14000a140
mov rcx, rax
lea rdx, [0x140026e88]
call fcn.140009e30
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140005350
mov edi, r14d
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140002b5a
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r15d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140002b7f
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140002b77
or edx, 4
xor r8d, r8d
call fcn.140001540
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140002bc2
lea rdx, str.delete_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.14000a140
lea rdx, str.__successful
jmp 0x140002c0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.delete_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.14000a140
mov rcx, rax
lea rdx, str.__failed_getlasterror_
call fcn.140009e30
mov rcx, rax
mov edx, edi
call fcn.140005170
lea rdx, [0x140026e88]
mov rcx, rax
call fcn.140009e30
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140005350
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
mov edi, r14d
jne 0x140002c42
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r15d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140002c68
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140002c5f
or edx, 4
xor r8d, r8d
call fcn.140001540
nop
cmp qword [rbp - 0x70], 0x10
jb 0x140002c79
mov rcx, qword [rsp + 0x78]
call fcn.14000d68c
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], r14
mov byte [rsp + 0x78], 0
cmp qword [rbp - 0x20], 0x10
jb 0x140002c9a
mov rcx, qword [rbp - 0x38]
call fcn.14000d68c
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x38], 0
cmp qword [rbp + 0x30], 0x10
jb 0x140002cba
mov rcx, qword [rbp + 0x18]
call fcn.14000d68c
mov qword [rbp + 0x30], 0xf
mov qword [rbp + 0x28], r14
mov byte [rbp + 0x18], 0
cmp qword [rbp + 0x58], 0x10
jb 0x140002cda
mov rcx, qword [rbp + 0x40]
call fcn.14000d68c
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x2b0]
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