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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x158
lea rbp, [rsp + 0x60]
mov r15, qword [0x1401255c8]
mov eax, dword [0x14012d1a0]
mov r14, r9
mov r13d, r8d
mov r12d, edx
mov rdi, rcx
mov qword [rbp + 0x48], r15
mov dword [rbp + 0x50], eax
test edx, edx
jne 0x14001d5db
lea r8d, [rdx + 7]
lea rdx, [0x1400f6320]
call fcn.1400d7250
test eax, eax
jne 0x14001d5db
mov byte [0x1401298ff], 1
add rdi, 0xe
jmp 0x14001d5e7
mov byte [0x1401298ff], 0
test r12d, r12d
jne 0x14001d611
lea rdx, [0x1400f5dc0]
mov r8d, 6
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001d611
mov r12d, 2
add rdi, 0xc
mov dword [rbp + 0x148], r12d
mov eax, dword [r15 + 0x7c]
mov dword [rbp + 0x40], eax
mov eax, dword [r15 + 0x84]
mov dword [rbp + 0x54], eax
cmp r13d, 1
je 0x14001d632
cmp r13d, 3
jne 0x14001d6fb
mov rcx, qword [0x14012b658]
test rcx, rcx
je 0x14001d644
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r8, [0x1400f4d68]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp qword [0x14012b658], 0
mov esi, eax
je 0x14001d673
mov qword [0x14012b658], rbx
jmp 0x14001d681
test rbx, rbx
je 0x14001d681
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xb7
je 0x14001d6ba
test r12d, r12d
jne 0x14001d6ab
call fcn.1400142c0
test al, al
je 0x14001d6ab
lea rdx, [0x1400f6330]
mov rcx, rdi
call fcn.1400b9750
test rax, rax
jne 0x14001d6ba
mov r13d, 1
mov dword [rbp + 0x150], r13d
jmp 0x14001d6fb
cmp r13d, 3
jne 0x14001d6cf
mov r13d, 2
mov dword [rbp + 0x150], r13d
jmp 0x14001d6fb
xor eax, eax
mov r13d, eax
mov dword [rbp + 0x150], eax
cmp dword [r15 + 0x7c], eax
jge 0x14001d6ec
cmp dword [r15 + 0x84], eax
jge 0x14001d6ec
or eax, 0xffffffff
mov dword [r15 + 0x84], eax
mov dword [r15 + 0x7c], 0xffffffff
xor r15d, r15d
mov byte [rbp + 8], 0
mov esi, 0x8000
mov ebx, r15d
test r14, r14
je 0x14001d762
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
mov esi, eax
mov dword [rbp + 0x24], eax
test eax, eax
je 0x14001d8b3
cmp eax, dword [0x14012c598]
je 0x14001d8b3
mov rcx, r14
call fcn.1400c03b0
test al, al
jne 0x14001d8b3
mov ecx, dword [0x14012c598]
lea r8d, [r15 + 1]
mov edx, esi
call qword [sym.imp.USER32.DLL_AttachThreadInput]
mov ebx, esi
test eax, eax
setne byte [rbp + 8]
jmp 0x14001d8b3
test byte [0x14012d13e], 0xc0
je 0x14001d85f
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012d134]
cmp eax, 0x32
jae 0x14001d85f
cmp r13d, 2
je 0x14001d85f
cmp byte [0x1401298ff], bl
jne 0x14001d85f
cmp r12d, 2
je 0x14001d85f
cmp byte [0x14012d3c3], bl
je 0x14001d85f
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x14012c598]
jne 0x14001d85f
lea rdx, [0x1400f6340]
mov rcx, rdi
call fcn.140007390
test r12d, r12d
je 0x14001d822
test rax, rax
setne al
test al, al
je 0x14001d85f
mov ecx, 0x5b
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test si, ax
jne 0x14001d800
mov ecx, 0x5c
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test si, ax
je 0x14001d85f
mov edx, 1
mov ecx, 0x8000012f
mov dword [0x140125594], r15d
call fcn.140001b60
mov dword [0x140125594], 1
jmp 0x14001d7e0
test rax, rax
je 0x14001d85f
nop word [rax + rax]
lea rcx, [rax + 2]
lea rdx, [0x1400f6348]
call fcn.140007390
test rax, rax
je 0x14001d7e0
cmp word [rax], 0x7b
je 0x14001d7e0
lea rdx, [0x1400f6340]
mov rcx, rax
call fcn.140007390
test rax, rax
jne 0x14001d830
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
test rax, rax
je 0x14001d8aa
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
lea rdx, [rbp + 0xa0]
mov dword [rbp + 0xa0], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.DLL_GetGUIThreadInfo]
test eax, eax
je 0x14001d8aa
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14001d8aa
xor edx, edx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
mov ebx, eax
mov eax, dword [rbp + 0x148]
mov dword [rbp + 0x24], eax
mov ecx, ebx
call qword [sym.imp.USER32.DLL_GetKeyboardLayout]
lea r9, [0x14012b6e0]
mov ecx, r15d
mov rbx, rax
mov qword [0x140129930], rax
mov rdx, r9
mov r8, qword [rdx]
test r8, r8
je 0x14001d8ee
cmp r8, rax
je 0x14001d987
inc ecx
add rdx, 0x10
cmp ecx, 0xa
jl 0x14001d8d2
cmp ecx, 0xa
mov eax, 9
mov esi, r15d
cmovl eax, ecx
mov rcx, rbx
movsxd r12, eax
shl r12, 4
add r12, r9
call fcn.1400228f0
mov r13, rax
test rax, rax
je 0x14001d943
lea rdx, [0x1400f64a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14001d93a
call rax
mov ecx, dword [rax + 0x50]
and cl, 1
neg cl
sbb esi, esi
add esi, 4
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [r12 + 8], esi
mov qword [r12], rbx
mov cl, 1
mov dword [0x140129924], esi
call fcn.140022330
and byte [0x14012b6b2], al
cmp qword [0x14012ac08], r15
movzx ebx, al
je 0x14001d994
movzx eax, byte [0x14012aab1]
movzx edx, byte [0x14012aab3]
movzx ecx, al
not al
and cl, dl
and al, dl
mov byte [rbp + 7], al
jmp 0x14001d9bc
movsxd rax, ecx
add rax, rax
mov esi, dword [r9 + rax*8 + 8]
jmp 0x14001d94c
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012d134]
cmp eax, dword [0x14012558c]
jae 0x14001d9b3
movzx edx, byte [0x14012d13e]
and dl, bl
jmp 0x14001d9b5
xor dl, dl
movzx ecx, dl
mov byte [rbp + 7], r15b
movzx r15d, byte [0x14012b69b]
not cl
mov byte [rbp + 4], dl
and cl, bl
and r15b, cl
cmp byte [0x1401298ff], 0
mov byte [rbp + 0x140], r15b
mov byte [0x14012b69b], r15b
je 0x14001d9fe
not r15b
mov byte [rbp + 0x140], bl
mov byte [rbp + 3], bl
and r15b, bl
mov byte [rbp + 5], r15b
movzx r15d, bl
jmp 0x14001da07
xor al, al
mov byte [rbp + 3], r15b
mov byte [rbp + 5], al
mov rax, qword [rbp + 0x48]
mov esi, dword [rbp + 0x148]
cmp byte [rax + 0x133], 0
je 0x14001da39
cmp byte [0x1401298ff], 0
jne 0x14001da39
cmp esi, 2
je 0x14001da39
mov edx, 2
mov cl, reloc.OLEAUT32.DLL_SafeArrayLock
call fcn.140021990
mov dword [rbp + 0x2c], eax
jmp 0x14001da3e
xor edx, edx
mov dword [rbp + 0x2c], edx
mov r13d, dword [rbp + 0x150]
mov eax, 0x1f4
mov dword [0x14012b780], r13d
test r13d, r13d
je 0x14001dadf
cmp r13d, 1
jne 0x14001da6d
mov ecx, 0x4e20
mov dword [0x14012991c], eax
jmp 0x14001da7c
mov ecx, 0x2ee0
mov dword [0x14012991c], 0x5dc
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14001da8f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e0a90
sub rsp, rax
mov byte [0x14012990f], bl
xor ebx, ebx
lea rax, [rsp + 0x60]
mov dword [0x140129910], 0x80000000
mov dword [0x140129914], 0x80000000
mov byte [0x14012990e], 0
mov byte [0x14012990c], 1
mov qword [0x140129928], rax
mov dword [0x140129920], ebx
mov byte [0x14012990d], bl
jmp 0x14001dae1
xor ebx, ebx
movzx eax, byte [0x14012b625]
mov byte [rbp + 0x10], al
mov eax, dword [reloc.OLEAUT32.DLL_VariantChangeType]
cmp eax, 8
je 0x14001dafb
cmp eax, 0xa
jne 0x14001db1c
test r13d, r13d
jne 0x14001db1c
test r14, r14
jne 0x14001db1c
lea ecx, [r13 + 1]
mov byte [rbp + 9], 1
call qword [sym.imp.USER32.DLL_BlockInput]
mov byte [0x14012b625], 1
jmp 0x14001db20
mov byte [rbp + 9], 0
xor r12b, r12b
cmp word [rdi], 0
mov byte [rbp], r12b
mov byte [rbp + 1], r12b
je 0x14001e7f7
lea r13, [0x140000000]
jmp 0x14001db42
xor ebx, ebx
cmp dword [0x14012b780], 0
mov byte [rbp + 6], 0
jne 0x14001dbad
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x1401255c8]
sub eax, dword [0x14012d1a4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001dbad
lea rcx, [rbp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x14001dba1
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], ebx
call fcn.140001b60
mov dword [0x140125594], 1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d1a4], eax
test esi, esi
jne 0x14001e6c6
movzx edx, word [rdi]
lea rcx, [0x1400f6350]
call fcn.1400d7d64
test rax, rax
je 0x14001e729
movzx eax, word [rdi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x14001dbf2.38
cdqe
movzx eax, byte [r13 + rax + 0x1ecac]
mov ecx, dword [r13 + rax*4 + 0x1ec90]
add rcx, r13
jmp rcx
test r15b, 3
jne case.0x14001dbf2.38
or r12b, 1
jmp 0x14001e7c3
test r15b, 0x30
jne case.0x14001dbf2.38
or r12b, 0x10
jmp 0x14001e7c3
test r15b, 0xc
jne case.0x14001dbf2.38
or r12b, 4
jmp 0x14001e7c3
test r15b, 0xc0
jne case.0x14001dbf2.38
or r12b, 0x40
jmp 0x14001e7c3
lea rbx, [rdi + 2]
mov edx, 0x7d
mov rcx, rbx
call fcn.1400d7d64
mov rsi, rax
mov qword [rbp + 0x30], rax
test rax, rax
je case.0x14001dbf2.38
mov rdi, rbx
movzx ecx, word [rdi]
cmp cx, 0x20
je 0x14001dc73
cmp cx, 9
jne 0x14001dc79
add rdi, 2
jmp 0x14001dc64
mov r13, rax
sub r13, rdi
sar r13, 1
jne 0x14001dd31
lea rbx, [rax + 2]
movzx eax, word [rax + 2]
cmp ax, 0x7d
jne 0x14001dca8
mov rsi, rbx
mov qword [rbp + 0x30], rbx
mov r13d, 1
jmp 0x14001dd31
cmp ax, 0x20
je 0x14001dcc0
cmp ax, 9
jne 0x14001e0d9
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001dccf
cmp ax, 9
jne 0x14001dcd5
add rbx, 2
jmp 0x14001dcc0
lea rdx, [0x1400f2fb8]
mov r8d, 4
mov rcx, rbx
call fcn.1400d7250
test eax, eax
je 0x14001dd0b
lea rdx, [0x1400f2fc4]
mov r8d, 2
mov rcx, rbx
call fcn.1400d7250
test eax, eax
jne 0x14001e0d9
mov edx, 0x7d
mov rcx, rbx
call fcn.1400d7d64
mov rsi, rax
mov qword [rbp + 0x30], rax
test rax, rax
je case.0x14001dbf2.38
mov r13, rax
sub r13, rdi
sar r13, 1
lea rdx, [0x1400f4c10]
mov r8d, 5
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001de29
xor edx, edx
lea rcx, [rdi + 0xa]
mov word [rsi], dx
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001dd66
cmp ax, 9
jne 0x14001dd6c
add rcx, 2
jmp 0x14001dd57
lea rax, [rbp + 0xa]
lea r9, [rbp + 2]
lea r8, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x14]
lea rdx, [rbp + 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc]
mov qword [rsp + 0x20], rax
call fcn.14001fef0
mov ecx, dword [rbp + 0x14]
mov eax, 0x7d
mov word [rsi], ax
cmp ecx, 1
jge 0x14001dde3
cmp dword [rbp + 0x1c], 0x80000000
je 0x14001e0d9
mov rax, qword [rbp + 0x48]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x28]
movzx r9d, byte [rax + 0x12f]
movzx eax, byte [rbp + 0xa]
lea rcx, [rbp + 0x1c]
mov byte [rsp + 0x20], al
call fcn.140020e30
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
movzx eax, byte [rbp + 0xa]
xor edx, edx
movzx r9d, r15b
mov byte [rsp + 0x50], al
mov eax, dword [rbp + 0x28]
movzx r8d, r12b
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x1c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0xc]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], dl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
movzx ecx, byte [rbp + 2]
call fcn.14001ed10
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
lea rdx, [0x1400f6360]
mov r8d, 3
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001de58
mov rdi, qword [rbp + 0x30]
mov r12d, 1
mov dword [rbp + 0x148], r12d
jmp 0x14001e7c0
lea rdx, [0x1400f62a8]
mov r8d, 4
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001dea9
lea rcx, [rdi + 8]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001de84
cmp ax, 9
jne 0x14001de8a
add rcx, 2
jmp 0x14001de75
cmp rcx, rsi
jne 0x14001e0d9
mov rdi, qword [rbp + 0x30]
mov r12d, 2
mov dword [rbp + 0x148], r12d
jmp 0x14001e7c0
mov eax, 1
lea rdx, [0x1400f5b90]
xor r12d, r12d
mov rcx, rdi
mov dword [rbp + 0xc], 2
mov r15, r13
mov dword [rbp + 0x14], eax
mov word [rsi], r12w
call fcn.140007390
mov r14, rax
test rax, rax
je 0x14001df9e
movzx eax, word [rax]
mov r15, r14
lea rbx, [r14 + 2]
sub r15, rdi
mov word [r14], r12w
mov word [rbp + 0x18], ax
sar r15, 1
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001df04
cmp ax, 9
jne 0x14001df0a
add rbx, 2
jmp 0x14001def5
mov rax, rsi
sub rax, rbx
sar rax, 1
test eax, eax
je 0x14001df9e
lea rdx, [0x1400f2fb8]
mov r8d, 4
mov rcx, rbx
call fcn.1400d7250
test eax, eax
jne 0x14001df77
add rbx, 8
lea r8d, [rax + 4]
lea rdx, [0x1400f6368]
mov rcx, rbx
mov dword [rbp + 0xc], r12d
call fcn.1400d7250
test eax, eax
jne 0x14001df59
mov dword [rbp + 0x20], r12d
jmp 0x14001df9e
cmp word [rbx], 0x52
mov ecx, r12d
sete cl
call fcn.1400d9334
mov ecx, r12d
test eax, eax
setne cl
inc ecx
mov dword [rbp + 0x20], ecx
jmp 0x14001df9e
lea rdx, [0x1400f2fc4]
mov rcx, rbx
call fcn.1400d6a7c
test eax, eax
jne 0x14001df93
mov dword [rbp + 0xc], 1
jmp 0x14001df9e
mov rcx, rbx
call fcn.14001ce60
mov dword [rbp + 0x14], eax
cmp word [rdi], r12w
jne 0x14001dfa9
xor sil, sil
jmp 0x14001dfc9
mov r9, qword [0x140129930]
lea rdx, [rbp + 1]
mov r8b, 1
mov rcx, rdi
call fcn.140022fa0
movzx esi, al
movzx eax, byte [rbp + 1]
mov byte [rbp], al
mov byte [rbp + 2], sil
test sil, sil
jne 0x14001e058
xor edx, edx
mov rcx, rdi
call fcn.140022e80
movzx r12d, ax
test ax, ax
jne 0x14001e058
lea rdx, [0x1400f5bec]
mov r8d, 2
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001e058
lea rcx, [rdi + 4]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x38]
call fcn.1400d91d8
mov rcx, qword [rbp + 0x38]
lea rdx, [0x1400f64d8]
mov r8d, 2
mov ebx, eax
call fcn.1400d7250
test eax, eax
jne 0x14001e058
mov rcx, qword [rbp + 0x38]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x38]
add rcx, 4
call fcn.1400d91d8
mov rcx, qword [rbp + 0x38]
cmp word [rcx], r12w
jne 0x14001e058
movzx esi, bl
mov byte [rbp + 2], bl
movzx r12d, ax
test r14, r14
je 0x14001e065
movzx eax, word [rbp + 0x18]
mov word [r14], ax
mov rax, qword [rbp + 0x30]
mov r14d, dword [rbp + 0x14]
mov ecx, 0x7d
mov word [rax], cx
cmp r14d, 1
jl 0x14001e0ca
test sil, sil
jne 0x14001e58f
test r12w, r12w
jne 0x14001e58f
cmp r15, 1
jne 0x14001e110
cmp dword [rbp + 0xc], r15d
je 0x14001e0ca
mov r13, qword [rbp + 0x158]
test r13, r13
je 0x14001e0e2
test r14d, r14d
jle 0x14001e0ca
mov ebx, r14d
nop
movzx r8d, word [rdi]
xor r9d, r9d
mov edx, 0x102
mov rcx, r13
call qword [sym.imp.USER32.DLL_PostMessageW]
dec rbx
jne 0x14001e0b0
movzx r15d, byte [rbp + 0x140]
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
movzx eax, byte [rbp]
movzx r15d, byte [rbp + 0x140]
movzx ecx, word [rdi]
or al, r15b
mov edx, r14d
movzx r8d, al
call fcn.14001f240
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
cmp qword [rbp + 0x158], 0
lea r9, [rbp + 3]
lea r8, [rbp + 0xc]
sete al
mov rdx, r13
mov rcx, rdi
mov byte [rsp + 0x20], al
call fcn.140023300
movzx esi, al
mov byte [rbp + 2], al
test al, al
je 0x14001e3a9
mov r13, qword [rbp + 0x158]
mov r12d, dword [rbp + 0xc]
test r13, r13
jne 0x14001e163
test r12d, r12d
jne 0x14001e15a
mov byte [rbp + 6], al
jmp 0x14001e163
movzx ecx, sil
call fcn.14001d0e0
cmp dword [0x14012b780], 0
je 0x14001e178
movzx ebx, byte [0x14012990f]
jmp 0x14001e2c6
cmp qword [0x14012ac08], 0
je 0x14001e18e
movzx ebx, byte [0x14012aab1]
jmp 0x14001e2c6
mov ecx, 0xa0
xor bl, bl
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e1c1
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e1d4
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e1e7
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e1fa
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e20d
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e220
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e233
or bl, 0x80
cmp qword [0x14012ac08], 0
je 0x14001e2c6
movzx edi, bl
not dil
and dil, byte [0x14012aab1]
cmp byte [0x14012aab6], 0
je 0x14001e274
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012976c]
cmp eax, 0x14
jae 0x14001e274
movzx eax, byte [0x14012aab6]
not al
and dil, al
test dil, dil
je 0x14001e2c6
movzx edx, byte [0x14012aab3]
movzx eax, dil
lea rcx, [0x14012ab00]
not al
and byte [0x14012aab1], al
and byte [0x14012aab2], al
and dl, al
mov byte [0x14012aab3], dl
call fcn.1400224b0
mov rcx, qword [0x140129900]
test rcx, rcx
je 0x14001e2c6
test byte [rcx + 0xc], dil
mov edx, 0
cmovne rcx, rdx
mov qword [0x140129900], rcx
movzx r15d, byte [rbp + 3]
xor r9d, r9d
mov r8, r13
movzx edx, bl
movzx ecx, r15b
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
mov byte [rbp + 0x140], r15b
call fcn.140021ae0
test r14d, r14d
jle 0x14001e0d2
mov rbx, r14
xor r15d, r15d
xor r8d, r8d
mov r9, r13
movzx edx, sil
mov ecx, r12d
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 1
call fcn.14001f820
cmp dword [0x14012b780], r15d
jne 0x14001e388
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x1401255c8]
sub eax, dword [0x14012d1a4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001e388
lea rcx, [rbp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x14001e37c
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], r15d
call fcn.140001b60
mov dword [0x140125594], 1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d1a4], eax
dec rbx
jne 0x14001e300
movzx r15d, byte [rbp + 0x140]
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
cmp r13, 4
jbe 0x14001e447
lea rdx, [0x1400f6378]
mov r8d, 4
mov rcx, rdi
call fcn.1400d7250
mov r14, qword [rbp + 0x158]
test eax, eax
jne 0x14001e44e
test r14, r14
jne 0x14001e44e
lea rcx, [rdi + 6]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001e3ef
cmp ax, 9
jne 0x14001e3f5
add rcx, 2
jmp 0x14001e3e0
call fcn.14001f380
cmp dword [0x14012b780], 2
mov rax, qword [0x1401255c8]
jne 0x14001e42a
mov ecx, dword [rax + 0x80]
call fcn.140021620
movzx r15d, byte [rbp + 3]
mov rdi, qword [rbp + 0x30]
mov byte [rbp + 0x140], r15b
jmp 0x14001e7c0
mov ecx, dword [rax + 0x7c]
call fcn.140021620
movzx r15d, byte [rbp + 3]
mov rdi, qword [rbp + 0x30]
mov byte [rbp + 0x140], r15b
jmp 0x14001e7c0
mov r14, qword [rbp + 0x158]
cmp r13, 2
jbe 0x14001e432
lea rdx, [0x1400f6384]
mov r8d, 2
mov rcx, rdi
call fcn.1400d7250
test eax, eax
jne 0x14001e432
lea rcx, [rdi + 4]
lea r8d, [rax + 0x10]
xor edx, edx
call fcn.1400d91d0
cmp eax, 0x10000
jb 0x14001e4af
add eax, 0xffff0000
mov edx, 0x3ff
mov r8d, 0x2800
mov ecx, eax
movzx ebx, ax
shr ecx, 0xa
and bx, dx
and cx, dx
mov edx, 0x2400
sub cx, r8w
sub bx, dx
jmp 0x14001e4b6
xor edx, edx
movzx ecx, ax
mov ebx, edx
mov r13, qword [rbp + 0x158]
movzx r15d, byte [rbp + 3]
mov byte [rbp + 0x140], r15b
test r13, r13
je 0x14001e4ff
movzx r8d, cx
xor r9d, r9d
mov edx, 0x102
mov rcx, r13
call qword [sym.imp.USER32.DLL_PostMessageW]
test bx, bx
je 0x14001e54c
movzx r8d, bx
xor r9d, r9d
mov edx, 0x102
mov rcx, r13
call qword [sym.imp.USER32.DLL_PostMessageW]
jmp 0x14001e54c
cmp dword [0x14012b780], 2
je 0x14001e52b
movzx edi, byte [rbp]
or dil, r15b
movzx edx, dil
call fcn.14001d170
test bx, bx
je 0x14001e54c
movzx edx, dil
movzx ecx, bx
call fcn.14001d170
jmp 0x14001e54c
mov ecx, gethostbyname
lea rdx, [rbp + 0x62]
lea r8d, [rcx - 0x26]
mov word [rbp + 0x60], cx
mov ecx, eax
call fcn.1400d67d0
lea rcx, [rbp + 0x60]
call fcn.14001f380
cmp dword [0x14012b780], 2
mov rax, qword [0x1401255c8]
jne 0x14001e577
mov ecx, dword [rax + 0x80]
call fcn.140021620
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
mov ecx, dword [rax + 0x7c]
call fcn.140021620
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
xor r8d, r8d
movzx edx, r12w
movzx ecx, sil
call fcn.140022590
mov rdi, qword [rbp + 0x158]
mov r13d, dword [rbp + 0xc]
movzx ebx, al
test al, al
je 0x14001e670
test rdi, rdi
jne 0x14001e670
test r13d, r13d
jne 0x14001e613
mov eax, dword [rbp + 0x20]
mov byte [rbp + 6], sil
cmp eax, 1
jne 0x14001e5f0
movzx r15d, byte [rbp + 0x140]
or byte [0x14012b69b], bl
or r15b, bl
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x14001e678
cmp eax, 2
jne 0x14001e5fb
or byte [0x14012b6b2], bl
movzx r15d, byte [rbp + 0x140]
or r15b, bl
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x14001e678
cmp r13d, 1
jne 0x14001e670
movzx ecx, sil
call fcn.14001d0e0
movzx r15d, byte [0x14012b69b]
movzx eax, byte [rbp + 5]
movzx r11d, bl
not r11b
and byte [0x14012b6b2], r11b
and r15b, r11b
and al, r11b
mov byte [0x14012b69b], r15b
mov byte [rbp + 5], al
cmp sil, 0xa5
jne 0x14001e660
cmp dword [0x140129924], 3
jne 0x14001e660
and al, 0xfe
mov byte [rbp + 5], al
or r15b, al
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x14001e678
movzx r15d, byte [rbp + 0x140]
movzx r8d, byte [rbp]
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x48], 0x80000000
mov dword [rsp + 0x40], 0x80000000
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x30], bl
movzx r9d, r15b
movzx edx, r12w
movzx ecx, sil
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call fcn.14001ed10
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x14001e7c0
cmp esi, 2
jne 0x14001e729
movzx ecx, word [rdi]
sub ecx, 8
je 0x14001e722
dec ecx
je 0x14001e71b
dec ecx
je 0x14001e714
sub ecx, 3
je 0x14001e707
mov byte [rbp + 2], 0
test r14, r14
je 0x14001e7ac
movzx r8d, word [rdi]
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.DLL_PostMessageW]
jmp 0x14001e7c0
cmp word [rdi + 2], 0xa
lea rax, [rdi + 2]
cmove rdi, rax
mov al, 0xd
mov byte [rbp + 2], al
jmp 0x14001e76b
mov al, 9
mov byte [rbp + 2], al
jmp 0x14001e76b
mov al, 8
mov byte [rbp + 2], al
jmp 0x14001e76b
movzx eax, r12b
or al, r15b
je 0x14001e73b
test esi, esi
jne 0x14001e73b
mov r9b, 1
jmp 0x14001e73e
xor r9b, r9b
movzx ecx, word [rdi]
cmp cx, 0xa
jne 0x14001e74b
mov al, 0xd
jmp 0x14001e760
mov r8, qword [0x140129930]
lea rdx, [rbp + 1]
call fcn.140023120
movzx r12d, byte [rbp + 1]
mov byte [rbp + 2], al
test al, al
je 0x14001e6e4
xor edx, edx
movzx r9d, r15b
movzx r8d, r12b
mov byte [rsp + 0x50], dl
mov dword [rsp + 0x48], 0x80000000
mov dword [rsp + 0x40], 0x80000000
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], dl
movzx ecx, al
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call fcn.14001ed10
jmp 0x14001e7c0
movzx ecx, word [rdi]
or r12b, r15b
mov edx, 1
movzx r8d, r12b
call fcn.14001f240
xor r12b, r12b
mov byte [rbp + 1], r12b
mov byte [rbp], r12b
movzx eax, byte [rbp + 6]
mov esi, dword [rbp + 0x148]
add rdi, 2
cmp word [rdi], 0
lea r13, [0x140000000]
mov byte [0x14012b69a], al
jne 0x14001db40
mov r13d, dword [rbp + 0x150]
cmp dword [0x14012b780], 0
je 0x14001e8b6
or ebx, 0xffffffff
cmp byte [0x14012990d], 0
mov dword [rbp + 0x148], ebx
jne 0x14001e87a
cmp dword [0x140129920], 0
jbe 0x14001e87a
cmp byte [0x1401298ff], 0
je 0x14001e82e
xor eax, eax
mov ebx, eax
jmp 0x14001e83a
movzx ebx, byte [rbp + 7]
movzx edx, byte [rbp + 4]
not ebx
and ebx, edx
or bl, byte [0x14012b6b2]
movzx edx, byte [0x14012990f]
mov r9b, 1
or bl, r15b
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
movzx ecx, bl
mov byte [rsp + 0x20], 1
call fcn.140021ae0
lea rcx, [rbp + 0x148]
movzx edx, bl
call fcn.1400214b0
mov ebx, dword [rbp + 0x148]
cmp dword [0x14012b780], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x14012991c], eax
jbe 0x14001e8a2
mov rcx, qword [0x140129928]
call fcn.1400d6fc8
xor edi, edi
mov ecx, ebx
mov dword [0x14012b780], edi
call fcn.140021620
jmp 0x14001eaa2
cmp qword [0x14012ac08], 0
je 0x14001e8cd
movzx ecx, byte [0x14012aab3]
movzx edx, byte [rbp + 4]
jmp 0x14001e8f9
cmp dword [0x14012558c], 0
jl 0x14001e8f2
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012d134]
cmp eax, dword [0x14012558c]
jb 0x14001e8f2
movzx edx, byte [rbp + 4]
xor cl, cl
jmp 0x14001e8f9
movzx edx, byte [rbp + 4]
movzx ecx, dl
or cl, byte [0x14012b6b2]
cmp byte [0x1401298ff], 0
je 0x14001e920
movzx eax, cl
xor al, dl
movzx esi, al
and al, cl
and sil, dl
not sil
and sil, r15b
or sil, al
jmp 0x14001e92d
movzx esi, byte [rbp + 7]
not sil
and sil, cl
or sil, r15b
cmp qword [0x14012ac08], 0
je 0x14001e943
movzx ebx, byte [0x14012aab1]
jmp 0x14001ea7b
mov ecx, 0xa0
xor bl, bl
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e976
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e989
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e99c
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e9af
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e9c2
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e9d5
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001e9e8
or bl, 0x80
cmp qword [0x14012ac08], 0
je 0x14001ea7b
movzx edi, bl
not dil
and dil, byte [0x14012aab1]
cmp byte [0x14012aab6], 0
je 0x14001ea29
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012976c]
cmp eax, 0x14
jae 0x14001ea29
movzx eax, byte [0x14012aab6]
not al
and dil, al
test dil, dil
je 0x14001ea7b
movzx edx, byte [0x14012aab3]
movzx eax, dil
lea rcx, [0x14012ab00]
not al
and byte [0x14012aab1], al
and byte [0x14012aab2], al
and dl, al
mov byte [0x14012aab3], dl
call fcn.1400224b0
mov r11, qword [0x140129900]
test r11, r11
je 0x14001ea7b
test byte [r11 + 0xc], dil
mov eax, 0
cmovne r11, rax
mov qword [0x140129900], r11
or bl, byte [0x14012aab4]
mov r9b, 1
mov r8, r14
movzx ecx, sil
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 1
call fcn.140021ae0
xor edi, edi
cmp qword [0x14012ac08], 0
je 0x14001eac8
movzx ecx, byte [0x14012aab2]
movzx eax, cl
xor al, byte [0x14012aab1]
and al, cl
not al
and cl, al
mov byte [0x14012aab2], cl
cmp dword [rbp + 0x2c], 1
jne 0x14001eb6c
mov ecx, reloc.OLEAUT32.DLL_SafeArrayLock
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, 1
jne 0x14001eb6c
mov ecx, reloc.OLEAUT32.DLL_SafeArrayLock
call qword [sym.imp.USER32.DLL_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14001eb18
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.DLL_SafeArrayLock
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f820
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.DLL_SafeArrayLock
lea ecx, [r8 + 2]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f820
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
cmp eax, dword [0x14012c598]
jne 0x14001eb6c
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], edi
call fcn.140001b60
mov dword [0x140125594], 1
cmp byte [rbp + 8], 0
je 0x14001eb84
mov edx, dword [rbp + 0x24]
mov ecx, dword [0x14012c598]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_AttachThreadInput]
cmp byte [rbp + 9], 0
je 0x14001eb9f
cmp byte [rbp + 0x10], 0
jne 0x14001eb9f
xor ecx, ecx
call qword [sym.imp.USER32.DLL_BlockInput]
mov byte [0x14012b625], 0
test r13d, r13d
jne 0x14001ec2f
mov eax, dword [rbp + 0x50]
cmp dword [0x14012d1a0], eax
je 0x14001ec66
cmp dword [0x140125594], r13d
je 0x14001ec66
cmp dword [0x14012ac64], r13d
jne 0x14001ec66
mov rcx, qword [0x1401255c8]
cmp byte [rcx + 0x12c], r13b
jne 0x14001ec15
cmp byte [rcx + 0x12e], r13b
jne 0x14001ec15
cmp dword [rcx + 0x120], 0xffffffff
jle 0x14001ec15
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x1401255c8]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x14001ec15
mov byte [rcx + 0x12c], 1
movzx eax, byte [rcx + 0x12c]
test eax, eax
je 0x14001ec66
mov edx, 1
or ecx, 0xffffffff
call fcn.140001b60
jmp 0x14001ec66
cmp r13d, 1
jne 0x14001ec66
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
cmp eax, dword [0x14012c598]
jne 0x14001ec66
mov edx, r13d
or ecx, 0xffffffff
mov dword [0x140125594], edi
call fcn.140001b60
mov dword [0x140125594], r13d
mov rax, qword [rbp + 0x48]
mov ecx, dword [rbp + 0x40]
mov dword [rax + 0x7c], ecx
mov ecx, dword [rbp + 0x54]
mov dword [rax + 0x84], ecx
lea rsp, [rbp + 0xf8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret