Function at 0x14001c540
Capabilities:
Check for foreground window switch
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, 0x118
lea rbp, [rsp + 0x60]
cmp word [rcx], 0
mov r12, r9
mov esi, r8d
mov r14d, edx
mov r15, rcx
je 0x14001dbd5
mov r13, qword [0x14013dbf0]
mov eax, dword [0x1401468d0]
mov edi, dword gs:[0x48]
mov qword [rbp + 0x58], r13
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x18], edi
test edx, edx
jne 0x14001c5c0
lea r8d, [rdx + 7]
lea rdx, str.Blind
call fcn.1400dc238
test eax, eax
jne 0x14001c5c0
mov byte [0x140146c40], 1
add r15, 0xe
jmp 0x14001c5cc
mov byte [0x140146c40], 0
test r14d, r14d
jne 0x14001c5f6
mov r8d, 6
lea rdx, [0x14011a6e0]
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001c5f6
mov r14d, 2
add r15, 0xc
mov dword [rbp + 0x108], r14d
mov eax, dword [r13 + 0x7c]
mov dword [rbp + 0x4c], eax
mov eax, dword [r13 + 0x84]
mov dword [rbp + 0x50], eax
lea eax, [rsi - 1]
test eax, 0xfffffffd
jne 0x14001c6dd
mov rcx, qword [0x140146b30]
test rcx, rcx
je 0x14001c627
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.AHK_Keybd
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 [0x140146b30], 0
mov edi, eax
je 0x14001c656
mov qword [0x140146b30], rbx
jmp 0x14001c664
test rbx, rbx
je 0x14001c664
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xb7
je 0x14001c69b
test r14d, r14d
jne 0x14001c68e
call fcn.140015af0
test al, al
je 0x14001c68e
lea rdx, str.Click
mov rcx, r15
call fcn.1400b9ee0
test rax, rax
jne 0x14001c69b
mov esi, 1
mov dword [rbp + 0x110], esi
jmp 0x14001c6da
cmp esi, 3
jne 0x14001c6ad
mov esi, 2
mov dword [rbp + 0x110], esi
jmp 0x14001c6da
xor eax, eax
mov esi, eax
mov dword [rbp + 0x110], eax
cmp dword [r13 + 0x7c], eax
jge 0x14001c6cb
cmp dword [r13 + 0x84], eax
jge 0x14001c6cb
mov eax, 0xffffffff
mov dword [r13 + 0x84], eax
mov dword [r13 + 0x7c], 0xffffffff
mov edi, dword [rbp + 0x18]
xor r13d, r13d
mov byte [rbp + 8], 0
mov ebx, r13d
test r12, r12
je 0x14001c73f
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp + 0x30], eax
mov esi, eax
test eax, eax
je 0x14001c805
cmp eax, dword [0x140145ca0]
je 0x14001c805
mov rcx, r12
call fcn.1400c0c40
test al, al
jne 0x14001c805
mov ecx, dword [0x140145ca0]
lea r8d, [r13 + 1]
mov edx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov ebx, esi
setne byte [rbp + 8]
jmp 0x14001c805
test byte [0x14014687e], 0xc0
je 0x14001c7ec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140146874]
cmp eax, 0x32
jae 0x14001c7ec
cmp esi, 2
je 0x14001c7ec
cmp byte [0x140146c40], bl
jne 0x14001c7ec
cmp r14d, 2
je 0x14001c7ec
cmp byte [0x140146af3], bl
je 0x14001c7ec
cmp edi, dword [0x140145ca0]
jne 0x14001c7ec
test r14d, r14d
je 0x14001c8a4
mov r8, r15
test r15, r15
je 0x14001c7e0
movzx edx, word [r15]
test dx, dx
je 0x14001c7e0
mov r9d, 0x4c
nop dword [rax + rax]
lea rcx, [0x14011abd8]
movzx eax, r9w
nop dword [rax + rax]
cmp dx, ax
je 0x14001c7e3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14001c7c0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14001c7b0
mov r8, r13
test r8, r8
jne 0x14001c926
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.140021730
mov ebx, eax
mov eax, dword [rbp + 0x100]
mov dword [rbp + 0x30], eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea r9, [0x140146b80]
mov qword [0x140146b78], rax
mov rdx, r9
mov ecx, r13d
mov rdi, rax
mov r8, qword [rdx]
test r8, r8
je 0x14001c840
cmp r8, rdi
je 0x14001c976
inc ecx
add rdx, 0x10
cmp ecx, 0xa
jl 0x14001c824
cmp ecx, 0xa
mov eax, 9
cmovl eax, ecx
mov rcx, rdi
movsxd rbx, eax
shl rbx, 4
add rbx, r9
call fcn.1400217a0
mov dword [rbx + 8], eax
mov qword [rbx], rdi
mov cl, 1
mov dword [0x140146c20], eax
call fcn.1400211c0
and byte [0x140146b77], al
movzx ebx, al
cmp qword [0x1401427a0], r13
je 0x14001c986
movzx eax, byte [0x1401436e2]
movzx ecx, byte [0x1401436e0]
movzx r13d, al
and r13b, cl
not al
and al, cl
jmp 0x14001c9ad
mov r9d, 0x4c
mov rdx, r15
lea r10d, [r9 + 0x2f]
test rdx, rdx
je 0x14001c7ec
movzx r8d, word [rdx]
test r8w, r8w
je 0x14001c7ec
lea rcx, [0x14011abd8]
movzx eax, r9w
cmp r8w, ax
je 0x14001c8ec
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14001c8d3
add rdx, 2
jmp 0x14001c8ba
add rdx, 2
je 0x14001c926
movzx r8d, word [rdx]
test r8w, r8w
je 0x14001c926
lea rcx, [0x14011abe0]
movzx eax, r10w
cmp r8w, ax
je 0x14001c920
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14001c907
add rdx, 2
jmp 0x14001c8f2
cmp word [rdx], r10w
jne 0x14001c8b1
mov ebx, 0x8000
nop dword [rax + rax]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
jne 0x14001c954
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x14001c7ec
mov edx, 1
mov dword [0x14013dbe4], r13d
mov ecx, 0x8000012f
call fcn.140001b10
mov dword [0x14013dbe4], 1
jmp 0x14001c930
movsxd rax, ecx
add rax, rax
mov eax, dword [r9 + rax*8 + 8]
jmp 0x14001c863
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140146874]
cmp eax, dword [0x14013f634]
jae 0x14001c9a5
movzx ecx, byte [0x14014687e]
and cl, bl
jmp 0x14001c9a7
xor cl, cl
movzx r13d, cl
xor al, al
not r13b
mov byte [rbp + 3], cl
and r13b, byte [0x140146b76]
and r13b, bl
mov byte [rbp + 6], al
cmp byte [0x140146c40], 0
mov byte [rbp + 0x100], r13b
mov byte [0x140146b76], r13b
je 0x14001c9f0
not r13b
mov byte [rbp + 0x100], bl
and r13b, bl
mov byte [rbp + 2], bl
mov byte [rbp + 4], r13b
movzx r13d, bl
jmp 0x14001c9f9
xor al, al
mov byte [rbp + 2], r13b
mov byte [rbp + 4], al
mov rax, qword [rbp + 0x58]
cmp byte [rax + 0x133], 0
je 0x14001ca26
cmp byte [0x140146c40], 0
jne 0x14001ca26
cmp r14d, 2
je 0x14001ca26
mov edx, 2
mov cl, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140020800
mov dword [rbp + 0x2c], eax
jmp 0x14001ca2b
xor edx, edx
mov dword [rbp + 0x2c], edx
mov ecx, dword [rbp + 0x110]
mov eax, 0x1f4
mov dword [0x140146c34], ecx
mov esi, 0x5dc
test ecx, ecx
je 0x14001cad1
cmp ecx, 1
mov edx, 0x2ee0
cmovne eax, esi
mov dword [0x140146c28], eax
mov eax, 0x4e20
cmovne eax, edx
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14001ca75
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f3640
mov rax, qword [0x140140410]
sub rsp, rcx
mov byte [0x140146c30], bl
xor ebx, ebx
mov byte [0x140146c31], 0
mov dword [0x140146c24], ebx
lea rcx, [rsp + 0x60]
mov byte [0x140146c32], bl
mov qword [rax], rcx
mov ecx, dword [rbp + 0x110]
mov dword [0x140146c38], 0x80000000
mov dword [0x140146c3c], 0x80000000
mov byte [0x140146c33], 1
jmp 0x14001cad3
xor ebx, ebx
mov eax, dword [reloc.WSOCK32.dll_inet_ntoa]
movzx r14d, byte [0x140142852]
add eax, 0xfffffff8
mov byte [rbp + 0x10], r14b
test eax, 0xfffffffd
jne 0x14001cb10
test ecx, ecx
jne 0x14001cb10
test r12, r12
jne 0x14001cb10
lea ecx, [r12 + 1]
mov byte [rbp + 9], 1
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x140142852], 1
jmp 0x14001cb14
mov byte [rbp + 9], 0
xor dil, dil
cmp word [r15], 0
mov byte [rbp], dil
je 0x14001d99a
lea rsi, [0x140000000]
jmp 0x14001cb32
xor ebx, ebx
xor r14b, r14b
cmp dword [0x140146c34], 0
mov byte [rbp + 5], r14b
jne 0x14001cba0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14013dbf0]
sub eax, dword [0x1401468d4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001cba0
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rbp + 0x78]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001cb94
mov edx, 1
mov dword [0x14013dbe4], ebx
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbe4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401468d4], eax
mov eax, dword [rbp + 0x108]
test eax, eax
jne 0x14001d872
movzx edx, word [r15]
lea rcx, [0x14011abe8]
call fcn.1400d7a50
test rax, rax
je 0x14001d8dd
movzx eax, word [r15]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x14001cbeb.38
cdqe
movzx eax, byte [rsi + rax + 0x1dc08]
mov ecx, dword [rsi + rax*4 + 0x1dbec]
add rcx, rsi
jmp rcx
test r13b, 3
jne case.0x14001cbeb.38
or dil, 1
jmp 0x14001d968
test r13b, 0x30
jne case.0x14001cbeb.38
or dil, 0x10
jmp 0x14001d968
test r13b, 0xc
jne case.0x14001cbeb.38
or dil, 4
jmp 0x14001d968
test r13b, 0xc0
jne case.0x14001cbeb.38
or dil, 0x40
jmp 0x14001d968
lea rbx, [r15 + 2]
mov edx, 0x7d
mov rcx, rbx
call fcn.1400d7a50
mov qword [rbp + 0x40], rax
mov rsi, rax
test rax, rax
je case.0x14001cbeb.38
mov r15, rbx
nop dword [rax]
movzx ecx, word [r15]
cmp cx, 0x20
je 0x14001cc70
cmp cx, 9
jne 0x14001cc76
add r15, 2
jmp 0x14001cc60
mov r12, rax
sub r12, r15
sar r12, 1
jne 0x14001cd27
lea rbx, [rax + 2]
movzx eax, word [rax + 2]
cmp ax, 0x7d
jne 0x14001cca5
mov rsi, rbx
mov qword [rbp + 0x40], rbx
mov r12d, 1
jmp 0x14001cd27
cmp ax, 0x20
je 0x14001ccc1
cmp ax, 9
jne 0x14001d16d
cmp ax, 0x20
je 0x14001ccc1
cmp ax, 9
jne 0x14001cccb
movzx eax, word [rbx + 2]
add rbx, 2
jmp 0x14001ccb5
mov r8d, 4
lea rdx, str.Down
mov rcx, rbx
call fcn.1400dc238
test eax, eax
je 0x14001cd01
mov r8d, 2
lea rdx, [0x1401195e8]
mov rcx, rbx
call fcn.1400dc238
test eax, eax
jne 0x14001d16d
mov edx, 0x7d
mov rcx, rbx
call fcn.1400d7a50
mov qword [rbp + 0x40], rax
mov rsi, rax
test rax, rax
je case.0x14001cbeb.38
mov r12, rax
sub r12, r15
sar r12, 1
mov r8d, 5
lea rdx, [0x140117870]
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001ce26
xor edx, edx
lea rcx, [r15 + 0xa]
mov word [rsi], dx
nop dword [rax]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001cd5f
cmp ax, 9
jne 0x14001cd65
add rcx, 2
jmp 0x14001cd50
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 1]
lea rax, [rbp + 0x14]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x20]
lea rax, [rbp + 0xc]
lea rdx, [rbp + 0x24]
mov qword [rsp + 0x20], rax
call fcn.14001ec00
mov ecx, dword [rbp + 0x14]
mov eax, 0x7d
mov word [rsi], ax
cmp ecx, 1
jge 0x14001cdd4
mov rax, qword [rbp + 0x58]
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x24]
movzx r9d, byte [rax + 0x12f]
movzx eax, byte [rbp + 7]
mov byte [rsp + 0x20], al
call fcn.14001fa60
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
movzx eax, byte [rbp + 7]
xor edx, edx
mov r15, qword [rbp + 0x118]
movzx r9d, r13b
mov byte [rsp + 0x50], al
movzx r8d, dil
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0xc]
mov qword [rsp + 0x38], r15
mov byte [rsp + 0x30], dl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
movzx ecx, byte [rbp + 1]
call fcn.14001dc70
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
mov r8d, 3
lea rdx, [0x14011abf8]
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001ce5a
mov r15, qword [rbp + 0x40]
mov r14d, 1
mov dword [rbp + 0x108], r14d
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
mov r8d, 4
lea rdx, str.Text
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001ceb0
lea rcx, [r15 + 8]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001ce86
cmp ax, 9
jne 0x14001ce8c
add rcx, 2
jmp 0x14001ce77
cmp rcx, rsi
jne 0x14001d16d
mov r15, qword [rbp + 0x40]
mov r14d, 2
mov dword [rbp + 0x108], r14d
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
xor edi, edi
mov dword [rbp + 0xc], 2
mov word [rsi], di
mov eax, 1
movzx edx, word [r15]
mov r13, r12
mov dword [rbp + 0x14], eax
mov r14, r15
test dx, dx
je 0x14001cf10
nop dword [rax]
nop word [rax + rax]
lea rcx, [0x14011a4b0]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x14001cf43
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14001cef0
movzx edx, word [r14 + 2]
add r14, 2
test dx, dx
jne 0x14001cee0
mov r14, rdi
mov rax, qword [0x140146b78]
lea rdx, [rbp]
mov r8b, 1
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.140021e40
mov byte [rbp + 1], al
movzx edi, al
test al, al
je 0x14001d00d
xor eax, eax
jmp 0x14001d089
movzx eax, word [r14]
lea rbx, [r14 + 2]
mov r13, r14
mov word [rbp + 0x1c], ax
sub r13, r15
mov word [r14], di
sar r13, 1
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001cf6f
cmp ax, 9
jne 0x14001cf75
add rbx, 2
jmp 0x14001cf60
mov rax, rsi
sub rax, rbx
sar rax, 1
test eax, eax
je 0x14001cf13
mov r8d, 4
lea rdx, str.Down
mov rcx, rbx
call fcn.1400dc238
test eax, eax
jne 0x14001cfde
lea r8d, [rax + 4]
mov dword [rbp + 0xc], edi
lea rdx, str.Temp
lea rcx, [rbx + 8]
call fcn.1400dc238
test eax, eax
jne 0x14001cfbe
mov dword [rbp + 0x28], edi
jmp 0x14001cf13
cmp word [rbx + 8], 0x52
mov ecx, edi
sete cl
call fcn.1400e4d14
test eax, eax
mov ebx, edi
setne bl
inc ebx
mov dword [rbp + 0x28], ebx
jmp 0x14001cf13
lea rdx, [0x1401195e8]
mov rcx, rbx
call fcn.1400da910
test eax, eax
jne 0x14001cffd
mov dword [rbp + 0xc], 1
jmp 0x14001cf13
mov rcx, rbx
call fcn.14001c020
mov dword [rbp + 0x14], eax
jmp 0x14001cf13
xor edx, edx
mov rcx, r15
call fcn.140021d20
movzx esi, ax
test ax, ax
jne 0x14001d08c
mov r8d, 2
lea rdx, [0x14011a50c]
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001d08c
lea rcx, [r15 + 4]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x38]
call fcn.1400dc138
mov rcx, qword [rbp + 0x38]
lea rdx, [0x14011ad68]
mov r8d, 2
mov ebx, eax
call fcn.1400dc238
test eax, eax
jne 0x14001d08c
mov rcx, qword [rbp + 0x38]
lea r8d, [rax + 0x10]
add rcx, 4
lea rdx, [rbp + 0x38]
call fcn.1400dc138
mov rcx, qword [rbp + 0x38]
cmp word [rcx], si
jne 0x14001d08c
movzx edi, bl
mov byte [rbp + 1], bl
movzx esi, ax
test r14, r14
je 0x14001d099
movzx eax, word [rbp + 0x1c]
mov word [r14], ax
mov rax, qword [rbp + 0x40]
mov ecx, 0x7d
mov ebx, dword [rbp + 0x14]
mov word [rax], cx
cmp ebx, 1
jl 0x14001d165
test dil, dil
jne 0x14001d6c2
test si, si
jne 0x14001d6c2
movzx ecx, byte [r15]
call fcn.1400daaa8
test eax, eax
je 0x14001d1fe
cmp r13, 1
jbe 0x14001d202
cmp dword [0x140146c34], 0
je 0x14001d17b
mov rcx, r15
call fcn.14001c020
mov ecx, dword [0x140146c28]
cmp dword [0x140146c24], ecx
mov ebx, eax
jne 0x14001d10c
call fcn.140020130
test eax, eax
je 0x14001d165
cmp dword [0x140146c34], 1
jne 0x14001d146
mov rax, qword [0x1401437b8]
mov ecx, dword [0x140146c24]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
xor edx, edx
mov dword [rcx], 1
or byte [0x140146c31], 1
mov qword [rcx + 8], rdx
mov dword [rcx + 0x10], edx
mov qword [rcx + 0x18], rbx
jmp 0x14001d15f
mov rax, qword [0x140140410]
mov edx, dword [0x140146c24]
mov rcx, qword [rax]
xor eax, eax
mov dword [rcx + rdx*8], eax
mov dword [rcx + rdx*8 + 4], ebx
inc dword [0x140146c24]
movzx r13d, byte [rbp + 0x100]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
xor eax, eax
mov dword [0x14013dbe4], eax
mov eax, dword [rbp + 0x18]
cmp dword [0x140145ca0], eax
je 0x14001d1ca
mov rcx, r15
call fcn.14001c020
test eax, eax
js 0x14001d1ca
mov rcx, r15
call fcn.14001c020
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx r13d, byte [rbp + 0x100]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
mov dword [0x14013dbe4], 1
jmp 0x14001d965
mov rcx, r15
call fcn.14001c020
mov ecx, eax
mov edx, 1
call fcn.140001b10
movzx r13d, byte [rbp + 0x100]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
mov dword [0x14013dbe4], 1
jmp 0x14001d965
cmp r13, 1
jne 0x14001d28a
mov r14d, dword [rbp + 0xc]
cmp r14d, 1
je 0x14001d165
mov r14, qword [rbp + 0x118]
test r14, r14
je 0x14001d261
test ebx, ebx
jle 0x14001d165
nop word [rax + rax]
movzx r8d, word [r15]
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
sub rbx, 1
jne 0x14001d230
movzx r13d, byte [rbp + 0x100]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
movzx r8d, byte [rbp]
mov edx, ebx
movzx r13d, byte [rbp + 0x100]
movzx ecx, word [r15]
or r8b, r13b
call fcn.14001ded0
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
mov r14, qword [rbp + 0x118]
lea r9, [rbp + 2]
test r14, r14
lea r8, [rbp + 0xc]
mov rdx, r12
mov rcx, r15
sete al
mov byte [rsp + 0x20], al
call fcn.140022160
mov byte [rbp + 1], al
movzx edi, al
test al, al
je 0x14001d447
mov esi, dword [rbp + 0xc]
test r14, r14
jne 0x14001d34f
test esi, esi
jne 0x14001d2d1
mov byte [rbp + 5], al
jmp 0x14001d34f
cmp dword [0x140146b70], 0
jne 0x14001d34f
cmp byte [0x140146b75], dil
je 0x14001d34f
cmp byte [0x140146c40], 0
jne 0x14001d34f
movzx ecx, byte [0x140146b74]
lea eax, [rdi - 0x5b]
cmp al, 1
ja 0x14001d30a
lea eax, [rcx - 0x5b]
cmp al, 1
ja 0x14001d30a
cmp dword [0x140146c34], 2
jne 0x14001d327
cmp dil, 0xa4
je 0x14001d31f
cmp dil, 0xa5
jne 0x14001d34f
cmp dword [0x140146c20], 3
je 0x14001d34f
add cl, 0x5c
cmp cl, 1
ja 0x14001d34f
movzx r8d, word [0x14013f638]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001e3f0
cmp dword [0x140146c34], 0
je 0x14001d361
movzx eax, byte [0x140146c30]
jmp 0x14001d368
xor ecx, ecx
call fcn.1400211c0
movzx r13d, byte [rbp + 2]
xor r9d, r9d
movzx ecx, r13b
mov dword [rsp + 0x28], 0xffc3d44d
mov r8, r14
mov byte [rsp + 0x20], 0
movzx edx, al
mov byte [rbp + 0x100], r13b
call fcn.140020950
test ebx, ebx
jle 0x14001d16d
xor r13d, r13d
nop
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
mov r9, r14
mov byte [rsp + 0x20], 1
movzx edx, dil
mov ecx, esi
call fcn.14001e3f0
cmp dword [0x140146c34], r13d
jne 0x14001d427
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14013dbf0]
sub eax, dword [0x1401468d4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001d427
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, [rbp + 0x78]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001d41b
mov edx, 1
mov dword [0x14013dbe4], r13d
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbe4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401468d4], eax
sub rbx, 1
jne 0x14001d3a0
movzx r13d, byte [rbp + 0x100]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
cmp r12, 4
jbe 0x14001d4e4
mov r8d, 4
lea rdx, str.ASC
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001d4e4
test r14, r14
jne 0x14001d4e4
lea rcx, [r15 + 6]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001d482
cmp ax, 9
jne 0x14001d488
add rcx, 2
jmp 0x14001d473
call fcn.14001e0c0
cmp dword [0x140146c34], 2
mov rax, qword [0x14013dbf0]
jne 0x14001d4c2
mov ecx, dword [rax + 0x80]
call fcn.140020460
movzx r13d, byte [rbp + 2]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
mov byte [rbp + 0x100], r13b
jmp 0x14001d965
mov ecx, dword [rax + 0x7c]
call fcn.140020460
movzx r13d, byte [rbp + 2]
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
mov byte [rbp + 0x100], r13b
jmp 0x14001d965
cmp r12, 2
jbe 0x14001d4ca
mov r8d, 2
lea rdx, [0x14011ac1c]
mov rcx, r15
call fcn.1400dc238
test eax, eax
jne 0x14001d4ca
lea rcx, [r15 + 4]
xor edx, edx
lea r8d, [rax + 0x10]
call fcn.1400dc10c
cmp eax, 0x10000
jb 0x14001d545
add eax, 0xffff0000
mov edx, 0x3ff
mov ecx, eax
movzx ebx, ax
shr ecx, 0xa
and bx, dx
and cx, dx
mov r8d, 0x2800
sub cx, r8w
mov edx, 0x2400
sub bx, dx
jmp 0x14001d54c
xor edx, edx
movzx ecx, ax
mov ebx, edx
movzx r13d, byte [rbp + 2]
mov byte [rbp + 0x100], r13b
test r14, r14
je 0x14001d595
movzx r8d, cx
xor r9d, r9d
mov rcx, r14
mov edx, 0x102
call qword [sym.imp.USER32.dll_PostMessageW]
test bx, bx
je 0x14001d683
movzx r8d, bx
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14001d683
cmp dword [0x140146c34], 2
je 0x14001d5c8
movzx edi, byte [rbp]
or dil, r13b
movzx edx, dil
call fcn.14001c2a0
test bx, bx
je 0x14001d683
movzx edx, dil
movzx ecx, bx
call fcn.14001c2a0
jmp 0x14001d683
mov ecx, gethostbyname
lea rdx, [rbp + 0x6a]
mov word [rbp + 0x68], cx
lea r8d, [rcx - 0x26]
mov ecx, eax
call fcn.1400da7a0
cmp dword [0x140146c34], 0
je 0x14001d5f2
movzx eax, byte [0x140146c30]
jmp 0x14001d5f9
xor ecx, ecx
call fcn.1400211c0
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140020950
movzx eax, word [rbp + 0x68]
lea rbx, [rbp + 0x68]
cmp ax, 0x30
jb 0x14001d665
nop dword [rax + rax]
cmp ax, 0x39
ja 0x14001d665
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
add al, 0x30
mov byte [rsp + 0x20], r8b
xor r9d, r9d
movzx edx, al
lea ecx, [r8 + 2]
call fcn.14001e3f0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001d630
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.14001e3f0
cmp dword [0x140146c34], 2
mov rax, qword [0x14013dbf0]
jne 0x14001d6ac
mov ecx, dword [rax + 0x80]
call fcn.140020460
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
mov ecx, dword [rax + 0x7c]
call fcn.140020460
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
xor r8d, r8d
movzx edx, si
movzx ecx, dil
call fcn.140021420
mov r15, qword [rbp + 0x118]
movzx ebx, al
mov r14d, dword [rbp + 0xc]
test al, al
je 0x14001d81d
test r15, r15
jne 0x14001d81d
test r14d, r14d
jne 0x14001d748
mov eax, dword [rbp + 0x28]
mov byte [rbp + 5], dil
cmp eax, 1
jne 0x14001d722
movzx r13d, byte [rbp + 0x100]
or byte [0x140146b76], bl
or r13b, bl
mov byte [rbp + 0x100], r13b
mov byte [rbp + 2], r13b
jmp 0x14001d825
cmp eax, 2
jne 0x14001d72d
or byte [0x140146b77], bl
movzx r13d, byte [rbp + 0x100]
or r13b, bl
mov byte [rbp + 0x100], r13b
mov byte [rbp + 2], r13b
jmp 0x14001d825
cmp r14d, 1
jne 0x14001d81d
cmp dword [0x140146b70], 0
jne 0x14001d7d2
cmp byte [0x140146b75], dil
je 0x14001d7d2
cmp byte [0x140146c40], 0
jne 0x14001d7d2
movzx ecx, byte [0x140146b74]
lea eax, [rdi - 0x5b]
cmp al, r14b
ja 0x14001d78d
lea eax, [rcx - 0x5b]
cmp al, r14b
ja 0x14001d78d
cmp dword [0x140146c34], 2
jne 0x14001d7aa
cmp dil, 0xa4
je 0x14001d7a2
cmp dil, 0xa5
jne 0x14001d7d2
cmp dword [0x140146c20], 3
je 0x14001d7d2
add cl, 0x5c
cmp cl, 1
ja 0x14001d7d2
movzx r8d, word [0x14013f638]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001e3f0
movzx ecx, byte [rbp + 4]
movzx eax, bl
not al
and byte [0x140146b77], al
and cl, al
movzx r13d, al
mov byte [rbp + 4], cl
and r13b, byte [0x140146b76]
mov byte [0x140146b76], r13b
cmp dil, 0xa5
jne 0x14001d80d
cmp dword [0x140146c20], 3
jne 0x14001d80d
and cl, 0xfe
mov byte [rbp + 4], cl
or r13b, cl
mov byte [rbp + 0x100], r13b
mov byte [rbp + 2], r13b
jmp 0x14001d825
movzx r13d, byte [rbp + 0x100]
mov eax, dword [rbp + 0x14]
movzx r9d, r13b
movzx r8d, byte [rbp]
movzx edx, si
mov byte [rsp + 0x50], 0
movzx ecx, dil
mov dword [rsp + 0x48], 0x80000000
mov dword [rsp + 0x40], 0x80000000
mov qword [rsp + 0x38], r15
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.14001dc70
mov r15, qword [rbp + 0x40]
movzx r14d, byte [rbp + 5]
jmp 0x14001d965
cmp eax, 2
jne 0x14001d8e3
movzx ecx, word [r15]
sub ecx, 8
je 0x14001d8d6
sub ecx, 1
je 0x14001d8cf
sub ecx, 1
je 0x14001d8c8
sub ecx, 3
je 0x14001d8ba
mov byte [rbp + 1], 0
movzx ecx, word [r15]
test r12, r12
je 0x14001d954
movzx r8d, cx
xor r9d, r9d
mov rcx, r12
mov edx, 0x102
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14001d965
cmp word [r15 + 2], 0xa
lea rax, [r15 + 2]
cmove r15, rax
mov al, 0xd
mov byte [rbp + 1], al
jmp 0x14001d913
mov al, 9
mov byte [rbp + 1], al
jmp 0x14001d913
mov al, 8
mov byte [rbp + 1], al
jmp 0x14001d913
mov eax, dword [rbp + 0x108]
or dil, r13b
je 0x14001d8f1
test eax, eax
jne 0x14001d8f1
mov r9b, 1
jmp 0x14001d8f4
xor r9d, r9d
mov r8, qword [0x140146b78]
lea rdx, [rbp]
movzx ecx, word [r15]
call fcn.140021f70
movzx edi, byte [rbp]
mov byte [rbp + 1], al
test al, al
je 0x14001d893
xor edx, edx
movzx r9d, r13b
mov byte [rsp + 0x50], dl
movzx r8d, dil
mov dword [rsp + 0x48], 0x80000000
movzx ecx, al
mov dword [rsp + 0x40], 0x80000000
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x30], dl
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call fcn.14001dc70
jmp 0x14001d965
or dil, r13b
mov edx, 1
movzx r8d, dil
call fcn.14001ded0
xor dil, dil
mov byte [rbp], dil
mov r12, qword [rbp + 0x118]
lea rsi, [0x140000000]
add r15, 2
mov byte [0x140146b75], r14b
cmp word [r15], 0
jne 0x14001cb30
movzx r14d, byte [rbp + 0x10]
mov esi, 0x5dc
cmp dword [0x140146c34], 0
je 0x14001da51
cmp byte [0x140146c32], 0
mov ebx, 0xffffffff
mov dword [rbp + 0x100], ebx
jne 0x14001da1a
cmp dword [0x140146c24], 0
jbe 0x14001da1a
cmp byte [0x140146c40], 0
je 0x14001d9d1
xor bl, bl
jmp 0x14001d9da
movzx ebx, byte [rbp + 6]
not bl
and bl, byte [rbp + 3]
or bl, byte [0x140146b77]
mov r9b, 1
movzx edx, byte [0x140146c30]
or bl, r13b
movzx ecx, bl
mov dword [rsp + 0x28], 0xffc3d44d
xor r8d, r8d
mov byte [rsp + 0x20], 1
call fcn.140020950
movzx edx, bl
lea rcx, [rbp + 0x100]
call fcn.140020200
mov ebx, dword [rbp + 0x100]
cmp dword [0x140146c34], 1
mov eax, 0x1f4
cmove esi, eax
cmp dword [0x140146c28], esi
jbe 0x14001da3d
mov rcx, qword [0x1401437b8]
call fcn.1400dc21c
xor edi, edi
mov ecx, ebx
mov dword [0x140146c34], edi
call fcn.140020460
jmp 0x14001daf0
cmp qword [0x1401427a0], 0
je 0x14001da68
movzx ecx, byte [0x1401436e0]
movzx edx, byte [rbp + 3]
jmp 0x14001da94
cmp dword [0x14013f634], 0
jl 0x14001da8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140146874]
cmp eax, dword [0x14013f634]
jb 0x14001da8d
movzx edx, byte [rbp + 3]
xor cl, cl
jmp 0x14001da94
movzx edx, byte [rbp + 3]
movzx ecx, dl
or cl, byte [0x140146b77]
cmp byte [0x140146c40], 0
je 0x14001dab8
movzx eax, cl
xor al, dl
movzx ebx, al
and al, cl
and bl, dl
not bl
and bl, r13b
or bl, al
jmp 0x14001dac3
movzx ebx, byte [rbp + 6]
not bl
and bl, cl
or bl, r13b
xor ecx, ecx
call fcn.1400211c0
or al, byte [0x14014288b]
mov r9b, 1
movzx edx, al
mov dword [rsp + 0x28], 0xffc3d44d
mov r8, r12
mov byte [rsp + 0x20], 1
movzx ecx, bl
call fcn.140020950
xor edi, edi
cmp qword [0x1401427a0], 0
je 0x14001db16
movzx ecx, byte [0x1401436e1]
movzx eax, cl
xor al, byte [0x1401436e2]
and al, cl
not al
and cl, al
mov byte [0x1401436e1], cl
cmp dword [rbp + 0x2c], 1
jne 0x14001db28
mov edx, 1
mov cl, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140020800
cmp byte [rbp + 8], 0
je 0x14001db40
mov edx, dword [rbp + 0x30]
xor r8d, r8d
mov ecx, dword [0x140145ca0]
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [rbp + 9], 0
je 0x14001db5a
test r14b, r14b
jne 0x14001db5a
xor ecx, ecx
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x140142852], r14b
mov eax, dword [rbp + 0x110]
test eax, eax
jne 0x14001db87
mov eax, dword [rbp + 0x48]
cmp dword [0x1401468d0], eax
je 0x14001dbc2
call fcn.140005270
test eax, eax
je 0x14001dbc2
mov edx, 1
lea ecx, [rdx - 2]
call fcn.140001b10
jmp 0x14001dbc2
cmp eax, 1
jne 0x14001dbc2
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140145ca0]
jne 0x14001dbc2
mov edx, 1
mov dword [0x14013dbe4], edi
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbe4], 1
mov rax, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x4c]
mov dword [rax + 0x7c], ecx
mov ecx, dword [rbp + 0x50]
mov dword [rax + 0x84], ecx
lea rsp, [rbp + 0xb8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret