Function at 0x140022238
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.140113000
mov ebx, eax
lea r14, [0x140173048]
test eax, eax
js 0x140022536
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.14002e184
mov ebx, eax
test eax, eax
js 0x140022536
mov rsi, qword [rbp + 0x58]
test byte [rdi + 0x154], 4
je 0x1400223c7
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.1401010c0
mov ebx, eax
test eax, eax
js 0x14002242b
cmp byte [rbp + 0x40], r12b
jne 0x1400223c7
cmp byte [rbp + 0x48], r12b
jne 0x1400223c7
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rdi + 0x238]
call fcn.140113000
mov ebx, eax
mov r15, qword [rbp + 0x50]
test eax, eax
js 0x140022410
lea r14, [rdi + 0x1e0]
mov rdx, r14
mov rcx, r15
call fcn.140102c70
mov ebx, eax
test eax, eax
js 0x140022410
cmp qword [r14], r12
je 0x1400223c7
mov rcx, rdi
call fcn.140026f54
mov ebx, eax
test eax, eax
js 0x140022410
mov dword [rbp + 0x40], r12d
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rdx, str.CsvHacks
lea rcx, str.CsvSupportSettings
call fcn.14009d3a8
cmp byte [rdi + 0x428], r12b
je 0x1400224b8
cmp dword [rbp + 0x40], r12d
je 0x1400224b8
mov rdx, rsi
mov rcx, qword [r14]
call fcn.14011783c
test eax, eax
jns 0x1400223c7
mov rcx, qword [0x140173048]
lea rdx, [0x140173048]
cmp rcx, rdx
je 0x1400223c7
test byte [rcx + 0x1c], 1
je 0x1400223c7
cmp byte [rcx + 0x19], 2
jb 0x1400223c7
mov edx, 0x155
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.1400152ec
cmp dword [rdi + 0x150], 4
setne dl
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.140100ef8
mov ebx, eax
test eax, eax
js 0x140022410
cmp qword [rdi + 0x1d8], r12
je 0x140022406
lea r8, str.m_wszBackupSetDirectory__NULL
mov edx, 0x1ba6
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
mov qword [rdi + 0x1d8], rsi
mov rsi, r12
test r15, r15
je 0x140022424
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea r14, [0x140173048]
test rsi, rsi
je 0x140022440
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140013bd4
nop
test ebx, ebx
jns 0x14002249d
lea rcx, [rdi + 0x18]
xor r9d, r9d
mov r8d, ebx
mov edx, 0x8078014b
call fcn.140013e24
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14002249d
test byte [rcx + 0x1c], 1
je 0x14002249d
cmp byte [rcx + 0x19], 2
jb 0x14002249d
mov edx, 0x157
mov eax, dword [rdi + 0x24]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x20]
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14003f558
nop
lea rcx, [rbp - 0x20]
call fcn.140006e14
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 0x1400223c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rdx, [0x140173048]
cmp rcx, rdx
je 0x140022520
test byte [rcx + 0x1c], 1
je 0x140022520
cmp byte [rcx + 0x19], 2
jb 0x140022520
mov edx, 0x156
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.140040084
test ebx, ebx
jle 0x140022410
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140022410
mov rsi, qword [rbp + 0x58]
jmp 0x14002242b