Function at 0x140007be0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1400a60c0]
xor rax, rsp
mov qword [rbp + 0x330], rax
xor r12d, r12d
lea rcx, [rbp - 8]
call fcn.140007930
nop
mov r8d, 0x104
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140007c7a
lea rdx, str.Error_getting_module_file_name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000f320
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000f510]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400082b1
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea rax, [rbp + 0x120]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140007ca0
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x28]
call fcn.1400100a0
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.14000bee0
nop
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rbx, qword [rbp - 0x68]
mov r14d, 0x5c
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x140007db1
mov esi, 0x100
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140094b08]
lea rdx, [0x140094b0c]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, si
jae 0x140007d5a
movzx eax, al
mov byte [rbp + rax + 0x20], 1
add rcx, 2
cmp rcx, rdx
jne 0x140007d10
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rdx, [rbx + rax*2]
nop
movzx eax, word [rdx]
cmp ax, si
jae 0x140007d4f
cmp byte [rbp + rax + 0x20], 0
jne 0x140007da9
cmp rdx, rbx
je 0x140007db1
sub rdx, 2
jmp 0x140007d40
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rdx, [rbx + rax*2]
mov ecx, 2
movzx r8d, word [rdx]
lea rax, [0x140094b08]
cmp r14w, r8w
je 0x140007da9
cmp rcx, 1
je 0x140007d9e
dec rcx
add rax, 2
cmp word [rax], r8w
jne 0x140007d86
test rax, rax
jne 0x140007da9
cmp rdx, rbx
je 0x140007db1
sub rdx, 2
jmp 0x140007d70
sub rdx, rbx
sar rdx, 1
jmp 0x140007db8
mov rdx, 0xffffffffffffffff
inc rdx
mov qword [rsp + 0x20], r12
mov r8, rdi
lea rcx, [rbp - 0x68]
call fcn.14000de80
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
mov rsi, qword [rbp + 8]
add rsi, rdx
lea rbx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rbx, qword [rbp - 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movabs rdx, 0x7fffffffffffffff
mov ecx, 0xa
movabs r13, 0x7ffffffffffffffe
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
cmp rbx, rsi
jne 0x140007e2e
mov word [rsp + 0x30], r12w
jmp 0x140007f2d
sub rsi, rbx
cmp rsi, r13
ja 0x140008325
mov edi, 7
cmp rsi, rdi
jbe 0x140007ed9
mov rdi, rsi
or rdi, 7
cmp rdi, r13
jbe 0x140007e99
mov rdi, r13
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x140007ec8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000832b
mov rcx, rax
call fcn.140082550
mov rcx, rax
test rax, rax
je 0x140007ec1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rdi
jmp 0x140007ede
cmp rdi, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rdx
ja 0x14000832b
add rcx, rcx
jne 0x140007e5b
mov rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rdi
jmp 0x140007ede
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082550
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rdi
jmp 0x140007ede
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x30]
cmp rdi, 7
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140007f14
nop word [rax + rax]
movsx eax, byte [rbx]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x140007f00
mov qword [rsp + 0x40], rsi
mov word [r8 + rsi*2], r12w
movabs rdx, 0x7fffffffffffffff
mov ecx, 0xa
mov rsi, qword [rbp - 0x58]
mov rax, r13
sub rax, rsi
cmp rax, 1
jb 0x140008331
lea r15, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova r15, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r14, [rsi + 1]
mov ebx, 7
lea rdi, [rsp + 0x50]
cmp r14, rbx
jbe 0x140007fea
mov rbx, r14
or rbx, 7
cmp rbx, r13
jbe 0x140007fb7
mov rbx, r13
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x140007fdd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000831f
mov rcx, rax
call fcn.140082550
test rax, rax
je 0x140007fd6
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140007fe5
cmp rbx, 0xa
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x14000831f
add rcx, rcx
jne 0x140007f86
mov rdi, r12
jmp 0x140007fe5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082550
mov rdi, rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rbx
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], 0x5c
mov word [rdi + r14*2], r12w
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140012560
nop
mov r8d, 4
lea rdx, [0x140094b10]
lea rcx, [rsp + 0x78]
call fcn.14000be50
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x1400080af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400080aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400080aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
movdqa xmm0, xmmword [0x140096fe0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140008108
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008102
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008102
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000814d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008148
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008148
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400081ab
lea rdx, str.Error_renaming_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000f320
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000f510]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400081ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400081e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400081e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
movdqa xmm0, xmmword [0x140096fe0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x14000824b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000823e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000823e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
movdqa xmm0, xmmword [0x140096fe0]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400082a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000829a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000829a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
movdqa xmm0, xmmword [0x140096fe0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x1400082ef
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400082ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400082ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828a4
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140082410
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001a70
nop
call fcn.140001b10
int3
call fcn.140001a70
nop
call fcn.140001b10
int3