Function at 0x14000eb40
Capabilities:
Delete file
Move file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rax, r8
mov r14, rdx
mov rsi, rcx
mov ebx, 0x8007000e
xor edi, edi
mov qword [r11 - 0x58], rdi
mov qword [r11 - 0x50], rdi
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14000eb95
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x78], rdi
mov rax, qword [rsp + 0xb0]
test r14, r14
je 0x14000ee31
test rax, rax
je 0x14000ee31
mov r13d, 1
mov ecx, r13d
call fcn.140009730
mov r15, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14000ee36
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov r12, rax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcslen]
lea esi, [rax + 1]
add esi, r12d
lea eax, [r13 + 1]
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000eca3
lea eax, [r12 + 1]
mov ecx, eax
mov ebx, edi
dec rax
mov r12d, 0x80070057
cmp rax, 0x7ffffffe
cmova ebx, r12d
mov dword [rsp + 0x34], ebx
test ebx, ebx
js 0x14000ec48
mov r9, r15
mov edx, ecx
mov rcx, r14
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x14000ec51
test rcx, rcx
je 0x14000ec51
mov word [r14], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000eca9
lea r8, [rsp + 0xb8]
mov rdx, rsi
mov rcx, r14
call fcn.1400095a4
mov ebx, eax
test eax, eax
js 0x14000ec93
mov rax, qword [rsp + 0xb8]
sub rsi, rax
lea rcx, [r14 + rax*2]
mov r9, qword [rsp + 0xa8]
mov rdx, rsi
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
cmovns ebx, r13d
mov dword [rsp + 0x30], ebx
jmp 0x14000eca9
mov r12d, 0x80070057
jmp 0x14000ecc8
or rsi, 0xffffffffffffffff
test ebx, ebx
js 0x14000ee1a
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcslen]
mov rbx, rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.msvcrt.dll_wcslen]
lea edx, [rax + 1]
add edx, ebx
mov qword [rsp + 0xa8], rdx
lea eax, [rsi + 3]
mul rdx
cmovo rax, rsi
mov rcx, rax
call fcn.1400192cc
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000edae
lea eax, [rbx + 1]
mov ecx, eax
mov ebx, edi
dec rax
cmp rax, 0x7ffffffe
cmova ebx, r12d
mov dword [rsp + 0x38], ebx
test ebx, ebx
js 0x14000ed4f
mov r9, r15
mov edx, ecx
mov rcx, rsi
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x38], eax
jmp 0x14000ed57
test rcx, rcx
je 0x14000ed57
mov word [rsi], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000edb7
lea r8, [rsp + 0xb8]
mov r12, qword [rsp + 0xa8]
mov rdx, r12
mov rcx, rsi
call fcn.1400095a4
mov ebx, eax
test eax, eax
js 0x14000eda1
mov rax, qword [rsp + 0xb8]
sub r12, rax
lea rcx, [rsi + rax*2]
mov r9, qword [rsp + 0xb0]
mov rdx, r12
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000edb7
mov ebx, r13d
jmp 0x14000edb3
mov ebx, 0x8007000e
mov dword [rsp + 0x30], ebx
jmp 0x14000edd5
test ebx, ebx
js 0x14000ee0d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov r8d, r13d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
jne 0x14000ee0b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000ee0d
mov ebx, edi
test rsi, rsi
je 0x14000ee1a
mov rcx, rsi
call sub.msvcrt.dll_free
test r14, r14
je 0x14000ee27
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x14000ee36
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret