Function at 0x14000146c
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 [0x140017170]
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 0x1400017bb
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 0x14000153d
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 0x1400014fd
lea rax, str._evtname
mov qword [rsp + 0x20], rax
lea r9, str._event
mov rdx, r14
call fcn.1400018c4
mov rsi, rax
mov rax, qword [0x140018718]
test rax, rax
jne 0x14000158e
lea rax, str._exitevtname
mov qword [rsp + 0x20], rax
lea r9, str._exitevent
mov r8d, dword [rsp + 0x40]
mov rdx, r14
call fcn.1400018c4
mov qword [0x140018718], rax
or r15d, 0xffffffff
test rsi, rsi
je 0x140001647
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r15d
je 0x1400017bb
mov qword [rsp + 0x58], r12
movdqa xmm0, xmmword [0x1400123e0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov r8d, 4
lea rdx, str._pid
lea rcx, [rsp + 0x58]
call fcn.140001a60
nop
movsxd rax, dword [rsp + 0x40]
lea rdx, [r14 + rax*8]
lea r8, [rsp + 0x58]
mov rcx, r14
call fcn.14000221c
mov rdi, rax
lea rcx, [rsp + 0x58]
call fcn.1400019f8
test rdi, rdi
je 0x140001617
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
test eax, eax
jne 0x140001624
xor ecx, ecx
call fcn.140002be8
mov edi, eax
test eax, eax
je 0x140001640
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400017bb
mov rax, qword [0x140018718]
test rax, rax
je 0x1400017bb
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.140001b20
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, [0x140017d78]
mov qword [rsp + 0x48], rdi
cmp dword [0x140017da0], r12d
je 0x1400016bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x50], 1
mov rdx, qword [0x140017d58]
cmp rdx, qword [0x140017d60]
je 0x1400016f1
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rdx + 0x10], xmm1
add qword [0x140017d58], 0x18
jmp 0x1400016fc
lea r8, [rsp + 0x58]
call fcn.140001b74
nop
cmp dword [0x140017da0], r12d
je 0x14000170e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9d, 1
lea r8, [rbp + 0x30]
lea rdx, [0x140012350]
lea rcx, [rbp - 0x80]
call fcn.140004664
mov edi, eax
test rsi, rsi
je 0x140001741
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140001783
test rbx, rbx
je 0x140001771
mov rax, qword [0x140018718]
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 0x140001788
mov edx, r15d
mov rcx, qword [0x140018718]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140001791
test rbx, rbx
je 0x140001791
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140018718]
test rcx, rcx
je 0x1400017a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.1400041c4
lea rcx, [rbp - 0x80]
call fcn.1400017e4
nop
mov eax, edi
jmp 0x1400017c0
mov eax, 0x80004005
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000d890
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret