Function at 0x14003dfd0
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rbx
push r14
push r15
mov eax, 0x8180
call fcn.1400be180
sub rsp, rax
xor r14d, r14d
mov r15, rcx
cmp byte [rcx], 0x3e
jne 0x14003e0a0
mov rcx, qword [0x140104330]
lea rdx, str.UseErrorLevel
call fcn.140089530
mov r9, qword [0x140104328]
test rax, rax
mov rdx, qword [0x140104320]
mov eax, r14d
setne bl
cmp byte [r15 + 1], 3
movzx ecx, bl
cmova rax, qword [0x140104288]
xor cl, 1
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov byte [rsp + 0x40], 1
lea rax, [rsp + 0x68]
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x30], rax
mov rax, qword [0x140104330]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x1401044f0]
call fcn.140038300
test eax, eax
jne 0x14003e0a0
test bl, bl
je 0x14003e090
mov rcx, qword [0x140101f48]
lea rdx, str.ERROR
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
mov r14d, eax
mov eax, r14d
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret
movzx eax, byte [r15]
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 0x14003e24e
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x140104320]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400154c0
mov byte [rsp + 0x81a8], al
movzx r13d, al
test al, al
jne 0x14003e149
mov rcx, qword [0x140104320]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.14005ce20
mov dword [rsp + 0x58], eax
test eax, eax
je 0x14003e125
add eax, 0xfffffff4
cmp eax, 0x1f
jbe 0x14003e154
mov rcx, qword [0x140101f48]
lea rdx, [0x1400e04fc]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
jmp 0x14003e8dc
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
mov rsi, qword [0x140104328]
mov r12d, r14d
mov byte [rsp + 0x81a0], r14b
mov dword [rsp + 0x54], 1
mov byte [rsp + 0x81b0], 1
movzx eax, word [rsi]
mov dword [rsp + 0x50], r14d
test ax, ax
je 0x14003e231
movsd xmm6, qword [0x1400eb7c8]
lea rdi, [rsi + 2]
movzx ebx, ax
test ebx, 0xffffff80
jne 0x14003e1b1
mov edx, 2
mov ecx, ebx
call fcn.1400abaa4
test eax, eax
je 0x14003e1b1
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x44
je 0x14003e20f
cmp eax, 0x4c
je 0x14003e208
cmp eax, 0x54
jne 0x14003e217
mov rcx, rdi
mov byte [rsp + 0x81b0], r14b
call fcn.14000f930
mov rcx, rdi
test al, al
je 0x14003e1f8
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400acf64
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x14003e217
call fcn.1400b10b0
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x14003e217
mov dword [rsp + 0x54], r14d
jmp 0x14003e217
mov byte [rsp + 0x81a0], 1
movzx eax, word [rsi + 2]
add rsi, 2
add rdi, 2
test ax, ax
jne 0x14003e193
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x130]
mov dword [rsp + 0x120], r14d
mov qword [rsp + 0x110], rax
jmp 0x14003e354
mov rcx, qword [0x140104320]
mov rbx, qword [0x140104330]
cmp al, 0x3e
je 0x14003e26a
cmp al, 0x5c
je 0x14003e272
cmp word [rbx], r14w
jne 0x14003e27c
cmp al, 0x5c
jne 0x14003e30e
cmp word [rcx], r14w
je 0x14003e30e
cmp al, 0x5c
mov byte [rsp + 0x81b0], r14b
cmove rbx, rcx
mov rcx, rbx
call fcn.14000f930
mov rcx, rbx
test al, al
je 0x14003e2ae
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400acf64
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x14003e2b3
call fcn.1400b10b0
movzx eax, byte [rsp + 0x81a0]
movzx r13d, byte [rsp + 0x81a0]
mov ecx, dword [rsp + 0x81a0]
mulsd xmm0, qword [0x1400eb7c8]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov byte [rsp + 0x81a8], r13b
mov dword [rsp + 0x58], ecx
cvttsd2si r12d, xmm0
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], r12d
cmp r12d, 1
jge 0x14003e354
mov r12d, 0x1f4
mov dword [rsp + 0x50], r12d
jmp 0x14003e354
mov eax, dword [rsp + 0x81a0]
mov r12d, r14d
movzx r13d, byte [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 + 0x81b0], 1
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x81a8], r13b
cmp byte [r15], 0x3e
mov qword [rsp + 0x8178], rbp
je 0x14003e381
mov rcx, qword [0x140101f48]
lea rdx, [0x1400ccfe4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
cmp byte [r15], 0x5c
jne 0x14003e3a1
mov edx, 1
mov rcx, r15
call fcn.140026860
mov byte [rsp + 0x81b8], 1
cmp eax, 1
je 0x14003e3a9
mov byte [rsp + 0x81b8], r14b
mov ebp, r14d
lea rdi, [rsp + 0x130]
mov ecx, 0x4001
cmp byte [r15 + 1], bpl
jbe 0x14003e459
mov rsi, r14
lea r13, [0x140000000]
lea r12, [0x1400ccf5c]
test ecx, ecx
jne 0x14003e3df
mov qword [rsp + rsi + 0x70], r12
jmp 0x14003e43c
mov rdx, qword [rsi + r13 + 0x104320]
movsxd rbx, ecx
mov rcx, rdi
mov qword [rsp + rsi + 0x70], rdi
lea r8, [rbx - 1]
call fcn.1400b1fb4
or rax, 0xffffffffffffffff
mov word [rdi + rbx*2 - 2], r14w
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14003e410
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 0x14003e3d4
mov r12d, dword [rsp + 0x50]
movzx r13d, byte [rsp + 0x81a8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdi, qword [rsp + 0x68]
lea r9, [0x140000000]
mov r11, qword [0x1400fda58]
mov ebx, eax
movzx esi, byte [rsp + 0x81a0]
xorps xmm6, xmm6
movzx ebp, byte [rsp + 0x81b0]
mov r10, qword [rsp + 0x78]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
nop dword [rax]
movzx eax, byte [r15]
add eax, 0xffffffc2
cmp eax, 0x3c
ja case.0x14003e4c6.69
cdqe
movzx eax, byte [r9 + rax + 0x3e934]
mov ecx, dword [r9 + rax*4 + 0x3e914]
add rcx, r9
jmp rcx
movzx eax, byte [r15 + 1]
lea rcx, [0x1400ccf5c]
cmp al, 4
mov dword [rsp + 0x40], r14d
mov r10, rcx
mov qword [rsp + 0x38], r14
cmova r10, rdx
mov byte [rsp + 0x30], 1
cmp al, 3
mov byte [rsp + 0x28], r14b
mov r9, rcx
mov qword [rsp + 0x20], r10
cmova r9, r8
mov rdx, rcx
cmp al, 1
mov r8, rcx
mov rcx, r11
cmova r8, qword [rsp + 0x78]
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14008dd00
test rax, rax
je case.0x14003e4c6.69
mov rcx, qword [0x1400fda58]
mov ecx, dword [rcx + 0x74]
jmp 0x14003e599
movzx eax, byte [r15 + 1]
lea rcx, [0x1400ccf5c]
cmp al, 4
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
cmova rcx, rdx
mov byte [rsp + 0x30], r14b
cmp al, 3
mov byte [rsp + 0x28], r14b
lea rdx, [0x1400ccf5c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14008dd00
test rax, rax
jne case.0x14003e4c6.69
mov rax, qword [0x1400fda58]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14003e8ae
mov edx, 1
call fcn.140001710
mov eax, 1
jmp 0x14003e8d4
movzx eax, byte [r15 + 1]
lea rcx, [0x1400ccf5c]
cmp al, 4
mov byte [rsp + 0x28], 1
cmova rcx, rdx
cmp al, 3
lea rdx, [0x1400ccf5c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14008db30
test rax, rax
jne 0x14003e58f
jmp case.0x14003e4c6.69
movzx eax, byte [r15 + 1]
lea rcx, [0x1400ccf5c]
cmp al, 4
mov byte [rsp + 0x28], 1
cmova rcx, rdx
cmp al, 3
lea rdx, [0x1400ccf5c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14008db30
test rax, rax
je 0x14003e58f
jmp case.0x14003e4c6.69
cmp byte [rsp + 0x81b8], r14b
je 0x14003e675
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x14003e8ae
jmp case.0x14003e4c6.69
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14003e8ae
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14003e8ae
jmp case.0x14003e4c6.69
test r13b, r13b
je 0x14003e74e
mov ecx, dword [rsp + 0x54]
sub ecx, 1
je 0x14003e6c9
cmp ecx, 1
movzx ecx, r13b
je 0x14003e6c1
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14003e73e
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14003e741
lea eax, [r13 - 1]
cmp al, 5
ja 0x14003e6d7
cmp r13b, 3
jne 0x14003e6df
lea eax, [r13 + 0x66]
cmp al, 5
ja 0x14003e6fa
cmp qword [0x140101f88], r14
je 0x14003e734
movzx eax, r13b
movzx eax, byte [rax + r9 + 0x102d30]
shr al, 7
jmp 0x14003e743
cmp qword [0x140101f90], r14
je 0x14003e734
xor edx, edx
xor r8d, r8d
movzx ecx, r13b
call fcn.140014a00
test al, al
je 0x14003e71c
mov cl, 1
call fcn.1400147b0
movzx eax, r13b
lea rdx, [0x140000000]
movzx eax, byte [rax + rdx + 0x102d30]
shr al, 7
jmp 0x14003e743
movzx ecx, r13b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
cmp al, sil
je 0x14003e8ae
jmp case.0x14003e4c6.69
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x110]
mov ecx, dword [rsp + 0x58]
xor r9d, r9d
call fcn.14005d230
ucomisd xmm0, xmm6
jp 0x14003e772
jne 0x14003e772
xor eax, eax
jmp 0x14003e774
mov al, 1
cmp al, sil
je 0x14003e8ae
jmp case.0x14003e4c6.69
test rdi, rdi
je 0x14003e897
lea rdx, [rsp + 0x5c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x5c], 0x103
jne 0x14003e887
test bpl, bpl
jne 0x14003e7be
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rbx + r12]
sub ecx, eax
cmp ecx, 5
jle 0x14003e8b5
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001710
mov r11, qword [0x1400fda58]
lea r9, [0x140000000]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x78]
test al, al
je 0x14003e4a0
cmp byte [r11 + 0x139], r14b
je 0x14003e4a0
movsxd rcx, dword [0x140102fa8]
lea r9, [0x140000000]
test ecx, ecx
mov eax, 0x190
cmovne eax, ecx
dec eax
movsxd rdx, eax
cmp qword [r9 + rdx*8 + 0x1035f0], r15
jne 0x14003e842
cmp dword [r9 + rdx*4 + 0x102fb0], ebx
mov rdx, qword [rsp + 0x90]
je 0x14003e4a0
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x78]
mov qword [r9 + rcx*8 + 0x1035f0], r15
mov dword [r9 + rcx*4 + 0x102fb0], ebx
inc ecx
mov dword [0x140102fa8], ecx
cmp ecx, 0x190
jl 0x14003e4a0
mov dword [0x140102fa8], r14d
jmp 0x14003e487
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x5c]
jmp 0x14003e89c
mov dword [rsp + 0x5c], r14d
mov rcx, qword [0x140101f48]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, r14d
call fcn.1400012a0
mov eax, 1
jmp 0x14003e8d4
mov rcx, qword [0x140101f48]
lea rdx, [0x1400e04fc]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
mov rbp, qword [rsp + 0x8178]
mov r12, qword [rsp + 0x8160]
mov rdi, qword [rsp + 0x8168]
mov rsi, qword [rsp + 0x8170]
mov r13, qword [rsp + 0x8158]
movaps xmm6, xmmword [rsp + 0x8140]
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret