Function at 0x18003b560
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x2d0], rbx
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, r9
mov qword [rsp + 0x40], r8
mov edi, edx
mov rbx, rcx
mov byte [rcx + 0x250], 0
xor ebp, ebp
mov rax, qword [0x180278738]
test rax, rax
jne 0x18003b5e0
lea ecx, [rbp + 0x20]
call fcn.1800b543c
test rax, rax
je 0x18003b5d1
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
mov qword [rax + 0x10], rbp
jmp 0x18003b5d4
mov rax, rbp
mov qword [0x180278738], rax
mov r8, qword [rsp + 0x40]
cmp dword [rax + 8], ebp
je 0x18003b782
mov dword [rsp + 0x30], ebp
mov eax, 0x80000000
mov r14, r8
mov esi, 1
and r14, rax
mov qword [rsp + 0x38], r14
jne 0x18003b6a0
mov dword [rbx + 0x1e8], edi
mov edx, edi
mov rcx, rbx
call fcn.18004a9b0
mov dword [rbx + 0x1ec], esi
lea rcx, [rbx + 0x258]
mov rdx, r15
mov rax, r15
or rax, rcx
and eax, 0xf
jne 0x18003b693
lea eax, [rsi + 1]
nop word [rax + rax]
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x18003b640
jmp 0x18003b6b4
mov r8d, 0x100
call fcn.1800b54c0
jmp 0x18003b6b4
mov dword [rbx + 0x1ec], ebp
cmp dword [rbx + 0x1e8], edi
je 0x18003b6b4
mov dword [rbx + 0x1e8], ebp
mov dword [rbx + 0x20c], esi
movzx eax, byte [r15 + 0x11]
and al, 0x80
mov r12d, ebp
cmovne r12d, esi
cmp edi, 0x11
jne 0x18003b731
test r14, r14
je 0x18003b6e5
mov eax, dword [rbx + 0x1e0]
mov dword [rsp + 0x30], eax
mov qword [rbx + 0x1dc], rbp
jmp 0x18003b758
cmp dword [rbx + 0x1dc], ebp
jne 0x18003b758
mov esi, ebp
nop
cmp esi, 0x11
je 0x18003b714
lea eax, [rsi - 0xa2]
cmp eax, 1
jbe 0x18003b714
mov ecx, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx rcx, ax
shr rcx, 8
test cl, cl
jne 0x18003b753
inc esi
cmp esi, 0x100
jl 0x18003b6f0
mov esi, 1
mov dword [rbx + 0x1dc], esi
mov dword [rbx + 0x1e0], esi
jmp 0x18003b758
test al, al
jne 0x18003b73e
mov qword [rbx + 0x1dc], rbp
jmp 0x18003b758
test r14, r14
jne 0x18003b758
cmp dword [rbx + 0x1e0], ebp
je 0x18003b758
mov dword [rbx + 0x1e0], ebp
jmp 0x18003b758
mov esi, 1
test r12d, r12d
je 0x18003b789
cmp edi, 0x20
jne 0x18003b789
test r14, r14
jne 0x18003b789
call fcn.180010530
test eax, eax
je 0x18003b782
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x18003b782
mov rax, qword [rcx]
call qword [rax + 0x38]
xor eax, eax
jmp 0x18003c148
mov r13d, ebp
cmp edi, 0x10
jne 0x18003b840
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x1d8]
cmp eax, ecx
jbe 0x18003b7a9
sub eax, ecx
jmp 0x18003b7ad
sub ecx, eax
mov eax, ecx
cmp eax, 0x1f4
cmovb r13d, esi
cmp dword [rbx + 0x254], 1
jne 0x18003b7f8
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0xb7
call qword [rax + 0x20]
mov rsi, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x18003b7f8
xor r9d, r9d
mov edx, 0x52d
mov r8d, 0x153
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageW]
cmp dword [rbx + 0x254], 2
jne 0x18003b83a
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0xb7
call qword [rax + 0x20]
mov rsi, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x18003b83a
xor r9d, r9d
mov edx, 0x52d
mov r8d, 0x154
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageW]
mov dword [rbx + 0x254], ebp
cmp dword [rbx + 0x228], ebp
je 0x18003b891
cmp edi, 8
jne 0x18003b891
mov rax, qword [0x180278768]
test rax, rax
jne 0x18003b87e
mov ecx, edi
call fcn.1800b543c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18003b874
mov rcx, rax
call fcn.1801108e0
jmp 0x18003b877
mov rax, rbp
mov qword [0x180278768], rax
mov edx, 1
mov rcx, rax
call fcn.1800d9950
mov dword [rbx + 0x228], ebp
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cmp al, 0x81
jne 0x18003b92d
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x18003b8b5
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbx + 0x238]
test rcx, rcx
je 0x18003b8c7
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rbx
call fcn.1800418a0
mov rcx, rbx
call fcn.1800490d0
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rcx, qword [rbx + 0x138]
test rcx, rcx
je 0x18003b8ee
call fcn.180017790
mov rcx, rbx
call fcn.1800491a0
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbx + 0x238]
test rcx, rcx
je 0x18003b782
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rbx + 0x238]
mov rax, qword [rcx]
call qword [rax + 0x58]
xor eax, eax
jmp 0x18003c148
cmp al, 1
jne 0x18003bac0
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x84
call qword [rax + 0x88]
test eax, eax
je 0x18003b968
cmp edi, 0x1b
jne 0x18003b968
mov rcx, qword [rbx + 0x238]
mov rax, qword [rcx]
call qword [rax + 0x70]
or eax, 0xffffffff
jmp 0x18003c148
call fcn.180008ef0
mov rcx, rax
mov rsi, qword [rsp + 0x40]
mov r8, rsi
mov edx, edi
call fcn.180039190
cmp eax, 0xffffffff
je 0x18003b9c6
test byte [r15 + 0x10], 0x80
je 0x18003b995
mov dword [rbx + 0xb4], 1
test byte [r15 + 0x11], 0x80
je 0x18003b9a6
mov dword [rbx + 0xb8], 1
cmp eax, 0x9d04
jne 0x18003b9b7
mov dword [rbx + 0xbc], 1
mov byte [rbx + 0x250], 1
or eax, 0xffffffff
jmp 0x18003c148
cmp edi, 0x10
jne 0x18003baa2
test r14, r14
je 0x18003baa2
cmp dword [rbx + 0x1e8], edi
jne 0x18003baa2
test r12d, r12d
jne 0x18003baa2
movzx esi, byte [rbx + 0x2f8]
movzx edi, byte [rbx + 0x2f9]
and edi, 0x80
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
lea edx, [r12 + 0x75]
call qword [rax]
and esi, 0x80
je 0x18003ba22
test edi, edi
jne 0x18003b782
cmp eax, 1
je 0x18003ba41
test esi, esi
je 0x18003ba30
cmp eax, 2
jmp 0x18003ba3b
test edi, edi
je 0x18003b782
cmp eax, 3
jne 0x18003b782
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x14
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x14
call qword [sym.imp.USER32.dll_keybd_event]
call fcn.180006ba0
mov r9, qword [rax]
mov edx, 0x82
mov rcx, rax
call qword [r9 + 0x88]
mov ebx, eax
call fcn.180006ba0
mov r9, qword [rax]
test bl, bl
sete bpl
mov r8d, ebp
mov edx, 0x82
mov rcx, rax
call qword [r9 + 0x90]
xor eax, eax
jmp 0x18003c148
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x7f
call qword [rax + 0x88]
test eax, eax
jne 0x18003bafc
jmp 0x18003c148
cmp al, 0x80
jne 0x18003baf7
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x18003bad6
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 0x238]
test rcx, rcx
je 0x18003bae8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rbx
call fcn.1800490d0
xor eax, eax
jmp 0x18003c148
mov rsi, qword [rsp + 0x40]
call fcn.180008ef0
mov rcx, rax
mov r8, rsi
mov edx, edi
call fcn.180039190
cmp eax, 0xffffffff
jne 0x18003b984
test r14, r14
je 0x18003bb2d
lea eax, [rdi - 0x10]
cmp eax, 1
ja 0x18003b782
test r14, r14
jne 0x18003bb40
lea eax, [rdi - 0x10]
cmp eax, 1
ja 0x18003bbd4
xor eax, eax
jmp 0x18003c148
cmp edi, 0x10
jne 0x18003bbd4
cmp dword [rbx + 0x1e8], edi
jne 0x18003bbc7
test r12d, r12d
jne 0x18003bbc7
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
lea edx, [rdi + 0x67]
call qword [rax]
cmp eax, 1
jne 0x18003bbba
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
jle 0x18003bbba
movzx ecx, byte [rbx + 0x2f8]
and ecx, 0x80
movzx eax, byte [rbx + 0x2f9]
and eax, 0x80
je 0x18003bba7
test ecx, ecx
jne 0x18003bbc7
lea edx, [rdi - 0xd]
mov rcx, rbx
call fcn.18003f170
jmp 0x18003bbc7
test ecx, ecx
je 0x18003bbc7
mov edx, 2
mov rcx, rbx
call fcn.18003f170
jmp 0x18003bbc7
test r13d, r13d
jne 0x18003bbc7
mov rcx, rbx
call fcn.18003c180
mov dword [rbx + 0xb4], ebp
xor eax, eax
jmp 0x18003c148
cmp edi, 0x11
jne 0x18003bccd
movzx esi, byte [rbx + 0x2fa]
movzx edi, byte [rbx + 0x2fb]
and edi, 0x80
and esi, 0x80
je 0x18003bc01
test edi, edi
jne 0x18003b782
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub r14d, dword [rbx + 0x210]
mov rcx, qword [rbx + 0x230]
mov r8, qword [rcx]
mov edx, 0x77
call qword [r8]
test eax, eax
jne 0x18003bc6f
cmp r14d, 0x64
jb 0x18003bcc0
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
jle 0x18003bc6f
test esi, esi
je 0x18003bc5c
cmp dword [rsp + 0x30], 0
je 0x18003bcc0
mov edx, 2
mov rcx, rbx
call fcn.18003f170
jmp 0x18003bcc0
test edi, edi
je 0x18003bcc0
mov edx, 3
mov rcx, rbx
call fcn.18003f170
jmp 0x18003bcc0
cmp r14d, 0x64
jb 0x18003bcc0
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x75
call qword [rax]
lea ecx, [rax - 4]
cmp ecx, 2
ja 0x18003bcc0
cmp dword [rbx + 0xb8], 0
jne 0x18003bcc0
cmp eax, 4
je 0x18003bcae
cmp eax, 5
jne 0x18003bca5
test esi, esi
jmp 0x18003bcac
cmp eax, 6
jne 0x18003bcc0
test edi, edi
je 0x18003bcc0
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x18003bcc0
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xb8], ebp
xor eax, eax
jmp 0x18003c148
mov esi, ebp
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x7d
call qword [rax + 0x88]
cmp eax, 1
jne 0x18003bd96
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x7f
call qword [rax + 0x88]
test eax, eax
jne 0x18003bd96
test byte [r15 + 0x10], 0x80
je 0x18003bd1b
mov dword [rbx + 0xb4], 1
test byte [r15 + 0x11], 0x80
je 0x18003bd2c
mov dword [rbx + 0xb8], 1
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x84
call qword [rax + 0x88]
test eax, eax
je 0x18003b782
cmp edi, 0x1b
je 0x18003b953
cmp edi, 0x2e
ja 0x18003bd6b
movabs rcx, 0x61e000002300
bt rcx, rdi
jb 0x18003b782
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x7f
call qword [rax + 0x88]
test al, al
jne 0x18003c143
cmp edi, 0x20
jne 0x18003c143
jmp 0x18003b782
cmp dword [rbx + 0x48], esi
jle 0x18003bdaf
lea rcx, [0x180000000]
movzx esi, byte [rdi + rcx + 0x1f31e0]
jmp 0x18003c073
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
jle 0x18003be67
cmp edi, 0x1b
jne 0x18003bdd3
mov esi, 1
jmp 0x18003c073
cmp edi, 0x20
jne 0x18003bdf0
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
cmp dword [rax + 4], esi
jge 0x18003bdc9
mov esi, ebp
jmp 0x18003be21
lea eax, [rdi - 0x21]
cmp eax, 1
jbe 0x18003bdc9
lea eax, [rdi - 0x30]
cmp eax, 9
ja 0x18003be0a
mov esi, 1
jmp 0x18003c073
lea rcx, [0x180000000]
movzx esi, byte [rdi + rcx + 0x1f30e0]
test esi, esi
jne 0x18003c073
mov rcx, rbx
call fcn.180049160
call fcn.18004a200
mov rcx, qword [rbx + 0x140]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbx + 0x238]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 0x238]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rbx + 0x238]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x18003c073
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x84
call qword [rax + 0x88]
test eax, eax
je 0x18003bead
cmp edi, 0x1b
je 0x18003b953
cmp edi, 0x2e
ja 0x18003bd6b
movabs rcx, 0x61e000002300
bt rcx, rdi
jae 0x18003bd6b
xor eax, eax
jmp 0x18003c148
lea r14, [rbx + 0xf0]
mov qword [rsp + 0x20], 1
lea r9, [0x1801f4f30]
mov r8, qword [r14 + 0x10]
xor edx, edx
mov rcx, r14
call fcn.18000a270
test eax, eax
je 0x18003bee2
mov eax, dword [rbx + 0xc0]
mov dword [rbx + 0xc4], eax
cmp dword [rbx + 0xc4], esi
jne 0x18003befc
xor r8d, r8d
lea rdx, [0x1801f3ee0]
mov rcx, r14
call fcn.180005450
lea eax, [rdi - 0x25]
cmp eax, 3
jbe 0x18003bf09
cmp edi, 0x20
jne 0x18003bf26
mov qword [rbx + 0xc0], 1
xor r8d, r8d
lea rdx, [0x1801f3ee0]
mov rcx, r14
call fcn.180005450
lea eax, [rdi - 0x60]
cmp eax, 9
jbe 0x18003bf67
lea eax, [rdi - 0x30]
cmp eax, 9
jbe 0x18003bf67
mov qword [rsp + 0x20], 1
lea r9, [0x1801f4f30]
mov r8, qword [r14 + 0x10]
xor edx, edx
mov rcx, r14
call fcn.18000a270
test eax, eax
jne 0x18003c000
mov dword [rbx + 0xc4], ebp
jmp 0x18003c000
mov dword [rbx + 0xc0], 1
cmp dword [rbx + 0xc4], esi
je 0x18003c000
mov qword [rsp + 0x20], 1
lea r9, [0x1801f4f30]
mov r8, qword [r14 + 0x10]
xor edx, edx
mov rcx, r14
call fcn.18000a270
test eax, eax
jne 0x18003c000
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x54
call qword [rax]
test eax, eax
je 0x18003c000
cmp edi, 0x60
jb 0x18003bfbc
add edi, 0xffffffd0
mov word [rsp + 0x60], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1800be330
mov r8d, edi
lea rdx, [0x1801f4f38]
lea rcx, [rsp + 0x60]
call fcn.1800b5a54
mov edx, edi
call fcn.18004a0f0
xor r8d, r8d
lea rdx, [0x1801f3ee0]
mov rcx, r14
call fcn.180005450
test byte [r15 + 0x10], 0x80
je 0x18003c045
test r12d, r12d
jne 0x18003c06e
lea eax, [rdi - 0x30]
cmp eax, 0x4a
jbe 0x18003c034
lea eax, [rdi - 0xbf]
cmp eax, 0x1f
jbe 0x18003c034
lea eax, [rdi - 0xba]
test eax, 0xfffffffc
jne 0x18003c05f
cmp edi, 0xbc
je 0x18003c05f
lea rcx, [0x180000000]
movzx esi, byte [rdi + rcx + 0x1f31e0]
jmp 0x18003c06e
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x7f
call qword [rax + 0x88]
cmp eax, 1
je 0x18003c00c
lea rcx, [0x180000000]
movzx esi, byte [rdi + rcx + 0x1f30e0]
mov r14, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
mov edx, 0x4a
call qword [rax]
test eax, eax
je 0x18003c092
cmp edi, 0x20
jne 0x18003c092
lea esi, [rdi - 0x1f]
jmp 0x18003c097
cmp edi, 0x10
je 0x18003c0a8
test byte [r15 + 0x10], 0x80
je 0x18003c0a8
mov dword [rbx + 0xb4], 1
cmp edi, 0x11
je 0x18003c0be
test byte [r15 + 0x11], 0x80
je 0x18003c0be
mov dword [rbx + 0xb8], 1
mov r9d, edi
mov edx, dword [rbx + 0xb8]
mov rcx, rbx
call fcn.18003c320
test eax, eax
jne 0x18003b782
cmp edi, 0x20
jne 0x18003c0fe
test esi, esi
jne 0x18003c143
test r14, r14
jne 0x18003c102
mov rcx, qword [rbx + 0x230]
mov rax, qword [rcx]
lea edx, [rdi + 0x5f]
call qword [rax + 0x88]
test eax, eax
je 0x18003c102
jmp 0x18003c143
test esi, esi
jne 0x18003c143
mov rax, qword [rbx + 0x1f8]
sub rax, qword [rbx + 0x1f0]
sar rax, 2
cmp rax, 1
jbe 0x18003c124
mov rax, qword [rbx + 0x1f0]
mov ebp, dword [rax + 4]
test r13d, r13d
jne 0x18003c137
lea eax, [rbp - 0x25]
test eax, 0xfffffffd
jne 0x18003b782
mov rcx, rbx
call fcn.18004a180
xor eax, eax
jmp 0x18003c148
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800b5370
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret