Function at 0x14000147c
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 [0x140020170]
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 0x1400017cb
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 0x14000154d
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 0x14000150d
lea rax, str._evtname
mov qword [rsp + 0x20], rax
lea r9, str._event
mov rdx, r14
call fcn.1400018d4
mov rsi, rax
mov rax, qword [0x140021a78]
test rax, rax
jne 0x14000159e
lea rax, str._exitevtname
mov qword [rsp + 0x20], rax
lea r9, str._exitevent
mov r8d, dword [rsp + 0x40]
mov rdx, r14
call fcn.1400018d4
mov qword [0x140021a78], rax
or r15d, 0xffffffff
test rsi, rsi
je 0x140001657
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r15d
je 0x1400017cb
mov qword [rsp + 0x58], r12
movdqa xmm0, xmmword [0x14001aba0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov r8d, 4
lea rdx, str._pid
lea rcx, [rsp + 0x58]
call fcn.140001a70
nop
movsxd rax, dword [rsp + 0x40]
lea rdx, [r14 + rax*8]
lea r8, [rsp + 0x58]
mov rcx, r14
call fcn.1400096bc
mov rdi, rax
lea rcx, [rsp + 0x58]
call fcn.140001a08
test rdi, rdi
je 0x140001627
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
test eax, eax
jne 0x140001634
xor ecx, ecx
call fcn.14000a16c
mov edi, eax
test eax, eax
je 0x140001650
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400017cb
mov rax, qword [0x140021a78]
test rax, rax
je 0x1400017cb
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.140001b30
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, [0x140021070]
mov qword [rsp + 0x48], rdi
cmp dword [0x140021098], r12d
je 0x1400016cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x50], 1
mov rdx, qword [0x140021050]
cmp rdx, qword [0x140021058]
je 0x140001701
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rdx + 0x10], xmm1
add qword [0x140021050], 0x18
jmp 0x14000170c
lea r8, [rsp + 0x58]
call fcn.140001b84
nop
cmp dword [0x140021098], r12d
je 0x14000171e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9d, 1
lea r8, [rbp + 0x30]
lea rdx, [0x14001ab10]
lea rcx, [rbp - 0x80]
call fcn.14000c9c8
mov edi, eax
test rsi, rsi
je 0x140001751
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140001793
test rbx, rbx
je 0x140001781
mov rax, qword [0x140021a78]
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 0x140001798
mov edx, r15d
mov rcx, qword [0x140021a78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400017a1
test rbx, rbx
je 0x1400017a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140021a78]
test rcx, rcx
je 0x1400017b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.14000c514
lea rcx, [rbp - 0x80]
call fcn.1400017f4
nop
mov eax, edi
jmp 0x1400017d0
mov eax, 0x80004005
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140015e70
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret