Function at 0x14006b580
Capabilities:
Check for time delay via gettickcount
Get keyboard layout

Disassembly:
push rbx
push r14
push r15
mov eax, 0x8180
call fcn.1400f7000
sub rsp, rax
xor r14d, r14d
mov r15, rcx
cmp byte [rcx], 0x3e
jne 0x14006b657
mov rcx, qword [0x140134f00]
lea rdx, str.UseErrorLevel
call fcn.1400d6b70
mov r9, qword [0x140134ef8]
test rax, rax
mov rbx, rax
mov eax, r14d
setne dl
cmp byte [r15 + 1], 3
cmova rax, qword [0x140134e58]
test rbx, rbx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov byte [rsp + 0x40], 1
sete cl
mov byte [rsp + 0x38], dl
xor r8d, r8d
mov rdx, qword [0x140134ef0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140134f00]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x140136060]
call fcn.140065f10
test eax, eax
jne 0x14006b657
test rbx, rbx
je 0x14006b647
mov rcx, qword [0x140132a80]
lea rdx, str.ERROR
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
call fcn.1400dc860
mov r14d, eax
mov eax, r14d
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret
movzx eax, byte [r15]
mov qword [rsp + 0x8178], rbp
mov qword [rsp + 0x8170], rsi
mov qword [rsp + 0x8168], rdi
mov qword [rsp + 0x8160], r12
mov qword [rsp + 0x8158], r13
movaps xmmword [rsp + 0x8140], xmm6
cmp al, 0x5d
jne 0x14006b821
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x140134ef0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140025360
mov byte [rsp + 0x81b0], al
test al, al
jne 0x14006b743
mov rcx, qword [0x140134ef0]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.140099790
mov dword [rsp + 0x58], eax
test eax, eax
je 0x14006b6e4
add eax, 0xfffffff4
cmp eax, 0x1f
jbe 0x14006b74e
mov rcx, qword [0x140132a80]
lea rdx, [0x14011026c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
call fcn.1400dc860
mov r13, qword [rsp + 0x8158]
mov r12, qword [rsp + 0x8160]
mov rdi, qword [rsp + 0x8168]
mov rsi, qword [rsp + 0x8170]
mov rbp, qword [rsp + 0x8178]
movaps xmm6, xmmword [rsp + 0x8140]
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
mov rdi, qword [0x140134ef8]
mov r13b, 1
mov byte [rsp + 0x81a0], r14b
mov r12d, r14d
mov dword [rsp + 0x54], 1
mov byte [rsp + 0x81a8], r13b
movzx ebx, word [rdi]
mov dword [rsp + 0x50], r14d
test bx, bx
je 0x14006b807
movsd xmm6, qword [0x14011e4d8]
lea rsi, [rdi + 2]
mov ebp, 0xffdf
movzx ecx, bx
test ecx, 0xffffff80
jne 0x14006b7b2
mov edx, 2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x14006b7b2
and bx, bp
cmp bx, 0x44
je 0x14006b7e1
cmp bx, 0x4c
je 0x14006b7da
cmp bx, 0x54
jne 0x14006b7e9
xor r13b, r13b
mov rcx, rsi
call fcn.140033dc0
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x14006b7e9
mov dword [rsp + 0x54], r14d
jmp 0x14006b7e9
mov byte [rsp + 0x81a0], 1
movzx ebx, word [rdi + 2]
add rdi, 2
add rsi, 2
test bx, bx
jne 0x14006b795
mov byte [rsp + 0x81a8], r13b
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x130]
mov dword [rsp + 0x120], r14d
mov qword [rsp + 0x110], rax
jmp 0x14006b88c
cmp al, 0x3e
je 0x14006b845
mov rdx, qword [0x140134ef0]
mov rcx, qword [0x140134f00]
cmp al, 0x5c
je 0x14006b919
cmp word [rcx], r14w
jne 0x14006b923
movzx eax, byte [rsp + 0x81a0]
mov r13b, 1
mov byte [rsp + 0x81b0], al
mov r12d, r14d
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
movzx eax, byte [rsp + 0x81a0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x81a8], r13b
mov dword [rsp + 0x50], r14d
cmp byte [r15], 0x3e
je 0x14006b8b4
mov rcx, qword [0x140132a80]
lea rdx, [0x1400f98c8]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
call fcn.1400dc860
cmp byte [r15], 0x5c
jne 0x14006b8d4
mov edx, 1
mov rcx, r15
call fcn.140051ac0
mov byte [rsp + 0x81b8], 1
cmp eax, 1
je 0x14006b8dc
mov byte [rsp + 0x81b8], r14b
mov ebp, r14d
lea rdi, [rsp + 0x130]
mov ecx, 0x4001
cmp byte [r15 + 1], bpl
jbe 0x14006ba10
mov rsi, r14
lea r13, [0x1400f97e4]
lea r12, [0x140000000]
test ecx, ecx
jne 0x14006b999
mov qword [rsp + rsi + 0x70], r13
jmp 0x14006b9ef
cmp word [rdx], r14w
je 0x14006b845
xor r13b, r13b
cmp al, 0x5c
mov byte [rsp + 0x81a8], r13b
cmove rcx, rdx
call fcn.140033dc0
movzx eax, byte [rsp + 0x81a0]
movzx edx, byte [rsp + 0x81a0]
mov ecx, dword [rsp + 0x81a0]
mulsd xmm0, qword [0x14011e4d8]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov byte [rsp + 0x81b0], dl
mov dword [rsp + 0x58], ecx
cvttsd2si r12d, xmm0
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], r12d
cmp r12d, 1
jge 0x14006b88c
mov r12d, 0x1f4
mov dword [rsp + 0x50], r12d
jmp 0x14006b88c
mov rdx, qword [rsi + r12 + 0x134ef0]
movsxd rbx, ecx
mov rcx, rdi
mov qword [rsp + rsi + 0x70], rdi
lea r8, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, 0xffffffffffffffff
mov word [rdi + rbx*2 - 2], r14w
cmp word [rdi + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14006b9c3
lea rdi, [rdi + rax*2]
add rdi, 2
lea rcx, [rsp + 0x130]
mov rax, rdi
sub rax, rcx
mov ecx, 0x4001
sar rax, 1
sub ecx, eax
movzx eax, byte [r15 + 1]
inc ebp
add rsi, 8
cmp ebp, eax
jl 0x14006b907
mov r12d, dword [rsp + 0x50]
movzx r13d, byte [rsp + 0x81a8]
mov esi, dword gs:[0x48]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdi, qword [rsp + 0x68]
xorps xmm6, xmm6
mov rbp, qword [rsp + 0x90]
mov ebx, eax
mov r10, qword [0x14012f240]
lea r9, [0x140000000]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov r11, qword [rsp + 0x70]
movzx eax, byte [r15]
add eax, 0xffffffc2
cmp eax, 0x40
ja case.0x14006ba76.69
cdqe
movzx eax, byte [r9 + rax + 0x6bed4]
mov ecx, dword [r9 + rax*4 + 0x6beb4]
add rcx, r9
jmp rcx
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14006ba8c
mov r9, rdx
mov rcx, rbp
mov rdx, r11
jmp 0x14006bac9
lea rcx, [0x1400f97e4]
cmp al, 3
jbe 0x14006ba9f
mov r9, rdx
mov rdx, r11
jmp 0x14006bac9
lea rdx, [0x1400f97e4]
mov rcx, rdx
mov r9, rdx
cmp al, 1
ja 0x14006bab7
mov r8, rdx
test al, al
je 0x14006babc
mov rdx, r11
jmp 0x14006bac9
lea rax, [0x1400f97e4]
mov rcx, rax
mov r9, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400de080
test rax, rax
je case.0x14006ba76.69
mov rax, qword [0x14012f240]
cmp dword [rax + 0x74], 0xffffffff
jle 0x14006be76
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140136030], eax
mov rcx, qword [0x14012f240]
mov ecx, dword [rcx + 0x74]
je 0x14006be6c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x14006b706
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14006bb44
mov r9, rdx
mov rcx, rbp
mov rdx, r11
jmp 0x14006bb81
lea rcx, [0x1400f97e4]
cmp al, 3
jbe 0x14006bb57
mov r9, rdx
mov rdx, r11
jmp 0x14006bb81
lea rdx, [0x1400f97e4]
mov rcx, rdx
mov r9, rdx
cmp al, 1
ja 0x14006bb6f
mov r8, rdx
test al, al
je 0x14006bb74
mov rdx, r11
jmp 0x14006bb81
lea rax, [0x1400f97e4]
mov rcx, rax
mov r9, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400de080
test rax, rax
je 0x14006baf3
jmp case.0x14006ba76.69
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14006bbc4
mov r9, rdx
mov rcx, rbp
mov rdx, r11
jmp 0x14006bc01
lea rcx, [0x1400f97e4]
cmp al, 3
jbe 0x14006bbd7
mov r9, rdx
mov rdx, r11
jmp 0x14006bc01
lea rdx, [0x1400f97e4]
mov rcx, rdx
mov r9, rdx
cmp al, 1
ja 0x14006bbef
mov r8, rdx
test al, al
je 0x14006bbf4
mov rdx, r11
jmp 0x14006bc01
lea rax, [0x1400f97e4]
mov rcx, rax
mov r9, rax
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400dde80
test rax, rax
jne 0x14006baf3
jmp case.0x14006ba76.69
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14006bc35
mov r9, rdx
mov rcx, rbp
mov rdx, r11
jmp 0x14006bc72
lea rcx, [0x1400f97e4]
cmp al, 3
jbe 0x14006bc48
mov r9, rdx
mov rdx, r11
jmp 0x14006bc72
lea rdx, [0x1400f97e4]
mov rcx, rdx
mov r9, rdx
cmp al, 1
ja 0x14006bc60
mov r8, rdx
test al, al
je 0x14006bc65
mov rdx, r11
jmp 0x14006bc72
lea rax, [0x1400f97e4]
mov rcx, rax
mov r9, rax
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400dde80
test rax, rax
je 0x14006baf3
jmp case.0x14006ba76.69
cmp byte [rsp + 0x81b8], r14b
je 0x14006bcaf
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x14006be76
jmp case.0x14006ba76.69
mov ecx, ntohs
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14006be76
mov ecx, reloc.WSOCK32.dll_ntohs
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14006be76
jmp case.0x14006ba76.69
movzx eax, byte [rsp + 0x81b0]
test al, al
je 0x14006bd01
mov edx, dword [rsp + 0x54]
movzx ecx, al
call fcn.140099ab0
cmp al, byte [rsp + 0x81a0]
je 0x14006be76
jmp case.0x14006ba76.69
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x110]
mov ecx, dword [rsp + 0x58]
xor r9d, r9d
call fcn.140099b60
ucomisd xmm0, xmm6
jp 0x14006bd25
jne 0x14006bd25
xor eax, eax
jmp 0x14006bd27
mov al, 1
cmp al, byte [rsp + 0x81a0]
je 0x14006be76
jmp case.0x14006ba76.69
test rdi, rdi
je 0x14006be90
lea rdx, [rsp + 0x5c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x5c], 0x103
jne 0x14006be80
cmp dword [0x140136030], esi
jne 0x14006be42
test r13b, r13b
jne 0x14006bd81
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rbx + r12]
sub ecx, eax
cmp ecx, 5
jle 0x14006be47
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001b00
test al, al
je 0x14006ba30
mov r10, qword [0x14012f240]
lea r9, [0x140000000]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov r11, qword [rsp + 0x70]
cmp byte [r10 + 0x139], r14b
je 0x14006ba50
movsxd rcx, dword [0x140133b70]
lea r9, [0x140000000]
test ecx, ecx
mov eax, 0x190
cmovne eax, ecx
movsxd rdx, eax
cmp qword [r9 + rdx*8 + 0x1341b8], r15
jne 0x14006be00
cmp dword [r9 + rdx*4 + 0x133b7c], ebx
mov rdx, qword [rsp + 0x88]
je 0x14006ba50
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov r11, qword [rsp + 0x70]
mov qword [r9 + rcx*8 + 0x1341c0], r15
mov dword [r9 + rcx*4 + 0x133b80], ebx
inc ecx
mov dword [0x140133b70], ecx
cmp ecx, 0x190
jl 0x14006ba50
mov dword [0x140133b70], r14d
jmp 0x14006ba3e
test r13b, r13b
jne 0x14006be5c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rbx + r12]
sub ecx, eax
cmp ecx, 5
jle 0x14006b6e4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14006ba30
mov edx, 1
call fcn.140001b00
mov eax, 1
jmp 0x14006b706
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x5c]
jmp 0x14006be95
mov dword [rsp + 0x5c], r14d
mov rcx, qword [0x140132a80]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, r14d
call fcn.1400015a0
mov eax, 1
jmp 0x14006b706