Function at 0x140021ff8
Capabilities:
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
xor r12d, r12d
mov byte [rbp + 0x40], r12b
mov byte [rbp + 0x48], r12b
mov qword [rbp + 0x58], r12
mov r15d, r12d
mov qword [rbp + 0x50], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], r12d
lea rdx, [rcx + 0x188]
lea r8, [rbp + 0x58]
mov rcx, qword [rcx + 0x238]
call fcn.14010b880
mov ebx, eax
lea r14, [0x14016a048]
test eax, eax
js 0x1400222f6
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.14002df44
mov ebx, eax
test eax, eax
js 0x1400222f6
mov rsi, qword [rbp + 0x58]
test byte [rdi + 0x154], 4
je 0x140022187
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.1400f9940
mov ebx, eax
test eax, eax
js 0x1400221eb
cmp byte [rbp + 0x40], r12b
jne 0x140022187
cmp byte [rbp + 0x48], r12b
jne 0x140022187
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rdi + 0x238]
call fcn.14010b880
mov ebx, eax
mov r15, qword [rbp + 0x50]
test eax, eax
js 0x1400221d0
lea r14, [rdi + 0x1e0]
mov rdx, r14
mov rcx, r15
call fcn.1400fb4f0
mov ebx, eax
test eax, eax
js 0x1400221d0
cmp qword [r14], r12
je 0x140022187
mov rcx, rdi
call fcn.140026d14
mov ebx, eax
test eax, eax
js 0x1400221d0
mov dword [rbp + 0x40], r12d
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rdx, str.CsvHacks
lea rcx, str.CsvSupportSettings
call fcn.140095c28
cmp byte [rdi + 0x428], r12b
je 0x140022278
cmp dword [rbp + 0x40], r12d
je 0x140022278
mov rdx, rsi
mov rcx, qword [r14]
call fcn.1401100bc
test eax, eax
jns 0x140022187
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x140022187
test byte [rcx + 0x1c], 1
je 0x140022187
cmp byte [rcx + 0x19], 2
jb 0x140022187
mov edx, 0x155
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, [0x14014a790]
mov rcx, qword [rcx + 0x10]
call fcn.1400150ac
cmp dword [rdi + 0x150], 4
setne dl
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.1400f9778
mov ebx, eax
test eax, eax
js 0x1400221d0
cmp qword [rdi + 0x1d8], r12
je 0x1400221c6
lea r8, str.m_wszBackupSetDirectory__NULL
mov edx, 0x1ba6
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140088f60
mov qword [rdi + 0x1d8], rsi
mov rsi, r12
test r15, r15
je 0x1400221e4
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea r14, [0x14016a048]
test rsi, rsi
je 0x140022200
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140013994
nop
test ebx, ebx
jns 0x14002225d
lea rcx, [rdi + 0x18]
xor r9d, r9d
mov r8d, ebx
mov edx, 0x8078014b
call fcn.140013be4
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14002225d
test byte [rcx + 0x1c], 1
je 0x14002225d
cmp byte [rcx + 0x19], 2
jb 0x14002225d
mov edx, 0x157
mov eax, dword [rdi + 0x24]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x20]
lea r8, [0x14014a790]
mov rcx, qword [rcx + 0x10]
call fcn.14003f318
nop
lea rcx, [rbp - 0x20]
call fcn.140006be4
mov eax, ebx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdx, rsi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140022187
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400222e0
test byte [rcx + 0x1c], 1
je 0x1400222e0
cmp byte [rcx + 0x19], 2
jb 0x1400222e0
mov edx, 0x156
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, [0x14014a790]
mov rcx, qword [rcx + 0x10]
call fcn.14003fe44
test ebx, ebx
jle 0x1400221d0
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400221d0
mov rsi, qword [rbp + 0x58]
jmp 0x1400221eb