Function at 0x140006e65
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], 0xfffffffffffffffe
lea rsi, [rbp - 0x58]
mov rcx, rsi
call fcn.140039640
mov rax, qword [rsi]
movabs r14, 0x8000000000000000
mov qword [rbp + 0xf0], rax
cmp rax, r14
je 0x14000721d
lea rcx, [rbp - 0x58]
mov rax, qword [rcx + 8]
mov qword [rbp + 0xf8], rax
mov rsi, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0x90], rax
mov byte [rbp + 0x11f], 1
call fcn.140034df0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x108], rax
cmp rax, r14
je 0x14000724f
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], 8
lea r9, str....resdel
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x110], rdx
call fcn.14003d1d0
mov rcx, qword [rbp + 0x108]
mov rdx, qword [rbp + 0x110]
call fcn.14001ef33
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x108], rax
mov rbx, qword [rbp + 0x80]
mov al, 1
mov byte [rbp + 0x11c], al
mov byte [rbp + 0x11b], al
lea rcx, [rbp + 0x98]
mov rdx, qword [rbp + 0xf8]
mov r8, rsi
call fcn.140033bb0
mov rax, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
cmp rax, r14
je 0x140007051
mov rcx, qword [rbp + 0xa8]
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rcx
mov al, 1
mov byte [rbp + 0x11c], al
mov byte [rbp + 0x11b], al
lea rcx, [rbp + 0xd8]
mov r8b, 1
call fcn.14003a2b0
mov rax, qword [rbp + 0xd8]
mov rdi, qword [rbp + 0xe0]
cmp rax, r14
je 0x140007051
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x100], rdi
lea rcx, [rbp + 0x98]
mov rdx, qword [rbp + 0x108]
mov r8, rbx
call fcn.140033bb0
mov rax, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
cmp rax, r14
je 0x140007033
mov rcx, qword [rbp + 0xa8]
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rcx
lea rcx, [rbp + 0xd8]
mov r8b, 1
call fcn.14003a2b0
mov r15, qword [rbp + 0xd8]
mov rdi, qword [rbp + 0xe0]
cmp r15, r14
jne 0x1400070f3
mov r14, qword [rbp + 0x100]
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x140007051
push 2
pop rdx
mov rcx, r14
call fcn.140010c70
mov qword [rbp + 0xd8], rdi
test rdi, rdi
je 0x14000713f
mov al, 1
mov byte [rbp + 0x11e], al
mov byte [rbp + 0x11d], al
lea rdx, [0x14009f148]
lea rcx, [rbp - 0x58]
push 3
pop r8
call fcn.14002b973
lea rdx, [rbp + 0x98]
mov rax, qword [rbp + 0xf0]
mov qword [rdx], rax
mov rax, qword [rbp + 0xf8]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rsi
mov rax, qword [rbp + 0x90]
mov qword [rdx + 0x18], rax
lea rcx, [rbp - 0x58]
call fcn.14002b904
lea rcx, [rbp + 0x98]
lea rdx, [rbp - 0x58]
call fcn.14003d640
lea rcx, [rbp + 0x98]
call fcn.14000189f
mov byte [rbp + 0x11e], 0
mov byte [rbp + 0x11d], 1
lea rcx, [rbp - 0x58]
call fcn.14000149b
mov al, 1
xor esi, esi
jmp 0x1400071a6
push 1
pop r8
mov r14, qword [rbp + 0x100]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x1400071f5
test r15, r15
je 0x140007122
push 2
pop rdx
mov rcx, rdi
call fcn.140010c70
cmp qword [rbp + 0x110], 0
je 0x140007137
push 2
pop rdx
mov rcx, r14
call fcn.140010c70
and qword [rbp + 0xd8], 0
mov al, 1
mov byte [rbp + 0x11e], al
mov byte [rbp + 0x11d], al
lea rdx, [0x14009f148]
lea rcx, [rbp - 0x58]
push 3
pop r8
call fcn.14002b973
lea rcx, [rbp - 0x58]
lea rdx, [rbp + 0x70]
call fcn.14002b904
lea rcx, [rbp + 0x98]
lea rdx, [rbp - 0x58]
call fcn.14003d640
lea rcx, [rbp + 0x98]
call fcn.14000189f
mov byte [rbp + 0x11e], 1
mov byte [rbp + 0x11d], 0
lea rcx, [rbp - 0x58]
call fcn.14000149b
mov sil, 1
xor eax, eax
mov byte [rbp + 0x11c], sil
mov byte [rbp + 0x11b], al
lea rcx, [rbp + 0xd8]
call fcn.14000187c
test sil, sil
je 0x1400071d4
mov rcx, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xf8]
jmp 0x1400071df
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x108]
call fcn.14001ef33
nop
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r15, r15
je 0x140007215
push 2
pop rdx
mov rcx, rdi
call fcn.140010c70
mov rdi, rbx
jmp 0x14000703a
mov rax, qword [rbp - 0x50]
lea r8, [rbp + 0x98]
mov qword [r8], rax
lea rax, [0x14009f110]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, fcn.140001408
push 0x2b
pop rdx
call fcn.140053300
jmp 0x14000727f
mov rax, qword [rbp - 0x50]
lea r8, [rbp + 0x98]
mov qword [r8], rax
lea rax, [0x14009f128]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, fcn.140001408
push 0x2b
pop rdx
call fcn.140053300
ud2