Function at 0x40eff0
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 0x41015f
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4c6a44]
mov dword [ebp - 0x28], esi
test edi, edi
jne 0x40f03c
push 7
push str.Blind
push ebx
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f03c
add ebx, 0xe
mov byte [0x4c947b], 1
mov dword [ebp + 8], ebx
jmp 0x40f047
mov byte [0x4c947b], 0
test edi, edi
jne 0x40f06b
push 6
push str.Text
push ebx
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f06b
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 0x40f084
cmp ebx, 3
jne 0x40f0e7
cmp dword [0x4cc1dc], 0
je 0x40f0bd
call fcn.00408ef0
test al, al
jne 0x40f0bd
test edi, edi
jne 0x40f0b4
call fcn.00408f60
test al, al
je 0x40f0b4
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00476660
test eax, eax
jne 0x40f0bd
mov dword [ebp + 0x10], 1
jmp 0x40f0e7
cmp ebx, 3
jne 0x40f0cb
mov dword [ebp + 0x10], 2
jmp 0x40f0e7
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40f0dd
cmp dword [esi + 0x64], eax
jge 0x40f0dd
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 0x40f195
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 0x40f138
cmp edi, dword [0x4cb4ec]
je 0x40f138
mov esi, dword [ebp + 0x14]
call fcn.0047b1e0
test al, al
jne 0x40f135
mov eax, dword [0x4cb4ec]
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 - 0x28]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c94a0], eax
push eax
xor eax, eax
call fcn.00413800
add esp, 4
push 1
mov dword [0x4c949c], eax
call fcn.00413130
mov bl, al
and byte [0x4cadbe], bl
add esp, 4
cmp dword [0x4ca694], 0
mov byte [ebp - 8], bl
je 0x40f2db
mov cl, byte [0x4ca561]
mov dl, byte [0x4ca563]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40f306
test byte [0x4cbfe6], 0xc0
je 0x40f285
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4cbfdc]
cmp eax, 0x32
jae 0x40f285
cmp dword [ebp + 0x10], 2
je 0x40f285
cmp byte [0x4c947b], bl
jne 0x40f285
cmp edi, 2
je 0x40f285
cmp byte [0x4cc1c6], bl
je 0x40f285
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x4cb4ec]
jne 0x40f285
mov eax, dword [ebp + 8]
mov ebx, 0x4a6e18
call fcn.004096a0
test edi, edi
je 0x40f257
test eax, eax
setne al
test al, al
je 0x40f285
mov edi, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40f232
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40f285
push 1
push 0x8000012f
mov dword [0x4c694c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c694c], 1
jmp 0x40f210
test eax, eax
je 0x40f285
jmp 0x40f260
add eax, 2
mov ebx, 0x4a6e20
call fcn.004096a0
test eax, eax
je 0x40f210
cmp word [eax], 0x7b
je 0x40f210
mov ebx, 0x4a6e18
call fcn.004096a0
test eax, eax
jne 0x40f260
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40f138
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 0x40f138
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40f138
push 0
push eax
call edi
mov ebx, eax
jmp 0x40f138
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4cbfdc]
cmp eax, dword [0x4c6944]
jae 0x40f2fb
mov al, byte [0x4cbfe6]
and al, bl
mov byte [ebp - 2], al
jmp 0x40f302
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4cadab]
not al
and al, bl
and cl, al
mov al, byte [0x4c947b]
mov byte [0x4cadab], cl
test al, al
je 0x40f32d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40f334
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x40f35b
test al, al
jne 0x40f35b
cmp dword [ebp + 0xc], 2
je 0x40f35b
push 2
mov bl, 0x14
call fcn.00412970
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x40f362
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4cade4], esi
test esi, esi
je 0x40f3d4
cmp esi, 1
jne 0x40f385
mov eax, 0x36b0
mov dword [0x4c9490], 0x1f4
jmp 0x40f394
mov eax, 0x2ee0
mov dword [0x4c9490], 0x5dc
call fcn.00497020
mov eax, esp
mov dword [0x4c9498], eax
mov eax, SysReAllocString
mov byte [0x4c9483], bl
mov dword [0x4c9484], eax
mov dword [0x4c9488], eax
mov byte [0x4c9482], 0
mov dword [0x4c9494], 0
mov byte [0x4c9481], 0
mov byte [0x4c9480], 1
mov eax, dword [0x4c6a54]
mov cl, byte [0x4cad75]
mov byte [ebp - 0x19], cl
cmp eax, 8
je 0x40f3ec
cmp eax, 0xa
jne 0x40f427
test esi, esi
jne 0x40f427
cmp dword [ebp + 0x14], esi
jne 0x40f427
test byte [0x4cca88], 1
mov byte [ebp - 8], 1
jne 0x40f42d
or dword [0x4cca88], 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 [0x4cca84], eax
jmp 0x40f432
mov byte [ebp - 8], 0
jmp 0x40f441
mov eax, dword [0x4cca84]
test eax, eax
je 0x40f43a
push 1
call eax
mov byte [0x4cad75], 1
mov edx, dword [ebp + 8]
cmp word [edx], 0
mov byte [ebp - 1], 0
je 0x40fdc1
cmp dword [0x4cade4], 0
mov byte [ebp - 9], 0
jne 0x40f4bb
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4cc01c]
mov ecx, dword [0x4c6a44]
cmp eax, dword [ecx + 0xd8]
jbe 0x40f4bb
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 0x40f4b4
push 1
push 0xffffffffffffffff
mov dword [0x4c694c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c694c], 1
call esi
mov dword [0x4cc01c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x40fcd3
movzx eax, word [edi]
push eax
push str._
call fcn.00490831
add esp, 8
test eax, eax
je 0x40fd2b
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40f4f8.34
movzx ecx, byte [eax + 0x410188]
jmp dword [ecx*4 + 0x41016c]
test byte [ebp - 7], 3
jne case.0x40f4f8.34
or byte [ebp - 1], 1
jmp case.0x40f4f8.34
test byte [ebp - 7], 0x30
jne case.0x40f4f8.34
or byte [ebp - 1], 0x10
jmp case.0x40f4f8.34
test byte [ebp - 7], 0xc
jne case.0x40f4f8.34
or byte [ebp - 1], 4
jmp case.0x40f4f8.34
test byte [ebp - 7], 0xc0
jne case.0x40f4f8.34
or byte [ebp - 1], 0x40
jmp case.0x40f4f8.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.00490831
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40f4f8.34
mov eax, esi
call fcn.004096f0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x40f606
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x40f59c
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x40f600
cmp eax, 0x20
je 0x40f5aa
cmp eax, 9
jne 0x40fcc8
mov eax, edi
call fcn.004096f0
push 4
mov esi, eax
push str.Down
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
je 0x40f5df
push 2
push 0x4a3dec
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40fcc8
push 0x7d
push esi
call fcn.00490831
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40f4f8.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 0x4a5830
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f6ac
xor edx, edx
lea eax, [ebp - 0x2c]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [esi + 0xa]
call fcn.004096f0
call fcn.004112d0
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40f687
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x38]
call fcn.00411f20
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40fda1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40fcbd
push 3
push 0x4a6e38
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f6d2
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40fda1
push 4
push 0x4a6d6c
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f708
lea eax, [esi + 8]
call fcn.004096f0
cmp eax, edi
jne 0x40fcc8
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], edx
jmp 0x40fda1
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x34], ebx
mov ebx, 0x4a673c
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
call fcn.004096a0
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40f7d2
movzx ecx, word [eax]
mov dword [ebp - 0x50], 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.004096f0
mov ebx, eax
sub edi, ebx
sar edi, 1
je 0x40f7d2
push 4
push str.Down
push ebx
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f7af
push 4
add ebx, 8
push str.Temp
xor edi, edi
push ebx
mov dword [ebp - 0x18], edi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40f791
mov dword [ebp - 0x3c], edi
jmp 0x40f7d2
xor eax, eax
cmp word [ebx], 0x52
sete al
push eax
call fcn.004912f9
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x40f7d2
push 0x4a3dec
push ebx
call fcn.0048fa09
add esp, 8
test eax, eax
jne 0x40f7c6
mov dword [ebp - 0x18], esi
jmp 0x40f7d2
mov esi, ebx
call fcn.0040ea60
mov dword [ebp - 0x14], eax
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x4c94a0]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
mov edx, ebx
call fcn.00413d70
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x40f7fe
mov dx, word [ebp - 0x50]
mov eax, dword [ebp - 0x30]
mov word [eax], dx
mov edx, dword [ebp - 0x24]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x40fcc8
mov al, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test al, al
jne 0x40fc11
test di, di
jne 0x40fc11
mov eax, 1
cmp dword [ebp - 0x34], eax
jne 0x40f895
cmp dword [ebp - 0x18], eax
je 0x40fcc8
cmp dword [ebp + 0x14], 0
je 0x40f873
test esi, esi
jle 0x40fcc8
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 0x40f850
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40fda1
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
push eax
mov ax, word [ebx]
call fcn.00410610
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40fda1
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x18]
sete bl
push edx
call fcn.00413e20
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40fac1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40f8d3
cmp dword [ebp - 0x18], edi
jne 0x40f8ce
mov byte [ebp - 9], al
jmp 0x40f8d3
call fcn.0040ec30
cmp dword [0x4cade4], 0
je 0x40f8e6
mov al, byte [0x4c9483]
jmp 0x40fa01
cmp dword [0x4ca694], 0
je 0x40f8f9
mov al, byte [0x4ca561]
jmp 0x40fa01
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f918
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f92d
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f942
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f957
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f96c
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f981
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f993
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f9a5
or byte [ebp + 0xb], 0x80
cmp dword [0x4ca694], 0
je 0x40f9fd
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ca561]
je 0x40f9fd
mov cl, byte [0x4ca563]
mov al, bl
not al
and byte [0x4ca561], al
and byte [0x4ca562], al
and cl, al
mov al, cl
mov byte [0x4ca563], cl
mov ecx, 0x4ca588
call fcn.00413260
mov eax, dword [0x4c9474]
test eax, eax
je 0x40f9fd
test byte [eax + 8], bl
je 0x40f9fd
mov dword [0x4c9474], 0
movzx eax, byte [ebp + 0xb]
push 0
push 0
push edi
push eax
mov eax, dword [ebp - 7]
push eax
mov eax, 0xffc3d44d
call fcn.00412a80
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x40fcc8
mov ebx, dword [ebp - 0xe]
mov edi, eax
jmp 0x40fa30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.00410b50
add esp, 0x18
cmp dword [0x4cade4], 0
jne 0x40faaf
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4cc01c]
mov ecx, dword [0x4c6a44]
cmp eax, dword [ecx + 0xd8]
jbe 0x40faaf
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 0x40faa8
push 1
push 0xffffffffffffffff
mov dword [0x4c694c], 0
call fcn.004013d0
add esp, 8
mov dword [0x4c694c], 1
call esi
mov dword [0x4cc01c], eax
dec edi
jne 0x40fa30
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40fda1
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40faf4
push 4
push str.ASC
push esi
call fcn.00490257
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40faf7
test ebx, ebx
jne 0x40faf7
lea eax, [esi + 6]
call fcn.004096f0
jmp 0x40fbd2
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40fcc8
push 2
push 0x4a6e58
push esi
call fcn.00490257
add esp, 0xc
test eax, eax
jne 0x40fcc8
push 0x10
push eax
add esi, 4
push esi
call fcn.004911af
add esp, 0xc
cmp eax, 0x10000
jb 0x40fb5a
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 0x40fb5f
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40fb8c
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 0x40fbd7
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40fbd7
cmp dword [0x4cade4], 2
je 0x40fbb7
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040ecb0
add esp, 4
test si, si
je 0x40fbd7
push ebx
mov edi, esi
call fcn.0040ecb0
add esp, 4
jmp 0x40fbd7
push 0xa
lea edx, [ebp - 0x6e]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x70], cx
call fcn.0048f785
add esp, 0xc
lea eax, [ebp - 0x70]
call fcn.00410720
cmp dword [0x4cade4], 2
jne 0x40fbf8
mov eax, dword [0x4c6a44]
mov esi, dword [eax + 0x60]
call fcn.00412690
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40fda1
mov ecx, dword [0x4c6a44]
mov esi, dword [ecx + 0x5c]
call fcn.00412690
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40fda1
xor ecx, ecx
mov edx, edi
call fcn.00413330
mov bl, al
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40fc9a
cmp dword [ebp + 0x14], 0
jne 0x40fc9a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40fc59
mov eax, dword [ebp - 0x3c]
mov dl, byte [ebp - 0xe]
mov byte [ebp - 9], dl
cmp eax, 1
jne 0x40fc49
or byte [0x4cadab], bl
or byte [ebp - 7], bl
jmp 0x40fc9a
cmp eax, 2
jne 0x40fc54
or byte [0x4cadbe], bl
or byte [ebp - 7], bl
jmp 0x40fc9a
cmp eax, 1
jne 0x40fc9a
mov al, byte [ebp - 0xe]
call fcn.0040ec30
mov cl, byte [0x4cadab]
mov al, bl
not al
and byte [0x4cadbe], al
and byte [ebp - 3], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4cadab], cl
jne 0x40fc94
cmp dword [0x4c949c], 3
jne 0x40fc94
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
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.00410200
add esp, 0x24
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40fda1
cmp esi, 2
jne 0x40fd2b
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40fce3.11
jmp dword [eax*4 + 0x4101e8]
cmp word [edi + 2], 0xa
jne case.0x40fce3.10
add edi, 2
mov dword [ebp + 8], edi
mov byte [ebp - 0xe], 0xd
jmp 0x40fd5a
mov byte [ebp - 0xe], 8
jmp 0x40fd5a
mov byte [ebp - 0xe], 9
jmp 0x40fd5a
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x40fd8a
movzx edx, word [edi]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40fda1
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x40fd3b
test esi, esi
jne 0x40fd3b
mov al, 1
jmp 0x40fd3d
xor al, al
mov si, word [edi]
push eax
mov eax, dword [0x4c94a0]
push eax
lea ecx, [ebp - 1]
push ecx
call fcn.00413ca0
add esp, 0xc
mov byte [ebp - 0xe], al
test al, al
je 0x40fd0d
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.00410200
add esp, 0x24
jmp 0x40fda1
or al, byte [ebp - 7]
mov ecx, 1
movzx eax, al
push eax
mov ax, word [edi]
call fcn.00410610
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 [0x4cadaa], cl
jne 0x40f452
cmp dword [0x4cade4], 0
je 0x40fe78
cmp byte [0x4c9481], 0
mov dword [ebp + 8], 0xffffffff
jne 0x40fe38
cmp dword [0x4c9494], 0
jbe 0x40fe38
cmp byte [0x4c947b], 0
je 0x40fdf4
xor eax, eax
jmp 0x40fe00
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4cadbe]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4c9483]
mov esi, dword [ebp - 0x14]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00412a80
add esp, 0x14
lea ecx, [ebp + 8]
push esi
push ecx
call fcn.00412540
add esp, 8
mov eax, dword [0x4cade4]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c9490], eax
jbe 0x40fe63
mov edx, dword [0x4c9498]
push edx
call fcn.00490351
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4cade4], edi
call fcn.00412690
jmp 0x410021
cmp dword [0x4ca694], 0
je 0x40fe89
mov cl, byte [0x4ca563]
jmp 0x40fead
cmp dword [0x4c6944], 0
jl 0x40feaa
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4cbfdc]
cmp eax, dword [0x4c6944]
jb 0x40feaa
xor cl, cl
jmp 0x40fead
mov cl, byte [ebp - 2]
or cl, byte [0x4cadbe]
cmp byte [0x4c947b], 0
je 0x40fed5
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 - 0x14], bl
jmp 0x40fee2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4ca694], 0
je 0x40fef5
mov al, byte [0x4ca561]
jmp 0x40fffc
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff14
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff29
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff3e
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff53
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff68
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff7d
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff8f
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ffa1
or byte [ebp + 0xb], 0x80
cmp dword [0x4ca694], 0
je 0x40fff9
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ca561]
je 0x40fff9
mov cl, byte [0x4ca563]
mov al, bl
not al
and byte [0x4ca561], al
and byte [0x4ca562], al
and cl, al
mov al, cl
mov byte [0x4ca563], cl
mov ecx, 0x4ca588
call fcn.00413260
mov eax, dword [0x4c9474]
test eax, eax
je 0x40fff9
test byte [eax + 8], bl
je 0x40fff9
mov dword [0x4c9474], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4ca584]
mov ecx, dword [ebp + 0x14]
push 1
movzx edx, al
mov eax, dword [ebp - 0x14]
push 1
push ecx
push edx
push eax
mov eax, 0xffc3d44d
call fcn.00412a80
add esp, 0x14
xor edi, edi
cmp dword [0x4ca694], edi
je 0x410041
mov al, byte [0x4ca562]
mov cl, al
xor cl, byte [0x4ca561]
and cl, al
not cl
and al, cl
mov byte [0x4ca562], al
mov ebx, 1
cmp dword [ebp - 0x44], ebx
jne 0x4100bb
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x4100bb
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x41007a
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00410b50
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00410b50
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cb4ec]
jne 0x4100bb
push ebx
push 0xffffffffffffffff
mov dword [0x4c694c], edi
call fcn.004013d0
add esp, 8
mov dword [0x4c694c], ebx
cmp byte [ebp - 0xf], 0
je 0x4100d3
mov eax, dword [ebp - 0x58]
mov ecx, dword [0x4cb4ec]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x41011e
cmp byte [ebp - 0x19], 0
jne 0x41011e
test byte [0x4cca88], bl
jne 0x41010b
or dword [0x4cca88], 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 [0x4cca84], eax
jmp 0x410110
mov eax, dword [0x4cca84]
cmp eax, edi
je 0x410117
push edi
call eax
mov byte [0x4cad75], 0
cmp dword [ebp + 0x10], ebx
jne 0x410150
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cb4ec]
jne 0x410150
push ebx
push 0xffffffffffffffff
mov dword [0x4c694c], edi
call fcn.004013d0
add esp, 8
mov dword [0x4c694c], ebx
mov eax, dword [ebp - 0x28]
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