Function at 0x140005370
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140005394
mov rcx, qword [rcx]
mov edi, 4
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x140005521
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
lea r8d, [rax + 7]
lea rdx, str.app.log
lea rcx, [rbp + 0x27]
call fcn.1400034f0
nop
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdi + rax]
cmp dword [0x1400173a0], eax
jle 0x14000542d
lea rcx, [0x1400173a0]
call fcn.14000cc48
cmp dword [0x1400173a0], 0xffffffff
jne 0x14000542d
xor edx, edx
mov r8d, 0x158
lea rcx, [0x1400173b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x27]
call fcn.140002b40
lea rcx, [0x14000e730]
call fcn.14000cff4
nop
lea rcx, [0x1400173a0]
call fcn.14000cbdc
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xe
jb 0x1400056d7
cmp qword [rbx + 0x18], 0xf
jbe 0x140005452
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0xe
lea r9, str.File_deleted:
lea rcx, [rbp + 7]
call fcn.14000bae0
nop
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [0x1400173b0]
call fcn.140003020
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400054cb
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d014
movdqa xmm0, xmmword [0x140010360]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x14000551a
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005515
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005515
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d014
mov al, 1
jmp 0x1400056bc
lea rdx, str.Error_deleting_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000a270
lea rdx, [0x14000a440]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov r8d, 7
lea rdx, str.app.log
lea rcx, [rbp + 7]
call fcn.1400034f0
nop
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdi + rax]
cmp dword [0x1400173a0], eax
jle 0x1400055cc
lea rcx, [0x1400173a0]
call fcn.14000cc48
cmp dword [0x1400173a0], 0xffffffff
jne 0x1400055cc
xor edx, edx
mov r8d, 0x158
lea rcx, [0x1400173b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 7]
call fcn.140002b40
lea rcx, [0x14000e730]
call fcn.14000cff4
nop
lea rcx, [0x1400173a0]
call fcn.14000cbdc
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x15
jb 0x1400056d1
cmp qword [rbx + 0x18], 0xf
jbe 0x1400055f1
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x15
lea r9, str.Error_deleting_file:
lea rcx, [rbp + 0x27]
call fcn.14000bae0
nop
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x27]
lea rcx, [0x1400173b0]
call fcn.140003020
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x14000566b
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005666
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005666
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d014
movdqa xmm0, xmmword [0x140010360]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400056ba
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400056b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400056b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d014
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400015c0
nop
call fcn.1400015c0
int3