Function at 0x140064870
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1400e4180]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea rax, [rbp + 0xe0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400648e0
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.14004f7f0
nop
lea rbx, [rsp + 0x78]
mov rsi, qword [rsp + 0x78]
mov r14, qword [rbp - 0x70]
cmp r14, 7
cmova rbx, rsi
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1400649f0
mov r15d, 0x100
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400cde04]
lea rdx, [0x1400cde08]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x14006498d
movzx eax, al
mov byte [rbp + rax - 0x20], 1
add rcx, 2
cmp rcx, rdx
jne 0x140064941
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x140064982
cmp byte [rbp + rax - 0x20], 0
jne 0x1400649e8
cmp r8, rbx
je 0x1400649f0
sub r8, 2
jmp 0x140064971
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov r9d, 0x5c
nop dword [rax]
mov ecx, 2
movzx edx, word [r8]
lea rax, [0x1400cde04]
cmp r9w, dx
je 0x1400649e8
cmp rcx, 1
je 0x1400649dd
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x1400649c6
test rax, rax
jne 0x1400649e8
cmp r8, rbx
je 0x1400649f0
sub r8, 2
jmp 0x1400649b0
sub r8, rbx
sar r8, 1
jmp 0x1400649f7
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x78]
cmp r14, 7
cmova rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.14004f7f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov r8d, 0x23
lea rdx, str.ServiceHub.TestWindowStoreHosts.exe
lea rcx, [rbp - 0x68]
call fcn.14004f7f0
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x38]
call fcn.14004f590
mov rbx, rax
lea r9, [rbp - 0x68]
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x50]
cmp r14, 7
cmova r9, rdi
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp - 0x58]
cmp rdx, rax
ja 0x140064ab1
lea r15, [rdx + rcx]
mov qword [rbx + 0x10], r15
mov rsi, rbx
cmp r8, 7
jbe 0x140064a9a
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + r15*2], r12w
jmp 0x140064ac9
mov qword [rsp + 0x20], rdx
mov rcx, rbx
call fcn.14006bb00
mov rbx, rax
mov r14, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140064b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064b3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092a14
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140064ba3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064b9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092a14
movdqa xmm0, xmmword [0x1400cfdd0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
cmp r14, 7
jbe 0x140064bf6
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140064bed
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064bed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140092a14
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140064c3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064c34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092a14
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140064c7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064c79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064c79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140092a14
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140092760
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret