Function at 0x140014bf0
Capabilities:
Check os version
Create process on windows
Get common file path
Set current directory

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r12, r9
mov rdi, r8
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x20], 0x80000000
call fcn.14002a628
mov rcx, qword [rax + 8]
call fcn.1400326f8
nop
mov rcx, qword [r14 + 0x248]
test rcx, rcx
je 0x140014c7f
cmp qword [rcx + 0x40], 0
je 0x140014c7f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rdi]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140014ca6
cmp rax, qword [rdi - 0x18]
jne 0x140014ca6
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140014ce3
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140014cc1
call fcn.140003050
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1400525a0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsi]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140014d13
cmp rax, qword [rdi - 0x18]
jne 0x140014d13
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140014d50
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140014d2e
call fcn.140003050
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1400525a0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x48], rax
call fcn.1400280cc
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140014d78
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
call fcn.1400280cc
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140014da9
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, edx
jge 0x140014de3
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.140003380
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test rbx, rbx
jne 0x140014dfe
xor ecx, ecx
or rsi, 0xffffffffffffffff
jmp 0x140014e1c
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140015142
cmp ecx, dword [rbx - 0xc]
jg 0x140015142
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1400073a0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014e5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [r14 + 0x180]
mov edx, dword [r14 - 0x10]
mov dword [rsp + 0x30], edx
mov rdi, r14
mov rbx, qword [rsp + 0x28]
sub rdi, rbx
sar rdi, 1
mov r15d, dword [rbx - 0x10]
lea r13d, [r15 + rdx]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r13d
or eax, ecx
jge 0x140014ea9
mov edx, r13d
lea rcx, [rsp + 0x28]
call fcn.140003380
mov rbx, qword [rsp + 0x28]
mov edx, dword [rsp + 0x30]
cmp rdi, r15
ja 0x140014eb2
lea r14, [rbx + rdi*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, r14
call fcn.1400525a0
test r13d, r13d
js 0x140015137
cmp r13d, dword [rbx - 0xc]
jg 0x140015137
mov dword [rbx - 0x10], r13d
movsxd rax, r13d
mov word [rbx + rax*2], 0
xor eax, eax
mov rcx, rsi
lea r14, [0x14007e0bc]
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x30], rcx
mov r13, r14
sub r13, rbx
sar r13, 1
mov r15d, dword [rbx - 0x10]
lea edi, [r15 + rcx]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x140014f3d
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140003380
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp r13, r15
ja 0x140014f46
lea r14, [rbx + r13*2]
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, r14
call fcn.1400525a0
test edi, edi
js 0x14001512d
cmp edi, dword [rbx - 0xc]
jg 0x14001512d
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x100]
call fcn.140056260
mov dword [rsp + 0x100], 0x11c
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x84]
call fcn.140056260
mov dword [rsp + 0x80], 0x70
xor edi, edi
mov qword [rsp + 0x88], rdi
cmp dword [rsp + 0x104], 6
jb 0x140014ffc
cmp dword [rsp + 0x298], 1
jne 0x140014ffc
lea rax, str.runas
mov qword [rsp + 0x90], rax
jmp 0x14001500b
lea rax, str.open
mov qword [rsp + 0x90], rax
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0x84], 0x40
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400150b8
cmp dword [rsp + 0xb8], 0x20
jle 0x1400150b8
cmp dword [rsp + 0x290], edi
jne 0x140015066
mov dword [r12], edi
jmp 0x1400150c0
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400150c0
mov dword [r12], 0x103
nop
nop
cmp dword [r12], 0x103
jne 0x1400150b0
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, r12
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0xe8]
jmp 0x140015080
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400150c0
mov dword [r12], 0xffffffff
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400150dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400150fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001511d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jmp 0x14001516b
mov ecx, 0x80070057
call fcn.140003280
mov ecx, 0x80070057
call fcn.140003280
nop
mov ecx, 0x80070057
call fcn.140003280
nop
or rsi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
jmp 0x14001516b
lea rcx, [rsp + 0x24]
call fcn.14001f030
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140015195
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400151b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140052690
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret