Function at 0x14005be10
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
je 0x14005c0d3
cmp word [rdx], 0
je 0x14005c0d3
lea rdx, str.Exist
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x14005be66
cmp word [rdi], ax
je 0x14005be5c
mov rcx, rdi
call fcn.140089790
mov edx, eax
jmp 0x14005bec2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
jmp 0x14005bec2
lea rdx, str.Close
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x14005bf07
mov rcx, rdi
call fcn.140089790
mov edi, eax
test eax, eax
je case.0x14005bf44.67
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je case.0x14005bf44.67
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test ebx, ebx
cmovne esi, edi
mov edx, esi
mov rcx, qword [0x14014a3b0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001470
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.Priority
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x14005bfba
movzx ecx, word [rsi]
call fcn.1400ef99c
movzx eax, ax
add eax, 0xffffffbf
cmp eax, 0x11
ja case.0x14005bf44.67
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x5c0f0]
add rcx, rdx
jmp rcx
mov ebx, 0x40
jmp 0x14005bf6e
mov ebx, 0x4000
jmp 0x14005bf6e
mov ebx, SafeArrayAllocDescriptor
jmp 0x14005bf6e
mov ebx, 0x8000
jmp 0x14005bf6e
mov ebx, 0x80
jmp 0x14005bf6e
mov ebx, 0x100
cmp word [rdi], 0
je 0x14005bf7e
mov rcx, rdi
call fcn.140089790
jmp 0x14005bf84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
test eax, eax
je case.0x14005bf44.67
mov r8d, eax
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je case.0x14005bf44.67
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x14005beae
lea rdx, str.Wait
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x14005bfd2
lea ebp, [rax + 4]
jmp 0x14005bfec
lea rdx, str.WaitClose
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x14005c0d3
lea ebp, [rax + 5]
cmp word [rsi], 0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
je 0x14005c023
mov rcx, rsi
xor r14b, r14b
call fcn.140029270
mulsd xmm0, qword [0x1401315c8]
cvttsd2si esi, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
jmp 0x14005c02d
mov r12d, dword [rsp + 0x68]
mov r14b, 1
xor esi, esi
mov r15d, dword gs:[0x48]
mov rcx, rdi
call fcn.140089790
mov ebx, eax
cmp ebp, 4
jne 0x14005c078
test eax, eax
je 0x14005c07c
mov rcx, qword [0x14014a3b0]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001470
mov eax, 1
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
test eax, eax
je 0x14005c0b2
test r14b, r14b
jne 0x14005c092
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r12 + rsi]
sub ecx, eax
cmp ecx, 5
jle 0x14005c049
cmp dword [0x14014c878], r15d
mov ecx, 0x64
jne 0x14005c0aa
lea edx, [rcx - 0x63]
call fcn.1400018c0
jmp 0x14005c036
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005c036
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
jmp 0x14005c060
mov r9, rbx
lea rdx, str.Parameter_1_invalid.
xor r8d, r8d
mov rcx, rbp
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140050440