Function at 0x410f80
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], edi
cmp byte [edi], 0
je 0x412280
mov eax, dword [0x4e88cc]
mov dword [ebp + 0x44], eax
mov eax, dword [0x4ede78]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x20], eax
test ebx, ebx
jne 0x410fe1
push 7
push str.Blind
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x410fe1
add edi, 7
mov byte [0x4ee0ec], 1
mov dword [ebp + 0x60], edi
jmp 0x410fec
mov byte [0x4ee0ec], 0
test ebx, ebx
jne 0x41100d
push 6
push 0x4d9f88
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x41100d
add edi, 6
mov dword [ebp + 0x4c], 2
mov dword [ebp + 0x60], edi
mov ecx, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x10], eax
cmp ebx, 1
je 0x41102d
cmp ebx, 3
jne 0x4110e7
mov eax, dword [0x4ee04c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41103f
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4ee04c], 0
mov ebx, eax
je 0x411069
mov dword [0x4ee04c], esi
jmp 0x411070
test esi, esi
je 0x411070
push esi
call edi
cmp ebx, 0xb7
je 0x4110b1
cmp dword [ebp + 0x4c], 0
jne 0x4110a4
call fcn.0040b1f0
mov edi, dword [ebp + 0x60]
test al, al
je 0x4110a7
mov edx, str.Click
mov ecx, edi
call fcn.0049e4d0
test eax, eax
jne 0x4110b4
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x4110e7
mov edi, dword [ebp + 0x60]
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x4110e7
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x4110c4
mov ebx, 2
mov dword [ebp + 0x78], ebx
jmp 0x4110e7
mov ecx, dword [ebp + 0x44]
xor ebx, ebx
mov dword [ebp + 0x78], ebx
cmp dword [ecx + 0x5c], ebx
jge 0x4110db
cmp dword [ecx + 0x64], ebx
jge 0x4110db
or eax, 0xffffffff
jmp 0x4110dd
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5f], 0
test eax, eax
je 0x411141
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp + 0x14], ebx
test ebx, ebx
je 0x411207
cmp ebx, dword [0x4ed7f8]
je 0x411207
mov ecx, dword [ebp + 0x7c]
call fcn.004a4880
test al, al
jne 0x411207
push 1
push ebx
push dword [0x4ed7f8]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, ebx
setne byte [ebp + 0x5f]
jmp 0x411207
test byte [0x4ede45], 0xc0
je 0x4111c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ede3c]
cmp eax, 0x32
jae 0x4111c5
cmp ebx, 2
je 0x4111c5
cmp byte [0x4ee0ec], 0
jne 0x4111c5
mov eax, dword [ebp + 0x4c]
cmp eax, 2
je 0x4111c5
cmp byte [0x4ee003], 0
je 0x4111c5
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x4ed7f8]
jne 0x4111c5
test eax, eax
je 0x411255
mov esi, edi
test edi, edi
je 0x4111bb
mov dl, byte [edi]
test dl, dl
je 0x4111bb
nop dword [eax]
mov ecx, 0x4da20c
mov al, 0x4c
cmp dl, al
je 0x4111bd
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4111a7
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x4111a0
xor esi, esi
test esi, esi
jne 0x4112c2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x411201
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x411201
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x411201
push 0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4ee0c8], eax
mov ecx, eax
call fcn.00415900
mov cl, 1
mov dword [0x4ee0cc], eax
call fcn.00415420
mov bl, al
and byte [0x4ee077], bl
cmp dword [0x4eb75c], 0
je 0x41130b
mov al, byte [0x4ec0a6]
mov cl, byte [0x4ec0a4]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41132f
mov edx, edi
test edx, edx
je 0x4111c5
mov bl, byte [edx]
test bl, bl
je 0x4111c5
nop dword [eax]
mov ecx, 0x4da20c
mov al, 0x4c
cmp bl, al
je 0x411290
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x411277
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x411270
jmp 0x4111c5
add edx, 1
je 0x4112c2
mov bl, byte [edx]
test bl, bl
je 0x4112c2
nop dword [eax + eax]
mov ecx, 0x4da210
mov al, 0x7b
cmp bl, al
je 0x4112bd
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4112a7
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x4112a0
jmp 0x4112c2
cmp byte [edx], 0x7b
jne 0x411257
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
nop dword [eax]
push 0x5b
call esi
test bx, ax
jne 0x4112e6
push 0x5c
call esi
test bx, ax
je 0x4111c5
mov edx, 1
mov dword [0x4e88c4], 0
mov ecx, 0x8000012f
call fcn.00401730
mov dword [0x4e88c4], 1
jmp 0x4112d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ede3c]
cmp eax, dword [0x4e9acc]
jae 0x411329
mov cl, byte [0x4ede45]
and cl, bl
jmp 0x41132b
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4ee076]
and bh, bl
mov byte [ebp + 0x66], al
cmp byte [0x4ee0ec], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4ee076], bh
je 0x41135e
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x411360
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x54], bh
cmp byte [eax + 0xd3], 0
je 0x411392
cmp byte [0x4ee0ec], 0
jne 0x411392
cmp dword [ebp + 0x4c], 2
je 0x411392
mov edx, 2
mov cl, 0x14
call fcn.00414be0
mov dword [ebp + 0x18], eax
jmp 0x411399
mov dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4ee0e8], edx
mov ecx, 0x5dc
test edx, edx
je 0x411412
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4ee0d4], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004cd3d0
mov eax, dword [0x4ea244]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4ee0dc], bl
mov byte [0x4ee0dd], 0
mov dword [eax], ecx
mov dword [0x4ee0e0], 0x80000000
mov dword [0x4ee0e4], 0x80000000
mov dword [0x4ee0d0], 0
mov byte [0x4ee0de], 0
mov byte [0x4ee0df], 1
mov al, byte [0x4eb7ce]
mov byte [ebp + 0x4b], al
mov eax, dword [0x4e88dc]
cmp eax, 8
je 0x411429
cmp eax, 0xa
jne 0x411449
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41144c
test esi, esi
jne 0x41144c
push 1
mov byte [ebp + 0x5e], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4eb7ce], 1
jmp 0x411450
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5e], 0
xor bl, bl
mov byte [ebp + 0x68], bl
cmp byte [edi], bl
je 0x412009
jmp 0x411463
mov esi, dword [ebp + 0x7c]
cmp dword [0x4ee0e8], 0
mov byte [ebp + 0x67], 0
jne 0x4114cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e88cc]
sub eax, dword [0x4ede7c]
cmp eax, dword [ecx + 0xb8]
jbe 0x4114cc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4114c1
mov edx, 1
mov dword [0x4e88c4], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4e88c4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ede7c], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x411f33
movsx eax, byte [edi]
push eax
push 0x4da214
call fcn.004b87b6
add esp, 8
test eax, eax
je 0x411f6f
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x411506.34
movzx eax, byte [eax + 0x4122a8]
jmp dword [eax*4 + 0x41228c]
test bh, 3
jne case.0x411506.34
or bl, 1
jmp 0x411ff4
test bh, 0x30
jne case.0x411506.34
or bl, 0x10
jmp 0x411ff4
test bh, 0xc
jne case.0x411506.34
or bl, 4
jmp 0x411ff4
test bh, 0xc0
jne case.0x411506.34
or bl, 0x40
jmp 0x411ff4
lea esi, [edi + 1]
push 0x7d
push esi
call fcn.004b87b6
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x411506.34
mov edi, esi
nop dword [eax]
mov cl, byte [edi]
cmp cl, 0x20
je 0x41157c
cmp cl, 9
jne 0x41157f
inc edi
jmp 0x411570
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
mov dword [ebp + 0x34], esi
jne 0x411607
lea esi, [eax + 1]
mov al, byte [esi]
cmp al, 0x7d
jne 0x41159e
mov dword [ebp + 0x50], esi
mov esi, 1
jmp 0x411604
cmp al, 0x20
je 0x4115b8
cmp al, 9
jne 0x411f2b
nop word [eax + eax]
cmp al, 0x20
je 0x4115b8
cmp al, 9
jne 0x4115be
mov al, byte [esi + 1]
inc esi
jmp 0x4115b0
push 4
push str.Down
push esi
call fcn.004b653e
add esp, 0xc
test eax, eax
je 0x4115ea
push 2
push 0x4d6574
push esi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x411f2b
push 0x7d
push esi
call fcn.004b87b6
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x411506.34
mov esi, eax
sub esi, edi
mov dword [ebp + 0x34], esi
push 5
push 0x4d56ac
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x4116b5
mov eax, dword [ebp + 0x50]
lea ecx, [edi + 5]
mov byte [eax], 0
mov al, byte [ecx]
cmp al, 0x20
je 0x411632
cmp al, 9
jne 0x411635
inc ecx
jmp 0x411628
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.00413030
mov eax, dword [ebp + 0x50]
add esp, 0x14
push dword [ebp + 0x1c]
mov byte [eax], 0x7d
mov eax, dword [ebp + 0x3c]
cmp eax, 1
jge 0x41168a
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00413f80
mov edi, dword [ebp + 0x50]
add esp, 0xc
jmp 0x411ff2
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x28]
push ecx
mov cl, byte [ebp + 0x6e]
push 0
push dword [ebp + 0x58]
push eax
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.00412320
mov edi, dword [ebp + 0x50]
add esp, 0x24
jmp 0x411ff2
push 3
push 0x4da21c
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x4116d8
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 1
jmp 0x411ff2
push 4
push str.Text
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x411715
lea ecx, [edi + 4]
nop
mov al, byte [ecx]
cmp al, 0x20
je 0x4116fa
cmp al, 9
jne 0x4116fd
inc ecx
jmp 0x4116f0
cmp ecx, dword [ebp + 0x50]
jne 0x411f2b
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 2
jmp 0x411ff2
mov ebx, dword [ebp + 0x60]
mov edi, 1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], esi
mov esi, ebx
mov dword [ebp + 0x58], 2
mov dword [ebp + 0x3c], edi
mov byte [eax], 0
mov dl, byte [ebx]
mov dword [ebp + 0x24], ebx
test dl, dl
je 0x411762
nop dword [eax + eax]
mov ecx, 0x4d9e7c
mov al, 0x20
cmp dl, al
je 0x4117e6
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x411747
mov dl, byte [esi + 1]
inc esi
mov dword [ebp + 0x24], esi
test dl, dl
jne 0x411740
push dword [0x4ee0c8]
lea eax, [ebp + 0x68]
mov ecx, ebx
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.00415e60
add esp, 0xc
mov ebx, dword [ebp + 0x50]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x411f28
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x30]
test bh, bh
jne 0x411e6b
test si, si
jne 0x411e6b
mov ebx, dword [ebp + 0x60]
movzx eax, byte [ebx]
push eax
call fcn.004b9920
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x38]
je 0x411b69
cmp eax, 1
jbe 0x411b6c
cmp dword [0x4ee0e8], 0
je 0x4119dd
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x4117e3
cmp al, 9
jne 0x411901
inc ecx
jmp 0x4117d5
mov bl, byte [esi]
mov eax, esi
sub eax, dword [ebp + 0x60]
mov byte [esi], 0
mov dword [ebp + 0x38], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4117f3
cmp al, 9
je 0x4117f3
mov eax, dword [ebp + 0x50]
sub eax, esi
je 0x4118d3
push 4
push str.Down
push esi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x41185d
push 4
add esi, 4
mov dword [ebp + 0x58], eax
push str.Temp
push esi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x411840
mov dword [ebp + 0x40], eax
jmp 0x4118d3
xor eax, eax
cmp byte [esi], 0x52
sete al
push eax
call fcn.004b9d8b
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x40], esi
jmp 0x4118d3
push 0x4d6574
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x411874
mov dword [ebp + 0x58], edi
jmp 0x4118d3
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x411880
cmp al, 9
jne 0x411883
inc ecx
jmp 0x411876
test al, al
je 0x4118c5
cmp al, 0x2d
je 0x41188f
cmp al, 0x2b
jne 0x411896
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4118c5
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x4118a5
cmp al, 0x58
jne 0x4118c5
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x4118c5
push 0x10
push 0
push esi
call fcn.004b9ad3
add esp, 0xc
jmp 0x4118ce
push esi
call fcn.004b9548
add esp, 4
mov edi, eax
mov dword [ebp + 0x3c], edi
push dword [0x4ee0c8]
mov ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.00415e60
mov eax, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x41177d
mov byte [eax], bl
jmp 0x41177d
test al, al
je 0x411943
cmp al, 0x2d
je 0x41190d
cmp al, 0x2b
jne 0x411914
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411943
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411923
cmp al, 0x58
jne 0x411943
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x411943
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
jmp 0x41194c
push ebx
call fcn.004b9548
add esp, 4
mov esi, eax
mov eax, dword [0x4ee0d0]
cmp eax, dword [0x4ee0d4]
jne 0x411968
call fcn.00414640
test eax, eax
je 0x411f28
cmp dword [0x4ee0e8], 1
jne 0x4119b5
mov eax, dword [0x4ee0d0]
xor edx, edx
or byte [0x4ee0dd], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4ec20c]
inc dword [0x4ee0d0]
mov dword [eax + ecx*4], 1
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], esi
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x411ff2
mov eax, dword [0x4ea244]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov ecx, dword [eax]
mov eax, dword [0x4ee0d0]
inc dword [0x4ee0d0]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x411ff2
mov eax, dword [ebp + 0x20]
mov dword [0x4e88c4], 0
cmp dword [0x4ed7f8], eax
je 0x411aee
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x411a02
cmp al, 9
jne 0x411a05
inc ecx
jmp 0x4119f8
test al, al
je 0x411a47
cmp al, 0x2d
je 0x411a11
cmp al, 0x2b
jne 0x411a18
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411a47
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411a27
cmp al, 0x58
jne 0x411a47
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x411a47
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
jmp 0x411a50
push ebx
call fcn.004b9548
add esp, 4
test eax, eax
js 0x411aee
mov ecx, ebx
nop word [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x411a6a
cmp al, 9
jne 0x411a6d
inc ecx
jmp 0x411a60
test al, al
je 0x411ac9
cmp al, 0x2d
je 0x411a79
cmp al, 0x2b
jne 0x411a80
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411ac9
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411a8f
cmp al, 0x58
jne 0x411ac9
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x411ac9
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4e88c4], 1
jmp 0x411ff2
push ebx
call fcn.004b9548
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4e88c4], 1
jmp 0x411ff2
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x411afa
cmp al, 9
jne 0x411afd
inc ecx
jmp 0x411af0
test al, al
je 0x411b3f
cmp al, 0x2d
je 0x411b09
cmp al, 0x2b
jne 0x411b10
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411b3f
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411b1f
cmp al, 0x58
jne 0x411b3f
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x411b3f
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
jmp 0x411b48
push ebx
call fcn.004b9548
add esp, 4
mov edx, 1
mov ecx, eax
call fcn.00401730
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4e88c4], 1
jmp 0x411ff2
cmp eax, 1
jne 0x411bd2
cmp dword [ebp + 0x58], 1
je 0x411f28
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x411bb1
test edi, edi
jle 0x411f28
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
nop dword [eax]
movsx eax, byte [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x411b90
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
mov al, byte [ebp + 0x68]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cl, byte [ebx]
movzx eax, al
push eax
call fcn.004124d0
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
cmp dword [ebp + 0x7c], 0
mov ecx, ebx
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00415f30
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x411cee
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x58]
jne 0x411c1a
test esi, esi
jne 0x411c13
mov byte [ebp + 0x67], bl
jmp 0x411c1a
mov cl, bl
call fcn.00410cb0
cmp dword [0x4ee0e8], 0
je 0x411c2a
mov al, byte [0x4ee0dc]
jmp 0x411c31
xor cl, cl
call fcn.00415420
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x54]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.00414cf0
add esp, 0x10
test edi, edi
jle 0x411f2b
nop dword [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.00412960
add esp, 0x10
cmp dword [0x4ee0e8], 0
jne 0x411cdd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e88cc]
sub eax, dword [0x4ede7c]
cmp eax, dword [ecx + 0xb8]
jbe 0x411cdd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x411cd2
mov edx, 1
mov dword [0x4e88c4], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4e88c4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ede7c], eax
sub edi, 1
jne 0x411c60
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
cmp esi, 4
jbe 0x411d60
mov ebx, dword [ebp + 0x60]
push 4
push str.ASC
push ebx
call fcn.004b653e
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x411d6b
test edi, edi
jne 0x411d6b
lea ecx, [ebx + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x411d1e
cmp al, 9
jne 0x411d21
inc ecx
jmp 0x411d14
call fcn.00412600
cmp dword [0x4ee0e8], 2
mov eax, dword [0x4e88cc]
jne 0x411d4a
mov ecx, dword [eax + 0x60]
call fcn.004148f0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x411ff2
mov ecx, dword [eax + 0x5c]
call fcn.004148f0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x411ff2
cmp esi, 2
jbe 0x411d52
mov ebx, dword [ebp + 0x60]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4da230
push ebx
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x411d52
push 0x10
push eax
lea eax, [ebx + 2]
push eax
call fcn.004b9ad3
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x411dc3
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 0x411dc8
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x54]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x411dfd
push 0
movzx eax, cx
push eax
push 0x102
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
call edi
test si, si
je 0x411e3d
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x411e3d
cmp dword [0x4ee0e8], 2
je 0x411e22
mov bl, byte [ebp + 0x68]
or bl, bh
mov dl, bl
call fcn.00410d30
test si, si
je 0x411e3d
mov dl, bl
mov ecx, esi
call fcn.00410d30
jmp 0x411e3d
push 0xa
lea eax, [ebp - 3]
mov byte [ebp - 4], 0x30
push eax
push edx
call fcn.004b6198
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00412600
cmp dword [0x4ee0e8], 2
mov eax, dword [0x4e88cc]
jne 0x411e5b
mov ecx, dword [eax + 0x60]
call fcn.004148f0
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
mov ecx, dword [eax + 0x5c]
call fcn.004148f0
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
push 0
mov edx, esi
mov cl, bh
call fcn.00415630
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0xc], bl
test bl, bl
je 0x411f01
cmp dword [ebp + 0x7c], 0
jne 0x411f01
test eax, eax
jne 0x411eb9
mov ecx, dword [ebp + 0x40]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x411ea7
mov cl, byte [ebp + 0x6f]
or byte [0x4ee076], bl
or cl, bl
jmp 0x411efb
cmp ecx, 2
jne 0x411eb2
or byte [0x4ee077], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x411efb
cmp eax, 1
jne 0x411f01
mov cl, bh
call fcn.00410cb0
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4ee077], bl
mov cl, bl
and cl, byte [0x4ee076]
and al, bl
mov byte [0x4ee076], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x411ef6
cmp dword [0x4ee0cc], 3
jne 0x411ef6
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0x54], cl
mov byte [ebp + 0x6f], cl
mov ecx, dword [ebp + 0x7c]
mov edx, esi
push 0
push SysReAllocString
push SysReAllocString
push ecx
push dword [ebp + 0xc]
mov cl, bh
push eax
push edi
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.00412320
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x411ff2
cmp eax, 2
jne 0x411f72
movsx eax, byte [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x411f43.11
jmp dword [eax*4 + 0x412308]
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x411f9b
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x411f9b
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x411f9b
mov byte [ebp + 0x6e], 0
jmp 0x411fc5
mov eax, dword [ebp + 0x4c]
or bl, bh
je 0x411f7e
test eax, eax
jne 0x411f7e
mov al, 1
jmp 0x411f80
xor al, al
mov cl, byte [edi]
lea edx, [ebp + 0x68]
push eax
push dword [0x4ee0c8]
call fcn.00415d80
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x411fc2
push 0
push SysReAllocString
push SysReAllocString
push esi
push 0
push 2
push 1
push dword [ebp + 0x54]
xor edx, edx
mov cl, al
push dword [ebp + 0x68]
call fcn.00412320
add esp, 0x24
jmp 0x411ff2
mov bl, byte [ebp + 0x68]
mov cl, byte [edi]
test esi, esi
je 0x411fdf
push 0
movsx eax, cl
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x411ff2
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.004124d0
add esp, 4
xor bl, bl
mov byte [ebp + 0x68], bl
mov al, byte [ebp + 0x67]
inc edi
mov byte [0x4ee075], al
cmp byte [edi], 0
jne 0x411460
cmp dword [0x4ee0e8], 0
je 0x4120b3
or esi, 0xffffffff
cmp byte [0x4ee0de], 0
mov dword [ebp + 0x40], esi
jne 0x412073
cmp dword [0x4ee0d0], 0
jbe 0x412073
cmp byte [0x4ee0ec], 0
je 0x41203b
xor bl, bl
jmp 0x412043
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4ee077]
mov dl, byte [0x4ee0dc]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.00414cf0
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.004146f0
mov esi, dword [ebp + 0x40]
cmp dword [0x4ee0e8], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4ee0d4], eax
jbe 0x41209d
push dword [0x4ec20c]
call fcn.004b6427
add esp, 4
mov ecx, esi
mov dword [0x4ee0e8], 0
call fcn.004148f0
jmp 0x41213f
cmp dword [0x4eb75c], 0
je 0x4120c7
mov cl, byte [0x4ec0a4]
mov dl, byte [ebp + 0x6d]
jmp 0x4120f0
cmp dword [0x4e9acc], 0
jl 0x4120eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ede3c]
cmp eax, dword [0x4e9acc]
jb 0x4120eb
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x4120f0
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4ee077]
cmp byte [0x4ee0ec], 0
je 0x412111
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41211a
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.00415420
or al, byte [0x4ec097]
mov cl, bl
mov dl, al
call fcn.00414cf0
add esp, 0x10
cmp dword [0x4eb75c], 0
je 0x412162
mov cl, byte [0x4ec0a5]
mov al, cl
xor al, byte [0x4ec0a6]
and al, cl
not al
and cl, al
mov byte [0x4ec0a5], cl
cmp dword [ebp + 0x18], 1
jne 0x412174
mov edx, 1
mov cl, 0x14
call fcn.00414be0
cmp byte [ebp + 0x5f], 0
je 0x41218b
push 0
push dword [ebp + 0x14]
push dword [0x4ed7f8]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5e], 0
je 0x4121a6
cmp byte [ebp + 0x4b], 0
jne 0x4121a6
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4eb7ce], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x412234
mov eax, dword [ebp + 8]
cmp dword [0x4ede78], eax
je 0x412271
cmp dword [0x4e88c4], 0
je 0x412271
cmp dword [0x4eb624], 0
jne 0x412271
mov ecx, dword [0x4e88cc]
cmp byte [ecx + 0xcc], 0
jne 0x412225
cmp byte [ecx + 0xce], 0
jne 0x41221c
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x41221c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e88cc]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x41221c
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x412271
mov edx, 1
or ecx, 0xffffffff
call fcn.00401730
jmp 0x412271
cmp eax, 1
jne 0x412271
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ed7f8]
jne 0x412271
mov edx, 1
mov dword [0x4e88c4], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4e88c4], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret