Function at 0x18008faf0
Capabilities:
Copy file
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x1801fdc38]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r12, r8
mov rsi, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x68], r13d
cmp byte [rcx], r13b
jne 0x18008feae
cmp byte [rcx + 0xd8], r13b
je 0x18008feae
cmp byte [rcx + 0xa8], r13b
je 0x18008fcd1
lea rdx, [rbp - 0x40]
call fcn.18008d8b0
nop
lea rcx, [rdi + 0x108]
mov r8, rax
mov rdx, rsi
call fcn.18008db90
test al, al
sete bl
cmp qword [rbp - 0x28], 8
jb 0x18008fb88
mov rcx, qword [rbp - 0x40]
call fcn.1801196dc
test bl, bl
je 0x18008fcd1
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
mov r8d, 0x10
lea rdx, str.Cannot_update_db
lea rcx, [rbp - 0x40]
call fcn.180015970
nop
lea rax, vtable.boost::error_info_struct_ErrorInfo::MessageTag__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov qword [rbp - 0x18], rax
mov qword [rbp + 8], 7
mov qword [rbp], r13
mov word [rbp - 0x10], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.180016bb0
nop
lea rax, [0x180189010]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call fcn.180119da0
nop
lea rax, vtable.boost::exception.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], 0xffffffff
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.BaseException.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 8]
lea rax, vtable.BaseException.1.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.RuntimeError.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 8]
lea rax, vtable.RuntimeError.1.0
mov qword [rsp + rcx + 0x20], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x20]
call fcn.18008b140
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18005a150
nop
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
lea rcx, str.void___cdecl_ProtectedDBFile::InitHookDB_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov qword [rdx + rax + 0x10], rcx
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
lea rcx, str.E:WorkSearchSuiteG13_ReleaseSearchSuiteClientKipodKipodSrcDBFiles.cpp
mov qword [rdx + rax + 0x18], rcx
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
mov dword [rdx + rax + 0x20], 0xaa
mov rcx, rax
call fcn.18005a480
nop
lea rbx, [rdi + 0x58]
cmp qword [rbx + 0x18], 8
jb 0x18008fce1
mov rcx, qword [rbx]
jmp 0x18008fce4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x18], 8
jb 0x18008fcf4
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x18008fcfe
mov rsi, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18008fe54
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
lea r8d, [rax + 0xe]
lea rdx, str.Cannot_init_db
lea rcx, [rbp - 0x40]
call fcn.180015970
nop
lea rax, vtable.boost::error_info_struct_ErrorInfo::MessageTag__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov qword [rbp - 0x18], rax
mov qword [rbp + 8], 7
mov qword [rbp], r13
mov word [rbp - 0x10], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.180016bb0
nop
lea rax, [0x180189010]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call fcn.180119da0
nop
lea rax, vtable.boost::exception.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], 0xffffffff
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.BaseException.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 8]
lea rax, vtable.BaseException.1.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.RuntimeError.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 8]
lea rax, vtable.RuntimeError.1.0
mov qword [rsp + rcx + 0x20], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x20]
call fcn.18008b140
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18005a150
nop
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
lea rcx, str.void___cdecl_ProtectedDBFile::InitHookDB_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov qword [rdx + rax + 0x10], rcx
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
lea rcx, str.E:WorkSearchSuiteG13_ReleaseSearchSuiteClientKipodKipodSrcDBFiles.cpp
mov qword [rdx + rax + 0x18], rcx
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 8]
mov dword [rdx + rax + 0x20], 0xb2
mov rcx, rax
call fcn.18005a480
nop
lea rbx, [rdi + 0x80]
cmp qword [rbx + 0x18], 8
jb 0x18008fe67
mov rcx, qword [rbx]
jmp 0x18008fe6a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x18], 8
jb 0x18008fe7c
mov rdx, qword [rbx]
jmp 0x18008fe7f
mov rdx, rbx
cmp qword [r12 + 0x18], 8
jb 0x18008fe8b
mov r12, qword [r12]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18008feae
cmp qword [rbx + 0x18], 8
jb 0x18008fea5
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.180119820
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret