Function at 0x140027290
Capabilities:
Delete file
Move file

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, 0x2f8
mov rax, qword [0x1400981e8]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r12d, r9d
mov rbx, r8
mov rbp, rdx
mov r15, rcx
test rdx, rdx
jne 0x1400272cb
mov eax, 0x1b62
jmp 0x140027622
cmp qword [rcx + 8], 0
jne 0x1400272dc
mov eax, 0x232e
jmp 0x140027622
mov rax, qword [rcx]
mov qword [rsp + 0x338], rdi
mov qword [rsp + 0x2f0], r14
mov rax, qword [rax + 0x20]
call qword [case.0x140017e6f.8]
mov rcx, qword [r15 + 0x10]
mov rdi, 0xffffffffffffffff
mov r14, qword [r15 + 8]
bt r12d, 9
jae 0x14002737f
test rcx, rcx
je 0x140027363
mov eax, dword [rcx]
test eax, eax
je 0x140027363
nop word [rax + rax]
cmp eax, 1
je 0x140027337
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x140027320
jmp 0x140027363
mov r8d, 0x122
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.140045310
test al, al
jne 0x14002735b
mov eax, 0x1388
jmp 0x140027612
lea r14, [rsp + 0x90]
mov r8d, 4
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x1400275ca
mov qword [rsp + 0x330], rsi
mov rdx, rcx
test rcx, rcx
je 0x1400273dc
mov r8d, dword [rcx]
test r8d, r8d
je 0x1400273dc
mov eax, r8d
nop word [rax + rax]
cmp eax, 1
je 0x14002741d
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x1400273a0
test r8d, r8d
je 0x1400273dc
nop word [rax + rax]
cmp r8d, 1
je 0x140027586
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov r8d, dword [rcx]
test r8d, r8d
jne 0x1400273c0
test rbx, rbx
je 0x140027400
mov eax, dword [rbx]
test eax, eax
je 0x140027400
cmp eax, 1
je 0x140027586
mov eax, dword [rbx + 4]
add rbx, 8
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x1400273e7
mov rdx, rbp
mov rcx, r14
mov esi, edi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14002758a
xor esi, esi
jmp 0x1400275bd
mov rdx, rbx
test rbx, rbx
je 0x1400273b5
mov eax, dword [rbx]
test eax, eax
je 0x1400273b5
nop dword [rax + rax]
cmp eax, 1
je 0x14002744a
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x140027430
jmp 0x1400273b5
test r14, r14
je 0x14002757b
mov rdx, r14
lea rcx, [rsp + 0x38]
call qword [0x140098040]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 0x4020
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x58], 0x30
lea r9, [rsp + 0x48]
mov qword [rsp + 0x60], rsi
lea r8, [rsp + 0x58]
mov dword [rsp + 0x70], 0x40
mov edx, 0x110000
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x78], xmm0
call qword [0x140098010]
test eax, eax
jns 0x1400274d3
lfence
mov ecx, eax
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x1400275bd
mov rbx, rdi
inc rbx
cmp word [rbp + rbx*2], si
jne 0x1400274d6
add rbx, rbx
lea rcx, [rbx + 0x18]
call fcn.14004fe74
mov r14, rax
test rax, rax
jne 0x14002750f
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [section..data]
mov esi, edi
jmp 0x1400275bd
lea rcx, [rax + 0x14]
mov r8, rbx
mov rdx, rbp
call fcn.14004f4b0
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 0x18]
and r12b, 1
mov qword [r14 + 8], rsi
mov r8, r14
mov byte [r14], r12b
lea rdx, [rsp + 0x48]
mov dword [r14 + 0x10], ebx
mov dword [rsp + 0x20], 0xa
call qword [0x140098030]
mov rcx, r14
mov ebx, eax
call fcn.14004fe60
mov ecx, ebx
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [section..data]
test ebx, ebx
setns sil
dec esi
jmp 0x1400275bd
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x1400275bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400275bd
test r12b, 1
je 0x1400275bd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor esi, esi
mov ecx, edi
test eax, eax
cmovne ecx, esi
mov esi, ecx
test esi, esi
mov rsi, qword [rsp + 0x330]
sete al
test al, al
je 0x140027606
nop
inc rdi
cmp word [rbp + rdi*2], 0
jne 0x1400275d0
mov rcx, qword [r15 + 8]
inc rdi
lea rdx, [rdi + rdi]
call fcn.14004fe7c
test rax, rax
je 0x140027602
mov r8, rbp
mov qword [r15 + 8], rax
mov rdx, rdi
mov rcx, rax
call fcn.140048b10
xor eax, eax
jmp 0x140027612
call fcn.14003cef0
mov ecx, eax
call fcn.140048700
mov rdi, qword [rsp + 0x338]
mov r14, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400498a0
add rsp, 0x2f8
pop r15
pop r12
pop rbp
pop rbx
ret