Function at 0x14021a440
Capabilities:
Delete file

Disassembly:
test ecx, ecx
je 0x14021a6d8
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov ebx, ecx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [rbp + 0x3c8]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [rbp + 0x3cc]
mov dword [rbp + 0x3d4], eax
mov eax, dword [rbp + 0x3c8]
mov dword [rbp + 0x3d0], eax
mov eax, ebx
movabs rcx, 0xc92a69c000
imul rax, rcx
mov rdi, qword [rbp + 0x3d0]
sub rdi, rax
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x80]
call fcn.140249b10
lea rdx, [0x14034ec34]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.Logs
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor r15d, r15d
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140038b60
mov qword [rsp + 0x20], rax
lea rax, vtable.CSASLogManager.0
mov qword [rsp + 0x58], rax
mov rsi, qword [0x14037adb0]
mov qword [rsp + 0x68], rsi
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x60], rbx
mov r14d, r15d
mov qword [rsp + 0x70], r15
test rsi, rsi
jne 0x14021a5a0
lea ecx, [rsi + 0x18]
call fcn.14018ef40
mov rsi, rax
mov qword [rbp + 0x3d0], rax
test rax, rax
je 0x14021a57c
lea rax, vtable.CSABSDKFunctions.0
mov qword [rsi], rax
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
jmp 0x14021a57f
mov rsi, r15
mov qword [rsp + 0x68], rsi
xor r8d, r8d
mov edx, 0x1000
mov rcx, rsi
call fcn.140011040
mov r14, rax
mov qword [rsp + 0x70], rax
mov qword [rsi + 0x10], rax
lea rax, vtable.CSABString.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x80]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14021a5b5
mov dword [rsp + 0x40], ebx
lea ecx, [rbx + 1]
call fcn.140247068
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14021a5e8
mov r8d, dword [rsp + 0x40]
inc r8d
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.1402496a0
mov dword [rsp + 0x44], 1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14021a0f0
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x14021a643
mov eax, dword [rbx + 0x4c]
mov dword [rbp + 0x3d4], eax
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x3d0], eax
cmp qword [rbp + 0x3d0], rdi
jae 0x14021a63b
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x14021a611
test r14, r14
je 0x14021a670
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
test rsi, rsi
je 0x14021a66b
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax + 0x3e0]
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rcx]
mov qword [rcx], rcx
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], rax
mov qword [rsp + 0x28], r15
mov rcx, qword [rsp + 0x20]
cmp rdi, rcx
je 0x14021a6b8
nop
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
mov rax, qword [rcx]
xor edx, edx
call qword [rax]
mov edx, 0x50
mov rcx, rdi
call fcn.140247060
mov rdi, rbx
mov rcx, qword [rsp + 0x20]
cmp rbx, rcx
jne 0x14021a690
mov edx, 0x50
call fcn.140247060
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret