Function at 0x140001650
Capabilities:
Copy file
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r12
mov rax, qword [0x140024ac0]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x78], 7
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140002fc0
nop
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
lea r8d, [r12 + 4]
lea rdx, str.Temp
lea rcx, [rsp + 0x38]
call fcn.140002fc0
nop
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140001ef0
cmp rax, 0xffffffffffffffff
je 0x1400018e5
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea r8d, [r12 + 0x10]
lea rdx, str.C:UsersPublic_
lea rcx, [rbp - 0x50]
call fcn.140002fc0
nop
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400017cc
cmp rax, 0xffffffffffffffff
jbe 0x140001762
or rcx, 0xffffffffffffffff
jmp 0x140001766
lea rcx, [rax - 1]
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
lea rdi, [rax + rcx*2]
nop dword [rax + rax]
mov ecx, 1
lea rax, [0x14001ff2c]
movzx edx, word [rdi]
nop
cmp word [rax], dx
je 0x1400017b3
add rax, 2
dec rcx
jne 0x140001790
lea rcx, [rsp + 0x60]
call fcn.140001ff0
cmp rdi, rax
je 0x1400017cc
sub rdi, 2
jmp 0x140001780
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
sub rdi, rax
sar rdi, 1
jmp 0x1400017d0
or rdi, 0xffffffffffffffff
lea r8, [rdi + 1]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x60]
call fcn.140001d80
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp]
call fcn.140004ec0
nop
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140004f70
nop
cmp qword [rbp + 0x18], 8
jb 0x140001812
mov rcx, qword [rbp]
call fcn.1400086b0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
xor r8d, r8d
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [0x14001ff30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp qword [rbp - 0x60], 8
jb 0x14000186a
mov rcx, qword [rbp - 0x78]
call fcn.1400086b0
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [rbp - 0x10], 8
jb 0x14000188b
mov rcx, qword [rbp - 0x28]
call fcn.1400086b0
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
cmp qword [rbp - 0x38], 8
jb 0x1400018ac
mov rcx, qword [rbp - 0x50]
call fcn.1400086b0
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp qword [rsp + 0x50], 8
jb 0x1400018cf
mov rcx, qword [rsp + 0x38]
call fcn.1400086b0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
jmp 0x140001911
call fcn.140001460
nop
cmp qword [rsp + 0x50], 8
jb 0x1400018fd
mov rcx, qword [rsp + 0x38]
call fcn.1400086b0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
cmp qword [rsp + 0x78], 8
jb 0x140001923
mov rcx, qword [rsp + 0x60]
call fcn.1400086b0
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140008040
lea r11, [rsp + 0x350]
mov rdi, qword [r11 + 0x10]
mov r12, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret