Function at 0x140006ca0
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x10], rax
movzx edi, r8b
mov byte [rsp + 0x20], r8b
mov r15, rdx
mov r14, rcx
lea rcx, [rbp - 0x60]
call fcn.140034f00
nop
lea rcx, [rbp - 0x60]
test dil, dil
lea rdx, [r14 + 0x180]
jne 0x140006d07
lea rdx, [r14 + 0x108]
call fcn.140034cb0
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.140034f60
test eax, eax
je 0x140006d26
mov r12d, 0xfffffffd
jmp 0x140007183
lea rcx, [rbp - 0x60]
call fcn.140034b30
mov rbx, rax
test rax, rax
jne 0x140006d5d
cmp byte [r14 + 0x2d0], al
jne 0x140006d5d
cmp byte [r14 + 0x2f8], al
jne 0x140006d5d
lea rdx, [r14 + 0x2b8]
lea r8d, [rax + 2]
lea rcx, [rbp - 0x60]
call fcn.140034dc0
xor cl, cl
mov rax, qword [r14 + 8]
movzx r13d, cl
mov ecx, 1
cmp rbx, rax
cmovge r13d, ecx
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rcx
sar rax, 3
xor r12d, r12d
cmp rax, 1
jbe 0x140006f6b
mov esi, r12d
mov edi, r12d
test rax, rax
je 0x140006dc7
mov ebx, r12d
nop dword [rax]
mov rax, qword [r15]
mov rcx, qword [rbx + rax]
call fcn.140026e10
add esi, eax
inc edi
lea rbx, [rbx + 8]
mov rcx, qword [r15 + 8]
sub rcx, qword [r15]
sar rcx, 3
movsxd rax, edi
cmp rax, rcx
jb 0x140006da0
lea rcx, [rsp + 0x70]
call fcn.14001cac0
nop
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.1400297a0
mov rbx, r12
mov rdx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x140006ead
mov edi, 0x20
nop dword [rax]
cmp byte [r14 + 0x2d0], 0
jne 0x140006e14
cmp byte [r14 + 0x2f8], 0
je 0x140006e72
mov rcx, qword [rdx + rbx*8]
mov r10, qword [rcx + 0x18]
mov rax, r12
add r10, 0xfffffffffffffffe
je 0x140006e72
nop word [rax + rax]
lea rdx, [rcx + 8]
mov r9, qword [rcx + 0x20]
cmp r9, 8
jb 0x140006e42
mov rdx, qword [rcx + 8]
movzx r8d, word [rdx + rax*2]
cmp r8w, 0xd
je 0x140006e55
cmp r8w, 0xa
jne 0x140006e67
lea rdx, [rcx + 8]
cmp r9, 8
jb 0x140006e63
mov rdx, qword [rcx + 8]
mov word [rdx + rax*2], di
inc rax
cmp rax, r10
jb 0x140006e30
mov rdx, qword [r15]
mov r8, qword [rdx + rbx*8]
lea rdx, [r8 + 8]
cmp qword [r8 + 0x20], 8
jb 0x140006e85
mov rdx, qword [r8 + 8]
mov r8, qword [r8 + 0x18]
lea rcx, [rsp + 0x78]
call fcn.140004ac0
inc rbx
mov rdx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jb 0x140006e00
cmp byte [r14 + 0x2d0], 0
jne 0x140006ee9
cmp byte [r14 + 0x2f8], 0
jne 0x140006ee9
lea rcx, [rsp + 0x70]
call fcn.14001f100
movsxd rbx, eax
lea rcx, [rsp + 0x70]
call fcn.14002aa20
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 0x60]
call fcn.140034dc0
jmp 0x140006f57
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140020d90
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140034dc0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140006f57
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006f51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071bc
call fcn.140283144
nop
lea rcx, [rsp + 0x70]
call fcn.14001d440
movzx edi, byte [rsp + 0x20]
jmp 0x14000707a
cmp byte [r14 + 0x2d0], r12b
jne 0x140006fac
cmp byte [r14 + 0x2f8], r12b
jne 0x140006fac
mov rdi, qword [rcx]
mov rcx, rdi
call fcn.14001f100
movsxd rbx, eax
mov rcx, rdi
call fcn.14002aa20
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 0x60]
call fcn.140034dc0
movzx edi, byte [rsp + 0x20]
jmp 0x14000707a
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.140020d90
nop
mov rax, qword [rsp + 0x40]
lea r10, [rax - 2]
mov rcx, r12
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
test r10, r10
je 0x140007023
nop word [rax + rax]
lea rax, [rsp + 0x30]
cmp r8, 0x10
cmovae rax, r9
movzx edx, byte [rax + rcx]
cmp dl, 0xd
je 0x140006ffb
cmp dl, 0xa
jne 0x140007016
lea rax, [rsp + 0x30]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax + rcx], 0x20
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
inc rcx
cmp rcx, r10
jb 0x140006fe0
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
cmp r8, 0x10
cmovae rdx, r9
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.140034dc0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000707a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007075
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071b6
call fcn.140283144
lea rcx, [rbp - 0x60]
call fcn.140034a70
test r13b, r13b
je 0x140007183
test dil, dil
je 0x140007102
cmp byte [r14], 0
je 0x1400070b1
lea rcx, [r14 + 0x180]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140007183
lea rcx, [r14 + 0x1d0]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [r14 + 0x1d0]
call fcn.14002aa20
mov rbx, rax
lea rcx, [r14 + 0x1a8]
call fcn.14002aa20
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [r14 + 0x1a8]
call fcn.14002aa20
lea rcx, [r14 + 0x180]
jmp 0x14000716e
cmp byte [r14], 0
je 0x14000711f
lea rcx, [r14 + 0x108]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140007183
lea rcx, [r14 + 0x158]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [r14 + 0x158]
call fcn.14002aa20
mov rbx, rax
lea rcx, [r14 + 0x130]
call fcn.14002aa20
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [r14 + 0x130]
call fcn.14002aa20
lea rcx, [r14 + 0x108]
mov rbx, rax
call fcn.14002aa20
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop
lea rcx, [rbp - 0x60]
call fcn.140034f20
mov eax, r12d
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140287d84
nop
call fcn.140287d84
int3