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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x40eb84
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c49ac]
mov dword [ebp - 0x38], esi
test bl, bl
jne 0x40da9c
push 7
push str.Blind
push edi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40da9c
add edi, 0xe
mov byte [0x4c73bf], 1
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
cmp edi, 1
je 0x40da63
cmp edi, 3
jne 0x40dacf
cmp dword [0x4cb2cc], 0
je 0x40daa5
call fcn.00408f10
test al, al
jne 0x40daa5
test bl, bl
jne 0x40da93
call fcn.00408f70
test al, al
je 0x40da93
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00474540
test eax, eax
jne 0x40daa5
mov dword [ebp + 0x10], 1
jmp 0x40dacf
mov byte [0x4c73bf], 0
jmp 0x40da4a
cmp edi, 3
jne 0x40dab3
mov dword [ebp + 0x10], 2
jmp 0x40dacf
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40dac5
cmp dword [esi + 0x64], eax
jge 0x40dac5
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0xb], 0
cmp dword [ebp + 0x14], edi
je 0x40db77
mov edx, dword [ebp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40db20
cmp ebx, dword [0x4ca5bc]
je 0x40db20
mov esi, dword [ebp + 0x14]
call fcn.00478e00
test al, al
jne 0x40db1d
mov eax, dword [0x4ca5bc]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
mov esi, dword [ebp - 0x38]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c73e4], eax
push eax
xor eax, eax
call fcn.00412020
add esp, 4
push 1
mov dword [0x4c73e0], eax
call fcn.00411a50
add esp, 4
cmp dword [0x4c85d8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40dc83
mov cl, byte [0x4c84a5]
mov dl, byte [0x4c84a7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dcae
test byte [0x4cb0e2], 0xc0
je 0x40dc65
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0d8]
cmp eax, 0x32
jae 0x40dc65
cmp dword [ebp + 0x10], 2
je 0x40dc65
cmp byte [0x4c73bf], 0
jne 0x40dc65
cmp byte [0x4cb2be], 0
je 0x40dc65
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ca5bc]
jne 0x40dc65
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a49a4
je 0x40dc33
call fcn.004096c0
test eax, eax
setne al
test al, al
je 0x40dc65
lea esp, [esp]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x40dc12
push 0x5c
call ebx
mov edx, 0x8000
test dx, ax
je 0x40dc65
push 1
push 0x8000012f
mov dword [0x4c48b4], edi
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
jmp 0x40dbf0
call fcn.004096c0
test eax, eax
je 0x40dc65
lea esp, [esp]
add eax, 2
mov ebx, 0x4a49ac
call fcn.004096c0
test eax, eax
je 0x40dbf0
cmp word [eax], 0x7b
je 0x40dbf0
mov ebx, 0x4a49a4
call fcn.004096c0
test eax, eax
jne 0x40dc40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40db20
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
jmp 0x40db20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0d8]
cmp eax, dword [0x4c48ac]
jae 0x40dca3
mov al, byte [0x4cb0e2]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dcaa
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c9eb0]
not al
and al, bl
and cl, al
mov al, byte [0x4c73bf]
mov byte [0x4c9eb0], cl
test al, al
je 0x40dcd5
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40dcdc
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
cmp byte [esi + 0xf3], 0
je 0x40dcfd
test al, al
jne 0x40dcfd
push 2
mov bl, 0x14
call fcn.00411240
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40dd04
mov dword [ebp - 0x40], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4c9f08], edi
test edi, edi
je 0x40dd76
cmp edi, 1
jne 0x40dd27
mov eax, 0x36b0
mov dword [0x4c73d4], 0x1f4
jmp 0x40dd36
mov eax, 0x2ee0
mov dword [0x4c73d4], 0x5dc
call fcn.00494be0
mov eax, esp
mov dword [0x4c73dc], eax
mov eax, SysReAllocString
mov byte [0x4c73c7], bl
mov dword [0x4c73c8], eax
mov dword [0x4c73cc], eax
mov byte [0x4c73c6], 0
mov dword [0x4c73d8], 0
mov byte [0x4c73c5], 0
mov byte [0x4c73c4], 1
mov al, byte [0x4c8ca3]
mov byte [ebp - 0x25], al
mov eax, dword [0x4c49bc]
cmp eax, 8
je 0x40dd8d
cmp eax, 0xa
jne 0x40ddce
test edi, edi
jne 0x40ddce
cmp dword [ebp + 0x14], edi
jne 0x40ddce
test byte [0x4cbb70], 1
mov byte [ebp - 4], 1
jne 0x40ddd4
or dword [0x4cbb70], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x4c9f08]
mov dword [0x4cbb6c], eax
jmp 0x40ddd9
mov byte [ebp - 4], 0
jmp 0x40ddee
mov eax, dword [0x4cbb6c]
test eax, eax
je 0x40dde7
push 1
call eax
mov edi, dword [0x4c9f08]
mov byte [0x4c8ca3], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov byte [ebp - 1], 0
cmp word [edx], cx
je 0x40e7f8
mov esi, edx
cmp dword [0x4c9f08], 0
mov byte [ebp - 9], 0
jne 0x40de6f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4cb114]
mov ecx, dword [0x4c49ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40de6f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40de68
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call edi
mov dword [0x4cb114], eax
cmp byte [ebp + 0xc], 0
jne 0x40e6b1
movzx eax, word [esi]
push eax
push str._
call fcn.0048e3e1
add esp, 8
test eax, eax
je 0x40e6b1
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40dea8.34
movzx ecx, byte [eax + 0x40ebb0]
jmp dword [ecx*4 + 0x40eb94]
test byte [ebp - 8], 3
jne case.0x40dea8.34
or byte [ebp - 1], 1
jmp case.0x40dea8.34
test byte [ebp - 8], 0x30
jne case.0x40dea8.34
or byte [ebp - 1], 0x10
jmp case.0x40dea8.34
test byte [ebp - 8], 0xc
jne case.0x40dea8.34
or byte [ebp - 1], 4
jmp case.0x40dea8.34
test byte [ebp - 8], 0xc0
jne case.0x40dea8.34
or byte [ebp - 1], 0x40
jmp case.0x40dea8.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.0048e3e1
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40dea8.34
mov eax, ebx
call fcn.00409710
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40dfa9
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40df45
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40dfa3
cmp ecx, 0x20
je 0x40df53
cmp ecx, 9
jne 0x40e6a4
call fcn.00409710
push 4
mov edi, eax
push str.Down
push edi
call fcn.0048de57
add esp, 0xc
test eax, eax
je 0x40df86
push 2
push 0x4a1da4
push edi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e6a4
push 0x7d
push edi
call fcn.0048e3e1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40dea8.34
sub eax, esi
sar eax, 1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
push 5
push 0x4a37cc
push esi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e051
xor edx, edx
lea eax, [ebp - 0x48]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [esi + 0xa]
call fcn.00409710
call fcn.0040fb90
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40e02c
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
call fcn.004107e0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0x1d]
push eax
push 0
push edx
jmp 0x40e699
push 3
push 0x4a49c4
push esi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e076
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x4a469c
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.004096c0
mov edi, eax
test edi, edi
je 0x40e125
movzx edx, word [edi]
xor eax, eax
mov word [edi], ax
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ebp - 0x60], edx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [edi + 2]
call fcn.00409710
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40e122
push 4
push str.Down
push esi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e0ff
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.0048de57
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40e122
push 0x4a1da4
push esi
call fcn.0048d609
add esp, 8
test eax, eax
jne 0x40e11a
mov dword [ebp - 0x10], 1
jmp 0x40e122
call fcn.0040d380
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40e16e
cmp word [esi + 2], 0
jne 0x40e147
mov ecx, dword [0x4c73e4]
lea esi, [ebp - 1]
call fcn.00412470
mov esi, dword [ebp + 8]
jmp 0x40e170
mov ebx, dword [ebp + 8]
xor esi, esi
lea esp, [esp]
mov edx, dword [esi*8 + 0x4c56e8]
push ebx
push edx
call fcn.0048d609
add esp, 8
test eax, eax
je 0x40e185
inc esi
cmp esi, 0x6d
jl 0x40e150
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40e191
mov dword [ebp - 0x3c], 0
jmp 0x40e216
mov al, byte [esi*8 + 0x4c56ec]
mov esi, dword [ebp + 8]
jmp 0x40e170
mov eax, esi
call fcn.00412310
movzx eax, ax
mov dword [ebp - 0x3c], eax
test ax, ax
jne 0x40e216
mov ax, word [esi]
call fcn.00409690
cmp ax, 0x56
jne 0x40e216
mov ax, word [esi + 2]
call fcn.00409690
cmp ax, 0x4b
jne 0x40e216
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x4a49d8
call fcn.004096c0
mov esi, eax
test esi, esi
je 0x40e1fb
mov ax, word [esi + 2]
call fcn.00409690
cmp ax, 0x43
jne 0x40e1fb
push 0x10
push 0
add esi, 4
push esi
call fcn.0048ec3b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
push 0x10
add eax, 4
push 0
push eax
call fcn.0048ec3b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40e221
mov cx, word [ebp - 0x60]
mov word [edi], cx
cmp dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x7d
mov word [eax], dx
jl 0x40e6a4
test bl, bl
jne 0x40e606
cmp word [ebp - 0x3c], 0
jne 0x40e606
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40e2a0
cmp dword [ebp - 0x10], eax
je 0x40e6a4
cmp dword [ebp + 0x14], 0
je 0x40e284
movzx ecx, word [esi]
mov edx, dword [ebp + 0x14]
push 0
push ecx
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040efb0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
sete bl
push edx
call fcn.004124f0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40e4a3
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e2de
cmp dword [ebp - 0x10], edi
jne 0x40e2d9
mov byte [ebp - 9], al
jmp 0x40e2de
call fcn.0040d550
cmp dword [0x4c9f08], 0
je 0x40e2f2
mov bl, byte [0x4c73c7]
jmp 0x40e3e4
cmp dword [0x4c85d8], 0
je 0x40e306
mov bl, byte [0x4c84a5]
jmp 0x40e3e4
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e321
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e335
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e349
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e35d
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e371
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e385
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e396
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3a7
or bl, 0x80
cmp dword [0x4c85d8], 0
je 0x40e3e4
mov al, bl
not al
and al, byte [0x4c84a5]
je 0x40e3e4
mov cl, byte [0x4c84a7]
not al
and byte [0x4c84a5], al
and byte [0x4c84a6], al
and cl, al
mov al, cl
mov byte [0x4c84a7], cl
mov ecx, 0x4c84c8
call fcn.00411b50
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00411350
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e6a4
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40e410
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040f4c0
add esp, 0x18
cmp dword [0x4c9f08], 0
jne 0x40e48f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cb114]
mov ecx, dword [0x4c49ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e48f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e488
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call esi
mov dword [0x4cb114], eax
dec edi
jne 0x40e410
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40e4d8
push 4
push str.ASC
push esi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e4d8
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x40e4db
lea eax, [esi + 6]
call fcn.00409710
mov edi, eax
jmp 0x40e5bb
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e6a4
push 2
push 0x4a49ec
push esi
call fcn.0048de57
add esp, 0xc
test eax, eax
jne 0x40e6a4
push 0x10
push eax
add esi, 4
push esi
call fcn.0048ec3b
add esp, 0xc
cmp eax, 0x10000
jb 0x40e53e
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
sub edx, 0x2800
movzx ecx, dx
mov edx, eax
and edx, 0x3ff
sub edx, 0x2400
movzx esi, dx
jmp 0x40e543
movzx ecx, ax
xor esi, esi
test ebx, ebx
je 0x40e570
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push ebx
call edi
test si, si
je 0x40e5c0
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e5c0
cmp dword [0x4c9f08], 2
je 0x40e5a0
movzx edx, byte [ebp - 8]
movzx edi, byte [ebp - 1]
or edi, edx
push ecx
mov eax, edi
call fcn.0040d5d0
add esp, 4
test si, si
je 0x40e5c0
push esi
mov eax, edi
call fcn.0040d5d0
add esp, 4
jmp 0x40e5c0
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x74], cx
call fcn.0048d385
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.0040f0c0
cmp dword [0x4c9f08], 2
jne 0x40e5e7
mov eax, dword [0x4c49ac]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410f50
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov ecx, dword [0x4c49ac]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410f50
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411c20
mov byte [ebp - 0x14], al
test al, al
je 0x40e675
cmp dword [ebp + 0x14], 0
jne 0x40e675
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40e63b
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40e636
or byte [0x4c9eb0], al
or byte [ebp - 8], al
jmp 0x40e675
cmp ecx, 1
jne 0x40e675
mov al, bl
call fcn.0040d550
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c9eb0]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c9eb0], cl
cmp bl, 0xa5
jne 0x40e66f
cmp dword [0x4c73e0], 3
jne 0x40e66f
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1d]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push esi
push eax
mov al, byte [ebp - 1]
call fcn.0040ec10
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e7d5
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e761
cmp word [ebp - 0x2a], 0
jne 0x40e6e1
mov ecx, dword [0x4c73e4]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00412470
mov esi, dword [ebp + 8]
jmp 0x40e763
movzx esi, ax
test esi, 0xffffff80
jne 0x40e6fe
push 2
push esi
call fcn.0048e85e
add esp, 8
test eax, eax
je 0x40e6fe
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40e73d
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40e722
push 2
push esi
call fcn.0048e85e
add esp, 8
test eax, eax
je 0x40e722
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40e73d
push 0x10
lea edx, [ebp - 0x28]
push 0
push edx
call fcn.0048ec3b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40e763
xor esi, esi
nop
mov ecx, dword [esi*8 + 0x4c56e8]
lea eax, [ebp - 0x2c]
push eax
push ecx
call fcn.0048d609
add esp, 8
test eax, eax
je 0x40e79d
inc esi
cmp esi, 0x6d
jl 0x40e740
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
je 0x40e7a9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040ec10
add esp, 0x24
jmp 0x40e7d5
mov al, byte [esi*8 + 0x4c56ec]
mov esi, dword [ebp + 8]
jmp 0x40e763
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e7c4
movzx edx, word [esi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e7d5
movzx eax, word [esi]
push eax
mov eax, 1
call fcn.0040efb0
add esp, 4
mov byte [ebp - 1], 0
mov cl, byte [ebp - 9]
add esi, 2
cmp word [esi], 0
mov dword [ebp + 8], esi
mov byte [0x4c8eef], cl
jne 0x40de06
mov edi, dword [0x4c9f08]
test edi, edi
je 0x40e8b8
cmp byte [0x4c73c5], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e86f
cmp dword [0x4c73d8], 0
jbe 0x40e86f
cmp byte [0x4c73bf], 0
je 0x40e826
xor eax, eax
jmp 0x40e832
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 8]
mov ebx, 1
push ebx
mov byte [ebp + 8], al
movzx eax, byte [0x4c73c7]
mov edi, dword [ebp + 8]
push ebx
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00411350
add esp, 0x14
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00410e00
mov edi, dword [0x4c9f08]
add esp, 8
jmp 0x40e874
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c73d4], edi
jbe 0x40e89d
mov edx, dword [0x4c73dc]
push edx
call fcn.0048ec6f
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov dword [0x4c9f08], 0
call fcn.00410f50
add esp, 4
jmp 0x40ea34
cmp dword [0x4c85d8], 0
je 0x40e8c9
mov cl, byte [0x4c84a7]
jmp 0x40e8ed
cmp dword [0x4c48ac], 0
jl 0x40e8ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0d8]
cmp eax, dword [0x4c48ac]
jb 0x40e8ea
xor cl, cl
jmp 0x40e8ed
mov cl, byte [ebp - 2]
cmp byte [0x4c73bf], 0
je 0x40e90f
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 8]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40e91c
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c85d8], 0
je 0x40e933
mov cl, byte [0x4c84a5]
mov byte [ebp - 0x14], cl
jmp 0x40ea14
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e94e
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e962
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e976
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e98a
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e99e
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e9b2
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e9c3
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e9d4
or bl, 0x80
cmp dword [0x4c85d8], 0
je 0x40ea11
mov al, bl
not al
and al, byte [0x4c84a5]
je 0x40ea11
mov cl, byte [0x4c84a7]
not al
and byte [0x4c84a5], al
and byte [0x4c84a6], al
and cl, al
mov al, cl
mov byte [0x4c84a7], cl
mov ecx, 0x4c84c8
call fcn.00411b50
mov byte [ebp - 0x14], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00411350
add esp, 0x14
cmp dword [0x4c85d8], 0
je 0x40ea55
mov al, byte [0x4c84a6]
mov dl, al
xor dl, byte [0x4c84a5]
and dl, al
not dl
and al, dl
mov byte [0x4c84a6], al
cmp dword [ebp - 0x40], ebx
jne 0x40ead9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ead9
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea90
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push ebx
call fcn.0040f4c0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f4c0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5bc]
jne 0x40ead9
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
cmp byte [ebp - 0xb], 0
je 0x40eaf1
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4ca5bc]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40eb3e
cmp byte [ebp - 0x25], 0
jne 0x40eb3e
test byte [0x4cbb70], 1
jne 0x40eb2a
or dword [0x4cbb70], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cbb6c], eax
jmp 0x40eb2f
mov eax, dword [0x4cbb6c]
test eax, eax
je 0x40eb37
push 0
call eax
mov byte [0x4c8ca3], 0
cmp dword [ebp + 0x10], ebx
jne 0x40eb75
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5bc]
jne 0x40eb75
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret