Function at 0x1400015ac
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x370
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rsp + 0x360], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 0x22
cmp word [rax], di
je 0x1400015f3
lea ecx, [rdi - 2]
jmp 0x1400015fa
movzx ecx, di
add rax, 4
movzx edx, cx
mov rcx, rax
call fcn.140001ad4
xor esi, esi
lea r12d, [rsi + 8]
test rax, rax
jne 0x140001619
lea r13, [0x14000fde0]
jmp 0x14000163c
lea r13, [rax + 2]
jmp 0x140001632
mov edx, r12d
movzx ecx, ax
call fcn.140002330
test eax, eax
je 0x14000163c
add r13, 2
movzx eax, word [r13]
test ax, ax
jne 0x14000161f
lea r14, [0x140014400]
mov ebp, 0x104
xor ecx, ecx
mov rdx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x140014400], di
mov edx, eax
jne 0x14000166c
lea r14, [0x140014402]
sub rdx, 2
lea rcx, [rsp + 0x250]
mov word [r14 + rdx*2], si
mov byte [0x1400133b8], 0x50
call fcn.140001134
mov ecx, esi
lea rdx, str.Failed_to_find_shebang
test rax, rax
mov rbx, rax
setne cl
call section..text
lea rax, [rbx + 0x104]
mov rdi, rsi
mov rcx, rbx
cmp rbx, rax
jae 0x1400016c5
cmp byte [rcx], 0xd
je 0x1400016c2
cmp byte [rcx], 0xa
je 0x1400016c2
inc rcx
cmp rcx, rax
jb 0x1400016ae
jmp 0x1400016c5
mov rdi, rcx
mov ecx, esi
test rdi, rdi
lea rdx, str.Expected_to_find_terminator_in_shebang_line
setne cl
call section..text
mov byte [rdi], sil
lea rax, [rsp + 0x40]
sub edi, ebx
mov r8, rbx
mov edx, r12d
mov ecx, 0xfde9
mov r9d, edi
mov dword [rsp + 0x28], ebp
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 section..text
mov word [rsp + rdi*2 + 0x40], si
lea rbp, [rsp + 0x40]
cmp word [rsp + 0x40], si
je 0x140001741
movzx ecx, word [rbp]
mov edx, r12d
call fcn.140002330
test eax, eax
je 0x140001741
add rbp, 2
cmp word [rbp], si
jne 0x140001727
cmp word [rbp], 0x23
mov ecx, esi
lea rdx, str.Expected_to_find__at_start_of_shebang_line
sete cl
call section..text
jmp 0x140001768
mov edx, r12d
movzx ecx, ax
call fcn.140002330
test eax, eax
je 0x140001775
add rbp, 2
movzx eax, word [rbp]
test ax, ax
jne 0x140001759
cmp word [rbp], 0x21
mov ecx, esi
lea rdx, str.Expected_to_find___following__in_shebang_line
sete cl
call section..text
jmp 0x14000179c
mov edx, r12d
movzx ecx, ax
call fcn.140002330
test eax, eax
je 0x1400017a9
add rbp, 2
movzx eax, word [rbp]
test ax, ax
jne 0x14000178d
lea rdx, str..exe
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ebx, 0x22
mov r12, rax
test rax, rax
je 0x1400017f8
cmp word [rax + 8], si
je 0x1400017f8
cmp word [rax + 8], bx
je 0x1400017f8
movzx ecx, word [rax + 8]
mov edx, 8
call fcn.140002330
test eax, eax
jne 0x1400017f8
lea rdx, str..exe
lea rcx, [r12 + 8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
jmp 0x1400017be
mov ecx, esi
test r12, r12
lea rdx, str.Expected_to_find_a_command_ending_in_.exe_in_shebang_line.
setne cl
call section..text
add r12, 8
cmp word [rbp], bx
jne 0x140001839
cmp word [r12], bx
mov ecx, esi
lea rdx, str.Expected_terminating_double_quote_for_executable_in_shebang_line.
sete cl
call section..text
mov word [r12], si
add r12, 2
add rbp, 2
cmp word [r12], bx
mov ecx, esi
lea rdx, str.Terminating_quote_without_starting_quote_for_executable_in_shebang_line.
setne cl
call section..text
cmp word [r12], si
je 0x140001885
movzx ecx, word [r12]
mov edx, 8
call fcn.140002330
test eax, eax
je 0x140001885
mov word [r12], si
jmp 0x140001881
mov edx, 8
movzx ecx, ax
call fcn.140002330
test eax, eax
je 0x14000188f
add r12, 2
movzx eax, word [r12]
test ax, ax
jne 0x140001870
mov ecx, esi
test rbp, rbp
lea rdx, str.Expected_to_find_executable_in_shebang_line
setne cl
call section..text
mov ecx, esi
test r12, r12
lea rdx, str.Expected_to_find_arguments__even_if_empty__in_shebang_line
setne cl
call section..text
xor eax, eax
or r9, 0xffffffffffffffff
mov rcx, r9
mov rdi, r12
lea edx, [rax + 2]
repne scasw ax, word [rdi]
mov rdi, rbp
not rcx
lea r8, [rcx - 1]
mov rcx, r9
repne scasw ax, word [rdi]
mov rdi, r13
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.140001ef4
lea rdx, str.Expected_to_be_able_to_allocate_command_line_memory
test rax, rax
mov rdi, rax
setne sil
mov ecx, esi
call section..text
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
lea r9, str.__s___s___s___s
mov r8, rbx
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call fcn.14000200c
mov rcx, rdi
call fcn.1400013b8
int3