Function at 0x12849fa0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [r11 - 0x70], 7
xor ebp, ebp
mov qword [r11 - 0x78], rbp
mov word [rsp + 0x80], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x129cbcec]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x129cbcec]
lea rcx, [rsp + 0x78]
call fcn.12803dc0
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
lea rcx, [0x129bf7a0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea r8d, [rbp + 8]
lea rdx, [0x129cbcd8]
lea rcx, [rsp + 0x78]
call fcn.12803a10
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
lea rcx, [0x129beb70]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
lea rcx, str.SystemRoot
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [0x12a21da8]
call fcn.12803c90
lea r8d, [rbp + 9]
lea rdx, [0x129cbcc0]
lea rcx, [rsp + 0x78]
call fcn.12803a10
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [0x12a21df8]
call fcn.12803c90
cmp dword [0x129abaf4], ebp
je 0x1284a11a
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x12a21da8]
lea rcx, [0x12a21e48]
call fcn.12803c90
lea r8d, [rbp + 9]
lea rdx, str.SysWOW64
lea rcx, [0x12a21e48]
call fcn.12803a10
jmp 0x1284a134
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x12a21df8]
lea rcx, [0x12a21e48]
call fcn.12803c90
lea rcx, [0x12a21db0]
cmp qword [0x12a21dc8], 8
cmovae rcx, qword [0x12a21db0]
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [0x12a21dd0]
call fcn.128ab700
lea rcx, [0x12a21e00]
cmp qword [0x12a21e18], 8
cmovae rcx, qword [0x12a21e00]
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [0x12a21e20]
call fcn.128ab700
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rbp
mov word [rsp + 0xa8], bp
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], rbp
mov word [rsp + 0xd0], bp
lea rdx, [rsp + 0xc8]
lea rcx, str.VosOrgCPCL
call fcn.1280d4d0
cmp qword [rsp + 0xe0], 0
je 0x1284a2f8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x1284a2f8
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbp
mov word [rsp + 0x58], bp
lea rdx, [rsp + 0x50]
lea rcx, str.VosNewCPCL
call fcn.1280d4d0
cmp qword [rsp + 0x68], 0
je 0x1284a2d3
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1295bec0
mov rdi, rax
test rax, rax
je 0x1284a2d3
cmp rax, rbx
jne 0x1284a283
cmp rsi, qword [rsp + 0x68]
jne 0x1284a283
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xa0]
call fcn.12803c90
jmp 0x1284a2d3
mov r8, rax
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.12803dc0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xa0]
call fcn.128038c0
lea r8, [rbx + rsi*2]
mov rax, qword [rsp + 0x68]
lea rdx, [rdi + rax*2]
lea rcx, [rsp + 0xa0]
call fcn.1281aed0
nop
cmp qword [rsp + 0x70], 8
jb 0x1284a2e5
mov rcx, qword [rsp + 0x58]
call fcn.12958250
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbp
mov word [rsp + 0x58], bp
mov dword [0x129abb84], ebp
cmp qword [rsp + 0xb8], 0
je 0x1284a4e6
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rbp
mov byte [rsp + 0x58], 0
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rcx, qword [rsp + 0xa8]
mov r8d, ebp
test eax, eax
sete r8b
or r9d, 0xffffffff
lea rdx, [rsp + 0x50]
call fcn.128ab700
cmp qword [rsp + 0x68], 0
je 0x1284a4c1
mov rdi, qword [rsp + 0xb8]
add rdi, 0x104
mov rax, qword [0x12a21eb0]
cmp rdi, rax
ja 0x1284a393
or r8, 0xffffffffffffffff
mov rdx, rdi
lea rcx, [0x12a21e98]
call fcn.12802350
jmp 0x1284a3a8
mov rdx, rdi
sub rdx, rax
xor r8d, r8d
lea rcx, [0x12a21e98]
call fcn.128041f0
mov rax, qword [0x12a21ed8]
cmp rdi, rax
ja 0x1284a3c9
or r8, 0xffffffffffffffff
mov rdx, rdi
lea rcx, [0x12a21ec0]
call fcn.128033a0
jmp 0x1284a3de
xor r8d, r8d
mov rdx, rdi
sub rdx, rax
lea rcx, [0x12a21ec0]
call fcn.12803b90
cmp qword [0x12a21ed8], rdi
jne 0x1284a4c1
cmp qword [0x12a21eb0], rdi
jne 0x1284a4c1
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x28], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.12802680
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x12a21e98]
call fcn.12802680
nop
cmp qword [rsp + 0x40], 0x10
jb 0x1284a44d
mov rcx, qword [rsp + 0x28]
call fcn.12958250
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x28], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [0x12a21ec0]
call fcn.12803c90
lea rdx, [0x12a21ea0]
cmp qword [0x12a21eb8], 0x10
cmovae rdx, qword [0x12a21ea0]
mov qword [0x129abb50], rdx
lea rax, [0x12a21ec8]
cmp qword [0x12a21ee0], 8
cmovae rax, qword [0x12a21ec8]
mov qword [0x129abb58], rax
mov dword [0x129abb84], 1
cmp qword [rsp + 0x70], 0x10
jb 0x1284a4d3
mov rcx, qword [rsp + 0x58]
call fcn.12958250
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rbp
mov byte [rsp + 0x58], 0
xor edx, edx
lea rcx, str.VosOrgCPCL
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.VosNewCPCL
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rsp + 0xe8], 8
jb 0x1284a525
mov rcx, qword [rsp + 0xd0]
call fcn.12958250
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], rbp
mov word [rsp + 0xd0], bp
cmp qword [rsp + 0xc0], 8
jb 0x1284a559
mov rcx, qword [rsp + 0xa8]
call fcn.12958250
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rbp
mov word [rsp + 0xa8], bp
cmp qword [rsp + 0x98], 8
jb 0x1284a58d
mov rcx, qword [rsp + 0x80]
call fcn.12958250
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rbp
mov word [rsp + 0x80], bp
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret