Function at 0x140005800
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 0x140005824
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 0x1400059b1
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
lea r8d, [rax + 0xb]
lea rdx, str.updater.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 [0x1400183a0], eax
jle 0x1400058bd
lea rcx, [0x1400183a0]
call fcn.14000d318
cmp dword [0x1400183a0], 0xffffffff
jne 0x1400058bd
xor edx, edx
mov r8d, 0x158
lea rcx, [0x1400183b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x27]
call fcn.140002b40
lea rcx, [0x14000ee30]
call fcn.14000d6c4
nop
lea rcx, [0x1400183a0]
call fcn.14000d2ac
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xe
jb 0x140005b67
cmp qword [rbx + 0x18], 0xf
jbe 0x1400058e2
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.14000c1b0
nop
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [0x1400183b0]
call fcn.140003020
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14000595b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005956
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005956
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d6e4
movdqa xmm0, xmmword [0x140011540]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x1400059aa
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400059a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d6e4
mov al, 1
jmp 0x140005b4c
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.14000a980
lea rdx, [0x14000ab50]
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, 0xb
lea rdx, str.updater.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 [0x1400183a0], eax
jle 0x140005a5c
lea rcx, [0x1400183a0]
call fcn.14000d318
cmp dword [0x1400183a0], 0xffffffff
jne 0x140005a5c
xor edx, edx
mov r8d, 0x158
lea rcx, [0x1400183b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 7]
call fcn.140002b40
lea rcx, [0x14000ee30]
call fcn.14000d6c4
nop
lea rcx, [0x1400183a0]
call fcn.14000d2ac
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x15
jb 0x140005b61
cmp qword [rbx + 0x18], 0xf
jbe 0x140005a81
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.14000c1b0
nop
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x27]
lea rcx, [0x1400183b0]
call fcn.140003020
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140005afb
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005af6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005af6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d6e4
movdqa xmm0, xmmword [0x140011540]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140005b4a
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d6e4
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