Function at 0x140005450
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x140092060]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, rcx
xor ecx, ecx
call fcn.14004ffdc
mov qword [rbp - 0x40], rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14004e87c
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.14004e87c
mov eax, dword [rsp + 0x6c]
cmp dword [rbp - 0x54], eax
jg 0x1400054cb
mov eax, dword [rsp + 0x68]
cmp dword [rbp - 0x58], eax
jg 0x1400054cb
mov eax, dword [rsp + 0x64]
cmp dword [rbp - 0x5c], eax
jle 0x140005a1b
mov edx, 0x5c
lea rcx, str.C:Usersleonard_tsaiDesktopASUS_ProjAsusOLEDShifterAsusOLEDShifterAsusOLEDShifterLogHelper.cpp
call fcn.140044830
lea rcx, str.C:Usersleonard_tsaiDesktopASUS_ProjAsusOLEDShifterAsusOLEDShifterAsusOLEDShifterLogHelper.cpp
test rax, rax
je 0x1400054f6
mov edx, 0x5c
call fcn.140044830
lea rcx, [rax + 1]
mov r9d, dword [rbp - 0x58]
inc r9d
mov edx, dword [rbp - 0x54]
add edx, 0x76c
mov r10d, dword [rsp + 0x68]
inc r10d
mov r8d, dword [rsp + 0x6c]
add r8d, 0x76c
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], edx
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r8d
lea r9, str.Detect_last_date___d__02d__02d__current_date___d__02d__02d
lea r8, str.IsDateChanged
mov edx, 0x10f
call fcn.140004690
mov rax, qword [rbp - 0x40]
mov qword [rbx], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x220], xmm0
movaps xmmword [rbp + 0x230], xmm0
movaps xmmword [rbp + 0x240], xmm0
movaps xmmword [rbp + 0x250], xmm0
lea r8, [0x140084340]
lea rdx, str._hs_
lea rcx, [rbp + 0x220]
call qword [sym.imp.USER32.dll_wsprintfW]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
xor r15d, r15d
mov qword [rbp - 0x70], r15
lea r14, [rbx + 8]
lea r8, [0x1400844dc]
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140008480
cmp qword [rax + 0x18], 8
jb 0x1400055c5
mov rax, qword [rax]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140005615
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005610
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a4d
call fcn.140042ba4
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
cmp rsi, 0xffffffffffffffff
je 0x14000575f
test byte [rbp - 0x30], 0x10
jne 0x140005741
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rax, [rbp - 4]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140005660
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x58]
call fcn.140002770
nop
lea rcx, [rbp + 0x220]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005690
lea rcx, [rsp + 0x58]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
cmp rdi, 8
cmovae rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
mov rdx, qword [rsp + 0x68]
call fcn.140008ea0
cmp rax, 0xffffffffffffffff
je 0x140005706
mov rax, qword [rbp - 0x78]
cmp rax, qword [rbp - 0x70]
je 0x1400056eb
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140009980
add qword [rbp - 0x78], 0x20
jmp 0x1400056fc
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140008ab0
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
cmp rdi, 8
jb 0x140005741
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140005739
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a53
mov rcx, rbx
call fcn.140042ba4
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140005630
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rbp - 0x78]
mov r8, rdx
mov rcx, qword [rbp - 0x80]
sub r8, rcx
sar r8, 5
movzx r9d, byte [rsp + 0x50]
call fcn.140009c20
mov rdx, qword [rbp - 0x78]
mov rax, rdx
mov rcx, qword [rbp - 0x80]
sub rax, rcx
sar rax, 5
cmp rax, 7
jbe 0x1400059dc
lea rdi, str.Delete_file_:__s
lea rsi, str.Delete_file_failed:__s
nop word [rax + rax]
lea r8, [0x140084378]
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140008480
nop
mov rcx, qword [rbp - 0x78]
lea rdx, [rcx - 0x20]
cmp qword [rcx - 8], 8
jb 0x1400057d7
mov rdx, qword [rcx - 0x20]
mov r8, qword [rcx - 0x10]
mov rcx, rax
call fcn.1400082f0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140005853
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000584e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a5f
call fcn.140042ba4
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbx - 8]
cmp rdx, 8
jb 0x1400058a8
mov rcx, qword [rbx - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400058a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005a65
mov rcx, r8
call fcn.140042ba4
mov qword [rbx - 0x10], r15
mov qword [rbx - 8], 7
mov word [rbx - 0x20], r15w
sub qword [rbp - 0x78], 0x20
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x5c
lea rcx, str.C:Usersleonard_tsaiDesktopASUS_ProjAsusOLEDShifterAsusOLEDShifterAsusOLEDShifterLogHelper.cpp
test eax, eax
je 0x14000592c
call fcn.140044830
lea rcx, str.C:Usersleonard_tsaiDesktopASUS_ProjAsusOLEDShifterAsusOLEDShifterAsusOLEDShifterLogHelper.cpp
test rax, rax
je 0x140005904
mov edx, 0x5c
call fcn.140044830
lea rcx, [rax + 1]
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 1
mov edx, 0xf4
jmp 0x140005971
call fcn.140044830
lea rcx, str.C:Usersleonard_tsaiDesktopASUS_ProjAsusOLEDShifterAsusOLEDShifterAsusOLEDShifterLogHelper.cpp
test rax, rax
je 0x14000594b
mov edx, 0x5c
call fcn.140044830
lea rcx, [rax + 1]
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 2
mov edx, 0xf6
lea r8, str.CleanupLogFiles
call fcn.140004920
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400059c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a47
call fcn.140042ba4
mov rdx, qword [rbp - 0x78]
mov rax, rdx
mov rcx, qword [rbp - 0x80]
sub rax, rcx
sar rax, 5
cmp rax, 7
ja 0x1400057b0
test rcx, rcx
je 0x140005a1b
call fcn.140009250
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a59
call fcn.140042ba4
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140042660
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400494f8
nop
call fcn.1400494f8
int3
call fcn.1400494f8
nop
call fcn.1400494f8
nop
call fcn.1400494f8
int3
call fcn.1400494f8
int3