Function at 0x140037688
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
and qword [rax + 8], 0
mov rdi, rcx
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
lea r12, [0x1401529e0]
cmp rcx, r14
je 0x1400376dc
test byte [rcx + 0x1c], 1
je 0x1400376dc
cmp byte [rcx + 0x19], 4
jb 0x1400376dc
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r8, r12
call fcn.14000c328
test byte [rdi + 0x154], 4
jne 0x1400376fd
lea r8, str.OVERWRITE_m_ulFeatures_
mov edx, 0x1be2
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
mov rcx, qword [rdi + 0x238]
lea rdx, [rdi + 0x188]
lea r8, [rsp + 0x40]
call fcn.140113000
mov ebx, eax
test eax, eax
js 0x1400378a1
mov rax, qword [rdi + 0x1e0]
test rax, rax
je 0x1400377e7
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140037762
test byte [rcx + 0x1c], 1
je 0x140037762
cmp byte [rcx + 0x19], 4
jb 0x140037762
mov r9, qword [rsp + 0x40]
mov edx, 0x159
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.140015238
mov rdx, qword [rdi + 0x1e0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400377e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400377d1
test byte [rcx + 0x1c], 1
je 0x1400377d1
cmp byte [rcx + 0x19], 2
jb 0x1400377d1
mov rax, qword [rdi + 0x1e0]
mov edx, 0x15a
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.140040084
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x1400378a8
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400378a8
cmp dword [rdi + 0x150], 4
je 0x1400378a1
mov rax, qword [rdi + 0x240]
test rax, rax
je 0x1400378a1
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140037839
test byte [rcx + 0x1c], 1
je 0x140037839
cmp byte [rcx + 0x19], 4
jb 0x140037839
mov r9, qword [rdi + 0x238]
mov edx, 0x15b
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.140015238
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi + 0x238]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400378a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400377d1
test byte [rcx + 0x1c], 1
je 0x1400377d1
cmp byte [rcx + 0x19], 2
jb 0x1400377d1
mov rax, qword [rdi + 0x240]
mov edx, 0x15c
mov r9, qword [rdi + 0x238]
jmp 0x1400377b5
mov rcx, qword [0x140173048]
cmp qword [rsp + 0x40], 0
je 0x1400378c8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x1400378f8
cmp rcx, r14
je 0x14003791a
test byte [rcx + 0x1c], 1
je 0x1400378f8
cmp byte [rcx + 0x19], 2
jb 0x1400378f8
mov rcx, qword [rcx + 0x10]
mov edx, 0x15d
mov r9d, ebx
mov r8, r12
call fcn.14000c47c
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14003791a
test byte [rcx + 0x1c], 1
je 0x14003791a
cmp byte [rcx + 0x19], 4
jb 0x14003791a
mov rcx, qword [rcx + 0x10]
mov edx, 0x15e
mov r8, r12
call fcn.14000c328
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret