Function at 0x14008e000
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [0x1406879b8], ecx
jne 0x14008e03c
xor al, al
jmp 0x14008e320
xor sil, sil
lea rdi, [0x1406763e0]
mov rdx, rdi
cmp qword [0x1406763f8], 8
cmovae rdx, qword [0x1406763e0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008e066
mov rcx, qword [rbx]
call fcn.1403681bc
test eax, eax
sete bpl
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14008dbf0
mov r14, rax
test rax, rax
jne 0x14008e177
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008e097
mov r8, qword [rbx]
lea rdx, str.Failed_to_update_bloom._File_is_corrupt:__ls
lea rcx, [rsp + 0x30]
call fcn.1401d35d0
nop
call fcn.1400d5880
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rcx
mov r9d, 0xe6
mov rcx, r10
call qword [case.0x1401cd220.0]
lea rax, str.0cg_
mov rcx, qword [str.0cg_]
cmp rcx, rax
je 0x14008e12c
test byte [rcx + 0x1c], 1
je 0x14008e12c
cmp byte [rcx + 0x19], 2
jb 0x14008e12c
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov edx, 0x15
lea r8, [0x1405f3c00]
mov rcx, qword [rcx + 0x10]
call fcn.1400786c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14008e304
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e16d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008e34b
call fcn.140359090
jmp 0x14008e304
mov sil, 1
test bpl, bpl
jne 0x14008e2a9
cmp qword [0x1406763f8], 8
cmovae rdi, qword [0x1406763e0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008e1a0
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14008e2a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008e1c7
mov r9, qword [rbx]
mov r8d, eax
lea rdx, str.Failed_to_update_bloom._Error__d_while_copying_bloom:__ls
lea rcx, [rsp + 0x30]
call fcn.1401d35d0
nop
call fcn.1400d5880
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rcx
mov r9d, 0xe6
mov rcx, r10
call qword [case.0x1401cd220.0]
lea rax, str.0cg_
mov rcx, qword [str.0cg_]
cmp rcx, rax
je 0x14008e25e
test byte [rcx + 0x1c], 1
je 0x14008e25e
cmp byte [rcx + 0x19], 2
jb 0x14008e25e
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov edx, 0x16
lea r8, [0x1405f3c00]
mov rcx, qword [rcx + 0x10]
call fcn.1400786c0
xor sil, sil
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14008e309
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e2a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008e345
call fcn.140359090
jmp 0x14008e309
lea rcx, [0x140686b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140686af8]
test rcx, rcx
je 0x14008e2d3
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x1401cd220.0]
mov qword [0x140686af8], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [0x140686b00], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [0x140686b10], xmm1
lea rcx, [0x140686b20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.14008d120
test bpl, bpl
jne 0x14008e31c
cmp qword [rbx + 0x18], 8
jb 0x14008e313
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, sil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140368068
int3
call fcn.140368068
int3