Function at 0x140001710
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14007d6a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400019fe
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x140001780
lea rcx, [rsp + 0x68]
call fcn.140001d20
nop
mov r8, rbx
lea rdx, [0x14008d090]
lea rcx, [rsp + 0x20]
call fcn.140001b30
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400017b8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140001ab0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140001808
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a28
call fcn.14004be6c
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140001835
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400019b5
mov r8, rdi
lea rdx, [0x14008d090]
lea rcx, [rsp + 0x40]
call fcn.140001b30
nop
mov r8d, 4
lea rdx, str..exe
mov rcx, rax
call fcn.140001ab0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rdx, [rsp + 0x20]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 8
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rsp + 0x68]
call fcn.140001ab0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400018f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a2e
call fcn.14004be6c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140001934
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000192f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a34
call fcn.14004be6c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400019b5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400019b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a3a
call fcn.14004be6c
mov al, 1
jmp 0x140001a00
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400019fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a22
call fcn.14004be6c
xor al, al
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14004be10
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400526f4
nop
call fcn.1400526f4
nop
call fcn.1400526f4
nop
call fcn.1400526f4
nop
call fcn.1400526f4
int3