Function at 0x140001dd0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov rax, qword [0x1400133c8]
xor rax, rsp
mov qword [rbp + 0x690], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 0x22
cmp word [rax], di
je 0x140001e1c
lea ecx, [rdi - 2]
jmp 0x140001e23
movzx ecx, di
add rax, 4
movzx edx, cx
mov rcx, rax
call fcn.1400022c4
xor esi, esi
lea r12d, [rsi + 8]
test rax, rax
jne 0x140001e42
lea r13, [0x140010e9c]
jmp 0x140001e65
lea r13, [rax + 2]
jmp 0x140001e5b
mov edx, r12d
movzx ecx, ax
call fcn.1400031c8
test eax, eax
je 0x140001e65
add r13, 2
movzx eax, word [r13]
test ax, ax
jne 0x140001e48
lea rdx, [0x1400154a0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x1400154a0], di
mov edx, eax
je 0x140001e8e
lea r14, [0x1400154a0]
jmp 0x140001e99
lea r14, [0x1400154a2]
sub rdx, 2
lea rcx, [rbp + 0x370]
mov word [r14 + rdx*2], si
mov byte [0x1400143b8], 0x50
call fcn.140001200
mov ecx, esi
lea rdx, str.Failed_to_find_shebang
test rax, rax
mov rbx, rax
setne cl
call fcn.1400010cc
lea rax, [rbx + 0x104]
mov rdi, rsi
mov rcx, rbx
cmp rbx, rax
jae 0x140001ef1
cmp byte [rcx], 0xd
je 0x140001eee
cmp byte [rcx], 0xa
je 0x140001eee
inc rcx
cmp rcx, rax
jb 0x140001eda
jmp 0x140001ef1
mov rdi, rcx
mov ecx, esi
test rdi, rdi
lea rdx, str.Expected_to_find_terminator_in_shebang_line
setne cl
call fcn.1400010cc
mov byte [rdi], sil
lea rax, [rsp + 0x50]
sub edi, ebx
mov r8, rbx
mov edx, r12d
mov ecx, 0xfde9
mov r9d, edi
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, esi
test eax, eax
lea rdx, str.Expected_to_decode_shebang_line_using_UTF_8
movsxd rdi, eax
setne cl
call fcn.1400010cc
mov word [rsp + rdi*2 + 0x50], si
lea rdi, [rsp + 0x50]
cmp word [rsp + 0x50], si
je 0x140001f6f
movzx ecx, word [rdi]
mov edx, r12d
call fcn.1400031c8
test eax, eax
je 0x140001f6f
add rdi, 2
cmp word [rdi], si
jne 0x140001f57
cmp word [rdi], 0x23
mov ecx, esi
lea rdx, str.Expected_to_find__at_start_of_shebang_line
sete cl
call fcn.1400010cc
jmp 0x140001f95
mov edx, r12d
movzx ecx, ax
call fcn.1400031c8
test eax, eax
je 0x140001fa1
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x140001f86
cmp word [rdi], 0x21
mov ecx, esi
lea rdx, str.Expected_to_find___following__in_shebang_line
sete cl
call fcn.1400010cc
jmp 0x140001fc7
mov edx, r12d
movzx ecx, ax
call fcn.1400031c8
test eax, eax
je 0x140001fd3
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x140001fb8
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x40], rsi
call fcn.140001bc4
mov ecx, esi
lea rdx, str.Expected_to_find_executable_in_shebang_line
test rax, rax
mov r12, rax
setne cl
call fcn.1400010cc
mov r15, qword [rsp + 0x40]
mov ecx, esi
test r15, r15
lea rdx, str.Expected_to_find_arguments__even_if_empty__in_shebang_line
setne cl
call fcn.1400010cc
mov ebx, 0xf
lea rcx, str._launcher_dir__
mov r8d, ebx
mov rdx, r12
call fcn.1400028e4
test eax, eax
jne 0x1400020ac
lea r8, [0x1400154a0]
lea rcx, [rbp + 0x160]
mov edx, 0x104
call fcn.1400041a0
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [rbx + 0x13]
cmp word [r12 + 0x1e], dx
jne 0x14000208a
lea rcx, [r12 + 0x20]
lea ebx, [rdx - 0x12]
call fcn.1400022c4
mov ecx, esi
lea rdx, str.Expected_terminating_double_quote_for_executable_in_shebang_line:__ls
test rax, rax
mov r8, r12
mov rdi, rax
setne cl
call fcn.1400010cc
mov word [rdi], si
movsxd rax, ebx
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x480]
lea r8, [r12 + rax*2]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r12, [rbp + 0x480]
xor eax, eax
or r9, 0xffffffffffffffff
mov rdi, r13
mov rcx, r9
lea edx, [rax + 2]
repne scasw ax, word [rdi]
mov rdi, r15
not rcx
lea r8, [rcx - 1]
mov rcx, r9
repne scasw ax, word [rdi]
mov rdi, r12
not rcx
dec rcx
add r8, rcx
mov rcx, r9
repne scasw ax, word [rdi]
mov rdi, r14
not rcx
dec rcx
add r8, rcx
mov rcx, r9
repne scasw ax, word [rdi]
not rcx
lea rbx, [r8 + rcx + 7]
mov rcx, rbx
call fcn.1400026e4
lea rdx, str.Expected_to_be_able_to_allocate_command_line_memory
test rax, rax
mov rdi, rax
setne sil
mov ecx, esi
call fcn.1400010cc
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
lea r9, str.__ls___ls___ls___ls
mov r8, rbx
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
call fcn.140002ea4
mov rcx, rdi
call fcn.14000188c
int3