Function at 0x1400b434c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
xor esi, esi
xor edi, edi
xor r14d, r14d
and qword [rbp + 0x2b0], rsi
and qword [rsp + 0x50], rsi
cmp dword [rbp + 0x2f0], 2
lea eax, [rsi + 0x18]
lea r13d, [rsi + 0x20]
mov ebx, r9d
cmove r13d, eax
mov r15, rdx
mov r12, rcx
test rcx, rcx
je 0x1400b43b4
lea rdx, [0x1401b35ac]
call sub.msvcrt.dll__wfopen
mov rdi, rax
jmp 0x1400b43e1
mov rcx, qword [0x14088c668]
mov eax, r13d
cdq
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
imul eax, r8d
imul eax, ebx
add eax, 0x8000
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rdi, rdi
jne 0x1400b43ef
test r14, r14
je 0x1400b474a
lea rcx, str.1.6.37
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.14015d290
mov qword [rbp + 0x2b0], rax
test rax, rax
je 0x1400b46ec
lea rdx, [sub.msvcrt.dll_longjmp]
mov r8d, 0x100
mov rcx, rax
call fcn.140156890
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_setjmp
test eax, eax
je 0x1400b4478
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2b0]
call fcn.14015d370
test rdi, rdi
je 0x1400b445f
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400b4471
mov rcx, qword [0x14088c668]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x1400b474d
mov rcx, qword [rbp + 0x2b0]
test rdi, rdi
je 0x1400b448e
mov rdx, rdi
call fcn.140150e00
jmp 0x1400b449b
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.1400b47ac
mov rcx, qword [rbp + 0x2b0]
call fcn.14014f9c0
mov rcx, qword [rbp + 0x2b0]
xor edx, edx
lea r8d, [rdx + 8]
mov qword [rsp + 0x50], rax
call fcn.14015dfe0
mov rcx, qword [rbp + 0x2b0]
mov edx, 9
call fcn.14015df30
mov esi, dword [rbp + 0x2e8]
lea eax, [rsi - 1]
cmp eax, 7
ja 0x1400b460e
mov edx, dword [rbp + 0x2c0]
mov ecx, esi
mov eax, 1
shl eax, cl
mov r9d, r13d
mov r8d, ebx
mov dword [rbp + 0x2f0], eax
mov eax, dword [rbp + 0x2e0]
mov rcx, r15
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x2d0]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
call fcn.1400e9900
mov r8d, dword [rbp + 0x2c0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
mov r15, rax
xor eax, eax
mov r9d, ebx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
call fcn.14015fb70
movsxd r9, dword [rbp + 0x2f0]
mov r8, r9
test r9d, r9d
jle 0x1400b4589
lea rcx, [rsp + 0x71]
lea rdx, [r15 + 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 0x1400b456c
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
lea r8, [rsp + 0x70]
call fcn.14015fc60
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
call fcn.14015ec80
test byte [rbp + 0x2d8], 2
je 0x1400b45dc
dec ebx
js 0x1400b4601
mov edx, ebx
mov rcx, r15
call fcn.1400e9b7c
mov rcx, qword [rbp + 0x2b0]
mov rdx, rax
call fcn.14015f2c0
dec ebx
jns 0x1400b45bd
jmp 0x1400b4601
xor esi, esi
test ebx, ebx
jle 0x1400b4601
mov edx, esi
mov rcx, r15
call fcn.1400e9b7c
mov rcx, qword [rbp + 0x2b0]
mov rdx, rax
call fcn.14015f2c0
inc esi
cmp esi, ebx
jl 0x1400b45e2
mov rcx, r15
call fcn.1400e9b1c
jmp 0x1400b46c5
mov eax, dword [rbp + 0x2f0]
mov r8d, dword [rbp + 0x2c0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
xor esi, esi
mov r9d, ebx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 8
call fcn.14015fb70
mov rcx, qword [rbp + 0x2b0]
call fcn.140157210
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
call fcn.14015ec80
test byte [rbp + 0x2d8], 2
je 0x1400b46a3
lea eax, [rbx - 1]
imul eax, dword [rbp + 0x2d0]
movsxd rsi, eax
add rsi, r15
test ebx, ebx
jle 0x1400b46c5
movsxd r15, dword [rbp + 0x2d0]
mov rcx, qword [rbp + 0x2b0]
mov rdx, rsi
call fcn.14015f2c0
sub rsi, r15
dec rbx
jne 0x1400b468a
jmp 0x1400b46c5
test ebx, ebx
jle 0x1400b46c5
movsxd rsi, dword [rbp + 0x2d0]
mov rcx, qword [rbp + 0x2b0]
mov rdx, r15
call fcn.14015f2c0
add r15, rsi
dec rbx
jne 0x1400b46ae
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x2b0]
call fcn.14015e370
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2b0]
call fcn.14015d370
mov esi, 1
test rdi, rdi
je 0x1400b4709
mov rcx, rdi
call sub.msvcrt.dll_fclose
test rsi, rsi
jne 0x1400b474a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400b474a
test rsi, rsi
je 0x1400b4738
mov rcx, qword [rsp + 0x60]
mov edx, 1
call fcn.1400ee170
mov rbx, rax
test rax, rax
je 0x1400b4738
mov r8, qword [rsp + 0x60]
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rsi, rbx
mov rcx, qword [0x14088c668]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rsi
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret