Function at 0x140015040
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 [0x140112488]
mov eax, dword [0x140119d20]
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 0x1400150ab
lea r8d, [rdx + 7]
lea rdx, str.Blind
call fcn.1400c9834
test eax, eax
jne 0x1400150ab
mov byte [0x140116563], 1
add rdi, 0xe
jmp 0x1400150b7
mov byte [0x140116563], 0
test r12d, r12d
jne 0x1400150e1
lea rdx, [0x1400e5900]
mov r8d, 6
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x1400150e1
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 0x140015102
cmp r13d, 3
jne 0x1400151cb
mov rcx, qword [0x1401182b8]
test rcx, rcx
je 0x140015114
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 [0x1401182b8], 0
mov esi, eax
je 0x140015143
mov qword [0x1401182b8], rbx
jmp 0x140015151
test rbx, rbx
je 0x140015151
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xb7
je 0x14001518a
test r12d, r12d
jne 0x14001517b
call fcn.14000bcc0
test al, al
je 0x14001517b
lea rdx, str.Click
mov rcx, rdi
call fcn.1400ac600
test rax, rax
jne 0x14001518a
mov r13d, 1
mov dword [rbp + 0x150], r13d
jmp 0x1400151cb
cmp r13d, 3
jne 0x14001519f
mov r13d, 2
mov dword [rbp + 0x150], r13d
jmp 0x1400151cb
xor eax, eax
mov r13d, eax
mov dword [rbp + 0x150], eax
cmp dword [r15 + 0x7c], eax
jge 0x1400151bc
cmp dword [r15 + 0x84], eax
jge 0x1400151bc
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 0x140015232
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 0x140015383
cmp eax, dword [0x140119128]
je 0x140015383
mov rcx, r14
call fcn.1400b2fe0
test al, al
jne 0x140015383
mov ecx, dword [0x140119128]
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 0x140015383
test byte [0x140119cce], 0xc0
je 0x14001532f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140119cc4]
cmp eax, 0x32
jae 0x14001532f
cmp r13d, 2
je 0x14001532f
cmp byte [0x140116563], bl
jne 0x14001532f
cmp r12d, 2
je 0x14001532f
cmp byte [0x140119f43], bl
je 0x14001532f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x140119128]
jne 0x14001532f
lea rdx, [0x1400e5e78]
mov rcx, rdi
call fcn.14000c5a0
test r12d, r12d
je 0x1400152f2
test rax, rax
setne al
test al, al
je 0x14001532f
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x1400152d0
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14001532f
mov edx, 1
mov ecx, 0x8000012f
mov dword [0x140112454], r15d
call fcn.140001ac0
mov dword [0x140112454], 1
jmp 0x1400152b0
test rax, rax
je 0x14001532f
nop word [rax + rax]
lea rcx, [rax + 2]
lea rdx, [0x1400e5e80]
call fcn.14000c5a0
test rax, rax
je 0x1400152b0
cmp word [rax], 0x7b
je 0x1400152b0
lea rdx, [0x1400e5e78]
mov rcx, rax
call fcn.14000c5a0
test rax, rax
jne 0x140015300
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14001537a
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 0x14001537a
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14001537a
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, [0x140118340]
mov ecx, r15d
mov rbx, rax
mov qword [0x140116590], rax
mov rdx, r9
mov r8, qword [rdx]
test r8, r8
je 0x1400153be
cmp r8, rax
je 0x140015457
inc ecx
add rdx, 0x10
cmp ecx, 0xa
jl 0x1400153a2
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.14001a4b0
mov r13, rax
test rax, rax
je 0x140015413
lea rdx, str.KbdLayerDescriptor
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001540a
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 [0x140116588], esi
call fcn.140019f20
and byte [0x14011830e], al
cmp qword [0x140117860], r15
movzx ebx, al
je 0x140015464
movzx eax, byte [0x140117705]
movzx edx, byte [0x140117707]
movzx ecx, al
not al
and cl, dl
and al, dl
mov byte [rbp + 7], al
jmp 0x14001548c
movsxd rax, ecx
add rax, rax
mov esi, dword [r9 + rax*8 + 8]
jmp 0x14001541c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140119cc4]
cmp eax, dword [0x14011244c]
jae 0x140015483
movzx edx, byte [0x140119cce]
and dl, bl
jmp 0x140015485
xor dl, dl
movzx ecx, dl
mov byte [rbp + 7], r15b
movzx r15d, byte [0x1401182af]
not cl
mov byte [rbp + 4], dl
and cl, bl
and r15b, cl
cmp byte [0x140116563], 0
mov byte [rbp + 0x140], r15b
mov byte [0x1401182af], r15b
je 0x1400154ce
not r15b
mov byte [rbp + 0x140], bl
mov byte [rbp + 3], bl
and r15b, bl
mov byte [rbp + 5], r15b
movzx r15d, bl
jmp 0x1400154d7
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 0x140015509
cmp byte [0x140116563], 0
jne 0x140015509
cmp esi, 2
je 0x140015509
mov edx, 2
mov cl, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140019580
mov dword [rbp + 0x2c], eax
jmp 0x14001550e
xor edx, edx
mov dword [rbp + 0x2c], edx
mov r13d, dword [rbp + 0x150]
mov eax, 0x1f4
mov dword [0x140118338], r13d
test r13d, r13d
je 0x1400155af
cmp r13d, 1
jne 0x14001553d
mov ecx, 0x4e20
mov dword [0x140116578], eax
jmp 0x14001554c
mov ecx, 0x2ee0
mov dword [0x140116578], 0x5dc
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14001555f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d1910
sub rsp, rax
mov byte [0x14011656b], bl
xor ebx, ebx
lea rax, [rsp + 0x60]
mov dword [0x140116570], 0x80000000
mov dword [0x140116574], 0x80000000
mov byte [0x14011656a], 0
mov byte [0x140116568], 1
mov qword [0x140116580], rax
mov dword [0x14011657c], ebx
mov byte [0x140116569], bl
jmp 0x1400155b1
xor ebx, ebx
movzx eax, byte [0x140118299]
mov byte [rbp + 0x10], al
mov eax, dword [reloc.WSOCK32.dll_inet_ntoa]
cmp eax, 8
je 0x1400155cb
cmp eax, 0xa
jne 0x1400155ec
test r13d, r13d
jne 0x1400155ec
test r14, r14
jne 0x1400155ec
lea ecx, [r13 + 1]
mov byte [rbp + 9], 1
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x140118299], 1
jmp 0x1400155f0
mov byte [rbp + 9], 0
xor r12b, r12b
cmp word [rdi], 0
mov byte [rbp], r12b
mov byte [rbp + 1], r12b
je 0x1400162a7
lea r13, [0x140000000]
jmp 0x140015612
xor ebx, ebx
cmp dword [0x140118338], 0
mov byte [rbp + 6], 0
jne 0x14001567d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112488]
sub eax, dword [0x140119d24]
cmp eax, dword [rcx + 0x118]
jbe 0x14001567d
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 0x140015671
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140112454], ebx
call fcn.140001ac0
mov dword [0x140112454], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140119d24], eax
test esi, esi
jne 0x140016176
movzx edx, word [rdi]
lea rcx, [0x1400e5e88]
call fcn.1400ca5f4
test rax, rax
je 0x1400161d9
movzx eax, word [rdi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x1400156c2.38
cdqe
movzx eax, byte [r13 + rax + 0x16734]
mov ecx, dword [r13 + rax*4 + 0x16718]
add rcx, r13
jmp rcx
test r15b, 3
jne case.0x1400156c2.38
or r12b, 1
jmp 0x140016273
test r15b, 0x30
jne case.0x1400156c2.38
or r12b, 0x10
jmp 0x140016273
test r15b, 0xc
jne case.0x1400156c2.38
or r12b, 4
jmp 0x140016273
test r15b, 0xc0
jne case.0x1400156c2.38
or r12b, 0x40
jmp 0x140016273
lea rbx, [rdi + 2]
mov edx, 0x7d
mov rcx, rbx
call fcn.1400ca5f4
mov rsi, rax
mov qword [rbp + 0x30], rax
test rax, rax
je case.0x1400156c2.38
mov rdi, rbx
movzx ecx, word [rdi]
cmp cx, 0x20
je 0x140015743
cmp cx, 9
jne 0x140015749
add rdi, 2
jmp 0x140015734
mov r13, rax
sub r13, rdi
sar r13, 1
jne 0x140015801
lea rbx, [rax + 2]
movzx eax, word [rax + 2]
cmp ax, 0x7d
jne 0x140015778
mov rsi, rbx
mov qword [rbp + 0x30], rbx
mov r13d, 1
jmp 0x140015801
cmp ax, 0x20
je 0x140015790
cmp ax, 9
jne 0x140015ba9
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001579f
cmp ax, 9
jne 0x1400157a5
add rbx, 2
jmp 0x140015790
lea rdx, str.Down
mov r8d, 4
mov rcx, rbx
call fcn.1400c9834
test eax, eax
je 0x1400157db
lea rdx, [0x1400e2afc]
mov r8d, 2
mov rcx, rbx
call fcn.1400c9834
test eax, eax
jne 0x140015ba9
mov edx, 0x7d
mov rcx, rbx
call fcn.1400ca5f4
mov rsi, rax
mov qword [rbp + 0x30], rax
test rax, rax
je case.0x1400156c2.38
mov r13, rax
sub r13, rdi
sar r13, 1
lea rdx, [0x1400e4748]
mov r8d, 5
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x1400158f9
xor edx, edx
lea rcx, [rdi + 0xa]
mov word [rsi], dx
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015836
cmp ax, 9
jne 0x14001583c
add rcx, 2
jmp 0x140015827
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.140017900
mov ecx, dword [rbp + 0x14]
mov eax, 0x7d
mov word [rsi], ax
cmp ecx, 1
jge 0x1400158b3
cmp dword [rbp + 0x1c], 0x80000000
je 0x140015ba9
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.140018840
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
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.1400167a0
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
lea rdx, [0x1400e5e98]
mov r8d, 3
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x140015928
mov rdi, qword [rbp + 0x30]
mov r12d, 1
mov dword [rbp + 0x148], r12d
jmp 0x140016270
lea rdx, str.Text
mov r8d, 4
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x140015979
lea rcx, [rdi + 8]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015954
cmp ax, 9
jne 0x14001595a
add rcx, 2
jmp 0x140015945
cmp rcx, rsi
jne 0x140015ba9
mov rdi, qword [rbp + 0x30]
mov r12d, 2
mov dword [rbp + 0x148], r12d
jmp 0x140016270
mov eax, 1
lea rdx, [0x1400e56d0]
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.14000c5a0
mov r14, rax
test rax, rax
je 0x140015a6e
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 0x1400159d4
cmp ax, 9
jne 0x1400159da
add rbx, 2
jmp 0x1400159c5
mov rax, rsi
sub rax, rbx
sar rax, 1
test eax, eax
je 0x140015a6e
lea rdx, str.Down
mov r8d, 4
mov rcx, rbx
call fcn.1400c9834
test eax, eax
jne 0x140015a47
add rbx, 8
lea r8d, [rax + 4]
lea rdx, str.Temp
mov rcx, rbx
mov dword [rbp + 0xc], r12d
call fcn.1400c9834
test eax, eax
jne 0x140015a29
mov dword [rbp + 0x20], r12d
jmp 0x140015a6e
cmp word [rbx], 0x52
mov ecx, r12d
sete cl
call fcn.1400cb214
mov ecx, r12d
test eax, eax
setne cl
inc ecx
mov dword [rbp + 0x20], ecx
jmp 0x140015a6e
lea rdx, [0x1400e2afc]
mov rcx, rbx
call fcn.1400c95dc
test eax, eax
jne 0x140015a63
mov dword [rbp + 0xc], 1
jmp 0x140015a6e
mov rcx, rbx
call fcn.140014950
mov dword [rbp + 0x14], eax
cmp word [rdi], r12w
jne 0x140015a79
xor sil, sil
jmp 0x140015a99
mov r9, qword [0x140116590]
lea rdx, [rbp + 1]
mov r8b, 1
mov rcx, rdi
call fcn.14001ab60
movzx esi, al
movzx eax, byte [rbp + 1]
mov byte [rbp], al
mov byte [rbp + 2], sil
test sil, sil
jne 0x140015b28
xor edx, edx
mov rcx, rdi
call fcn.14001aa40
movzx r12d, ax
test ax, ax
jne 0x140015b28
lea rdx, [0x1400e572c]
mov r8d, 2
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x140015b28
lea rcx, [rdi + 4]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x38]
call fcn.1400cb0b8
mov rcx, qword [rbp + 0x38]
lea rdx, [0x1400e6008]
mov r8d, 2
mov ebx, eax
call fcn.1400c9834
test eax, eax
jne 0x140015b28
mov rcx, qword [rbp + 0x38]
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x38]
add rcx, 4
call fcn.1400cb0b8
mov rcx, qword [rbp + 0x38]
cmp word [rcx], r12w
jne 0x140015b28
movzx esi, bl
mov byte [rbp + 2], bl
movzx r12d, ax
test r14, r14
je 0x140015b35
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 0x140015b9a
test sil, sil
jne 0x14001603f
test r12w, r12w
jne 0x14001603f
cmp r15, 1
jne 0x140015be0
cmp dword [rbp + 0xc], r15d
je 0x140015b9a
mov r13, qword [rbp + 0x158]
test r13, r13
je 0x140015bb2
test r14d, r14d
jle 0x140015b9a
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 0x140015b80
movzx r15d, byte [rbp + 0x140]
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
movzx eax, byte [rbp]
movzx r15d, byte [rbp + 0x140]
movzx ecx, word [rdi]
or al, r15b
mov edx, r14d
movzx r8d, al
call fcn.140016c80
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
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.14001aec0
movzx esi, al
mov byte [rbp + 2], al
test al, al
je 0x140015e59
mov r13, qword [rbp + 0x158]
mov r12d, dword [rbp + 0xc]
test r13, r13
jne 0x140015c33
test r12d, r12d
jne 0x140015c2a
mov byte [rbp + 6], al
jmp 0x140015c33
movzx ecx, sil
call fcn.140014bd0
cmp dword [0x140118338], 0
je 0x140015c48
movzx ebx, byte [0x14011656b]
jmp 0x140015d6e
cmp qword [0x140117860], 0
je 0x140015c5e
movzx ebx, byte [0x140117705]
jmp 0x140015d6e
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 0x140015c91
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015ca4
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015cb7
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015cca
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015cdd
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015cf0
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140015d03
or bl, 0x80
cmp qword [0x140117860], 0
je 0x140015d6e
movzx ecx, byte [0x140117705]
movzx edi, bl
not dil
and dil, cl
je 0x140015d6e
movzx edx, byte [0x140117707]
movzx eax, dil
not al
and byte [0x140117706], al
and cl, al
and dl, al
mov byte [0x140117705], cl
lea rcx, [0x140117760]
mov byte [0x140117707], dl
call fcn.14001a070
mov rcx, qword [0x140116558]
test rcx, rcx
je 0x140015d6e
test byte [rcx + 0xc], dil
mov edx, 0
cmovne rcx, rdx
mov qword [0x140116558], 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.1400196d0
test r14d, r14d
jle 0x140015ba2
mov rbx, r14
xor r15d, r15d
nop dword [rax + rax]
xor r8d, r8d
mov r9, r13
movzx edx, sil
mov ecx, r12d
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 1
call fcn.140017230
cmp dword [0x140118338], r15d
jne 0x140015e38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112488]
sub eax, dword [0x140119d24]
cmp eax, dword [rcx + 0x118]
jbe 0x140015e38
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 0x140015e2c
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140112454], r15d
call fcn.140001ac0
mov dword [0x140112454], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140119d24], eax
dec rbx
jne 0x140015db0
movzx r15d, byte [rbp + 0x140]
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
cmp r13, 4
jbe 0x140015ef7
lea rdx, str.ASC
mov r8d, 4
mov rcx, rdi
call fcn.1400c9834
mov r14, qword [rbp + 0x158]
test eax, eax
jne 0x140015efe
test r14, r14
jne 0x140015efe
lea rcx, [rdi + 6]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140015e9f
cmp ax, 9
jne 0x140015ea5
add rcx, 2
jmp 0x140015e90
call fcn.140016dc0
cmp dword [0x140118338], 2
mov rax, qword [0x140112488]
jne 0x140015eda
mov ecx, dword [rax + 0x80]
call fcn.140019210
movzx r15d, byte [rbp + 3]
mov rdi, qword [rbp + 0x30]
mov byte [rbp + 0x140], r15b
jmp 0x140016270
mov ecx, dword [rax + 0x7c]
call fcn.140019210
movzx r15d, byte [rbp + 3]
mov rdi, qword [rbp + 0x30]
mov byte [rbp + 0x140], r15b
jmp 0x140016270
mov r14, qword [rbp + 0x158]
cmp r13, 2
jbe 0x140015ee2
lea rdx, [0x1400e5ebc]
mov r8d, 2
mov rcx, rdi
call fcn.1400c9834
test eax, eax
jne 0x140015ee2
lea rcx, [rdi + 4]
lea r8d, [rax + 0x10]
xor edx, edx
call fcn.1400cb0b0
cmp eax, 0x10000
jb 0x140015f5f
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 0x140015f66
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 0x140015faf
movzx r8d, cx
xor r9d, r9d
mov edx, 0x102
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageW]
test bx, bx
je 0x140015ffc
movzx r8d, bx
xor r9d, r9d
mov edx, 0x102
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140015ffc
cmp dword [0x140118338], 2
je 0x140015fdb
movzx edi, byte [rbp]
or dil, r15b
movzx edx, dil
call fcn.140014c60
test bx, bx
je 0x140015ffc
movzx edx, dil
movzx ecx, bx
call fcn.140014c60
jmp 0x140015ffc
mov ecx, gethostbyname
lea rdx, [rbp + 0x62]
lea r8d, [rcx - 0x26]
mov word [rbp + 0x60], cx
mov ecx, eax
call fcn.1400c9330
lea rcx, [rbp + 0x60]
call fcn.140016dc0
cmp dword [0x140118338], 2
mov rax, qword [0x140112488]
jne 0x140016027
mov ecx, dword [rax + 0x80]
call fcn.140019210
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
mov ecx, dword [rax + 0x7c]
call fcn.140019210
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
xor r8d, r8d
movzx edx, r12w
movzx ecx, sil
call fcn.14001a150
mov rdi, qword [rbp + 0x158]
mov r13d, dword [rbp + 0xc]
movzx ebx, al
test al, al
je 0x140016120
test rdi, rdi
jne 0x140016120
test r13d, r13d
jne 0x1400160c3
mov eax, dword [rbp + 0x20]
mov byte [rbp + 6], sil
cmp eax, 1
jne 0x1400160a0
movzx r15d, byte [rbp + 0x140]
or byte [0x1401182af], bl
or r15b, bl
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x140016128
cmp eax, 2
jne 0x1400160ab
or byte [0x14011830e], bl
movzx r15d, byte [rbp + 0x140]
or r15b, bl
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x140016128
cmp r13d, 1
jne 0x140016120
movzx ecx, sil
call fcn.140014bd0
movzx r15d, byte [0x1401182af]
movzx eax, byte [rbp + 5]
movzx r11d, bl
not r11b
and byte [0x14011830e], r11b
and r15b, r11b
and al, r11b
mov byte [0x1401182af], r15b
mov byte [rbp + 5], al
cmp sil, 0xa5
jne 0x140016110
cmp dword [0x140116588], 3
jne 0x140016110
and al, 0xfe
mov byte [rbp + 5], al
or r15b, al
mov byte [rbp + 0x140], r15b
mov byte [rbp + 3], r15b
jmp 0x140016128
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.1400167a0
mov r14, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x30]
jmp 0x140016270
cmp esi, 2
jne 0x1400161d9
movzx ecx, word [rdi]
sub ecx, 8
je 0x1400161d2
dec ecx
je 0x1400161cb
dec ecx
je 0x1400161c4
sub ecx, 3
je 0x1400161b7
mov byte [rbp + 2], 0
test r14, r14
je 0x14001625c
movzx r8d, word [rdi]
xor r9d, r9d
mov edx, 0x102
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140016270
cmp word [rdi + 2], 0xa
lea rax, [rdi + 2]
cmove rdi, rax
mov al, 0xd
mov byte [rbp + 2], al
jmp 0x14001621b
mov al, 9
mov byte [rbp + 2], al
jmp 0x14001621b
mov al, 8
mov byte [rbp + 2], al
jmp 0x14001621b
movzx eax, r12b
or al, r15b
je 0x1400161eb
test esi, esi
jne 0x1400161eb
mov r9b, 1
jmp 0x1400161ee
xor r9b, r9b
movzx ecx, word [rdi]
cmp cx, 0xa
jne 0x1400161fb
mov al, 0xd
jmp 0x140016210
mov r8, qword [0x140116590]
lea rdx, [rbp + 1]
call fcn.14001ace0
movzx r12d, byte [rbp + 1]
mov byte [rbp + 2], al
test al, al
je 0x140016194
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.1400167a0
jmp 0x140016270
movzx ecx, word [rdi]
or r12b, r15b
mov edx, 1
movzx r8d, r12b
call fcn.140016c80
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 [0x1401182ae], al
jne 0x140015610
mov r13d, dword [rbp + 0x150]
cmp dword [0x140118338], 0
je 0x140016366
or ebx, 0xffffffff
cmp byte [0x140116569], 0
mov dword [rbp + 0x148], ebx
jne 0x14001632a
cmp dword [0x14011657c], 0
jbe 0x14001632a
cmp byte [0x140116563], 0
je 0x1400162de
xor eax, eax
mov ebx, eax
jmp 0x1400162ea
movzx ebx, byte [rbp + 7]
movzx edx, byte [rbp + 4]
not ebx
and ebx, edx
or bl, byte [0x14011830e]
movzx edx, byte [0x14011656b]
mov r9b, 1
or bl, r15b
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
movzx ecx, bl
mov byte [rsp + 0x20], 1
call fcn.1400196d0
lea rcx, [rbp + 0x148]
movzx edx, bl
call fcn.140018ec0
mov ebx, dword [rbp + 0x148]
cmp dword [0x140118338], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x140116578], eax
jbe 0x140016352
mov rcx, qword [0x140116580]
call fcn.1400ca100
xor edi, edi
mov ecx, ebx
mov dword [0x140118338], edi
call fcn.140019210
jmp 0x14001652d
cmp qword [0x140117860], 0
je 0x14001637d
movzx ecx, byte [0x140117707]
movzx edx, byte [rbp + 4]
jmp 0x1400163a9
cmp dword [0x14011244c], 0
jl 0x1400163a2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140119cc4]
cmp eax, dword [0x14011244c]
jb 0x1400163a2
movzx edx, byte [rbp + 4]
xor cl, cl
jmp 0x1400163a9
movzx edx, byte [rbp + 4]
movzx ecx, dl
or cl, byte [0x14011830e]
cmp byte [0x140116563], 0
je 0x1400163d0
movzx eax, cl
xor al, dl
movzx esi, al
and al, cl
and sil, dl
not sil
and sil, r15b
or sil, al
jmp 0x1400163dd
movzx esi, byte [rbp + 7]
not sil
and sil, cl
or sil, r15b
cmp qword [0x140117860], 0
je 0x1400163f3
movzx ebx, byte [0x140117705]
jmp 0x140016506
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 0x140016426
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016439
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001644c
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001645f
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016472
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016485
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016498
or bl, 0x80
cmp qword [0x140117860], 0
je 0x140016506
movzx r8d, byte [0x140117705]
movzx edi, bl
not dil
and dil, r8b
je 0x140016506
movzx edx, byte [0x140117707]
movzx eax, dil
lea rcx, [0x140117760]
not al
and byte [0x140117706], al
and dl, al
and r8b, al
mov byte [0x140117707], dl
mov byte [0x140117705], r8b
call fcn.14001a070
mov r11, qword [0x140116558]
test r11, r11
je 0x140016506
test byte [r11 + 0xc], dil
mov eax, 0
cmovne r11, rax
mov qword [0x140116558], r11
or bl, byte [0x140117750]
mov r9b, 1
mov r8, r14
movzx ecx, sil
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 1
call fcn.1400196d0
xor edi, edi
cmp qword [0x140117860], 0
je 0x140016553
movzx ecx, byte [0x140117706]
movzx eax, cl
xor al, byte [0x140117705]
and al, cl
not al
and cl, al
mov byte [0x140117706], cl
cmp dword [rbp + 0x2c], 1
jne 0x1400165f7
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x1400165f7
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1400165a3
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.140017230
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.140017230
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140119128]
jne 0x1400165f7
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140112454], edi
call fcn.140001ac0
mov dword [0x140112454], 1
cmp byte [rbp + 8], 0
je 0x14001660f
mov edx, dword [rbp + 0x24]
mov ecx, dword [0x140119128]
xor r8d, r8d
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [rbp + 9], 0
je 0x14001662a
cmp byte [rbp + 0x10], 0
jne 0x14001662a
xor ecx, ecx
call qword [sym.imp.USER32.dll_BlockInput]
mov byte [0x140118299], 0
test r13d, r13d
jne 0x1400166ba
mov eax, dword [rbp + 0x50]
cmp dword [0x140119d20], eax
je 0x1400166f1
cmp dword [0x140112454], r13d
je 0x1400166f1
cmp dword [0x1401178f0], r13d
jne 0x1400166f1
mov rcx, qword [0x140112488]
cmp byte [rcx + 0x12c], r13b
jne 0x1400166a0
cmp byte [rcx + 0x12e], r13b
jne 0x1400166a0
cmp dword [rcx + 0x120], 0xffffffff
jle 0x1400166a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112488]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x1400166a0
mov byte [rcx + 0x12c], 1
movzx eax, byte [rcx + 0x12c]
test eax, eax
je 0x1400166f1
mov edx, 1
or ecx, 0xffffffff
call fcn.140001ac0
jmp 0x1400166f1
cmp r13d, 1
jne 0x1400166f1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140119128]
jne 0x1400166f1
mov edx, r13d
or ecx, 0xffffffff
mov dword [0x140112454], edi
call fcn.140001ac0
mov dword [0x140112454], 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