Function at 0x140012a80
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x230
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x120], rax
call fcn.1400165d0
lea r8, str.118c8ed0a4f230047bbb108d89d78d7fceeb861e
lea rdx, str.0.4.4_dev
lea rcx, str.winpty_version__s__commit__s_
call fcn.1400146a0
xor r12d, r12d
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x14001313b
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14001311c
lea rbx, [r12 - 1]
mov r10d, dword [rsp + 0x30]
cmp r10d, 2
jne 0x140012bae
mov r8, qword [rax + 8]
lea r9, str.__version
mov ecx, r12d
movzx eax, word [r8 + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x140012bb0
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x140012bb0
add rcx, 2
cmp rcx, 0xa
jne 0x140012b32
lea rdx, str.0.4.4_dev
lea rcx, str.winpty_version__s_n
call fcn.14000b380
lea rdx, str.118c8ed0a4f230047bbb108d89d78d7fceeb861e
lea rcx, str.commit__s_n
call fcn.14000b380
xor eax, eax
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400174d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
jl 0x140012be2
mov rdx, qword [rdi + 8]
lea r8, str.__show_input
mov rcx, rbx
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140012be2
add rcx, 2
cmp rcx, 0xd
je 0x140012c2e
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140012bc0
cmp r10d, 3
jne 0x140012d09
mov rcx, qword [rdi + 0x10]
lea rdx, str.__create_desktop
nop word [rax + rax]
movzx eax, word [rcx + rbx*2 + 2]
cmp ax, word [rdx + rbx*2 + 2]
jne 0x140012d0f
add rbx, 2
cmp rbx, 0x11
je 0x140012cfb
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
jne 0x140012d0f
jmp 0x140012c00
xor r11b, r11b
xor dl, dl
mov r8d, 2
cmp r10d, r8d
jle 0x140012ced
lea r9, [rdi + 0x10]
lea r14, str.__with_mouse
lea rsi, str.__escape_input
mov rdi, qword [r9]
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [r14 + rcx*2 + 2]
jne 0x140012c82
add rcx, 2
cmp rcx, 0xd
je 0x140012cd6
movzx eax, word [rdi + rcx*2]
cmp ax, word [r14 + rcx*2]
je 0x140012c60
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rsi + rcx*2 + 2]
jne 0x140012cb0
add rcx, 2
cmp rcx, 0xf
je 0x140012cdb
movzx eax, word [rdi + rcx*2]
cmp ax, word [rsi + rcx*2]
je 0x140012c90
mov ecx, 2
call fcn.14001e144
mov r8, rdi
lea rdx, str.Unrecognized___show_input_option:__ls_n
mov rcx, rax
call fcn.14000b330
mov eax, 1
jmp 0x140012b7e
mov r11b, 1
jmp 0x140012cdd
mov dl, 1
inc r8d
add r9, 8
cmp r8d, r10d
jl 0x140012c54
movzx ecx, r11b
call fcn.14000b8a0
jmp 0x140012b7c
mov rcx, qword [rdi + 8]
call fcn.140006430
jmp 0x140012b7c
cmp r10d, 6
je 0x140012d40
mov rbx, qword [rdi]
mov ecx, 2
call fcn.14001e144
mov qword [rsp + 0x20], rbx
mov r9, rbx
mov r8, rbx
lea rdx, str.Usage:__ls_controlPipeName_flags_mouseMode_cols_rows_nUsage:__ls_controlPipeName___create_desktop_n_nOrdinarily__this_program_is_launched_by_winpty.dll_and_is_not_directly_nuseful_to_winpty_users.__However__it_also_has_options_intended_for_ndebugging_winpty._n_nUsage:__ls__options__n_nOptions:_n____show_input____with_mouse_____escape_input__n___________________Dump_INPUT_RECORDs_from_the_console_input_buffer_n_____________________with_mouse:_Include_MOUSE_INPUT_RECORDs_in_the_dump_n_______________________output_n_____________________escape_input:_Direct_the_new_Windows_10_console_to_use_n_______________________escape_sequences_for_input_n____version________Print_the_winpty_version_n
mov rcx, rax
call fcn.14000b330
mov eax, 1
jmp 0x140012b7e
mov rdx, qword [rdi + 0x28]
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r12w
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140012d60
lea rcx, [rbp - 0x60]
call fcn.140004ad0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012d8c
mov rax, qword [rax]
mov rcx, rax
call fcn.14001ef48
mov r15d, eax
mov rdx, qword [rdi + 0x20]
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r12w
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012db0
lea rcx, [rbp - 0x80]
call fcn.140004ad0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012ddd
mov rax, qword [rax]
mov rcx, rax
call fcn.14001ef48
mov r14d, eax
mov rdx, qword [rdi + 0x18]
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012e03
lea rcx, [rsp + 0x60]
call fcn.140004ad0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012e32
mov rax, qword [rax]
mov rcx, rax
call fcn.14001ef48
mov esi, eax
mov rdx, qword [rdi + 0x10]
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140012e54
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140004ad0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012e85
mov rax, qword [rax]
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.14001ef1c
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
mov r9d, esi
mov r8, rax
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0x40]
call fcn.1400015b0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140012eec
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ee7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013154
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140012f3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001315a
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140012f8e
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013160
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140012fe1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013166
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140013030
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001302b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001316c
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140013081
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001307c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013172
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x1400130ce
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013178
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140013183
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001317e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001317e
jmp 0x140013135
lea r8, str.argv___nullptr___CommandLineToArgvW_returned_NULL_
mov edx, 0x45
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agentmain.cc
call fcn.140017100
nop
call fcn.14001bb5c
nop
lea r8, str.cmdline___nullptr___GetCommandLineW_returned_NULL_
mov edx, 0x43
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agentmain.cc
call fcn.140017100
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r12w
lea rcx, [rbp + 0x40]
call fcn.14000cad0
nop
lea rax, [0x140036760]
mov qword [rbp + 0x40], rax
lea rax, [0x140036778]
mov qword [rbp + 0x70], rax
lea rcx, str.Agent::Agent_entered
call fcn.1400146a0
call fcn.1400170b0
int3