Function at 0x140015250
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 r14d, r8d
mov r15d, edx
mov rsi, rcx
je 0x140016bbd
mov r13, qword [0x140145a80]
mov eax, dword [0x14014e4d8]
mov edi, dword gs:[0x48]
mov qword [rbp + 0x58], r13
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x18], edi
test edx, edx
jne 0x1400152d0
lea r8d, [rdx + 7]
lea rdx, str.Blind
call fcn.1400e5e84
test eax, eax
jne 0x1400152d0
mov byte [0x14014e850], 1
add rsi, 0xe
jmp 0x1400152dc
mov byte [0x14014e850], 0
test r15d, r15d
jne 0x140015306
mov r8d, 6
lea rdx, [0x1401230a0]
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140015306
mov r15d, 2
add rsi, 0xc
mov dword [rbp + 0x108], r15d
mov eax, dword [r13 + 0x7c]
mov dword [rbp + 0x4c], eax
mov eax, dword [r13 + 0x84]
mov dword [rbp + 0x50], eax
lea eax, [r14 - 1]
test eax, 0xfffffffd
jne 0x1400153f4
mov rcx, qword [0x14014e740]
test rcx, rcx
je 0x140015338
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 [0x14014e740], 0
mov edi, eax
je 0x140015367
mov qword [0x14014e740], rbx
jmp 0x140015375
test rbx, rbx
je 0x140015375
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xb7
je 0x1400153ae
test r15d, r15d
jne 0x14001539f
call fcn.14000d910
test al, al
je 0x14001539f
lea rdx, str.Click
mov rcx, rsi
call fcn.1400c1b50
test rax, rax
jne 0x1400153ae
mov r14d, 1
mov dword [rbp + 0x110], r14d
jmp 0x1400153f1
cmp r14d, 3
jne 0x1400153c3
mov r14d, 2
mov dword [rbp + 0x110], r14d
jmp 0x1400153f1
xor eax, eax
mov r14d, eax
mov dword [rbp + 0x110], eax
cmp dword [r13 + 0x7c], eax
jge 0x1400153e2
cmp dword [r13 + 0x84], eax
jge 0x1400153e2
mov eax, 0xffffffff
mov dword [r13 + 0x84], eax
mov dword [r13 + 0x7c], 0xffffffff
mov edi, dword [rbp + 0x18]
xor r13d, r13d
mov byte [rbp + 9], 0
mov ebx, r13d
test r12, r12
je 0x140015459
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp + 0x30], eax
mov r14d, eax
test eax, eax
je 0x140015515
cmp eax, dword [0x14014c878]
je 0x140015515
mov rcx, r12
call fcn.1400c92d0
test al, al
jne 0x140015515
mov ecx, dword [0x14014c878]
lea r8d, [r13 + 1]
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov ebx, r14d
setne byte [rbp + 9]
jmp 0x140015515
test byte [0x14014e48e], 0xc0
je 0x1400154fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14014e484]
cmp eax, 0x32
jae 0x1400154fc
cmp r14d, 2
je 0x1400154fc
cmp byte [0x14014e850], bl
jne 0x1400154fc
cmp r15d, 2
je 0x1400154fc
cmp byte [0x14014e6f3], bl
je 0x1400154fc
cmp edi, dword [0x14014c878]
jne 0x1400154fc
test r15d, r15d
je 0x1400155b4
mov r8, rsi
test rsi, rsi
je 0x1400154f0
movzx edx, word [rsi]
test dx, dx
je 0x1400154f0
mov r9d, 0x4c
nop
lea rcx, [0x1401235a0]
movzx eax, r9w
nop dword [rax + rax]
cmp dx, ax
je 0x1400154f3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400154d0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400154c0
mov r8, r13
test r8, r8
jne 0x140015640
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.14001acb0
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, [0x14014e790]
mov qword [0x14014e788], rax
mov rdx, r9
mov ecx, r13d
mov rdi, rax
mov r8, qword [rdx]
test r8, r8
je 0x140015550
cmp r8, rdi
je 0x14001568a
inc ecx
add rdx, 0x10
cmp ecx, 0xa
jl 0x140015534
cmp ecx, 0xa
mov eax, 9
cmovl eax, ecx
mov rcx, rdi
movsxd rbx, eax
shl rbx, 4
add rbx, r9
call fcn.14001ad20
mov dword [rbx + 8], eax
mov qword [rbx], rdi
mov cl, 1
mov dword [0x14014e830], eax
call fcn.14001a740
and byte [0x14014e787], al
movzx ebx, al
cmp qword [0x14014a410], r13
je 0x14001569a
movzx eax, byte [0x14014b24a]
movzx ecx, byte [0x14014b248]
movzx r13d, al
and r13b, cl
not al
and al, cl
jmp 0x1400156c1
mov r9d, 0x4c
mov rdx, rsi
lea r10d, [r9 + 0x2f]
test rdx, rdx
je 0x1400154fc
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400154fc
lea rcx, [0x1401235a0]
movzx eax, r9w
cmp r8w, ax
je 0x1400155fc
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400155e3
add rdx, 2
jmp 0x1400155ca
add rdx, 2
je 0x140015640
movzx r8d, word [rdx]
test r8w, r8w
je 0x140015640
lea rcx, [0x1401235a8]
movzx eax, r10w
cmp r8w, ax
je 0x140015630
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140015617
add rdx, 2
jmp 0x140015602
cmp word [rdx], r10w
jne 0x1400155c1
nop word [rax + rax]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x140015668
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400154fc
mov edx, 1
mov dword [0x140145a74], r13d
mov ecx, 0x8000012f
call fcn.1400018c0
mov dword [0x140145a74], 1
jmp 0x140015640
movsxd rax, ecx
add rax, rax
mov eax, dword [r9 + rax*8 + 8]
jmp 0x140015573
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14014e484]
cmp eax, dword [0x1401474c4]
jae 0x1400156b9
movzx ecx, byte [0x14014e48e]
and cl, bl
jmp 0x1400156bb
xor cl, cl
movzx r13d, cl
xor al, al
not r13b
mov byte [rbp + 5], cl
and r13b, byte [0x14014e786]
and r13b, bl
mov byte [rbp + 7], al
cmp byte [0x14014e850], 0
mov byte [rbp + 1], r13b
mov byte [0x14014e786], r13b
je 0x1400156fe
not r13b
mov byte [rbp + 1], bl
and r13b, bl
mov byte [rbp + 4], bl
mov byte [rbp + 6], r13b
movzx r13d, bl
jmp 0x140015707
xor al, al
mov byte [rbp + 4], r13b
mov byte [rbp + 6], al
mov rax, qword [rbp + 0x58]
cmp byte [rax + 0x133], 0
je 0x140015731
cmp byte [0x14014e850], 0
jne 0x140015731
cmp r15d, 2
je 0x140015731
mov edx, 2
mov cl, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140019d60
jmp 0x140015733
xor eax, eax
mov ecx, dword [rbp + 0x110]
mov r14d, 0x5dc
mov dword [rbp + 0x2c], eax
mov eax, 0x1f4
mov dword [0x14014e844], ecx
test ecx, ecx
je 0x1400157de
cmp ecx, 1
mov edx, 0x2ee0
cmovne eax, r14d
mov dword [0x14014e838], eax
mov eax, 0x4e20
cmovne eax, edx
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140015782
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400fe470
mov rax, qword [0x1401481c8]
sub rsp, rcx
mov byte [0x14014e840], bl
xor ebx, ebx
mov byte [0x14014e841], 0
mov dword [0x14014e834], ebx
lea rcx, [rsp + 0x60]
mov byte [0x14014e842], bl
mov qword [rax], rcx
mov ecx, dword [rbp + 0x110]
mov dword [0x14014e848], 0x80000000
mov dword [0x14014e84c], 0x80000000
mov byte [0x14014e843], 1
jmp 0x1400157e0
xor ebx, ebx
mov eax, dword [reloc.WSOCK32.dll_inet_ntoa]
movzx r15d, byte [0x14014a4ca]
add eax, 0xfffffff8
mov byte [rbp + 0x10], r15b
test eax, 0xfffffffd
jne 0x14001581d
test ecx, ecx
jne 0x14001581d
test r12, r12
jne 0x14001581d
lea ecx, [r12 + 1]
mov byte [rbp + 0xa], 1
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x14014a4ca], 1
jmp 0x140015821
mov byte [rbp + 0xa], 0
xor dil, dil
cmp word [rsi], 0
mov byte [rbp + 2], dil
je 0x14001691a
lea r14, [0x140000000]
jmp 0x140015842
xor ebx, ebx
cmp dword [0x14014e844], 0
mov byte [rbp], 0
jne 0x1400158ad
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140145a80]
sub eax, dword [0x14014e4dc]
cmp eax, dword [rcx + 0x118]
jbe 0x1400158ad
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 0x1400158a1
mov edx, 1
mov dword [0x140145a74], ebx
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140145a74], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14014e4dc], eax
mov r15d, dword [rbp + 0x108]
test r15d, r15d
jne 0x1400167f7
movzx edx, word [rsi]
lea rcx, [0x1401235b0]
call fcn.1400e1554
test rax, rax
je 0x14001685f
movzx eax, word [rsi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x1400158fa.38
cdqe
movzx eax, byte [r14 + rax + 0x16bf0]
mov ecx, dword [r14 + rax*4 + 0x16bd4]
add rcx, r14
jmp rcx
test r13b, 3
jne case.0x1400158fa.38
movzx r12d, byte [rbp]
or dil, 1
jmp 0x1400168e8
test r13b, 0x30
jne case.0x1400158fa.38
movzx r12d, byte [rbp]
or dil, 0x10
jmp 0x1400168e8
test r13b, 0xc
jne case.0x1400158fa.38
movzx r12d, byte [rbp]
or dil, 4
jmp 0x1400168e8
test r13b, 0xc0
jne case.0x1400158fa.38
movzx r12d, byte [rbp]
or dil, 0x40
jmp 0x1400168e8
lea rbx, [rsi + 2]
mov r15d, 0x7d
mov edx, r15d
mov rcx, rbx
call fcn.1400e1554
mov qword [rbp + 0x38], rax
mov r14, rax
test rax, rax
je case.0x1400158fa.38
mov rsi, rbx
movzx ecx, word [rsi]
cmp cx, 0x20
je 0x140015993
cmp cx, 9
jne 0x140015999
add rsi, 2
jmp 0x140015984
mov r12, rax
mov qword [rbp + 0x100], rsi
sub r12, rsi
sar r12, 1
jne 0x140015a50
lea rbx, [rax + 2]
movzx eax, word [rax + 2]
cmp ax, r15w
jne 0x1400159cf
mov r14, rbx
mov qword [rbp + 0x38], rbx
mov r12d, 1
jmp 0x140015a50
cmp ax, 0x20
je 0x1400159ec
cmp ax, 9
jne 0x140015f87
nop
cmp ax, 0x20
je 0x1400159ec
cmp ax, 9
jne 0x1400159f6
movzx eax, word [rbx + 2]
add rbx, 2
jmp 0x1400159e0
mov r8d, 4
lea rdx, str.Down
mov rcx, rbx
call fcn.1400e5e84
test eax, eax
je 0x140015a2c
mov r8d, 2
lea rdx, [0x14010f818]
mov rcx, rbx
call fcn.1400e5e84
test eax, eax
jne 0x140015f87
mov edx, r15d
mov rcx, rbx
call fcn.1400e1554
mov qword [rbp + 0x38], rax
mov r14, rax
test rax, rax
je case.0x1400158fa.38
mov r12, rax
sub r12, rsi
sar r12, 1
mov r8d, 5
lea rdx, [0x14010daa0]
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140015b4d
xor ebx, ebx
lea rcx, [rsi + 0xa]
mov word [r14], bx
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015a86
cmp ax, 9
jne 0x140015a8c
add rcx, 2
jmp 0x140015a77
lea rax, [rbp + 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 3]
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.140017bd0
mov ecx, dword [rbp + 0x14]
mov word [r14], r15w
cmp ecx, 1
jge 0x140015af9
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 + 8]
mov byte [rsp + 0x20], al
call fcn.140018fe0
mov rsi, qword [rbp + 0x38]
xor dil, dil
movzx r12d, bl
jmp 0x1400168e8
movzx eax, byte [rbp + 8]
xor edx, edx
mov byte [rsp + 0x50], al
movzx r9d, r13b
mov eax, dword [rbp + 0x20]
movzx r8d, dil
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x40], eax
mov rax, qword [rbp + 0x118]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0xc]
mov byte [rsp + 0x30], dl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
movzx ecx, byte [rbp + 3]
call fcn.140016c50
mov rsi, qword [rbp + 0x38]
xor dil, dil
movzx r12d, bl
jmp 0x1400168e8
mov r8d, 3
lea rdx, [0x1401235c0]
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140015b84
movzx r12d, byte [rbp]
mov r15d, 1
mov rsi, qword [rbp + 0x38]
xor dil, dil
mov dword [rbp + 0x108], r15d
jmp 0x1400168e8
mov r8d, 4
lea rdx, str.Text
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140015bdd
lea rcx, [rsi + 8]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015bb0
cmp ax, 9
jne 0x140015bb6
add rcx, 2
jmp 0x140015ba1
movzx r12d, byte [rbp]
cmp rcx, r14
jne 0x140015f8c
mov rsi, qword [rbp + 0x38]
mov r15d, 2
mov dword [rbp + 0x108], r15d
xor dil, dil
jmp 0x1400168e8
xor edi, edi
mov dword [rbp + 0xc], 2
mov word [r14], di
mov r15d, 1
movzx edx, word [rsi]
mov r13, r12
mov dword [rbp + 0x14], r15d
mov r14, rsi
test dx, dx
je 0x140015c40
nop dword [rax]
nop word [rax + rax]
lea rcx, [0x140122e70]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x140015c76
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140015c20
movzx edx, word [r14 + 2]
add r14, 2
test dx, dx
jne 0x140015c10
mov r14, rdi
mov rax, qword [0x14014e788]
lea rdx, [rbp + 2]
mov r8b, 1
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14001b4d0
mov byte [rbp + 3], al
movzx edi, al
test al, al
je 0x140015db1
xor ebx, ebx
movzx esi, bx
jmp 0x140015e39
movzx eax, word [r14]
lea rbx, [r14 + 2]
mov r13, r14
mov word [rbp + 0x1c], ax
sub r13, rsi
mov word [r14], di
sar r13, 1
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140015c9f
cmp ax, 9
jne 0x140015ca5
add rbx, 2
jmp 0x140015c90
mov rax, qword [rbp + 0x38]
sub rax, rbx
sar rax, 1
test eax, eax
je 0x140015c43
mov r8d, 4
lea rdx, str.Down
mov rcx, rbx
call fcn.1400e5e84
test eax, eax
jne 0x140015d0f
lea r8d, [rax + 4]
mov dword [rbp + 0xc], edi
lea rdx, str.Temp
lea rcx, [rbx + 8]
call fcn.1400e5e84
test eax, eax
jne 0x140015cef
mov dword [rbp + 0x28], edi
jmp 0x140015c43
cmp word [rbx + 8], 0x52
mov ecx, edi
sete cl
call fcn.1400eaa50
test eax, eax
mov ebx, edi
setne bl
inc ebx
mov dword [rbp + 0x28], ebx
jmp 0x140015c43
lea rdx, [0x14010f818]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x140015d2b
mov dword [rbp + 0xc], r15d
jmp 0x140015c43
mov rcx, rbx
nop
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015d3f
cmp ax, 9
jne 0x140015d45
add rcx, 2
jmp 0x140015d30
test ax, ax
je 0x140015d9e
cmp ax, 0x2d
je 0x140015d56
cmp ax, 0x2b
jne 0x140015d60
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x140015d9e
movzx eax, word [rcx + 2]
mov edx, 0xffdf
sub ax, 0x58
test dx, ax
jne 0x140015d9e
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x140015d9e
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400ea654
mov r15d, eax
mov dword [rbp + 0x14], eax
jmp 0x140015c43
mov rcx, rbx
call fcn.1400e9e88
mov r15d, eax
mov dword [rbp + 0x14], eax
jmp 0x140015c43
xor edx, edx
mov rcx, rsi
call fcn.14001b3b0
movzx esi, ax
test ax, ax
jne 0x140015e37
mov rbx, qword [rbp + 0x100]
lea rdx, [0x140122ecc]
mov rcx, rbx
mov r8d, 2
call fcn.1400e5e84
test eax, eax
jne 0x140015e37
lea rcx, [rbx + 4]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x40]
call fcn.1400ea708
mov rcx, qword [rbp + 0x40]
lea rdx, [0x140123738]
mov r8d, 2
mov ebx, eax
call fcn.1400e5e84
test eax, eax
jne 0x140015e37
mov rcx, qword [rbp + 0x40]
lea r8d, [rax + 0x10]
add rcx, 4
lea rdx, [rbp + 0x40]
call fcn.1400ea708
mov rcx, qword [rbp + 0x40]
cmp word [rcx], si
jne 0x140015e37
movzx edi, bl
mov byte [rbp + 3], bl
movzx esi, ax
xor ebx, ebx
test r14, r14
je 0x140015e46
movzx eax, word [rbp + 0x1c]
mov word [r14], ax
mov rax, qword [rbp + 0x38]
mov ecx, 0x7d
mov word [rax], cx
cmp r15d, 1
jl 0x140015f82
test dil, dil
jne 0x140016649
test si, si
jne 0x140016649
mov rsi, qword [rbp + 0x100]
movzx ecx, byte [rsi]
call fcn.1400ea390
test eax, eax
je 0x140016189
cmp r13, 1
jbe 0x14001618d
cmp dword [0x14014e844], 0
je 0x140015f98
mov rcx, rsi
nop
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015eaf
cmp ax, 9
jne 0x140015eb5
add rcx, 2
jmp 0x140015ea0
test ax, ax
je 0x140015f05
cmp ax, 0x2d
je 0x140015ec6
cmp ax, 0x2b
jne 0x140015ed0
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x140015f05
movzx eax, word [rcx + 2]
mov edx, 0xffdf
sub ax, 0x58
test dx, ax
jne 0x140015f05
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x140015f05
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.1400ea654
jmp 0x140015f0d
mov rcx, rsi
call fcn.1400e9e88
mov ebx, eax
mov eax, dword [0x14014e838]
cmp dword [0x14014e834], eax
jne 0x140015f26
call fcn.140019690
test eax, eax
je 0x140015f82
cmp dword [0x14014e844], 1
jne 0x140015f63
mov eax, dword [0x14014e834]
lea rcx, [rax + rax*4]
mov rax, qword [0x14014b3d8]
mov dword [rax + rcx*8], 1
lea rdx, [rax + rcx*8]
xor ecx, ecx
or byte [0x14014e841], 1
mov eax, ebx
mov qword [rdx + 8], rcx
mov qword [rdx + 0x18], rax
mov dword [rdx + 0x10], ecx
jmp 0x140015f7c
mov rax, qword [0x1401481c8]
mov edx, dword [0x14014e834]
mov rcx, qword [rax]
xor eax, eax
mov dword [rcx + rdx*8], eax
mov dword [rcx + rdx*8 + 4], ebx
inc dword [0x14014e834]
movzx r13d, byte [rbp + 1]
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
xor dil, dil
jmp 0x1400168e8
mov eax, dword [rbp + 0x18]
cmp dword [0x14014c878], eax
mov dword [0x140145a74], ebx
je 0x1400160e6
mov rcx, rsi
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015fbf
cmp ax, 9
jne 0x140015fc5
add rcx, 2
jmp 0x140015fb0
test ax, ax
je 0x140016015
cmp ax, 0x2d
je 0x140015fd6
cmp ax, 0x2b
jne 0x140015fe0
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
mov ebx, 0xffdf
cmp ax, 0x30
jne 0x14001601a
movzx eax, word [rcx + 2]
sub ax, 0x58
test bx, ax
jne 0x14001601a
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x14001601a
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.1400ea654
jmp 0x140016022
mov ebx, 0xffdf
mov rcx, rsi
call fcn.1400e9e88
test eax, eax
js 0x1400160e6
mov rcx, rsi
nop dword [rax]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14001603f
cmp ax, 9
jne 0x140016045
add rcx, 2
jmp 0x140016030
test ax, ax
je 0x1400160b6
cmp ax, 0x2d
je 0x140016056
cmp ax, 0x2b
jne 0x140016060
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x1400160b6
movzx eax, word [rcx + 2]
sub ax, 0x58
test bx, ax
jne 0x1400160b6
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x1400160b6
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.1400ea654
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx r13d, byte [rbp + 1]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
mov dword [0x140145a74], 1
jmp 0x1400168e8
mov rcx, rsi
call fcn.1400e9e88
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx r13d, byte [rbp + 1]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
mov dword [0x140145a74], 1
jmp 0x1400168e8
mov rcx, rsi
nop dword [rax]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x1400160ff
cmp ax, 9
jne 0x140016105
add rcx, 2
jmp 0x1400160f0
test ax, ax
je 0x140016155
cmp ax, 0x2d
je 0x140016116
cmp ax, 0x2b
jne 0x140016120
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x140016155
movzx eax, word [rcx + 2]
mov edx, 0xffdf
sub ax, 0x58
test dx, ax
jne 0x140016155
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x140016155
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.1400ea654
jmp 0x14001615d
mov rcx, rsi
call fcn.1400e9e88
mov edx, 1
mov ecx, eax
call fcn.1400018c0
movzx r13d, byte [rbp + 1]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
mov dword [0x140145a74], 1
jmp 0x1400168e8
cmp r13, 1
jne 0x14001620b
cmp dword [rbp + 0xc], 1
je 0x140015f82
mov r14, qword [rbp + 0x118]
test r14, r14
je 0x1400161e2
test r15d, r15d
jle 0x140015f82
mov ebx, r15d
movzx r8d, word [rsi]
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
sub rbx, 1
jne 0x1400161b1
movzx r13d, byte [rbp + 1]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
jmp 0x1400168e8
movzx r8d, byte [rbp + 2]
mov edx, r15d
movzx r13d, byte [rbp + 1]
movzx ecx, word [rsi]
or r8b, r13b
call fcn.140016eb0
movzx r12d, byte [rbp]
xor dil, dil
mov rsi, qword [rbp + 0x38]
jmp 0x1400168e8
mov r14, qword [rbp + 0x118]
lea r9, [rbp + 4]
test r14, r14
lea r8, [rbp + 0xc]
mov rdx, r12
mov rcx, rsi
sete al
mov byte [rsp + 0x20], al
call fcn.14001b830
mov byte [rbp + 3], al
movzx edi, al
test al, al
je 0x1400163d2
mov esi, dword [rbp + 0xc]
test r14, r14
jne 0x1400162d7
test esi, esi
jne 0x140016259
movzx r12d, al
mov byte [rbp], al
jmp 0x1400162dc
cmp dword [0x14014e780], 0
jne 0x1400162d7
cmp byte [0x14014e785], dil
je 0x1400162d7
cmp byte [0x14014e850], 0
jne 0x1400162d7
movzx ecx, byte [0x14014e784]
lea eax, [rdi - 0x5b]
cmp al, 1
ja 0x140016292
lea eax, [rcx - 0x5b]
cmp al, 1
ja 0x140016292
cmp dword [0x14014e844], 2
jne 0x1400162af
cmp dil, 0xa4
je 0x1400162a7
cmp dil, 0xa5
jne 0x1400162d7
cmp dword [0x14014e830], 3
je 0x1400162d7
add cl, 0x5c
cmp cl, 1
ja 0x1400162d7
movzx r8d, word [0x1401474c8]
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.1400173c0
movzx r12d, byte [rbp]
cmp dword [0x14014e844], 0
je 0x1400162ee
movzx eax, byte [0x14014e840]
jmp 0x1400162f5
xor ecx, ecx
call fcn.14001a740
movzx r13d, byte [rbp + 4]
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 + 1], r13b
call fcn.140019eb0
test r15d, r15d
jle 0x140015f8c
mov ebx, r15d
xor r12d, r12d
nop dword [rax]
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
mov r9, r14
mov byte [rsp + 0x20], 1
movzx edx, dil
mov ecx, esi
call fcn.1400173c0
cmp dword [0x14014e844], r12d
jne 0x1400163b7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140145a80]
sub eax, dword [0x14014e4dc]
cmp eax, dword [rcx + 0x118]
jbe 0x1400163b7
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, [rbp + 0x78]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400163ab
mov edx, 1
mov dword [0x140145a74], r12d
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140145a74], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14014e4dc], eax
sub rbx, 1
jne 0x140016330
movzx r12d, byte [rbp]
xor dil, dil
mov rsi, qword [rbp + 0x38]
jmp 0x1400168e8
cmp r12, 4
jbe 0x140016473
mov r8d, 4
lea rdx, str.ASC
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140016479
test r14, r14
jne 0x140016479
lea rcx, [rsi + 6]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140016411
cmp ax, 9
jne 0x140016417
add rcx, 2
jmp 0x140016402
call fcn.140017090
cmp dword [0x14014e844], 2
mov rax, qword [0x140145a80]
jne 0x140016451
mov ecx, dword [rax + 0x80]
call fcn.1400199c0
movzx r13d, byte [rbp + 4]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
mov byte [rbp + 1], r13b
jmp 0x1400168e8
mov ecx, dword [rax + 0x7c]
call fcn.1400199c0
movzx r13d, byte [rbp + 4]
xor dil, dil
movzx r12d, byte [rbp]
mov rsi, qword [rbp + 0x38]
mov byte [rbp + 1], r13b
jmp 0x1400168e8
cmp r12, 2
jbe 0x140016459
mov r8d, 2
lea rdx, [0x1401235e4]
mov rcx, rsi
call fcn.1400e5e84
test eax, eax
jne 0x140016459
lea rcx, [rsi + 4]
xor edx, edx
lea r8d, [rax + 0x10]
call fcn.1400ea654
cmp eax, 0x10000
jb 0x1400164d4
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 0x1400164d7
movzx ecx, ax
movzx r13d, byte [rbp + 4]
mov byte [rbp + 1], r13b
test r14, r14
je 0x14001651d
movzx r8d, cx
xor r9d, r9d
mov rcx, r14
mov edx, 0x102
call qword [sym.imp.USER32.dll_PostMessageW]
test bx, bx
je 0x140016604
movzx r8d, bx
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140016604
cmp dword [0x14014e844], 2
je 0x140016550
movzx edi, byte [rbp + 2]
or dil, r13b
movzx edx, dil
call fcn.140014fb0
test bx, bx
je 0x140016604
movzx edx, dil
movzx ecx, bx
call fcn.140014fb0
jmp 0x140016604
mov ecx, gethostbyname
lea rdx, [rbp + 0x6a]
mov word [rbp + 0x68], cx
lea r8d, [rcx - 0x26]
mov ecx, eax
call fcn.1400e5b6c
cmp dword [0x14014e844], 0
je 0x14001657a
movzx eax, byte [0x14014e840]
jmp 0x140016581
xor ecx, ecx
call fcn.14001a740
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.140019eb0
movzx eax, word [rbp + 0x68]
lea rbx, [rbp + 0x68]
cmp ax, 0x30
jb 0x1400165e6
cmp ax, 0x39
ja 0x1400165e6
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
lea edx, [rax + 0x30]
mov byte [rsp + 0x20], r8b
xor r9d, r9d
lea ecx, [r8 + 2]
call fcn.1400173c0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x1400165b3
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.1400173c0
cmp dword [0x14014e844], 2
mov rax, qword [0x140145a80]
jne 0x140016630
mov ecx, dword [rax + 0x80]
call fcn.1400199c0
movzx r12d, byte [rbp]
xor dil, dil
mov rsi, qword [rbp + 0x38]
jmp 0x1400168e8
mov ecx, dword [rax + 0x7c]
call fcn.1400199c0
movzx r12d, byte [rbp]
xor dil, dil
mov rsi, qword [rbp + 0x38]
jmp 0x1400168e8
xor r8d, r8d
movzx edx, si
movzx ecx, dil
call fcn.14001a9a0
mov r14d, dword [rbp + 0xc]
movzx ebx, al
test al, al
je 0x140016793
cmp qword [rbp + 0x118], 0
jne 0x140016793
test r14d, r14d
jne 0x1400166c1
mov eax, dword [rbp + 0x28]
movzx r12d, dil
cmp eax, 1
jne 0x1400166a1
movzx r13d, byte [rbp + 1]
or byte [0x14014e786], bl
or r13b, bl
mov byte [rbp + 1], r13b
mov byte [rbp + 4], r13b
jmp 0x14001679d
cmp eax, 2
jne 0x1400166ac
or byte [0x14014e787], bl
movzx r13d, byte [rbp + 1]
or r13b, bl
mov byte [rbp + 1], r13b
mov byte [rbp + 4], r13b
jmp 0x14001679d
cmp r14d, 1
jne 0x140016793
cmp dword [0x14014e780], 0
jne 0x14001674b
cmp byte [0x14014e785], dil
je 0x14001674b
cmp byte [0x14014e850], 0
jne 0x14001674b
movzx ecx, byte [0x14014e784]
lea eax, [rdi - 0x5b]
cmp al, r14b
ja 0x140016706
lea eax, [rcx - 0x5b]
cmp al, r14b
ja 0x140016706
cmp dword [0x14014e844], 2
jne 0x140016723
cmp dil, 0xa4
je 0x14001671b
cmp dil, 0xa5
jne 0x14001674b
cmp dword [0x14014e830], 3
je 0x14001674b
add cl, 0x5c
cmp cl, 1
ja 0x14001674b
movzx r8d, word [0x1401474c8]
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.1400173c0
movzx ecx, byte [rbp + 6]
movzx eax, bl
not al
and byte [0x14014e787], al
and cl, al
movzx r13d, al
mov byte [rbp + 6], cl
and r13b, byte [0x14014e786]
mov byte [0x14014e786], r13b
cmp dil, 0xa5
jne 0x140016786
cmp dword [0x14014e830], 3
jne 0x140016786
and cl, 0xfe
mov byte [rbp + 6], cl
or r13b, cl
mov byte [rbp + 1], r13b
mov byte [rbp + 4], r13b
jmp 0x140016798
movzx r13d, byte [rbp + 1]
movzx r12d, byte [rbp]
mov rdx, qword [rbp + 0x118]
movzx r9d, r13b
movzx r8d, byte [rbp + 2]
movzx ecx, dil
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x48], 0x80000000
mov dword [rsp + 0x40], 0x80000000
mov qword [rsp + 0x38], rdx
movzx edx, si
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
call fcn.140016c50
mov rsi, qword [rbp + 0x38]
xor dil, dil
jmp 0x1400168e8
movzx r12d, byte [rbp]
jmp 0x1400168ec
cmp r15d, 2
jne 0x14001685f
movzx ecx, word [rsi]
sub ecx, 8
je 0x140016858
sub ecx, 1
je 0x140016851
sub ecx, 1
je 0x14001684a
cmp ecx, 3
je 0x14001683d
mov byte [rbp + 3], 0
movzx ecx, word [rsi]
test r12, r12
je 0x1400168d0
mov r8d, ecx
xor r9d, r9d
mov rcx, r12
mov edx, 0x102
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400168e1
cmp word [rsi + 2], 0xa
lea rax, [rsi + 2]
cmove rsi, rax
mov al, 0xd
mov byte [rbp + 3], al
jmp 0x14001688f
mov al, 9
mov byte [rbp + 3], al
jmp 0x14001688f
mov al, 8
mov byte [rbp + 3], al
jmp 0x14001688f
or dil, r13b
je 0x14001686e
test r15d, r15d
jne 0x14001686e
mov r9b, 1
jmp 0x140016871
xor r9d, r9d
mov r8, qword [0x14014e788]
lea rdx, [rbp + 2]
movzx ecx, word [rsi]
call fcn.14001b620
movzx edi, byte [rbp + 2]
mov byte [rbp + 3], al
test al, al
je 0x140016818
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.140016c50
jmp 0x1400168e1
or dil, r13b
mov edx, 1
movzx r8d, dil
call fcn.140016eb0
xor dil, dil
movzx r12d, dil
mov byte [rbp + 2], dil
add rsi, 2
mov byte [0x14014e785], r12b
mov r12, qword [rbp + 0x118]
lea r14, [0x140000000]
cmp word [rsi], 0
jne 0x140015840
movzx r15d, byte [rbp + 0x10]
mov r14d, 0x5dc
cmp dword [0x14014e844], 0
je 0x1400169d3
cmp byte [0x14014e842], 0
mov ebx, 0xffffffff
mov dword [rbp + 0x100], ebx
jne 0x14001699a
cmp dword [0x14014e834], 0
jbe 0x14001699a
cmp byte [0x14014e850], 0
je 0x140016951
xor bl, bl
jmp 0x14001695a
movzx ebx, byte [rbp + 7]
not bl
and bl, byte [rbp + 5]
or bl, byte [0x14014e787]
mov r9b, 1
movzx edx, byte [0x14014e840]
or bl, r13b
movzx ecx, bl
mov dword [rsp + 0x28], 0xffc3d44d
xor r8d, r8d
mov byte [rsp + 0x20], 1
call fcn.140019eb0
movzx edx, bl
lea rcx, [rbp + 0x100]
call fcn.140019760
mov ebx, dword [rbp + 0x100]
cmp dword [0x14014e844], 1
mov eax, 0x1f4
cmove r14d, eax
cmp dword [0x14014e838], r14d
jbe 0x1400169bf
mov rcx, qword [0x14014b3d8]
call fcn.1400e89fc
xor edi, edi
mov ecx, ebx
mov dword [0x14014e844], edi
call fcn.1400199c0
jmp 0x140016a72
cmp qword [0x14014a410], 0
je 0x1400169ea
movzx ecx, byte [0x14014b248]
movzx edx, byte [rbp + 5]
jmp 0x140016a16
cmp dword [0x1401474c4], 0
jl 0x140016a0f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14014e484]
cmp eax, dword [0x1401474c4]
jb 0x140016a0f
movzx edx, byte [rbp + 5]
xor cl, cl
jmp 0x140016a16
movzx edx, byte [rbp + 5]
movzx ecx, dl
or cl, byte [0x14014e787]
cmp byte [0x14014e850], 0
je 0x140016a3a
movzx eax, cl
xor al, dl
movzx ebx, al
and al, cl
and bl, dl
not bl
and bl, r13b
or bl, al
jmp 0x140016a45
movzx ebx, byte [rbp + 7]
not bl
and bl, cl
or bl, r13b
xor ecx, ecx
call fcn.14001a740
or al, byte [0x14014b23b]
mov r9b, 1
movzx edx, al
mov dword [rsp + 0x28], 0xffc3d44d
mov r8, r12
mov byte [rsp + 0x20], 1
movzx ecx, bl
call fcn.140019eb0
xor edi, edi
cmp qword [0x14014a410], 0
je 0x140016a98
movzx ecx, byte [0x14014b249]
movzx eax, cl
xor al, byte [0x14014b24a]
and al, cl
not al
and cl, al
mov byte [0x14014b249], cl
cmp dword [rbp + 0x2c], 1
jne 0x140016aaa
mov edx, 1
mov cl, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140019d60
cmp byte [rbp + 9], 0
je 0x140016ac2
mov edx, dword [rbp + 0x30]
xor r8d, r8d
mov ecx, dword [0x14014c878]
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [rbp + 0xa], 0
je 0x140016adc
test r15b, r15b
jne 0x140016adc
xor ecx, ecx
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x14014a4ca], r15b
mov eax, dword [rbp + 0x110]
test eax, eax
jne 0x140016b6f
mov eax, dword [rbp + 0x48]
cmp dword [0x14014e4d8], eax
je 0x140016baa
cmp dword [0x140145a74], 0
je 0x140016baa
cmp dword [0x14014a390], 0
jne 0x140016baa
mov rcx, qword [0x140145a80]
cmp byte [rcx + 0x12c], 0
jne 0x140016b60
cmp byte [rcx + 0x12e], 0
jne 0x140016b57
cmp dword [rcx + 0x120], 0xffffffff
jle 0x140016b57
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140145a80]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x140016b57
mov byte [rcx + 0x12c], 1
cmp byte [rcx + 0x12c], 0
je 0x140016baa
mov edx, 1
lea ecx, [rdx - 2]
call fcn.1400018c0
jmp 0x140016baa
cmp eax, 1
jne 0x140016baa
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14014c878]
jne 0x140016baa
mov edx, 1
mov dword [0x140145a74], edi
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140145a74], 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