Function at 0x14005cfd0
Capabilities:
Check for time delay via gettickcount
Check os version
Get keyboard layout

Disassembly:
push rbx
push rbp
push r15
mov eax, 0x8180
call fcn.1400f31b0
sub rsp, rax
xor ebp, ebp
mov r15, rcx
cmp byte [rcx], 0x3e
jne 0x14005d09a
mov rcx, qword [0x140144b40]
lea rdx, str.UseErrorLevel
call fcn.1400b9ee0
mov r9, qword [0x140144b38]
test rax, rax
mov rdx, qword [0x140144b30]
mov eax, ebp
setne bl
cmp byte [r15 + 1], 3
movzx ecx, bl
cmova rax, qword [0x140144aa8]
xor cl, 1
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov byte [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x30], rax
mov rax, qword [0x140144b40]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x140145c90]
call fcn.140058480
test eax, eax
jne 0x14005d09a
test bl, bl
je 0x14005d08c
mov rcx, qword [0x140142708]
lea r8, [rbp - 1]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.ERROR
call fcn.1400be640
mov ebp, eax
mov eax, ebp
add rsp, 0x8180
pop r15
pop rbp
pop rbx
ret
movzx eax, byte [r15]
mov qword [rsp + 0x8178], rsi
mov qword [rsp + 0x8170], rdi
mov qword [rsp + 0x8168], r12
mov qword [rsp + 0x8160], r13
mov qword [rsp + 0x8158], r14
movaps xmmword [rsp + 0x8140], xmm6
cmp al, 0x5d
jne 0x14005d28b
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x140144b30]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140021e40
mov byte [rsp + 0x81b0], al
test al, al
jne 0x14005d17e
mov rcx, qword [0x140144b30]
lea rdx, [rsp + 0x5c]
xor r8d, r8d
call fcn.140083fa0
mov dword [rsp + 0x54], eax
test eax, eax
je 0x14005d123
add eax, 0xfffffff4
cmp eax, 0x1f
jbe 0x14005d189
mov rcx, qword [0x140142708]
lea rdx, [0x140119f8c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
mov r14, qword [rsp + 0x8158]
mov r13, qword [rsp + 0x8160]
mov r12, qword [rsp + 0x8168]
mov rdi, qword [rsp + 0x8170]
mov rsi, qword [rsp + 0x8178]
movaps xmm6, xmmword [rsp + 0x8140]
add rsp, 0x8180
pop r15
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x54], eax
mov rsi, qword [0x140144b38]
mov r13b, 1
mov byte [rsp + 0x81a0], bpl
mov r12d, ebp
mov dword [rsp + 0x50], 1
mov byte [rsp + 0x81a8], r13b
movzx eax, word [rsi]
test ax, ax
je 0x14005d26f
movsd xmm6, qword [0x140128278]
lea rbx, [rsi + 2]
nop word [rax + rax]
movzx edi, ax
test edi, 0xffffff80
je 0x14005d1df
mov eax, ebp
jmp 0x14005d1eb
mov edx, 2
mov ecx, edi
call fcn.1400df2dc
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
cmp ecx, 0x44
je 0x14005d24a
cmp ecx, 0x4c
je 0x14005d244
cmp ecx, 0x54
jne 0x14005d252
mov rcx, rbx
xor r13b, r13b
call fcn.140005690
mov rcx, rbx
test al, al
je 0x14005d234
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400dbfe8
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x14005d252
call fcn.1400e3e0c
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x14005d252
mov dword [rsp + 0x50], ebp
jmp 0x14005d252
mov byte [rsp + 0x81a0], 1
movzx eax, word [rsi + 2]
add rsi, 2
add rbx, 2
test ax, ax
jne 0x14005d1d0
mov byte [rsp + 0x81a8], r13b
lea rax, [rsp + 0x130]
mov dword [rsp + 0x120], ebp
mov qword [rsp + 0x110], rax
jmp 0x14005d384
mov rcx, qword [0x140144b30]
mov rbx, qword [0x140144b40]
cmp al, 0x3e
je 0x14005d2a6
cmp al, 0x5c
je 0x14005d2ae
cmp word [rbx], bp
jne 0x14005d2b7
cmp al, 0x5c
jne 0x14005d342
cmp word [rcx], bp
je 0x14005d342
xor r13b, r13b
cmp al, 0x5c
mov byte [rsp + 0x81a8], r13b
cmove rbx, rcx
mov rcx, rbx
call fcn.140005690
mov rcx, rbx
test al, al
je 0x14005d2ec
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400dbfe8
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x14005d2f1
call fcn.1400e3e0c
movzx ecx, byte [rsp + 0x81a0]
movzx r8d, byte [rsp + 0x81a0]
mov edx, dword [rsp + 0x81a0]
mulsd xmm0, qword [0x140128278]
mov byte [rsp + 0x81a0], cl
mov ecx, dword [rsp + 0x81a0]
mov byte [rsp + 0x81b0], r8b
mov dword [rsp + 0x54], edx
cvttsd2si r12d, xmm0
mov dword [rsp + 0x50], ecx
cmp r12d, 1
jge 0x14005d384
mov r12d, 0x1f4
jmp 0x14005d384
movzx eax, byte [rsp + 0x81a0]
mov r13b, 1
mov byte [rsp + 0x81b0], al
mov r12d, ebp
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0x81a0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x81a8], r13b
movzx eax, byte [r15]
cmp al, 0x3e
je 0x14005d3af
mov rcx, qword [0x140142708]
lea rdx, [0x140103634]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
movzx eax, byte [r15]
cmp al, 0x5c
jne 0x14005d3cd
mov edx, 1
mov rcx, r15
call fcn.140047c60
mov byte [rsp + 0x81b8], 1
cmp eax, 1
je 0x14005d3d5
mov byte [rsp + 0x81b8], bpl
lea rdi, [rsp + 0x130]
mov r14d, ebp
lea rdx, [0x140103554]
mov ecx, 0x4001
cmp byte [r15 + 1], bpl
jbe 0x14005d47f
mov rsi, rbp
lea r13, [0x140000000]
test ecx, ecx
jne 0x14005d40b
mov qword [rsp + rsi + 0x70], rdx
jmp 0x14005d465
mov rdx, qword [rsi + r13 + 0x144b30]
movsxd rbx, ecx
mov rcx, rdi
mov qword [rsp + rsi + 0x70], rdi
lea r8, [rbx - 1]
call fcn.1400e4f88
mov rax, 0xffffffffffffffff
mov word [rdi + rbx*2 - 2], bp
cmp word [rdi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14005d433
lea rdi, [rdi + rax*2]
add rdi, 2
lea rcx, [rsp + 0x130]
mov rax, rdi
lea rdx, [0x140103554]
sub rax, rcx
mov ecx, 0x4001
sar rax, 1
sub ecx, eax
movzx eax, byte [r15 + 1]
inc r14d
add rsi, 8
cmp r14d, eax
jl 0x14005d400
movzx r13d, byte [rsp + 0x81a8]
mov esi, dword gs:[0x48]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14, qword [rsp + 0x60]
xorps xmm6, xmm6
mov edi, eax
mov r11, qword [0x14013dbe0]
lea r9, [0x140000000]
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x70]
nop
movzx eax, byte [r15]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x14005d4e6.69
cdqe
movzx eax, byte [r9 + rax + 0x5d92c]
mov ecx, dword [r9 + rax*4 + 0x5d90c]
add rcx, r9
jmp rcx
movzx eax, byte [r15 + 1]
lea r10, [0x140103554]
cmp al, 4
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x38], rbp
lea r9, [0x140103554]
cmova r10, rdx
mov byte [rsp + 0x30], 1
cmp al, 3
mov byte [rsp + 0x28], bpl
lea rdx, [0x140103554]
mov qword [rsp + 0x20], r10
cmova r9, r8
mov rcx, r11
cmp al, 1
lea r8, [0x140103554]
cmova r8, rbx
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.1400bfd40
test rax, rax
je case.0x14005d4e6.69
mov rax, qword [0x14013dbe0]
cmp dword [rax + 0x74], 0xffffffff
jle 0x14005d8d2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140145c60], eax
mov rax, qword [0x14013dbe0]
mov ecx, dword [rax + 0x74]
je 0x14005d8c8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x14005d142
movzx eax, byte [r15 + 1]
lea rcx, [0x140103554]
cmp al, 4
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x38], rbp
lea r9, [0x140103554]
cmova rcx, rdx
mov byte [rsp + 0x30], bpl
cmp al, 3
mov byte [rsp + 0x28], bpl
mov qword [rsp + 0x20], rcx
lea rdx, [0x140103554]
cmova r9, r8
mov rcx, r11
cmp al, 1
lea r8, [0x140103554]
cmova r8, rbx
test al, al
cmovne rdx, r10
call fcn.1400bfd40
test rax, rax
je 0x14005d54c
jmp case.0x14005d4e6.69
movzx eax, byte [r15 + 1]
lea rcx, [0x140103554]
cmp al, 4
mov byte [rsp + 0x28], 1
lea r9, [0x140103554]
cmova rcx, rdx
cmp al, 3
mov qword [rsp + 0x20], rcx
lea rdx, [0x140103554]
cmova r9, r8
mov rcx, r11
cmp al, 1
lea r8, [0x140103554]
cmova r8, rbx
test al, al
cmovne rdx, r10
call fcn.1400bfb40
test rax, rax
jne 0x14005d54c
jmp case.0x14005d4e6.69
movzx eax, byte [r15 + 1]
lea rcx, [0x140103554]
cmp al, 4
mov byte [rsp + 0x28], 1
lea r9, [0x140103554]
cmova rcx, rdx
cmp al, 3
mov qword [rsp + 0x20], rcx
lea rdx, [0x140103554]
cmova r9, r8
mov rcx, r11
cmp al, 1
lea r8, [0x140103554]
cmova r8, rbx
test al, al
cmovne rdx, r10
call fcn.1400bfb40
test rax, rax
jne case.0x14005d4e6.69
mov rax, qword [0x14013dbe0]
cmp dword [rax + 0x74], 0xffffffff
jle 0x14005d8d2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140145c60], eax
je 0x14005d8be
mov rax, qword [0x14013dbe0]
mov ecx, dword [rax + 0x74]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x14005d142
cmp byte [rsp + 0x81b8], bpl
je 0x14005d6f7
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x14005d8d2
jmp case.0x14005d4e6.69
mov ecx, ntohs
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14005d8d2
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14005d8d2
jmp case.0x14005d4e6.69
movzx eax, byte [rsp + 0x81b0]
test al, al
je 0x14005d747
mov edx, dword [rsp + 0x50]
movzx ecx, al
call fcn.1400842e0
cmp al, byte [rsp + 0x81a0]
je 0x14005d8d2
jmp case.0x14005d4e6.69
mov edx, dword [rsp + 0x5c]
lea r8, [rsp + 0x110]
mov ecx, dword [rsp + 0x54]
xor r9d, r9d
call fcn.140084390
ucomisd xmm0, xmm6
jp 0x14005d76b
jne 0x14005d76b
xor eax, eax
jmp 0x14005d76d
mov al, 1
cmp al, byte [rsp + 0x81a0]
je 0x14005d8d2
jmp case.0x14005d4e6.69
test r14, r14
je 0x14005d8eb
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x58], 0x103
jne 0x14005d8dc
cmp dword [0x140145c60], esi
jne 0x14005d894
test r13b, r13b
jne 0x14005d7ce
lea ebx, [rdi + r12]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x14005d89d
mov rbx, qword [rsp + 0x78]
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001b10
mov r11, qword [0x14013dbe0]
lea r9, [0x140000000]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x70]
test al, al
je 0x14005d4c0
cmp byte [r11 + 0x139], bpl
je 0x14005d4c0
movsxd rcx, dword [0x1401437c0]
lea r9, [0x140000000]
test ecx, ecx
mov eax, 0x190
cmovne eax, ecx
movsxd rdx, eax
cmp qword [r9 + rdx*8 + 0x143e08], r15
jne 0x14005d850
cmp dword [r9 + rdx*4 + 0x1437cc], edi
mov rdx, qword [rsp + 0x90]
je 0x14005d4c0
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x70]
mov qword [r9 + rcx*8 + 0x143e10], r15
mov dword [r9 + rcx*4 + 0x1437d0], edi
inc ecx
mov dword [0x1401437c0], ecx
cmp ecx, 0x190
jl 0x14005d4c0
mov dword [0x1401437c0], ebp
jmp 0x14005d4aa
lea ebx, [rdi + r12]
test r13b, r13b
jne 0x14005d8ae
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebx, eax
cmp ebx, 5
jle 0x14005d123
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005d497
mov rcx, qword [0x14013dbe0]
mov ecx, dword [rcx + 0x74]
mov edx, 1
call fcn.140001b10
mov eax, 1
jmp 0x14005d142
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [rsp + 0x58]
jmp 0x14005d8ef
mov dword [rsp + 0x58], ebp
mov rcx, qword [0x140142708]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, ebp
call fcn.1400015d0
mov eax, 1
jmp 0x14005d142