Function at 0x14000148c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
mov rax, qword [0x1400231c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r12d, r12d
mov dword [rsp + 0x44], r12d
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 0x1400017db
mov edi, r12d
mov ebx, r12d
mov dword [rsp + 0x40], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
mov r15d, r12d
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jle 0x14000155d
mov rsi, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, qword [rsi]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc r15d
lea rsi, [rsi + 8]
mov r8d, dword [rsp + 0x40]
cmp r15d, r8d
jl 0x14000151d
lea rax, str._evtname
mov qword [rsp + 0x20], rax
lea r9, str._event
mov rdx, r14
call fcn.1400018e4
mov rsi, rax
mov rax, qword [0x140024b28]
test rax, rax
jne 0x1400015ae
lea rax, str._exitevtname
mov qword [rsp + 0x20], rax
lea r9, str._exitevent
mov r8d, dword [rsp + 0x40]
mov rdx, r14
call fcn.1400018e4
mov qword [0x140024b28], rax
or r15d, 0xffffffff
test rsi, rsi
je 0x140001667
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r15d
je 0x1400017db
mov qword [rsp + 0x58], r12
movdqa xmm0, xmmword [0x14001cd90]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov r8d, 4
lea rdx, str._pid
lea rcx, [rsp + 0x58]
call fcn.140001a80
nop
movsxd rax, dword [rsp + 0x40]
lea rdx, [r14 + rax*8]
lea r8, [rsp + 0x58]
mov rcx, r14
call fcn.14000975c
mov rdi, rax
lea rcx, [rsp + 0x58]
call fcn.140001a18
test rdi, rdi
je 0x140001637
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
test eax, eax
jne 0x140001644
xor ecx, ecx
call fcn.14000a290
mov edi, eax
test eax, eax
je 0x140001660
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400017db
mov rax, qword [0x140024b28]
test rax, rax
je 0x1400017db
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
lea r8, str.cptcontrol
lea rdx, str._s_d_d
lea rcx, [rbp + 0x30]
call fcn.140001b40
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x60], r12w
mov qword [rbp + 0x20], r12
mov dword [rsp + 0x58], edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r12d
lea rdi, [0x1400240f0]
mov qword [rsp + 0x48], rdi
cmp dword [0x140024118], r12d
je 0x1400016df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x50], 1
mov rdx, qword [0x1400240d0]
cmp rdx, qword [0x1400240d8]
je 0x140001711
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rdx + 0x10], xmm1
add qword [0x1400240d0], 0x18
jmp 0x14000171c
lea r8, [rsp + 0x58]
call fcn.140001b94
nop
cmp dword [0x140024118], r12d
je 0x14000172e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9d, 1
lea r8, [rbp + 0x30]
lea rdx, [0x14001cd00]
lea rcx, [rbp - 0x80]
call fcn.14000ce68
mov edi, eax
test rsi, rsi
je 0x140001761
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400017a3
test rbx, rbx
je 0x140001791
mov rax, qword [0x140024b28]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1400017a8
mov edx, r15d
mov rcx, qword [0x140024b28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400017b1
test rbx, rbx
je 0x1400017b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024b28]
test rcx, rcx
je 0x1400017c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.14000c9b4
lea rcx, [rbp - 0x80]
call fcn.140001804
nop
mov eax, edi
jmp 0x1400017e0
mov eax, 0x80004005
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400172f0
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret