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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
push esi
push edi
je 0x40f1f6
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4c4a14]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40e12c
push 7
push str.Blind
push ebx
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e12c
add ebx, 0xe
mov byte [0x4c744e], 1
mov dword [ebp + 8], ebx
jmp 0x40e137
mov byte [0x4c744e], 0
test edi, edi
jne 0x40e15b
push 6
push 0x4a4914
push ebx
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e15b
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 0xc
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
cmp ebx, 1
je 0x40e174
cmp ebx, 3
jne 0x40e1d7
cmp dword [0x4ca3e8], 0
je 0x40e1ad
call fcn.00408d40
test al, al
jne 0x40e1ad
test edi, edi
jne 0x40e1a4
call fcn.00408da0
test al, al
je 0x40e1a4
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00474ce0
test eax, eax
jne 0x40e1ad
mov dword [ebp + 0x10], 1
jmp 0x40e1d7
cmp ebx, 3
jne 0x40e1bb
mov dword [ebp + 0x10], 2
jmp 0x40e1d7
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40e1cd
cmp dword [esi + 0x64], eax
jge 0x40e1cd
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor ebx, ebx
mov byte [ebp - 0xf], 0
cmp dword [ebp + 0x14], ebx
je 0x40e285
mov edx, dword [ebp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40e228
cmp edi, dword [0x4c96c0]
je 0x40e228
mov esi, dword [ebp + 0x14]
call fcn.00479690
test al, al
jne 0x40e225
mov eax, dword [0x4c96c0]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c7474], eax
push eax
xor eax, eax
call fcn.004127a0
add esp, 4
push 1
mov dword [0x4c7470], eax
call fcn.00412100
mov bl, al
and byte [0x4c8fb5], bl
add esp, 4
cmp dword [0x4c8668], 0
mov byte [ebp - 8], bl
je 0x40e3cb
mov cl, byte [0x4c8535]
mov dl, byte [0x4c8537]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40e3f6
test byte [0x4ca1da], 0xc0
je 0x40e375
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca1d0]
cmp eax, 0x32
jae 0x40e375
cmp dword [ebp + 0x10], 2
je 0x40e375
cmp byte [0x4c744e], bl
jne 0x40e375
cmp edi, 2
je 0x40e375
cmp byte [0x4ca3d6], bl
je 0x40e375
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c96c0]
jne 0x40e375
mov eax, dword [ebp + 8]
mov ebx, 0x4a4b74
call fcn.00409520
test edi, edi
je 0x40e347
test eax, eax
setne al
test al, al
je 0x40e375
mov edi, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40e322
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e375
push 1
push 0x8000012f
mov dword [0x4c491c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c491c], 1
jmp 0x40e300
test eax, eax
je 0x40e375
jmp 0x40e350
add eax, 2
mov ebx, 0x4a4b7c
call fcn.00409520
test eax, eax
je 0x40e300
cmp word [eax], 0x7b
je 0x40e300
mov ebx, 0x4a4b74
call fcn.00409520
test eax, eax
jne 0x40e350
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40e228
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0xbc]
push eax
push ebx
mov dword [ebp - 0xbc], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40e228
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40e228
push 0
push eax
call edi
mov ebx, eax
jmp 0x40e228
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca1d0]
cmp eax, dword [0x4c4914]
jae 0x40e3eb
mov al, byte [0x4ca1da]
and al, bl
mov byte [ebp - 2], al
jmp 0x40e3f2
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c8fb4]
not al
and al, bl
and cl, al
mov al, byte [0x4c744e]
mov byte [0x4c8fb4], cl
test al, al
je 0x40e41d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40e424
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x40e44b
test al, al
jne 0x40e44b
cmp dword [ebp + 0xc], 2
je 0x40e44b
push 2
mov bl, 0x14
call fcn.00411980
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x40e452
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c9008], esi
test esi, esi
je 0x40e4c4
cmp esi, 1
jne 0x40e475
mov eax, 0x36b0
mov dword [0x4c7464], 0x1f4
jmp 0x40e484
mov eax, 0x2ee0
mov dword [0x4c7464], 0x5dc
call fcn.004954d0
mov eax, esp
mov dword [0x4c746c], eax
mov eax, SysReAllocString
mov byte [0x4c7456], bl
mov dword [0x4c7458], eax
mov dword [0x4c745c], eax
mov byte [0x4c7455], 0
mov dword [0x4c7468], 0
mov byte [0x4c7454], 0
mov byte [0x4c744f], 1
mov eax, dword [0x4c4a24]
mov cl, byte [0x4c8f48]
mov byte [ebp - 0x19], cl
cmp eax, 8
je 0x40e4dc
cmp eax, 0xa
jne 0x40e517
test esi, esi
jne 0x40e517
cmp dword [ebp + 0x14], esi
jne 0x40e517
test byte [0x4cac98], 1
mov byte [ebp - 8], 1
jne 0x40e51d
or dword [0x4cac98], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cac94], eax
jmp 0x40e522
mov byte [ebp - 8], 0
jmp 0x40e531
mov eax, dword [0x4cac94]
test eax, eax
je 0x40e52a
push 1
call eax
mov byte [0x4c8f48], 1
mov edx, dword [ebp + 8]
cmp word [edx], 0
mov byte [ebp - 1], 0
je 0x40ee81
cmp dword [0x4c9008], 0
mov byte [ebp - 9], 0
jne 0x40e5ab
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ca20c]
mov ecx, dword [0x4c4a14]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e5ab
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e5a4
push 1
push 0xffffffffffffffff
mov dword [0x4c491c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c491c], 1
call esi
mov dword [0x4ca20c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x40ed93
movzx eax, word [edi]
push eax
push 0x4a4b84
call fcn.0048eccb
add esp, 8
test eax, eax
je 0x40edeb
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e5e8.34
movzx ecx, byte [eax + 0x40f220]
jmp dword [ecx*4 + 0x40f204]
test byte [ebp - 7], 3
jne case.0x40e5e8.34
or byte [ebp - 1], 1
jmp case.0x40e5e8.34
test byte [ebp - 7], 0x30
jne case.0x40e5e8.34
or byte [ebp - 1], 0x10
jmp case.0x40e5e8.34
test byte [ebp - 7], 0xc
jne case.0x40e5e8.34
or byte [ebp - 1], 4
jmp case.0x40e5e8.34
test byte [ebp - 7], 0xc0
jne case.0x40e5e8.34
or byte [ebp - 1], 0x40
jmp case.0x40e5e8.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0048eccb
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40e5e8.34
mov eax, esi
call fcn.00409570
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x40e6f6
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x40e68c
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x40e6f0
cmp eax, 0x20
je 0x40e69a
cmp eax, 9
jne 0x40ed88
mov eax, edi
call fcn.00409570
push 4
mov esi, eax
push str.Down
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
je 0x40e6cf
push 2
push 0x4a1ddc
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40ed88
push 0x7d
push esi
call fcn.0048eccb
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40e5e8.34
sub eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push 5
push 0x4a3804
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e79c
xor edx, edx
lea eax, [ebp - 0x30]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [esi + 0xa]
call fcn.00409570
call fcn.004102e0
mov ecx, dword [ebp - 0x28]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40e777
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x38]
call fcn.00410f30
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40ee61
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40ed7d
push 3
push 0x4a4b94
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e7c2
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40ee61
push 4
push str.Text
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e7f8
lea eax, [esi + 8]
call fcn.00409570
cmp eax, edi
jne 0x40ed88
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], edx
jmp 0x40ee61
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x34], ebx
mov ebx, 0x4a4704
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x28], esi
call fcn.00409520
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40e8c2
movzx ecx, word [eax]
mov dword [ebp - 0x5c], ecx
mov ecx, eax
sub ecx, dword [ebp + 8]
xor edx, edx
mov word [eax], dx
sar ecx, 1
add eax, 2
mov dword [ebp - 0x34], ecx
call fcn.00409570
mov ebx, eax
sub edi, ebx
sar edi, 1
je 0x40e8c2
push 4
push str.Down
push ebx
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e89f
push 4
add ebx, 8
push str.Temp
xor edi, edi
push ebx
mov dword [ebp - 0x14], edi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40e881
mov dword [ebp - 0x18], edi
jmp 0x40e8c2
xor eax, eax
cmp word [ebx], 0x52
sete al
push eax
call fcn.0048f6ba
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x40e8c2
push 0x4a1ddc
push ebx
call fcn.0048deb9
add esp, 8
test eax, eax
jne 0x40e8b6
mov dword [ebp - 0x14], esi
jmp 0x40e8c2
mov esi, ebx
call fcn.0040db60
mov dword [ebp - 0x28], eax
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x4c7474]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x50]
mov edx, ebx
call fcn.00412ce0
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40e8ee
mov dx, word [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
mov word [eax], dx
mov edx, dword [ebp - 0x24]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x40ed88
mov al, byte [ebp - 0xe]
mov edi, dword [ebp - 0x50]
test al, al
jne 0x40ecd1
test di, di
jne 0x40ecd1
mov eax, 1
cmp dword [ebp - 0x34], eax
jne 0x40e985
cmp dword [ebp - 0x14], eax
je 0x40ed88
cmp dword [ebp + 0x14], 0
je 0x40e963
test esi, esi
jle 0x40ed88
lea ebx, [ebx]
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x40e940
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40ee61
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
push eax
mov ax, word [ebx]
call fcn.0040f650
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40ee61
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x14]
sete bl
push edx
call fcn.00412d90
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40eb81
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e9c3
cmp dword [ebp - 0x14], edi
jne 0x40e9be
mov byte [ebp - 9], al
jmp 0x40e9c3
call fcn.0040dd30
cmp dword [0x4c9008], 0
je 0x40e9d7
mov bl, byte [0x4c7456]
jmp 0x40eac9
cmp dword [0x4c8668], 0
je 0x40e9eb
mov bl, byte [0x4c8535]
jmp 0x40eac9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea06
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea1a
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea2e
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea42
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea56
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea6a
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea7b
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea8c
or bl, 0x80
cmp dword [0x4c8668], 0
je 0x40eac9
mov al, bl
not al
and al, byte [0x4c8535]
je 0x40eac9
mov cl, byte [0x4c8537]
not al
and byte [0x4c8535], al
and byte [0x4c8536], al
and cl, al
mov al, cl
mov byte [0x4c8537], cl
mov ecx, 0x4c8558
call fcn.00412200
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411a90
mov eax, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jle 0x40ed88
mov ebx, dword [ebp - 0xe]
mov edi, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040fb60
add esp, 0x18
cmp dword [0x4c9008], 0
jne 0x40eb6f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ca20c]
mov ecx, dword [0x4c4a14]
cmp eax, dword [ecx + 0xd8]
jbe 0x40eb6f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40eb68
push 1
push 0xffffffffffffffff
mov dword [0x4c491c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c491c], 1
call esi
mov dword [0x4ca20c], eax
dec edi
jne 0x40eaf0
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40ee61
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40ebb4
push 4
push str.ASC
push esi
call fcn.0048e707
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40ebb7
test ebx, ebx
jne 0x40ebb7
lea eax, [esi + 6]
call fcn.00409570
jmp 0x40ec92
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40ed88
push 2
push 0x4a4bb4
push esi
call fcn.0048e707
add esp, 0xc
test eax, eax
jne 0x40ed88
push 0x10
push eax
add esi, 4
push esi
call fcn.0048f570
add esp, 0xc
cmp eax, 0x10000
jb 0x40ec1a
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
mov ecx, eax
sub edx, 0x2800
and ecx, 0x3ff
sub ecx, 0x2400
movzx edi, dx
movzx esi, cx
jmp 0x40ec1f
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40ec4c
movzx edx, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push edx
push 0x102
push ebx
call edi
test si, si
je 0x40ec97
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40ec97
cmp dword [0x4c9008], 2
je 0x40ec77
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040ddb0
add esp, 4
test si, si
je 0x40ec97
push ebx
mov edi, esi
call fcn.0040ddb0
add esp, 4
jmp 0x40ec97
push 0xa
lea edx, [ebp - 0x6e]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x70], cx
call fcn.0048dc35
add esp, 0xc
lea eax, [ebp - 0x70]
call fcn.0040f760
cmp dword [0x4c9008], 2
jne 0x40ecb8
mov eax, dword [0x4c4a14]
mov esi, dword [eax + 0x60]
call fcn.004116a0
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40ee61
mov ecx, dword [0x4c4a14]
mov esi, dword [ecx + 0x5c]
call fcn.004116a0
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40ee61
xor ecx, ecx
mov edx, edi
call fcn.004122d0
mov bl, al
mov byte [ebp - 0x48], bl
test bl, bl
je 0x40ed5a
cmp dword [ebp + 0x14], 0
jne 0x40ed5a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40ed19
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 0xe]
mov byte [ebp - 9], dl
cmp eax, 1
jne 0x40ed09
or byte [0x4c8fb4], bl
or byte [ebp - 7], bl
jmp 0x40ed5a
cmp eax, 2
jne 0x40ed14
or byte [0x4c8fb5], bl
or byte [ebp - 7], bl
jmp 0x40ed5a
cmp eax, 1
jne 0x40ed5a
mov al, byte [ebp - 0xe]
call fcn.0040dd30
mov cl, byte [0x4c8fb4]
mov al, bl
not al
and byte [0x4c8fb5], al
and byte [ebp - 3], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4c8fb4], cl
jne 0x40ed54
cmp dword [0x4c7470], 3
jne 0x40ed54
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 7]
push ecx
mov ecx, dword [ebp - 0xe]
push edx
push eax
push edi
push ecx
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.0040f2a0
add esp, 0x24
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40ee61
cmp esi, 2
jne 0x40edeb
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40eda3.11
jmp dword [eax*4 + 0x40f280]
cmp word [edi + 2], 0xa
jne case.0x40eda3.10
add edi, 2
mov dword [ebp + 8], edi
mov byte [ebp - 0xe], 0xd
jmp 0x40ee1a
mov byte [ebp - 0xe], 8
jmp 0x40ee1a
mov byte [ebp - 0xe], 9
jmp 0x40ee1a
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x40ee4a
movzx edx, word [edi]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ee61
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x40edfb
test esi, esi
jne 0x40edfb
mov al, 1
jmp 0x40edfd
xor al, al
mov si, word [edi]
push eax
mov eax, dword [0x4c7474]
push eax
lea ecx, [ebp - 1]
push ecx
call fcn.00412c10
add esp, 0xc
mov byte [ebp - 0xe], al
test al, al
je 0x40edcd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 7]
mov ecx, dword [ebp - 0xe]
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.0040f2a0
add esp, 0x24
jmp 0x40ee61
or al, byte [ebp - 7]
mov ecx, 1
movzx eax, al
push eax
mov ax, word [edi]
call fcn.0040f650
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4c8f8f], cl
jne 0x40e542
cmp dword [0x4c9008], 0
je 0x40ef38
cmp byte [0x4c7454], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x40eef8
cmp dword [0x4c7468], 0
jbe 0x40eef8
cmp byte [0x4c744e], 0
je 0x40eeb4
xor eax, eax
jmp 0x40eec0
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4c8fb5]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4c7456]
mov esi, dword [ebp + 8]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00411a90
add esp, 0x14
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.00411550
add esp, 8
mov eax, dword [0x4c9008]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c7464], eax
jbe 0x40ef23
mov edx, dword [0x4c746c]
push edx
call fcn.0048ec91
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [0x4c9008], edi
call fcn.004116a0
jmp 0x40f0b8
cmp dword [0x4c8668], 0
je 0x40ef49
mov cl, byte [0x4c8537]
jmp 0x40ef6d
cmp dword [0x4c4914], 0
jl 0x40ef6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca1d0]
cmp eax, dword [0x4c4914]
jb 0x40ef6a
xor cl, cl
jmp 0x40ef6d
mov cl, byte [ebp - 2]
or cl, byte [0x4c8fb5]
cmp byte [0x4c744e], 0
je 0x40ef95
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 7]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40efa2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4c8668], 0
je 0x40efb8
mov al, byte [0x4c8535]
mov byte [ebp - 0x18], al
jmp 0x40f099
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40efd3
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40efe7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40effb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f00f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f023
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f037
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f048
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f059
or bl, 0x80
cmp dword [0x4c8668], 0
je 0x40f096
mov al, bl
not al
and al, byte [0x4c8535]
je 0x40f096
mov cl, byte [0x4c8537]
not al
and byte [0x4c8535], al
and byte [0x4c8536], al
and cl, al
mov al, cl
mov byte [0x4c8537], cl
mov ecx, 0x4c8558
call fcn.00412200
mov byte [ebp - 0x18], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push 1
push 1
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.00411a90
add esp, 0x14
xor edi, edi
cmp dword [0x4c8668], edi
je 0x40f0d8
mov al, byte [0x4c8536]
mov cl, al
xor cl, byte [0x4c8535]
and cl, al
not cl
and al, cl
mov byte [0x4c8536], al
mov ebx, 1
cmp dword [ebp - 0x44], ebx
jne 0x40f152
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40f152
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40f111
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.0040fb60
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040fb60
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c96c0]
jne 0x40f152
push ebx
push 0xffffffffffffffff
mov dword [0x4c491c], edi
call fcn.004013d0
add esp, 8
mov dword [0x4c491c], ebx
cmp byte [ebp - 0xf], 0
je 0x40f16a
mov eax, dword [ebp - 0x58]
mov ecx, dword [0x4c96c0]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40f1b5
cmp byte [ebp - 0x19], 0
jne 0x40f1b5
test byte [0x4cac98], bl
jne 0x40f1a2
or dword [0x4cac98], 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 [0x4cac94], eax
jmp 0x40f1a7
mov eax, dword [0x4cac94]
cmp eax, edi
je 0x40f1ae
push edi
call eax
mov byte [0x4c8f48], 0
cmp dword [ebp + 0x10], ebx
jne 0x40f1e7
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c96c0]
jne 0x40f1e7
push ebx
push 0xffffffffffffffff
mov dword [0x4c491c], edi
call fcn.004013d0
add esp, 8
mov dword [0x4c491c], ebx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xc8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret