Function at 0x14000db50
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push r15
sub rsp, 0x28
mov ebp, edx
mov r15, rcx
cmp edx, 1
je 0x140033da4
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400aaa28]
mov rbx, qword [r15]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
lea r12, [0x1400a92b0]
test rbx, rbx
je 0x140033ea7
cmp dword [rbx], 0x6060
jne 0x140033ea7
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x140033dc8
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor esi, esi
cmp qword [rbx + 0x60], rsi
jne 0x140033de2
mov rax, qword [rbx + 8]
mov rdi, qword [rax + 0x118]
mov rcx, rdi
call qword [0x1400719c8]
mov rcx, qword [rbx + 0x10]
call rdi
test eax, eax
je 0x14000dccb
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140033e1b
mov rcx, qword [0x1400aa938]
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x50], esi
cmp rcx, rbx
je 0x140033e2d
test rcx, rcx
jne 0x140033e3d
cmp qword [rbx + 0x18], rsi
jne 0x140033e60
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x140033e6f
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140033e7b
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x14000dc76
mov rcx, qword [0x1400aae20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400aae20]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 1
mov r14, qword [rsp + 0x20]
cmp ebp, 1
je 0x140033ec6
mov rbx, qword [rsp + 0x40]
test edi, edi
mov rdi, qword [rsp + 0x50]
mov qword [r15], rsi
mov rsi, qword [rsp + 0x48]
je 0x140033ee2
lock dec dword [0x1400aa930]
xor eax, eax
mov r12, qword [rsp + 0x58]
add rsp, 0x28
pop r15
pop rbp
ret
mov edi, esi
jmp 0x14000dc8d
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
test eax, eax
je 0x14000db66
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
nop
jmp 0x14000dcc3
test byte [rax + 0xc], 2
je 0x14000dbb8
xor edx, edx
mov rcx, rbx
call fcn.14000f484
nop
jmp 0x14000dbb8
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x140033e09
test byte [rcx + 0x1c], 4
je 0x140033e09
mov rcx, qword [rcx + 0x10]
lea r8, [0x140075f90]
mov edx, 0x10
call fcn.14003d1bc
mov rcx, qword [rbx + 0x60]
call fcn.14000c624
mov qword [rbx + 0x60], rsi
jmp 0x14000dbd1
mov qword [rax + 8], rsi
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140033e1b
jmp 0x14000dc0d
mov rax, qword [rbx + 0x28]
mov qword [0x1400aa938], rax
jmp 0x14000dc2c
mov rax, qword [rcx + 0x28]
cmp rax, rbx
je 0x140033e53
mov rcx, rax
test rax, rax
jne 0x140033e3d
jmp 0x14000dc2c
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x28], rax
jmp 0x14000dc2c
lea rcx, [rbx + 0x18]
call fcn.14000f380
nop
jmp 0x14000dc36
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x14000dc51
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
test eax, eax
jne 0x140033e95
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
mov rcx, qword [rbx + 0x40]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rbx + 0x40], rsi
jmp 0x14000dc5e
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor esi, esi
jmp 0x14000dccb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x14000dc9b
mov rax, qword [0x1400a92b0]
cmp rax, r12
je 0x140033f19
test byte [rax + 0x44], 1
je 0x140033f19
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
lea r8, [0x140075e20]
mov r9d, eax
mov edx, 0x2f
mov rcx, qword [rcx + 0x38]
call fcn.14003d1e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
nop
jmp 0x14000dcbe