Function at 0x1400504f0
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 0x1400507be
cmp word [rdx], 0
je 0x1400507be
lea rdx, str.Exist
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400507a2
lea rdx, str.Close
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140050718
lea rdx, str.Priority
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14005067e
lea rdx, str.Wait
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140050579
lea ebp, [rax + 4]
jmp 0x140050594
lea rdx, str.WaitClose
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400507be
lea ebp, [rax + 5]
cmp word [rsi], 0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
je 0x1400505cb
mov rcx, rsi
xor r14b, r14b
call fcn.140025dd0
mulsd xmm0, qword [0x1400ee128]
cvttsd2si esi, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
jmp 0x1400505d5
mov r12d, dword [rsp + 0x68]
mov r14b, 1
xor esi, esi
mov r15d, dword gs:[0x48]
nop
mov rcx, rdi
call fcn.14007a340
mov ebx, eax
cmp rbp, 4
jne 0x140050623
test eax, eax
je 0x140050627
mov rcx, qword [0x140101c20]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400014c0
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 0x14005065d
test r14b, r14b
jne 0x14005063d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r12 + rsi]
sub ecx, eax
cmp ecx, 5
jle 0x1400505f4
cmp dword [0x140105110], r15d
mov ecx, 0x64
jne 0x140050655
lea edx, [rcx - 0x63]
call fcn.1400019b0
jmp 0x1400505e0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400505e0
mov rcx, qword [0x140101c20]
lea rdx, [0x1400cb6f4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x14005060b
movzx ecx, word [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx eax, ax
add eax, 0xffffffbf
cmp eax, 0x11
ja case.0x1400506a9.67
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x507dc]
add rcx, rdx
jmp rcx
mov ebx, 0x40
jmp 0x1400506d3
mov ebx, 0x4000
jmp 0x1400506d3
mov ebx, SafeArrayAllocDescriptor
jmp 0x1400506d3
mov ebx, 0x8000
jmp 0x1400506d3
mov ebx, 0x80
jmp 0x1400506d3
mov ebx, 0x100
cmp word [rdi], 0
je 0x1400506e3
mov rcx, rdi
call fcn.14007a340
jmp 0x1400506e9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
test eax, eax
je case.0x1400506a9.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.0x1400506a9.67
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x140050749
mov rcx, rdi
call fcn.14007a340
mov edi, eax
test eax, eax
je case.0x1400506a9.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.0x1400506a9.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 [0x140101c20]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400014c0
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [0x140101c20]
lea rdx, [0x1400cb6f4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp word [rdi], 0
je 0x1400507b4
mov rcx, rdi
call fcn.14007a340
mov edx, eax
jmp 0x14005075d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
jmp 0x14005075d
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.1400468a0