Function at 0x1000b8f40
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0x1170
call fcn.1000ce570
sub rsp, rax
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x1160], rax
xor r12d, r12d
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x112e
mov esi, r12d
mov word [rsp + 0x30], r12w
call sub.msvcrt.dll_memset
lea r13, [0x1000dedd8]
lea r15, [0x100002ed8]
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x20], r12d
jle 0x1000b8fe3
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov qword [rbx + 0x38], rcx
mov eax, dword [rbx + 0x20]
cmp eax, r12d
jle 0x1000b8fe7
dec eax
cmp eax, r12d
je 0x1000b8fde
mov rcx, qword [rbx + 0x18]
movsxd r8, eax
lea rdx, [rcx + 8]
shl r8, 3
call sub.msvcrt.dll_memmove
dec dword [rbx + 0x20]
jmp 0x1000b8fe7
mov qword [rbx + 0x38], r12
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, qword [rbx + 0x38]
cmp rdx, r12
je 0x1000b9212
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1000b8be8
cmp eax, r12d
mov r11d, eax
jl 0x1000b91c0
mov rax, qword [rbx + 8]
cmp rax, r12
je 0x1000b91c0
mov edi, dword [rax + 8]
mov ecx, dword [rax + 0x18]
test dil, 8
je 0x1000b906a
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9058
test byte [rcx + 0x1c], 4
je 0x1000b9058
mov r9, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r9, qword [r9]
mov r8, r15
call fcn.100020614
mov rcx, qword [rbx + 0x38]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000b9205
cmp dword [rbx + 0x2bc], r12d
je 0x1000b90c6
lea rdx, [rsp + 0x30]
mov r8d, 0x898
call fcn.1000ab7c0
cmp eax, r12d
jne 0x1000b90c6
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b90bc
test byte [rcx + 0x1c], 4
je 0x1000b90bc
mov r9, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x10]
lea rax, [rsp + 0x30]
mov r9, qword [r9]
mov edx, 0x2a
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.100020694
lea rdx, [rsp + 0x30]
jmp 0x1000b918c
mov r9, qword [rbx + 0x38]
mov rax, qword [r9 + 0x10]
test dil, 4
je 0x1000b9116
cmp rax, r12
je 0x1000b90f2
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9146
test byte [rcx + 0x1c], 4
je 0x1000b9146
mov edx, 0x2b
jmp 0x1000b9132
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9205
test byte [rcx + 0x1c], 1
je 0x1000b9205
mov edx, 0x2c
jmp 0x1000b91af
cmp rax, r12
je 0x1000b9150
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9146
test byte [rcx + 0x1c], 4
je 0x1000b9146
mov edx, 0x2d
mov r9, qword [r9]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.100020694
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax + 0x10]
jmp 0x1000b918c
mov rax, qword [r9 + 8]
cmp rax, r12
je 0x1000b9198
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9184
test byte [rcx + 0x1c], 4
je 0x1000b9184
mov r9, qword [r9]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2e
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.100020694
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax + 8]
mov rcx, rbx
call fcn.1000b973c
mov esi, eax
jmp 0x1000b9200
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b9205
test byte [rcx + 0x1c], 1
je 0x1000b9205
mov edx, 0x2f
mov r9, qword [r9]
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.100020614
jmp 0x1000b9200
cmp r11d, 0x8007000b
jne 0x1000b9205
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000b91f3
test byte [rcx + 0x1c], 4
je 0x1000b91f3
mov r9, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, qword [r9]
mov r8, r15
call fcn.100020614
mov rcx, qword [rbx + 0x38]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, r12d
jne 0x1000b9212
mov rcx, rbx
call fcn.1000b83bc
jmp 0x1000b8fa0
mov eax, esi
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.1000cd7d0
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret