Function at 0x1400368d4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15, rdx
mov qword [rax + 0x18], rbx
mov ebp, ebx
mov r14, rcx
mov rcx, qword [0x14009b028]
lea r13, [0x14009b028]
cmp rcx, r13
je 0x14003692b
test byte [rcx + 0x1c], 4
je 0x14003692b
cmp byte [rcx + 0x19], 5
jb 0x14003692b
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
lea r8, [0x1400896c8]
call fcn.140001024
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r14
call fcn.140069a1c
mov rsi, rax
mov dil, 2
cmp rax, 0xffffffffffffffff
jne 0x1400369ad
mov rax, qword [0x14009b028]
cmp rax, r13
je 0x140036b20
test byte [rax + 0x1c], 4
je 0x140036b20
cmp byte [rax + 0x19], dil
jb 0x140036b20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rsi + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140001328
jmp 0x140036b20
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14003ea9c
test eax, eax
je 0x1400369e9
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x140036b20
test byte [rcx + 0x1c], 4
je 0x140036b20
cmp byte [rcx + 0x19], dil
jb 0x140036b20
mov edx, 0x26
jmp 0x140036991
cmp dword [rsp + 0x78], 1
jne 0x140036a8a
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14003f5a0
test eax, eax
je 0x140036ba1
cmp eax, 0x80091007
jne 0x140036a5c
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x140036b1b
test byte [rcx + 0x1c], 4
je 0x140036b1b
cmp byte [rcx + 0x19], dil
jb 0x140036b1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
mov edx, 0x27
mov dword [rsp + 0x20], 0x80091007
mov r9, r14
call fcn.140001328
jmp 0x140036b1b
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x140036b20
test byte [rcx + 0x1c], 4
je 0x140036b20
cmp byte [rcx + 0x19], dil
jb 0x140036b20
mov edx, 0x28
jmp 0x140036991
cmp dword [rsp + 0x78], 0x678
jne 0x140036b1b
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14003f788
mov edi, eax
test eax, eax
je 0x140036ba1
mov rcx, qword [0x14009b028]
cmp rcx, r13
je 0x140036aed
test byte [rcx + 0x1c], 4
je 0x140036aed
cmp byte [rcx + 0x19], 2
jb 0x140036aed
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
mov edx, 0x29
mov dword [rsp + 0x20], eax
mov r9, r14
call fcn.140001328
mov rcx, qword [0x14009b028]
cmp edi, 0x570
jne 0x140036b20
cmp rcx, r13
je 0x140036b1b
test byte [rcx + 0x1c], 4
je 0x140036b1b
cmp byte [rcx + 0x19], 2
jb 0x140036b1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
mov edx, 0x2a
call fcn.140001024
mov ebp, 1
mov rcx, qword [rsp + 0x80]
call fcn.140066f24
mov rdi, rbx
test ebp, ebp
je 0x140036ba9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, r14
or rsi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140036bbe
mov rax, qword [0x14009b028]
cmp rax, r13
je 0x140036bbe
test byte [rax + 0x1c], 4
je 0x140036bbe
cmp byte [rax + 0x19], 2
jb 0x140036bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rsi + 0x2c]
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, [0x1400896c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001328
jmp 0x140036ba9
mov rdi, qword [rsp + 0x80]
cmp rsi, 0xffffffffffffffff
je 0x140036bbe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov qword [r15], rdi
mov rbp, qword [r11 + 0x48]
test rdi, rdi
setne bl
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret