Function at 0x1400c24f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov rax, qword [0x140136188]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x50], rax
mov r13, qword [rbp + 0x1d8]
mov qword [rsp + 0x48], r13
mov r15, qword [rbp + 0x1e8]
xor ebx, ebx
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1400c28b4
mov r14d, ebx
mov esi, ebx
mov edi, ebx
mov r12d, dword [rbp + 0x1e0]
test r12b, 2
je 0x1400c25a6
cmp qword [r15], rbx
jne 0x1400c277e
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r15], rax
jmp 0x1400c2774
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
mov r12d, ebx
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jle 0x1400c2613
mov rdi, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc r12d
lea rdi, [rdi + 8]
mov r8d, dword [rsp + 0x40]
cmp r12d, r8d
jl 0x1400c25d1
lea rax, str._evtname
mov qword [rsp + 0x20], rax
lea r9, str._event
mov rdx, r13
mov r12, qword [rsp + 0x50]
mov rcx, r12
call fcn.1400c1f80
mov rdi, rax
cmp qword [r15], rbx
jne 0x1400c2664
lea rax, str._exitevtname
mov qword [rsp + 0x20], rax
lea r9, str._exitevent
mov r8d, dword [rsp + 0x40]
mov rdx, r13
mov rcx, r12
call fcn.1400c1f80
mov qword [r15], rax
test rdi, rdi
je 0x1400c2768
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1400c28b4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bx
mov r8d, 4
lea rdx, str._pid
lea rcx, [rsp + 0x50]
call fcn.140049b30
nop
movsxd rax, dword [rsp + 0x40]
lea rdx, [rax*8]
add rdx, r13
lea r8, [rsp + 0x50]
mov rcx, r13
call fcn.1400d164c
mov r14, rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400c2716
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c2711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c2711
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d725c
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bx
test r14, r14
je 0x1400c273e
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r14d, eax
test eax, eax
jne 0x1400c274c
xor ecx, ecx
call fcn.1400d20fc
mov r14d, eax
test eax, eax
je 0x1400c2768
mov r8d, r14d
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400c28b4
mov r12d, dword [rbp + 0x1e0]
mov r13, qword [rsp + 0x48]
cmp qword [r15], 0
je 0x1400c28b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
mov r8, r13
lea rdx, str._s_d_d
lea rcx, [rbp + 0x20]
call fcn.1400c0990
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x70], bx
mov qword [rbp + 0x10], rbx
test r12b, 1
je 0x1400c27d1
mov edx, r14d
lea rcx, [rsp + 0x70]
call fcn.1400c1d10
mov ebx, 1
mov r9d, ebx
lea r8, [rbp + 0x20]
mov rdx, qword [0x140136030]
lea rcx, [rsp + 0x70]
call fcn.1400d43d0
mov ebx, eax
test rdi, rdi
je 0x1400c2802
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400c283e
mov rcx, qword [r15]
test rsi, rsi
je 0x1400c2831
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rsi
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1400c2843
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400c284c
test rsi, rsi
je 0x1400c284c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400c285b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.1400d3e24
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400c28b0
mov rax, qword [rbp - 0x80]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c28aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c28aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d725c
nop
mov eax, ebx
jmp 0x1400c28b9
mov eax, 0x80004005
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400d7200
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret