Function at 0x140021260
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x120], rax
call fcn.1400038eb
call fcn.14000420a
xor r12d, r12d
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
jne 0x1400212d6
lea r8, str.cmdline___nullptr___GetCommandLineW_returned_NULL_
lea edx, [rax + 0x43]
lea rcx, str.agentmain.cc
call fcn.1400045f7
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
jne 0x140021302
lea r8, str.argv___nullptr___CommandLineToArgvW_returned_NULL_
lea edx, [rax + 0x45]
lea rcx, str.agentmain.cc
call fcn.1400045f7
or rbx, 0xffffffffffffffff
mov r9d, dword [rsp + 0x30]
cmp r9d, 2
jne 0x14002134e
mov rdx, qword [r14 + 8]
lea r8, str.__version
mov rcx, r12
nop
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140021354
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140021354
add rcx, 2
cmp rcx, 0xa
jne 0x140021320
call fcn.14000122b
xor eax, eax
jmp 0x140021901
jl 0x140021465
mov rdx, qword [r14 + 8]
lea r8, str.__show_input
mov rcx, rbx
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140021465
add rcx, 2
cmp rcx, 0xd
je 0x14002138e
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140021465
jmp 0x140021362
xor r10b, r10b
xor dl, dl
mov r8d, 2
cmp r9d, r8d
jle 0x140021455
add r14, 0x10
lea rsi, str.__with_mouse
lea r11, str.__escape_input
nop dword [rax]
nop dword [rax + rax]
mov rdi, qword [r14]
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rsi + rcx*2 + 2]
jne 0x1400213f7
add rcx, 2
cmp rcx, 0xd
je 0x1400213f2
movzx eax, word [rdi + rcx*2]
cmp ax, word [rsi + rcx*2]
jne 0x1400213f7
jmp 0x1400213d0
mov r10b, 1
jmp 0x140021426
mov rax, rbx
nop word [rax + rax]
movzx ecx, word [rdi + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x140021434
add rax, 2
cmp rax, 0xf
je 0x140021424
movzx ecx, word [rdi + rax*2]
cmp cx, word [r11 + rax*2]
jne 0x140021434
jmp 0x140021400
mov dl, 1
inc r8d
add r14, 8
cmp r8d, r9d
jl 0x1400213c0
jmp 0x140021455
mov ecx, 2
call fcn.140001870
mov rcx, rax
mov r8, rdi
lea rdx, str.Unrecognized___show_input_option:__ls_n
call fcn.1400041d8
jmp 0x1400218fc
movzx ecx, r10b
call fcn.140002496
xor eax, eax
jmp 0x140021901
cmp r9d, 3
jne 0x1400214b2
mov rcx, qword [r14 + 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 0x1400214b8
add rbx, 2
cmp rbx, 0x11
je 0x1400214a2
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
jne 0x1400214b8
jmp 0x140021480
mov rcx, qword [r14 + 8]
call fcn.1400031ed
xor eax, eax
jmp 0x140021901
cmp r9d, 6
je 0x1400214e4
mov rbx, qword [r14]
mov ecx, 2
call fcn.140001870
mov rcx, rax
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
call fcn.1400041d8
jmp 0x1400218fc
mov rdx, qword [r14 + 0x28]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
cmp word [rdx], r12w
jne 0x140021504
mov r8, r12
jmp 0x14002151a
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140021510
lea rcx, [rbp - 0x60]
call fcn.14000346d
nop
mov rdx, qword [r14 + 0x20]
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
cmp word [rdx], 0
jne 0x140021544
mov r8, r12
jmp 0x14002155b
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140021550
lea rcx, [rbp - 0x80]
call fcn.14000346d
nop
mov rdx, qword [r14 + 0x18]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp word [rdx], 0
jne 0x140021588
mov r8, r12
jmp 0x14002159b
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140021590
lea rcx, [rsp + 0x60]
call fcn.14000346d
nop
mov rdx, qword [r14 + 0x10]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
cmp word [rdx], 0
jne 0x1400215d0
mov rbx, r12
jmp 0x1400215da
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400215d0
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14000346d
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140003189
mov rdi, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call fcn.140003189
mov rbx, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140003189
mov r15, rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140003189
nop
cmp qword [rdi + 0x18], 0x10
jb 0x140021632
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 0x10
jb 0x14002163c
mov rbx, qword [rbx]
cmp qword [r15 + 0x18], 0x10
jb 0x140021646
mov r15, qword [r15]
cmp qword [rax + 0x18], 0x10
jb 0x140021650
mov rax, qword [rax]
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.140004246
mov rsi, rax
mov rcx, rdi
call fcn.140002554
mov edi, eax
mov rcx, rbx
call fcn.140002554
mov ebx, eax
mov rcx, r15
call fcn.140002554
mov r9d, eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
mov r8, rsi
mov rdx, qword [r14 + 8]
lea rcx, [rbp + 0x40]
call fcn.140001dcf
nop
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x1400216ef
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x1400216ea
test cl, 0x1f
je 0x1400216bd
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400216cc
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400216db
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x1400216e7
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], r12
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140021755
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140021750
test cl, 0x1f
je 0x140021723
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140021732
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x140021741
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x14002174d
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], r12
mov byte [rbp - 0x20], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x1400217bb
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x1400217b6
test cl, 0x1f
je 0x140021789
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140021798
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400217a7
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x1400217b3
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp + 0x18], 0xf
mov qword [rbp + 0x10], r12
mov byte [rbp], 0
mov rax, qword [rbp + 0x38]
cmp rax, 0x10
jb 0x140021821
inc rax
mov rcx, qword [rbp + 0x20]
cmp rax, 0x1000
jb 0x14002181c
test cl, 0x1f
je 0x1400217ef
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400217fe
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002180d
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x140021819
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], r12
mov byte [rbp + 0x20], 0
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14002184e
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14000452a
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14002187f
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.14000452a
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400218ad
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.14000452a
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x1400218d8
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.14000452a
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
lea rcx, [rbp + 0x40]
call fcn.140002e7d
nop
lea rcx, [rbp + 0x40]
call fcn.140003bc0
mov eax, 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140003cb0
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