Function at 0x1400289a4
Capabilities:
Accept command line arguments
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r13d, r13d
mov qword [rsp + 0x40], r8
mov qword [rdx], r13
mov rdi, rdx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [r8], r13
lea rcx, [rsp + 0x78]
lea r8d, [r13 + 0x60]
mov dword [rsp + 0x70], 0x68
call fcn.14012d4b0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor edx, edx
mov dword [rbp - 0x20], 0x11c
mov r8d, 0x118
lea rcx, [rbp - 0x1c]
call fcn.14012d4b0
lea rcx, [rbp - 0x20]
call fcn.140115f88
mov ecx, 0x800
call fcn.140113e8c
mov rsi, rax
test rax, rax
je 0x140028a98
mov ebx, 0x400
lea rcx, [0x14017f608]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
cmp eax, ebx
jb 0x140028a8b
lea ebx, [rax + 1]
mov rcx, rsi
mov edx, ebx
add rdx, rdx
call fcn.140113eb4
mov rsi, rax
test rax, rax
je 0x140028a98
mov r8d, ebx
lea rcx, [0x14017f608]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
lea eax, [rbx - 1]
cmp eax, edx
cmovb edx, eax
mov word [rsi + rdx*2], r13w
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r12d, 2
mov r14d, 0x208
mov edx, r12d
mov qword [rsp + 0x50], rax
mov ecx, r14d
mov rbx, rax
call fcn.140113de8
mov qword [rsp + 0x58], rax
mov r15, rax
test rax, rax
je 0x140028ad8
mov r8d, r14d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, r12
mov rcx, r14
call fcn.140113de8
mov r12, rax
test rax, rax
je 0x140028af7
mov rdx, rax
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, 1
test rsi, rsi
je 0x140028b10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, r14d
jmp 0x140028b13
mov eax, r13d
xor edx, edx
movsxd r13, eax
mov qword [rsp + 0x60], r13
test r15, r15
je 0x140028b32
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, r14d
xor edx, edx
jmp 0x140028b34
mov eax, edx
cdqe
mov qword [rsp + 0x38], rax
add rax, r13
mov qword [rsp + 0x20], rax
test rbx, rbx
je 0x140028b58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, r14d
xor edx, edx
jmp 0x140028b5a
mov eax, edx
mov rbx, qword [rsp + 0x20]
cdqe
add rbx, rax
mov qword [rsp + 0x30], rax
test r12, r12
je 0x140028b7e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, r14d
xor edx, edx
jmp 0x140028b80
mov eax, edx
mov rcx, qword [rbp - 0x78]
cdqe
add rbx, rax
mov qword [rsp + 0x20], rax
test rcx, rcx
je 0x140028b9e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, r14d
jmp 0x140028ba0
mov eax, edx
mov rcx, qword [rsp + 0x28]
mov rdx, r14
cdqe
add rcx, 0xb50
mov qword [rsp + 0x68], rax
add rax, rbx
lea rbx, [rcx + rax*2]
mov rcx, rbx
call fcn.140113de8
mov qword [rdi], rax
test rax, rax
je 0x140028f73
mov qword [rax], rbx
call fcn.140116890
neg al
mov rax, qword [rdi]
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x20
mov dword [rax + 0x78], ecx
call fcn.140119d80
mov rcx, qword [rdi]
lea rdx, [rbp - 0x20]
mov ebx, 2
mov qword [rcx + 0x80], rax
mov rax, qword [rdi]
lea r8d, [rbx + 0x7e]
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + 8], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rax + 0x18], xmm1
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rax + 0x28], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movups xmmword [rax + 0x38], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rax + 0x48], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rax + 0x58], xmm1
movsd xmm0, qword [rbp - 0x30]
movsd qword [rax + 0x68], xmm0
mov eax, ebx
mov rcx, qword [rdi]
add rcx, 0x88
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, r14
jne 0x140028c4f
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, 0
test dword [rbp - 0x54], 0x100
mov rcx, qword [rbp - 0x38]
cmovne rcx, rax
mov rax, qword [rdi]
mov qword [rax + 0x70], rcx
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [rdi]
mov dword [rcx + 0x210], eax
call fcn.140116698
movzx ecx, al
mov rax, qword [rdi]
mov dword [rax + 0x228], ecx
mov ecx, 0x52
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [rdi]
mov dword [rcx + 0x22c], eax
lea rcx, str.ReactOS
mov rax, qword [rdi]
mov dword [rax + 0x218], ebx
mov rax, qword [rdi]
mov dword [rax + 0x21c], ebx
mov rax, qword [rdi]
mov dword [rax + 0x220], ebx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp - 0xc]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [rbp - 0xa]
lea rcx, [rax + rcx*2]
xor eax, eax
cmp word [rcx], ax
je 0x140028d85
lea rax, [rbx + 1]
mov r8, rbx
lea rax, [rcx + rax*2]
lea r9, [rbp + 0xf4]
cmp rax, r9
jae 0x140028d85
lfence
xor ebx, ebx
lea rdx, str.ReactOS
mov word [rcx + r8*2], bx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, ebx
mov rax, qword [rdi]
sete cl
mov dword [rax + 0x224], ecx
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rcx, qword [rdi]
mov dword [rcx + 0x230], eax
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov rcx, qword [rdi]
mov dword [rcx + 0x234], eax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028dfa
lea rdx, str.GetConsoleHistoryInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028dfa
mov rcx, qword [rdi]
mov dword [rcx + 0x1a4], 0x10
mov rcx, qword [rdi]
add rcx, 0x1a4
call rax
test eax, eax
jne 0x140028dfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
bts eax, 0x1f
mov dword [rcx + 0x1a4], eax
mov rcx, qword [rdi]
lea rbx, [rbp + 0x100]
mov dword [rbp + 0x108], 0xfffffff6
mov r13d, 3
mov dword [rbp + 0x118], 0xfffffff5
mov dword [rbp + 0x128], 0xfffffff4
lea rax, [rcx + 0x1b8]
mov qword [rbp + 0x100], rax
lea rax, [rcx + 0x1c8]
mov qword [rbp + 0x110], rax
lea rax, [rcx + 0x1d8]
mov qword [rbp + 0x120], rax
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [rbx]
mov qword [rcx], rax
add rcx, 8
mov qword [rsp + 0x28], rcx
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x140028e82
mov rax, qword [rsp + 0x28]
or dword [rax], 0xffffffff
add rbx, 0x10
sub r13, r14
jne 0x140028e52
mov rbx, qword [rdi]
mov r8, qword [rsp + 0x50]
add rbx, 0xb50
mov r15, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
test r8, r8
je 0x140028ec9
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a8a0
mov rax, qword [rdi]
mov qword [rax + 0x1e8], rbx
mov rax, qword [rsp + 0x30]
lea rbx, [rbx + rax*2]
test r15, r15
je 0x140028ef1
mov rdx, qword [rsp + 0x38]
mov r8, r15
mov rcx, rbx
call fcn.14000a8a0
mov rax, qword [rdi]
mov qword [rax + 0x1f0], rbx
mov rax, qword [rsp + 0x38]
lea rbx, [rbx + rax*2]
test r12, r12
je 0x140028f19
mov rdx, qword [rsp + 0x20]
mov r8, r12
mov rcx, rbx
call fcn.14000a8a0
mov rax, qword [rdi]
mov qword [rax + 0x1f8], rbx
mov rax, qword [rsp + 0x20]
lea rbx, [rbx + rax*2]
test rsi, rsi
je 0x140028f44
mov r8, rsi
mov rdx, r13
mov rcx, rbx
call fcn.14000a8a0
mov rax, qword [rdi]
mov qword [rax + 0x200], rbx
lea rbx, [rbx + r13*2]
mov rax, qword [rdi]
mov qword [rax + 0x208], r13
mov r8, qword [rbp - 0x78]
test r8, r8
je 0x140028f68
mov r13, qword [rsp + 0x68]
mov rcx, rbx
mov rdx, r13
call fcn.14000a8a0
mov rax, qword [rdi]
mov qword [rax + 0x20], rbx
lea rbx, [rbx + r13*2]
mov r13, qword [rsp + 0x40]
mov qword [r13], rbx
jmp 0x140028f78
mov r13, qword [rsp + 0x40]
xor ebx, ebx
test rsi, rsi
je 0x140028f87
mov rcx, rsi
call fcn.140113e18
test r15, r15
je 0x140028f94
mov rcx, r15
call fcn.140113e18
test r12, r12
je 0x140028fa1
mov rcx, r12
call fcn.140113e18
cmp qword [rdi], rbx
je 0x140028fac
cmp qword [r13], rbx
jne 0x140028faf
mov r14b, bl
mov al, r14b
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x298]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret