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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp + 0x50], esi
cmp word [edi], 0
je case.0x414b93.0
mov eax, dword [0x4e59a0]
xor bh, bh
mov dword [ebp + 0x44], eax
mov eax, dword [0x4eb7f4]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0x6e], bh
test esi, esi
jne 0x414bc2
push 6
push str.Blind
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x414bc2
movzx eax, word [edi + 0xc]
add edi, 0xc
mov byte [0x4eba5c], 1
mov dword [ebp + 0x60], edi
cmp eax, 0x7d
je 0x414bd3
mov ecx, eax
movzx eax, cx
cmp eax, 0x5e
ja case.0x414b93.1
movzx eax, byte [eax + 0x415d30]
jmp dword [eax*4 + 0x415d18]
or bh, 3
jmp 0x414bac
or bh, 0x30
jmp 0x414bac
or bh, 0xc
jmp 0x414bac
or bh, 0xc0
mov byte [ebp + 0x6e], bh
movzx eax, word [edi + 2]
add edi, 2
mov dword [ebp + 0x60], edi
mov ecx, eax
cmp eax, 0x7d
jne 0x414b84
jmp 0x414bd3
mov byte [0x4eba5c], 0
mov byte [ebp + 0x6e], bh
mov dword [ebp + 0x60], edi
test esi, esi
jne 0x414bf4
push 6
push 0x4d4d2c
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x414bf4
add edi, 0xc
mov dword [ebp + 0x50], 2
mov dword [ebp + 0x60], edi
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x78]
mov eax, dword [edx + 0x6c]
mov dword [ebp + 8], eax
mov eax, dword [edx + 0x74]
mov dword [ebp + 0x2c], eax
cmp ecx, 1
je 0x414c14
cmp ecx, 3
jne 0x414cd2
mov eax, dword [0x4eb9bc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x414c26
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4eb9bc], 0
mov ebx, eax
je 0x414c50
mov dword [0x4eb9bc], esi
jmp 0x414c57
test esi, esi
je 0x414c57
push esi
call edi
cmp ebx, 0xb7
je 0x414c96
cmp dword [ebp + 0x50], 0
jne 0x414c8a
call fcn.0040f100
mov edi, dword [ebp + 0x60]
test al, al
je 0x414c8d
mov edx, 0x4d50d0
mov ecx, edi
call fcn.00482440
test eax, eax
jne 0x414c99
mov dword [ebp + 0x78], 1
jmp 0x414ccf
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x78], 1
jmp 0x414ccf
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x414ca8
mov dword [ebp + 0x78], 2
jmp 0x414ccf
mov edx, dword [ebp + 0x44]
mov dword [ebp + 0x78], 0
cmp dword [edx + 0x6c], 0
jge 0x414cc3
cmp dword [edx + 0x74], 0
jge 0x414cc3
or eax, 0xffffffff
jmp 0x414cc5
xor eax, eax
mov dword [edx + 0x74], eax
mov dword [edx + 0x6c], 0xffffffff
mov bh, byte [ebp + 0x6e]
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5b], 0
test eax, eax
je 0x414d2e
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
je 0x414e0d
cmp edi, dword [0x4eb0dc]
je 0x414e0d
mov ecx, dword [ebp + 0x7c]
call fcn.004878d0
test al, al
jne 0x414e0d
push 1
push edi
push dword [0x4eb0dc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x5b]
jmp 0x414e0d
test byte [0x4eb7ba], 0xc0
je 0x414dcb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eb7b0]
cmp eax, 0x32
jae 0x414dcb
cmp dword [ebp + 0x78], 2
je 0x414dcb
cmp byte [0x4eba5c], 0
jne 0x414dcb
mov esi, dword [ebp + 0x50]
cmp esi, 2
je 0x414dcb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4eb0dc]
jne 0x414dcb
test esi, esi
je 0x414e5d
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x414dc1
movzx eax, word [eax]
test ax, ax
je 0x414dc1
mov esi, eax
nop word [eax + eax]
mov ecx, 0x4d50e0
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x414dc3
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x414da0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x414d90
xor edi, edi
test edi, edi
jne 0x414f0d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x414e07
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x58], 0x30
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x414e07
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x414e07
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
mov dword [0x4eba38], eax
call fcn.00418f60
mov cl, 1
mov dword [0x4eba3c], eax
call fcn.00418a00
mov bl, al
and byte [0x4eb9e7], bl
cmp dword [0x4ea0ec], 0
je 0x414f52
mov dl, byte [0x4ea1f8]
mov ah, byte [0x4ea0f6]
mov cl, dl
not dl
and cl, ah
and dl, ah
mov byte [ebp + 0x66], dl
jmp 0x414f78
mov esi, edi
nop
test esi, esi
je 0x414dcb
movzx eax, word [esi]
test ax, ax
je 0x414dcb
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4d50e0
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x414eb6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x414e90
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x414e80
jmp 0x414dcb
add esi, 2
je 0x414f0d
movzx eax, word [esi]
test ax, ax
je 0x414f0d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4d50e8
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x414f03
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x414ee0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x414ed0
jmp 0x414f0d
cmp word [esi], 0x7b
jne 0x414e60
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
bt ax, 0xf
jb 0x414f2d
push 0x5c
call esi
bt ax, 0xf
jae 0x414dcb
mov edx, 1
mov dword [0x4e5998], 0
mov ecx, 0x8000012f
call fcn.004015c0
mov dword [0x4e5998], 1
jmp 0x414f13
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eb7b0]
cmp eax, dword [0x4e5f14]
jae 0x414f70
mov ah, byte [0x4eb7ba]
and ah, bl
jmp 0x414f72
xor ah, ah
mov cl, ah
mov byte [ebp + 0x66], 0
mov al, byte [0x4eb9e6]
not cl
and cl, bl
mov byte [ebp + 0x6d], ah
and al, cl
mov byte [ebp + 0x67], 0
cmp byte [0x4eba5c], 0
mov byte [ebp + 0x6f], al
mov byte [0x4eb9e6], al
je 0x414fbc
mov al, bl
mov byte [ebp + 0x6f], al
mov byte [ebp + 0x5c], al
test bh, bh
je 0x414fc4
mov al, bh
not al
and al, bl
mov bh, al
xor al, bl
mov byte [ebp + 0x6f], bh
mov byte [ebp + 0x5c], bh
mov byte [ebp + 0x67], al
jmp 0x414fc7
mov bh, byte [ebp + 0x6f]
mov byte [ebp + 0x5c], bh
jmp 0x414fc7
mov bh, byte [ebp + 0x6f]
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x98], 0
je 0x414ff3
cmp byte [0x4eba5c], 0
jne 0x414ff3
cmp dword [ebp + 0x50], 2
je 0x414ff3
mov edx, 2
mov cl, 0x14
call fcn.004181f0
mov dword [ebp + 0x1c], eax
jmp 0x414ffa
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4eba58], edx
mov ecx, 0x5dc
test edx, edx
je 0x415073
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4eba44], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004b87f0
mov eax, dword [0x4e8b48]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4eba4c], bl
mov byte [0x4eba4d], 0
mov dword [eax], ecx
mov dword [0x4eba50], 0x80000000
mov dword [0x4eba54], 0x80000000
mov dword [0x4eba40], 0
mov byte [0x4eba4e], 0
mov byte [0x4eba4f], 1
mov al, byte [0x4e9eec]
mov byte [ebp + 0x59], al
mov eax, dword [0x4e59b4]
cmp eax, 7
je 0x41508a
cmp eax, 9
jne 0x4150aa
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x4150ad
test esi, esi
jne 0x4150ad
push 1
mov byte [ebp + 0x5a], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e9eec], 1
jmp 0x4150b1
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5a], 0
mov edi, dword [ebp + 0x60]
xor bl, bl
mov byte [ebp + 0x69], bl
cmp word [edi], 0
jne 0x415116
mov bh, byte [ebp + 0x6f]
cmp dword [0x4eba58], 0
je 0x415ac5
or esi, 0xffffffff
cmp byte [0x4eba4e], 0
mov dword [ebp + 0x40], esi
jne 0x415a85
cmp dword [0x4eba40], 0
jbe 0x415a85
cmp byte [0x4eba5c], 0
je 0x415a4d
mov bl, byte [ebp + 0x67]
jmp 0x415a55
mov bh, byte [ebp + 0x6f]
mov esi, dword [ebp + 0x7c]
cmp dword [0x4eba58], 0
mov byte [ebp + 0x68], 0
jne 0x41517c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e59a0]
sub eax, dword [0x4eb7f4]
cmp eax, dword [ecx + 0x5c]
jbe 0x41517c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x415171
mov edx, 1
mov dword [0x4e5998], 0
or ecx, 0xffffffff
call fcn.004015c0
mov dword [0x4e5998], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4eb7f4], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41596c
movzx eax, word [edi]
push eax
push 0x4d50f0
call fcn.0049d2e2
add esp, 8
test eax, eax
je 0x4159a9
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x4151b6.34
movzx eax, byte [eax + 0x415dac]
jmp dword [eax*4 + 0x415d90]
test bh, 3
jne case.0x4151b6.34
or bl, 1
jmp 0x415a2d
test bh, 0x30
jne case.0x4151b6.34
or bl, 0x10
jmp 0x415a2d
test bh, 0xc
jne case.0x4151b6.34
or bl, 4
jmp 0x415a2d
test bh, 0xc0
jne case.0x4151b6.34
or bl, 0x40
jmp 0x415a2d
lea esi, [edi + 2]
push 0x7d
push esi
call fcn.0049d2e2
add esp, 8
mov dword [ebp + 0x4c], eax
test eax, eax
je case.0x4151b6.34
mov edi, esi
nop dword [eax]
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x41522d
cmp ecx, 9
jne 0x415232
add edi, 2
jmp 0x415220
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x4152d4
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x41525e
mov ebx, esi
mov esi, 1
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x34], esi
jmp 0x4152d7
cmp eax, 0x20
je 0x415270
cmp eax, 9
jne 0x415957
nop dword [eax]
cmp ax, 0x20
je 0x41527c
cmp ax, 9
jne 0x415285
movzx eax, word [esi + 2]
add esi, 2
jmp 0x415270
push 4
push str.Down
push esi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
je 0x4152b1
push 2
push 0x4d3f74
push esi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x415957
push 0x7d
push esi
call fcn.0049d2e2
add esp, 8
mov dword [ebp + 0x4c], eax
test eax, eax
je case.0x4151b6.34
mov ebx, eax
mov esi, ebx
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jmp 0x4152d7
mov ebx, dword [ebp + 0x4c]
push 5
push str.Click
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x41537c
mov word [ebx], ax
lea ecx, [edi + 0xa]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x415302
cmp eax, 9
jne 0x415307
add ecx, 2
jmp 0x4152f5
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp + 0x28]
call fcn.004169b0
add esp, 0x14
mov eax, 0x7d
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
push dword [ebp + 0x20]
cmp eax, 1
jge 0x415363
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x14]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0x97]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00417610
mov bh, byte [ebp + 0x6f]
add esp, 0xc
mov edi, dword [ebp + 0x4c]
xor bl, bl
jmp 0x415a30
push dword [ebp + 0x14]
mov cl, byte [ebp + 0x6e]
xor edx, edx
push dword [ebp + 0x28]
push dword [ebp + 0x7c]
push 0
push dword [ebp + 0x54]
push eax
jmp 0x415949
push 3
push 0x4d510c
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x4153a4
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
mov dword [ebp + 0x50], 1
jmp 0x415a30
push 4
push str.Text
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x4153ee
lea ecx, [edi + 8]
nop dword [eax + eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x4153cd
cmp eax, 9
jne 0x4153d2
add ecx, 2
jmp 0x4153c0
cmp ecx, ebx
jne 0x415957
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
mov dword [ebp + 0x50], 2
jmp 0x415a30
mov eax, 1
mov dword [ebp + 0x54], 2
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x30], eax
xor eax, eax
mov word [ebx], ax
mov ebx, edi
movzx eax, word [edi]
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x3c], edi
test ax, ax
je 0x415454
mov esi, eax
nop word [eax + eax]
mov edx, 0x4d4b64
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x415474
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x415430
movzx eax, word [ebx + 2]
add ebx, 2
mov dword [ebp + 0x3c], ebx
mov esi, eax
test ax, ax
jne 0x415420
push dword [0x4eba38]
lea eax, [ebp + 0x69]
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
lea edx, [ebp + 0x6e]
call fcn.00419560
add esp, 0xc
jmp 0x415546
movzx edi, word [ebx]
xor eax, eax
mov esi, dword [ebp + 0x3c]
mov word [ebx], ax
mov eax, ebx
mov ebx, dword [ebp + 0x60]
sub eax, ebx
sar eax, 1
mov dword [ebp + 0x24], eax
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x41548b
cmp eax, 9
je 0x41548b
mov eax, dword [ebp + 0x4c]
sub eax, esi
sar eax, 1
je 0x41551e
push 4
push str.Down
push esi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x4154f6
push 4
add esi, 8
mov dword [ebp + 0x54], eax
push str.Temp
push esi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x4154d8
mov dword [ebp + 0x40], eax
jmp 0x41551e
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.004aa8be
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x40], esi
jmp 0x41551e
push 0x4d3f74
push esi
call fcn.0049f76e
add esp, 8
test eax, eax
jne 0x415511
mov dword [ebp + 0x54], 1
jmp 0x41551e
mov ecx, esi
call fcn.004828e0
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x30], eax
push dword [0x4eba38]
lea eax, [ebp + 0x69]
mov ecx, ebx
push eax
lea eax, [ebp + 0x38]
push eax
lea edx, [ebp + 0x6e]
call fcn.00419560
mov eax, dword [ebp + 0x3c]
add esp, 0xc
test eax, eax
je 0x415543
mov word [eax], di
mov edi, dword [ebp + 0x60]
mov eax, dword [ebp + 0x4c]
mov ecx, 0x7d
mov word [eax], cx
mov ecx, dword [ebp + 0x48]
cmp ecx, 1
jl 0x415957
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x38]
test bh, bh
jne 0x4158a6
test si, si
jne 0x4158a6
cmp dword [ebp + 0x24], 1
jne 0x4155e6
cmp dword [ebp + 0x54], 1
je 0x415957
mov edx, dword [ebp + 0x7c]
test edx, edx
je 0x4155c3
mov ebx, ecx
test ebx, ebx
jle 0x415957
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax + eax]
movzx eax, word [edi]
push 0
push eax
push 0x102
push edx
call esi
mov edx, dword [ebp + 0x7c]
sub ebx, 1
jne 0x4155a0
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
jmp 0x415a30
mov al, byte [ebp + 0x69]
mov edx, ecx
mov bh, byte [ebp + 0x6f]
mov cx, word [edi]
or al, bh
movzx eax, al
push eax
call fcn.00415fe0
mov edi, dword [ebp + 0x4c]
add esp, 4
xor bl, bl
jmp 0x415a30
cmp dword [ebp + 0x7c], 0
mov ecx, edi
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00419630
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x4156fc
mov edi, dword [ebp + 0x7c]
mov esi, dword [ebp + 0x54]
test edi, edi
jne 0x41562f
test esi, esi
jne 0x415628
mov byte [ebp + 0x68], bl
jmp 0x41562f
mov cl, bl
call fcn.00414850
cmp dword [0x4eba58], 0
je 0x41563f
mov al, byte [0x4eba4c]
jmp 0x415646
xor cl, cl
call fcn.00418a00
mov bh, byte [ebp + 0x5c]
mov dl, al
push 0xffc3d44d
push 0
push 0
push edi
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.00418300
mov edi, dword [ebp + 0x48]
add esp, 0x10
test edi, edi
jle 0x415957
nop dword [eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.004163d0
add esp, 0x10
cmp dword [0x4eba58], 0
jne 0x4156ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e59a0]
sub eax, dword [0x4eb7f4]
cmp eax, dword [ecx + 0x5c]
jbe 0x4156ea
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4156df
mov edx, 1
mov dword [0x4e5998], 0
or ecx, 0xffffffff
call fcn.004015c0
mov dword [0x4e5998], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4eb7f4], eax
sub edi, 1
jne 0x415670
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
jmp 0x415a30
cmp esi, 4
jbe 0x415779
push 4
push str.ASC
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x415782
cmp dword [ebp + 0x7c], eax
jne 0x415782
lea ecx, [edi + 6]
nop dword [eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41572d
cmp eax, 9
jne 0x415732
add ecx, 2
jmp 0x415720
call fcn.004160f0
cmp dword [0x4eba58], 2
mov eax, dword [0x4e59a0]
jne 0x41575f
mov ecx, dword [eax + 0x70]
call fcn.00417e80
mov al, byte [ebp + 0x5c]
xor bl, bl
mov edi, dword [ebp + 0x4c]
mov bh, al
mov byte [ebp + 0x6f], al
jmp 0x415a30
mov ecx, dword [eax + 0x6c]
call fcn.00417e80
mov al, byte [ebp + 0x5c]
xor bl, bl
mov edi, dword [ebp + 0x4c]
mov bh, al
mov byte [ebp + 0x6f], al
jmp 0x415a30
cmp esi, 2
jbe 0x415896
push 2
push 0x4d5138
push edi
call fcn.0049f8ef
add esp, 0xc
test eax, eax
jne 0x415896
push 0x10
push eax
lea eax, [edi + 4]
push eax
call fcn.004a1697
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x4157de
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x4157e3
movzx ecx, dx
xor esi, esi
mov edi, dword [ebp + 0x7c]
mov bh, byte [ebp + 0x5c]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x415819
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push edi
call ebx
test si, si
je 0x41585e
push 0
movzx eax, si
push eax
push 0x102
push edi
call ebx
jmp 0x41585e
cmp dword [0x4eba58], 2
je 0x41583e
mov bl, byte [ebp + 0x69]
or bl, bh
mov dl, bl
call fcn.004148d0
test si, si
je 0x41585e
mov dl, bl
mov ecx, esi
call fcn.004148d0
jmp 0x41585e
mov eax, 0x30
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xa]
push 0xa
push eax
push edx
call fcn.004a0109
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004160f0
cmp dword [0x4eba58], 2
mov eax, dword [0x4e59a0]
jne 0x415881
mov ecx, dword [eax + 0x70]
call fcn.00417e80
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
jmp 0x415a30
mov ecx, dword [eax + 0x6c]
call fcn.00417e80
mov bh, byte [ebp + 0x6f]
xor bl, bl
mov edi, dword [ebp + 0x4c]
jmp 0x415a30
mov bh, byte [ebp + 0x5c]
xor bl, bl
mov edi, dword [ebp + 0x4c]
mov byte [ebp + 0x6f], bh
jmp 0x415a30
push 0
mov edx, esi
mov cl, bh
call fcn.00418c20
mov edi, dword [ebp + 0x54]
mov bl, al
add esp, 4
mov byte [ebp + 0x10], bl
test bl, bl
je 0x41592f
cmp dword [ebp + 0x7c], 0
jne 0x41592f
test edi, edi
jne 0x4158f4
mov eax, dword [ebp + 0x40]
mov byte [ebp + 0x68], bh
cmp eax, 1
jne 0x4158e2
mov al, byte [ebp + 0x6f]
or byte [0x4eb9e6], bl
or al, bl
jmp 0x415929
cmp eax, 2
jne 0x4158ed
or byte [0x4eb9e7], bl
mov al, byte [ebp + 0x6f]
or al, bl
jmp 0x415929
cmp edi, 1
jne 0x41592f
mov cl, bh
call fcn.00414850
mov al, byte [ebp + 0x6f]
not bl
and byte [0x4eb9e6], bl
and al, bl
and byte [0x4eb9e7], bl
mov byte [ebp + 0x6f], al
mov byte [ebp + 0x5c], al
cmp bh, 0xa5
jne 0x41592f
cmp dword [0x4eba3c], 3
jne 0x41592f
and al, 0xfe
mov byte [ebp + 0x5c], al
mov byte [ebp + 0x6f], al
push 0
push closesocket
push closesocket
push dword [ebp + 0x7c]
mov edx, esi
mov cl, bh
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x48]
push dword [ebp + 0x5c]
push dword [ebp + 0x69]
call fcn.00415e30
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x4c]
xor bl, bl
jmp 0x415a30
mov bh, byte [ebp + 0x6f]
jmp 0x415a33
cmp eax, 2
jne 0x4159ac
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41597c.11
jmp dword [eax*4 + 0x415e0c]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x4159d6
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x4159d6
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x4159d6
mov byte [ebp + 0x6e], 0
jmp 0x415a00
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x4159b8
test eax, eax
jne 0x4159b8
mov al, 1
jmp 0x4159ba
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x69]
push eax
push dword [0x4eba38]
call fcn.00419480
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x4159fd
push 0
push closesocket
push closesocket
push esi
push 0
push 2
push 1
push dword [ebp + 0x5c]
xor edx, edx
mov cl, al
push dword [ebp + 0x69]
call fcn.00415e30
add esp, 0x24
jmp 0x415a2b
mov bl, byte [ebp + 0x69]
movzx ecx, word [edi]
test esi, esi
je 0x415a18
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x415a2b
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.00415fe0
add esp, 4
xor bl, bl
mov bh, byte [ebp + 0x6f]
mov byte [ebp + 0x69], bl
mov al, byte [ebp + 0x68]
add edi, 2
mov byte [0x4eb9e5], al
cmp word [edi], 0
jne 0x415110
jmp 0x4150c2
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4eb9e7]
mov dl, byte [0x4eba4c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.00418300
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.00417d20
mov esi, dword [ebp + 0x40]
cmp dword [0x4eba58], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4eba44], eax
jbe 0x415aaf
push dword [0x4ea248]
call fcn.0049f86f
add esp, 4
mov ecx, esi
mov dword [0x4eba58], 0
call fcn.00417e80
jmp 0x415b54
cmp dword [0x4ea0ec], 0
je 0x415ad9
mov cl, byte [0x4ea0f6]
mov dl, byte [ebp + 0x6d]
jmp 0x415b02
cmp dword [0x4e5f14], 0
jl 0x415afd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eb7b0]
cmp eax, dword [0x4e5f14]
jb 0x415afd
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x415b02
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4eb9e7]
cmp byte [0x4eba5c], 0
je 0x415b26
or bh, byte [ebp + 0x67]
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x415b2f
mov bl, byte [ebp + 0x66]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.00418a00
or al, byte [0x4ea0f5]
mov cl, bl
mov dl, al
call fcn.00418300
add esp, 0x10
cmp dword [0x4ea0ec], 0
je 0x415b77
mov cl, byte [0x4ea0f7]
mov al, cl
xor al, byte [0x4ea1f8]
and al, cl
not al
and cl, al
mov byte [0x4ea0f7], cl
cmp dword [ebp + 0x1c], 1
jne 0x415c0c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x415c0c
push 0x14
call esi
bt ax, 0xf
jae 0x415bb4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.004163d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.004163d0
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
cmp eax, dword [0x4eb0dc]
jne 0x415c18
mov edx, 1
mov dword [0x4e5998], 0
or ecx, 0xffffffff
call fcn.004015c0
mov dword [0x4e5998], 1
jmp 0x415c18
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5b], 0
je 0x415c2f
push 0
push dword [ebp + 0x18]
push dword [0x4eb0dc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5a], 0
je 0x415c4a
cmp byte [ebp + 0x59], 0
jne 0x415c4a
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e9eec], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x415cc8
mov eax, dword [ebp + 0xc]
cmp dword [0x4eb7f4], eax
je 0x415cfd
cmp dword [0x4e5998], 0
je 0x415cfd
cmp dword [0x4e9e84], 0
jne 0x415cfd
cmp dword [0x4e9e9c], 0
je 0x415cb9
mov ecx, dword [0x4e59a0]
cmp byte [ecx + 0x53], 0
jne 0x415cb9
cmp dword [ecx + 0x44], 0xffffffff
jle 0x415cb3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e59a0]
sub eax, dword [ecx + 0x48]
cmp eax, dword [ecx + 0x44]
jb 0x415cb3
cmp dword [ecx + 0x40], 0
je 0x415cb3
mov byte [ecx + 0x53], 1
cmp byte [ecx + 0x53], 0
je 0x415cfd
mov edx, 1
or ecx, 0xffffffff
call fcn.004015c0
jmp 0x415cfd
cmp eax, 1
jne 0x415cfd
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4eb0dc]
jne 0x415cfd
mov edx, 1
mov dword [0x4e5998], 0
or ecx, 0xffffffff
call fcn.004015c0
mov dword [0x4e5998], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x6c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [eax + 0x74], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret