Function at 0x140325e58
Capabilities:
Create process on windows
Move file
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov qword [rbp - 0x50], 0xfffffffffffffffe
lea rdx, [0x1403da4e0]
lea rcx, [rbp + 0x4b8]
call fcn.140006f04
nop
lea rdx, [0x1403da5b0]
lea rcx, [rbp + 0x4c0]
call fcn.140006f04
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.14028ace0
mov r8d, 0x104
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, reloc.OLEAUT32.dll_VarCyFromDisp
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.14028ace0
mov dword [rbp - 0x10], ebx
mov dword [rbp + 0x2c], 1
xor edi, edi
mov word [rbp + 0x30], di
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r15d, [rbx - 0x61]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
or rsi, 0xffffffffffffffff
cmp word [rbp + 0x60], di
jne 0x140325f10
mov r8d, edi
jmp 0x140325f21
lea rax, [rbp + 0x60]
mov r8, rsi
inc r8
cmp word [rax + r8*2], di
jne 0x140325f17
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140008230
nop
mov r9d, 2
lea rcx, [rsp + 0x50]
call fcn.14000815c
mov r9, rax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140007cc4
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x140325f7b
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400080d8
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140008350
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.1400080d8
mov r9d, 2
lea rcx, [rsp + 0x50]
call fcn.14000815c
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea r8, [rdx + rcx*2]
lea rdx, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x50]
add rdx, r9
lea rdx, [rdx + rax*2]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
cmp rdx, r8
je 0x140325fe6
sub r8, rdx
sar r8, 1
lea rcx, [rbp - 0x70]
call fcn.140008230
nop
lea rcx, [rbp + 0x4c8]
call fcn.140325b48
nop
mov rdx, qword [rax]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
cmp word [rdx], di
jne 0x14032600d
mov r8, rdi
jmp 0x14032601a
mov r8, rsi
inc r8
cmp word [rdx + r8*2], di
jne 0x140326010
lea rcx, [rsp + 0x70]
call fcn.140008230
nop
mov rdx, qword [rbp + 0x4c8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140326046
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14000dfe0
mov rcx, rax
test rax, rax
jne 0x14032605e
mov ecx, 0x80004005
call fcn.1400069ec
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x4b0], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400089e0
mov r8, qword [rbp + 0x4b8]
lea rdx, str._s___s_
lea rcx, [rbp + 0x4b0]
test al, al
je 0x1403260a9
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
jmp 0x1403260ad
lea r9, [rbp + 0x60]
call fcn.140009708
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8d, 0x104
lea rdx, [rbp + 0x270]
mov rcx, qword [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rbx, qword [rbp + 0x4b0]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov edx, 0x800
sub eax, edx
or eax, ecx
jge 0x140326119
lea rcx, [rbp + 0x4b0]
call fcn.1400077c4
mov rbx, qword [rbp + 0x4b0]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1402ad464
test eax, eax
js 0x14032621d
cmp eax, dword [rbx - 0xc]
jg 0x14032621d
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], di
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1403261a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.1400080d8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.1400080d8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400080d8
nop
mov rdx, qword [rbp + 0x4c0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1403261fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x4b8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140326228
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140326228
mov ecx, 0x80070057
call fcn.1400069ec
nop
add rsp, 0x580
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret