Function at 0x1400c06e8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x2c8]
sub rsp, 0x390
xor ebx, ebx
xor edi, edi
xor r14d, r14d
and qword [rsp + 0x50], rbx
and qword [rsp + 0x58], rbx
and qword [rsp + 0x78], rbx
cmp dword [rbp + 0x310], 2
mov rsi, rcx
lea eax, [rdi + 0x20]
lea ecx, [rdi + 0x18]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x60], r14
cmove eax, ecx
mov dword [rsp + 0x68], eax
test rsi, rsi
je 0x1400c0768
lea rdx, [0x140173e7c]
mov rcx, rsi
call sub.msvcrt.dll__wfopen
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x1400c0798
mov rcx, qword [0x140845c04]
cdq
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
imul eax, r8d
imul eax, r9d
add eax, 0x8000
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x60], rax
test rbx, rbx
jne 0x1400c07a6
test r14, r14
je 0x1400c0b20
lea rcx, str.1.6.37
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.140127af8
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400c0ac4
lea rdx, [sub.msvcrt.dll_longjmp]
mov r8d, 0x100
mov rcx, rax
call fcn.140121cf8
mov rdx, rsp
mov rcx, rax
call sub.msvcrt.dll__setjmp
test eax, eax
je 0x1400c0843
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140127bc4
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400c080a
call fcn.1400f450c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400c0828
call sub.msvcrt.dll_fclose
mov rcx, qword [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400c083c
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x140845c04]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x1400c0b23
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400c0861
mov rdx, rbx
call fcn.14011cdd4
jmp 0x1400c086d
lea rdx, [rbp - 0x80]
mov r8, r14
call fcn.1400c0b7c
mov rcx, qword [rsp + 0x50]
call fcn.14011bae4
mov rcx, qword [rsp + 0x50]
mov esi, 8
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x58], rax
call fcn.140128758
mov rcx, qword [rsp + 0x50]
lea edx, [rsi + 1]
call fcn.1401286cc
mov edi, dword [rbp + 0x308]
lea eax, [rdi - 1]
cmp eax, 7
ja 0x1400c09df
mov eax, dword [rbp + 0x300]
mov r15d, dword [rbp + 0x2e8]
mov r9d, dword [rsp + 0x68]
mov edx, dword [rbp + 0x2e0]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x2f0]
mov ecx, edi
lea r12d, [rsi - 7]
mov r8d, r15d
shl r12d, cl
mov rcx, qword [rbp + 0x2d8]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.1400f42f0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r8d, dword [rbp + 0x2e0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, r15d
mov dword [rsp + 0x28], 3
mov rsi, rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], edi
call fcn.140129b7c
movsxd r8, r12d
test r12d, r12d
jle 0x1400c095a
lea rcx, [rbp - 0x6f]
lea rdx, [rsi + 0x59]
mov al, byte [rdx + 1]
mov byte [rcx - 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
mov byte [rcx], al
mov al, byte [rdx - 5]
lea rcx, [rcx + 3]
mov byte [rcx - 2], al
dec r8
jne 0x1400c093d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x70]
mov r9d, r12d
call fcn.140129c68
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140129048
test byte [rbp + 0x2f8], 2
je 0x1400c09ad
lea edi, [r15 - 1]
test edi, edi
js 0x1400c09d2
mov edx, edi
mov rcx, rsi
call fcn.1400f456c
mov rcx, qword [rsp + 0x50]
mov rdx, rax
call fcn.1401295fc
dec edi
jns 0x1400c0990
jmp 0x1400c09d2
xor edi, edi
test r15d, r15d
jle 0x1400c09d2
mov edx, edi
mov rcx, rsi
call fcn.1400f456c
mov rcx, qword [rsp + 0x50]
mov rdx, rax
call fcn.1401295fc
inc edi
cmp edi, r15d
jl 0x1400c09b4
mov rcx, rsi
call fcn.1400f450c
jmp 0x1400c0a9a
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
mov eax, dword [rbp + 0x310]
and dword [rsp + 0x30], 0
mov edi, dword [rbp + 0x2e8]
mov r8d, dword [rbp + 0x2e0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov r9d, edi
mov dword [rsp + 0x20], esi
call fcn.140129b7c
mov rcx, qword [rsp + 0x50]
call fcn.1401278ec
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140129048
test byte [rbp + 0x2f8], 2
je 0x1400c0a73
lea eax, [rdi - 1]
imul eax, dword [rbp + 0x2f0]
movsxd rsi, eax
add rsi, qword [rbp + 0x2d8]
test edi, edi
jle 0x1400c0a9a
movsxd r15, dword [rbp + 0x2f0]
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call fcn.1401295fc
sub rsi, r15
dec rdi
jne 0x1400c0a5c
jmp 0x1400c0a9a
mov rsi, qword [rbp + 0x2d8]
test edi, edi
jle 0x1400c0a9a
movsxd r15, dword [rbp + 0x2f0]
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call fcn.1401295fc
add rsi, r15
dec rdi
jne 0x1400c0a85
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140128acc
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140127bc4
mov rsi, qword [rbp + 0x2d0]
mov edi, 1
test rbx, rbx
je 0x1400c0ae1
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
jne 0x1400c0b20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400c0b20
test rdi, rdi
je 0x1400c0b0e
mov rcx, qword [rbp - 0x78]
mov edx, 1
call fcn.1400f8af0
mov rbx, rax
test rax, rax
je 0x1400c0b0e
mov r8, qword [rbp - 0x78]
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rdi, rbx
mov rcx, qword [0x140845c04]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
add rsp, 0x390
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret