Function at 0x140012b80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp + 0x120], rax
call fcn.140016c50
lea r8, str.df99ffae5391beb4cc2f947d4dfc37cb85fe3ede
lea rdx, str.0.4.4_dev
lea rcx, str.winpty_version__s__commit__s_
call fcn.1400149c0
xor r12d, r12d
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x14001324a
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14001322b
lea rbx, [r12 - 1]
mov r10d, dword [rsp + 0x30]
cmp r10d, 2
jne 0x140012cac
mov r8, qword [rax + 8]
lea r9, str.__version
mov ecx, r12d
nop dword [rax + rax]
movzx eax, word [r8 + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x140012cae
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x140012cae
add rcx, 2
cmp rcx, 0xa
jne 0x140012c30
lea rdx, str.0.4.4_dev
lea rcx, str.winpty_version__s_n
call fcn.14000b2b0
lea rdx, str.df99ffae5391beb4cc2f947d4dfc37cb85fe3ede
lea rcx, str.commit__s_n
call fcn.14000b2b0
xor eax, eax
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140017c90
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 0x140012ce2
mov rdx, qword [rdi + 8]
lea r8, str.__show_input
mov rcx, rbx
nop dword [rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140012ce2
add rcx, 2
cmp rcx, 0xd
je 0x140012d2e
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140012cc0
cmp r10d, 3
jne 0x140012e09
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 0x140012e0f
add rbx, 2
cmp rbx, 0x11
je 0x140012dfb
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
jne 0x140012e0f
jmp 0x140012d00
xor r11b, r11b
xor dl, dl
mov r8d, 2
cmp r10d, r8d
jle 0x140012ded
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 0x140012d82
add rcx, 2
cmp rcx, 0xd
je 0x140012dd6
movzx eax, word [rdi + rcx*2]
cmp ax, word [r14 + rcx*2]
je 0x140012d60
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rsi + rcx*2 + 2]
jne 0x140012db0
add rcx, 2
cmp rcx, 0xf
je 0x140012ddb
movzx eax, word [rdi + rcx*2]
cmp ax, word [rsi + rcx*2]
je 0x140012d90
mov ecx, 2
call fcn.140021868
mov r8, rdi
lea rdx, str.Unrecognized___show_input_option:__ls_n
mov rcx, rax
call fcn.14000b260
mov eax, 1
jmp 0x140012c7c
mov r11b, 1
jmp 0x140012ddd
mov dl, 1
inc r8d
add r9, 8
cmp r8d, r10d
jl 0x140012d54
movzx ecx, r11b
call fcn.14000b7d0
jmp 0x140012c7a
mov rcx, qword [rdi + 8]
call fcn.140006360
jmp 0x140012c7a
cmp r10d, 6
je 0x140012e40
mov rbx, qword [rdi]
mov ecx, 2
call fcn.140021868
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.14000b260
mov eax, 1
jmp 0x140012c7c
mov rdx, qword [rdi + 0x28]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140012e60
lea rcx, [rbp - 0x68]
call fcn.140004a30
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1400156e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012e8c
mov rax, qword [rax]
mov rcx, rax
call fcn.140022854
mov r15d, eax
mov rdx, qword [rdi + 0x20]
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012eb5
lea rcx, [rsp + 0x78]
call fcn.140004a30
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.1400156e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012ee4
mov rax, qword [rax]
mov rcx, rax
call fcn.140022854
mov r14d, eax
mov rdx, qword [rdi + 0x18]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012f10
lea rcx, [rsp + 0x58]
call fcn.140004a30
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.1400156e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012f3f
mov rax, qword [rax]
mov rcx, rax
call fcn.140022854
mov esi, eax
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140012f66
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.140004a30
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x48]
call fcn.1400156e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140012f97
mov rax, qword [rax]
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.1400227a0
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.1400016d0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140012ffe
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ff9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013263
call fcn.140017cec
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140013050
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001304b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013269
call fcn.140017cec
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001309f
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001309a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001326f
call fcn.140017cec
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400130f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013275
call fcn.140017cec
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140013140
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001313b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001327b
call fcn.140017cec
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140013191
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001318c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013281
call fcn.140017cec
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x1400131de
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013287
call fcn.140017cec
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140013292
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001328d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001328d
jmp 0x140013244
lea r8, str.argv___nullptr___CommandLineToArgvW_returned_NULL_
mov edx, 0x45
lea rcx, str.D:_a_work1_s_node_modules_node_ptydepswinpty_src_agentmain.cc
call fcn.1400178c0
nop
call fcn.14001e704
nop
lea r8, str.cmdline___nullptr___GetCommandLineW_returned_NULL_
mov edx, 0x43
lea rcx, str.D:_a_work1_s_node_modules_node_ptydepswinpty_src_agentmain.cc
call fcn.1400178c0
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.140017cec
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
lea rcx, [rbp + 0x40]
call fcn.14000caa0
nop
lea rax, [0x14003ac98]
mov qword [rbp + 0x40], rax
lea rax, [0x14003acb0]
mov qword [rbp + 0x70], rax
lea rcx, str.Agent::Agent_entered
call fcn.1400149c0
call fcn.140017870
int3