Function at 0x1400042dc
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x40], rax
cmp dword [0x14001b598], 0
jne 0x140004385
lea rdx, str.TotalMaxSizeMB
lea rcx, [0x140014d60]
xor r9d, r9d
xor r8d, r8d
mov dword [0x14001b598], 1
call qword [sym.imp.eToken.dll_etPropDefineInt]
lea rdx, str.ManageTimeInterval
lea rcx, [0x140014d60]
mov r9d, 0x3c
xor r8d, r8d
call qword [sym.imp.eToken.dll_etPropDefineInt]
lea rcx, str.TotalMaxSizeMB
call qword [sym.imp.eToken.dll_prop]
lea rcx, str.ManageTimeInterval
movsxd rdx, eax
shl rdx, 0x14
mov qword [0x14001b588], rdx
call qword [sym.imp.eToken.dll_prop]
mov dword [0x14001b574], eax
cmp qword [0x14001b588], 0
je 0x140004594
call fcn.140008d98
mov ecx, dword [0x14001b574]
imul ecx, ecx, 0x3c
movsxd rdx, ecx
add rdx, qword [0x14001b590]
cmp rax, rdx
jle 0x140004594
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.140009540
lea rax, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
lea rdx, str.eTSrvProcessLog
lea rcx, str.SACSrvLog
xor esi, esi
xor edi, edi
mov qword [rsp + 0x28], rax
call fcn.140001208
mov rcx, rax
mov r15, rax
call fcn.140001214
lea rcx, [rsp + 0x30]
call fcn.140008fd4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call fcn.140004084
mov rbx, qword [rsp + 0x20]
jmp 0x14000443e
cmp dword [rbx + 0x28], edi
je 0x14000443b
mov rcx, qword [rbx + 0x40]
lea rdx, [rbx + 0x30]
mov r8, rbx
call fcn.140004084
add esi, eax
mov rbx, qword [rbx]
lea rax, [rsp + 0x20]
cmp rbx, rax
jne 0x140004424
mov ecx, esi
shl ecx, 3
call qword [sym.imp.eToken.dll_etAllocateMemory]
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
mov r14, rax
xor r10d, r10d
xor eax, eax
cmp rbx, rcx
je 0x140004561
lea rdx, [rbx + 0x30]
mov rcx, qword [rdx]
jmp 0x14000448e
cmp dword [rcx + 0x28], 0
jne 0x14000448b
mov qword [r14 + rax*8], rcx
inc r10d
inc rax
add rdi, qword [rcx + 0x18]
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x140004477
mov rbx, qword [rbx]
lea rcx, [rsp + 0x20]
cmp rbx, rcx
jne 0x14000446e
cmp rdi, qword [0x14001b588]
jbe 0x140004513
mov edx, r10d
mov rcx, r14
call fcn.140004230
xor ebx, ebx
movsxd r12, r10d
cmp rbx, r12
jge 0x140004513
mov rsi, qword [r14 + rbx*8]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140004507
mov r8, qword [rsi + 0x40]
lea rdx, str.entry__path
mov rcx, r15
call fcn.140001354
lea rdx, str.Deleted_file
mov rcx, r15
call fcn.1400012b0
sub rdi, qword [rsi + 0x18]
mov rcx, rsi
call fcn.140008538
mov rcx, rsi
call qword [sym.imp.eToken.dll_etFreeMemory]
inc rbx
cmp rdi, qword [0x14001b588]
ja 0x1400044b9
mov rbx, qword [rsp + 0x20]
jmp 0x140004561
cmp dword [rbx + 0x28], 0
je 0x140004555
lea rax, [rbx + 0x30]
cmp rax, qword [rax]
jne 0x140004555
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov r8, qword [rbx + 0x40]
lea rdx, str.folder__path
mov rcx, r15
call fcn.140001354
lea rdx, str.Deleted_directory
mov rcx, r15
call fcn.1400012b0
lea rcx, [rbx + 0x30]
call fcn.140008600
mov rbx, qword [rbx]
lea rax, [rsp + 0x20]
cmp rbx, rax
jne 0x14000451a
lea rcx, [rsp + 0x20]
call fcn.140008600
mov rcx, r14
call qword [sym.imp.eToken.dll_etFreeMemory]
call fcn.140008d98
xor edx, edx
mov rcx, r15
mov qword [0x14001b590], rax
call fcn.140001238
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140009450
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret