Function at 0x140032a44
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x500
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, r8
mov rsi, rdx
mov r15, rcx
call fcn.140010170
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor r12d, r12d
mov qword [rbp - 0x30], r12
lea rax, [rbp + 0x340]
mov qword [rsp + 0x50], rax
lea r13d, [r12 + 7]
mov qword [rbp + 0x360], r13
mov qword [rbp + 0x358], r12
mov word [rbp + 0x348], r12w
lea rdx, [rsi + 0x28]
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
lea rcx, [rbp + 0x340]
call fcn.140005514
nop
mov qword [rbp + 0x388], r13
mov qword [rbp + 0x380], r12
mov word [rbp + 0x370], r12w
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x368]
call fcn.140005514
nop
lea r9, [rbp - 0x48]
mov r8b, byte [rsi + 0x50]
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x368]
call fcn.14001b654
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov rax, qword [rsi + 0x58]
lea rcx, [0x140031d40]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x68]
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
call fcn.14001a118
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14001f468
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140019830
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, rsi
lea rdx, [rbp - 0x68]
mov rcx, r15
call fcn.140036738
mov r8b, 1
lea rdx, [fcn.1400131d0]
mov rcx, rbx
call fcn.14001e214
test al, al
je 0x140032f27
mov r14d, r12d
mov esi, r12d
mov r8, qword [rbp - 0x60]
test r8, r8
jne 0x140032bde
mov rdx, r12
jmp 0x140032c00
mov rcx, qword [rbp - 0x58]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jae 0x140032f27
mov eax, 0x5c
mov word [rsp + 0x30], ax
lea rdi, [rsi + r8]
lea r9d, [rax - 0x5b]
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140035228
mov qword [rbp + 0x360], r13
mov qword [rbp + 0x358], r12
mov word [rbp + 0x348], r12w
lea rbx, [rax + 1]
or r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x340]
call fcn.140005514
nop
mov rdx, qword [rbp - 0x60]
add rdx, rsi
mov qword [rbp + 0x388], r13
mov qword [rbp + 0x380], r12
mov word [rbp + 0x370], r12w
mov r9, rbx
xor r8d, r8d
lea rcx, [rbp + 0x368]
call fcn.140005514
nop
xor r9d, r9d
lea r8, [rbp + 0x340]
lea rdx, [rbp + 0x368]
lea rcx, [rbp + 0x390]
call fcn.1400159e8
nop
cmp qword [rbp + 0x388], 8
jb 0x140032cc1
mov rcx, qword [rbp + 0x370]
call fcn.1400110f8
mov qword [rbp + 0x388], r13
mov qword [rbp + 0x380], r12
mov word [rbp + 0x370], r12w
cmp qword [rbp + 0x360], 8
jb 0x140032ced
mov rcx, qword [rbp + 0x348]
call fcn.1400110f8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
lea rax, [fcn.140036e80]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x390]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.140019598
mov r9, rax
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140019ff4
mov r8, qword [rbp - 0x80]
test r8, r8
jne 0x140032d3f
mov rdx, r12
jmp 0x140032d64
mov rcx, qword [rbp - 0x78]
sub rcx, r8
movabs rax, 0xb21642c8590b2165
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
je 0x140032db2
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov rdx, r8
lea rcx, [rbp - 0x20]
call fcn.14001f364
mov rbx, rax
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x140032d8f
mov eax, r12d
jmp 0x140032da0
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140010c4b.0]
nop
mov edx, eax
mov rcx, rbx
call fcn.140035f70
test al, al
je 0x140032ead
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp - 0x20]
call fcn.14000b65c
nop
mov rbx, qword [rbp - 0x60]
add rbx, rsi
lea rdx, str._ndeleting_file
lea rcx, [rbp - 0x10]
call fcn.14000aa8c
mov rcx, rax
mov rdx, rbx
call fcn.14000acc0
lea rdx, [rbp + 0x340]
lea rcx, [rbp - 8]
call fcn.14001097c
nop
mov edx, 2
lea rcx, [rbp + 0x340]
call fcn.140013160
nop
cmp qword [rbp + 0x360], 8
jb 0x140032e20
mov rcx, qword [rbp + 0x348]
call fcn.1400110f8
mov rax, qword [rbp - 0x60]
lea rcx, [rax + 8]
add rcx, rsi
cmp qword [rsi + rax + 0x20], 8
jb 0x140032e36
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140032e8e
mov qword [rbp + 0x360], r13
mov qword [rbp + 0x358], r12
mov word [rbp + 0x348], r12w
lea r8d, [rax + 0xa]
lea rdx, str.DeleteFile
lea rcx, [rbp + 0x340]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp + 0x340]
call fcn.140013d9c
nop
lea rcx, [rbp + 0x78]
call fcn.14000c1e4
nop
lea rax, [0x1400422a0]
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.140011e54
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140032ecd
lea r8, [rsp + 0x78]
mov rdx, qword [rbp - 0x78]
call fcn.140018c58
mov rcx, qword [rbp - 0x80]
call fcn.1400110f8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
cmp qword [rbp + 0x3d8], 8
jb 0x140032eef
mov rcx, qword [rbp + 0x3c0]
call fcn.1400110f8
mov qword [rbp + 0x3d8], r13
mov qword [rbp + 0x3d0], r12
mov word [rbp + 0x3c0], r12w
cmp qword [rbp + 0x3b0], 8
jb 0x140032f1b
mov rcx, qword [rbp + 0x398]
call fcn.1400110f8
inc r14
add rsi, 0x28
jmp 0x140032bd0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140032f4a
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
call fcn.140018c58
mov rcx, qword [rsp + 0x60]
call fcn.1400110f8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
lea rcx, [rbp - 0x68]
call fcn.14000ead0
nop
lea rcx, [rbp - 0x48]
call fcn.14000ead0
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140012560
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret