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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
push esi
push edi
je 0x4109f4
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4c7a54]
mov eax, dword [0x4cd018]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x5c], eax
test edi, edi
jne 0x40f884
push 7
push str.Blind
push ebx
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40f884
add ebx, 0xe
mov byte [0x4ca467], 1
mov dword [ebp + 8], ebx
jmp 0x40f88f
mov byte [0x4ca467], 0
test edi, edi
jne 0x40f8b3
push 6
push str.Text
push ebx
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40f8b3
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 0xc
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
cmp ebx, 1
je 0x40f8cc
cmp ebx, 3
jne 0x40f926
call fcn.004095e0
test al, al
jne 0x40f8fc
test edi, edi
jne 0x40f8f3
call fcn.00409650
test al, al
je 0x40f8f3
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00477670
test eax, eax
jne 0x40f8fc
mov dword [ebp + 0x10], 1
jmp 0x40f926
cmp ebx, 3
jne 0x40f90a
mov dword [ebp + 0x10], 2
jmp 0x40f926
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40f91c
cmp dword [esi + 0x64], eax
jge 0x40f91c
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 0x40f9d5
mov eax, dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
je 0x40f978
cmp edi, dword [0x4cc4e4]
je 0x40f978
mov esi, dword [ebp + 0x14]
call fcn.0047c4e0
test al, al
jne 0x40f975
mov ecx, dword [0x4cc4e4]
push 1
push edi
push ecx
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 [0x4ca48c], eax
push eax
xor eax, eax
call fcn.00414060
add esp, 4
push 1
mov dword [0x4ca488], eax
call fcn.00413960
mov bl, al
and byte [0x4cbdb7], bl
add esp, 4
cmp dword [0x4cb688], 0
mov byte [ebp - 8], bl
je 0x40fb1b
mov cl, byte [0x4cb555]
mov dl, byte [0x4cb557]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40fb46
test byte [0x4ccfde], 0xc0
je 0x40fac5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ccfd4]
cmp eax, 0x32
jae 0x40fac5
cmp dword [ebp + 0x10], 2
je 0x40fac5
cmp byte [0x4ca467], bl
jne 0x40fac5
cmp edi, 2
je 0x40fac5
cmp byte [0x4cd1c6], bl
je 0x40fac5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4cc4e4]
jne 0x40fac5
mov eax, dword [ebp + 8]
mov ebx, 0x4a7eec
call fcn.00409e00
test edi, edi
je 0x40fa97
test eax, eax
setne al
test al, al
je 0x40fac5
mov edi, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
jne 0x40fa72
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x40fac5
push 1
push 0x8000012f
mov dword [0x4c795c], 0
call fcn.00401430
add esp, 8
mov dword [0x4c795c], 1
jmp 0x40fa50
test eax, eax
je 0x40fac5
jmp 0x40faa0
add eax, 2
mov ebx, 0x4a7ef4
call fcn.00409e00
test eax, eax
je 0x40fa50
cmp word [eax], 0x7b
je 0x40fa50
mov ebx, 0x4a7eec
call fcn.00409e00
test eax, eax
jne 0x40faa0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40f978
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call edi
lea edx, [ebp - 0xc0]
mov ebx, eax
push edx
push ebx
mov dword [ebp - 0xc0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40f978
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40f978
push 0
push eax
call edi
mov ebx, eax
jmp 0x40f978
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ccfd4]
cmp eax, dword [0x4c7954]
jae 0x40fb3b
mov al, byte [0x4ccfde]
and al, bl
mov byte [ebp - 2], al
jmp 0x40fb42
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4cbdb6]
not al
and al, bl
and cl, al
mov al, byte [0x4ca467]
mov byte [0x4cbdb6], cl
test al, al
je 0x40fb6d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40fb74
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x40fb9b
test al, al
jne 0x40fb9b
cmp dword [ebp + 0xc], 2
je 0x40fb9b
push 2
mov bl, 0x14
call fcn.004131a0
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x40fba2
mov dword [ebp - 0x44], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4cbddc], edi
test edi, edi
je 0x40fc14
cmp edi, 1
jne 0x40fbc5
mov eax, 0x36b0
mov dword [0x4ca47c], 0x1f4
jmp 0x40fbd4
mov eax, 0x2ee0
mov dword [0x4ca47c], 0x5dc
call fcn.004979b0
mov eax, esp
mov dword [0x4ca484], eax
mov eax, SysReAllocString
mov byte [0x4ca46f], bl
mov dword [0x4ca470], eax
mov dword [0x4ca474], eax
mov byte [0x4ca46e], 0
mov dword [0x4ca480], 0
mov byte [0x4ca46d], 0
mov byte [0x4ca46c], 1
mov al, byte [0x4cbd6e]
mov byte [ebp - 0x19], al
mov eax, dword [0x4c7a64]
cmp eax, 8
je 0x40fc2f
cmp eax, 0xa
jne 0x40fd1d
test edi, edi
jne 0x40fd1d
cmp dword [ebp + 0x14], edi
jne 0x40fd1d
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov edi, dword [0x4cbddc]
mov byte [0x4cbd6e], 1
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
mov byte [ebp - 1], 0
je 0x41063f
lea ebx, [ebx]
cmp dword [0x4cbddc], 0
mov byte [ebp - 9], 0
jne 0x40fcd9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cd01c]
mov edx, dword [0x4c7a54]
cmp eax, dword [edx + 0xd8]
jbe 0x40fcd9
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40fcd2
push 1
push 0xffffffffffffffff
mov dword [0x4c795c], 0
call fcn.00401430
add esp, 8
mov dword [0x4c795c], 1
call esi
mov dword [0x4cd01c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x41054a
movzx ecx, word [edi]
push ecx
push 0x4a7efc
call fcn.00491a11
add esp, 8
test eax, eax
je 0x4105a2
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40fd16.34
movzx edx, byte [eax + 0x410a20]
jmp dword [edx*4 + 0x410a04]
mov byte [ebp - 8], 0
jmp 0x40fc59
test byte [ebp - 7], 3
jne case.0x40fd16.34
or byte [ebp - 1], 1
jmp case.0x40fd16.34
test byte [ebp - 7], 0x30
jne case.0x40fd16.34
or byte [ebp - 1], 0x10
jmp case.0x40fd16.34
test byte [ebp - 7], 0xc
jne case.0x40fd16.34
or byte [ebp - 1], 4
jmp case.0x40fd16.34
test byte [ebp - 7], 0xc0
jne case.0x40fd16.34
or byte [ebp - 1], 0x40
jmp case.0x40fd16.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.00491a11
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40fd16.34
mov eax, esi
call fcn.00409e50
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x40fe2d
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x40fdc3
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x40fe27
cmp eax, 0x20
je 0x40fdd1
cmp eax, 9
jne 0x41053f
mov eax, edi
call fcn.00409e50
push 4
mov esi, eax
push str.Down
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
je 0x40fe06
push 2
push 0x4a4ecc
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x41053f
push 0x7d
push esi
call fcn.00491a11
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40fd16.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 0x4a6910
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40fed1
lea ecx, [ebp - 0x40]
push ecx
mov word [edi], ax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [esi + 0xa]
call fcn.00409e50
call fcn.00411b70
mov ecx, 0x7d
mov word [edi], cx
mov ecx, dword [ebp - 0x14]
add esp, 0x18
cmp ecx, 1
jge 0x40feac
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xef]
mov edx, dword [ebp - 0x40]
push edx
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x38]
call fcn.00412750
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x410619
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 7]
push 0
push eax
mov eax, dword [ebp - 0xe]
push edx
push 0
push eax
jmp 0x410534
push 3
push 0x4a7f0c
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40fef7
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x410619
push 4
push 0x4a7e5c
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40ff2d
lea eax, [esi + 8]
call fcn.00409e50
cmp eax, edi
jne 0x41053f
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x410619
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x30], ebx
mov ebx, 0x4a781c
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
mov word [edi], cx
call fcn.00409e00
mov ebx, eax
test ebx, ebx
je 0x40fff7
movzx edx, word [ebx]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 8]
mov dword [ebp - 0x58], edx
sar eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebx + 2]
call fcn.00409e50
sub edi, eax
sar edi, 1
mov dword [ebp - 0x54], eax
je 0x40fff7
push 4
mov edi, eax
push str.Down
push edi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40ffd4
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x40ffb6
mov dword [ebp - 0x34], eax
jmp 0x40fff7
xor ecx, ecx
cmp word [edi], 0x52
sete cl
push ecx
call fcn.004924d9
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x40fff7
push 0x4a4ecc
push edi
call fcn.00490e99
add esp, 8
test eax, eax
jne 0x40ffeb
mov dword [ebp - 0x18], esi
jmp 0x40fff7
mov esi, edi
call fcn.0040f280
mov dword [ebp - 0x14], eax
mov esi, eax
mov eax, dword [0x4ca48c]
lea edx, [ebp - 0xe]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
call fcn.004145e0
add esp, 4
test ebx, ebx
je 0x41001c
mov ax, word [ebp - 0x58]
mov word [ebx], ax
mov edx, dword [ebp - 0x24]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x41053f
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test bl, bl
jne 0x41048c
test di, di
jne 0x41048c
mov eax, 1
cmp dword [ebp - 0x30], eax
jne 0x4100b8
cmp dword [ebp - 0x18], eax
je 0x41053f
cmp dword [ebp + 0x14], 0
je 0x410093
test esi, esi
jle 0x41053f
mov edi, dword [ebp + 8]
jmp 0x410070
movzx eax, word [edi]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x410070
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
mov edx, dword [ebp + 8]
push eax
mov ax, word [edx]
call fcn.00410f00
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x410619
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea eax, [ebp - 7]
push eax
lea ecx, [ebp - 0x18]
sete bl
push ecx
call fcn.00414690
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x410301
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x4100f6
cmp dword [ebp - 0x18], edi
jne 0x4100f1
mov byte [ebp - 9], al
jmp 0x4100f6
call fcn.0040f450
cmp dword [0x4cbddc], 0
je 0x410109
mov al, byte [0x4ca46f]
jmp 0x41024a
cmp dword [0x4cb688], 0
je 0x41011c
mov al, byte [0x4cb555]
jmp 0x41024a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov edx, 0x8000
test dx, ax
je 0x41013b
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x410150
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x410165
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x41017a
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x41018f
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x4101a4
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x4101b6
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x4101c8
or byte [ebp + 0xb], 0x80
cmp dword [0x4cb688], 0
je 0x410246
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4cb555]
cmp byte [0x4cb57a], 0
je 0x410200
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca440]
cmp eax, 0x14
jae 0x410200
mov dl, byte [0x4cb57a]
not dl
and bl, dl
test bl, bl
je 0x410246
mov cl, byte [0x4cb557]
mov al, bl
not al
and byte [0x4cb555], al
and byte [0x4cb556], al
and cl, al
mov al, cl
mov byte [0x4cb557], cl
mov ecx, 0x4cb580
call fcn.00413ac0
mov eax, dword [0x4ca460]
test eax, eax
je 0x410246
test byte [eax + 8], bl
je 0x410246
mov dword [0x4ca460], 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.004132b0
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x41053f
mov esi, dword [ebp - 0xe]
mov ebx, eax
mov ecx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push edi
push 0
push esi
push ecx
call fcn.00411460
add esp, 0x18
cmp dword [0x4cbddc], 0
jne 0x4102ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cd01c]
mov edx, dword [0x4c7a54]
cmp eax, dword [edx + 0xd8]
jbe 0x4102ef
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4102e4
push 1
push 0xffffffffffffffff
mov dword [0x4c795c], 0
call fcn.00401430
add esp, 8
mov dword [0x4c795c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cd01c], eax
dec ebx
jne 0x410271
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x41036f
push 4
push str.ASC
push esi
call fcn.0049109d
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x410372
test ebx, ebx
jne 0x410372
lea eax, [esi + 6]
call fcn.00409e50
call fcn.00411010
cmp dword [0x4cbddc], 2
jne 0x410356
mov ecx, dword [0x4c7a54]
mov esi, dword [ecx + 0x60]
call fcn.00412ec0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
mov edx, dword [0x4c7a54]
mov esi, dword [edx + 0x5c]
call fcn.00412ec0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x41053f
push 2
push 0x4a7f2c
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x41053f
push 0x10
push eax
add esi, 4
push esi
call fcn.0049238f
add esp, 0xc
cmp eax, 0x10000
jb 0x4103d5
sub eax, 0x10000
mov ecx, eax
shr ecx, 0xa
and ecx, 0x3ff
mov edx, eax
sub ecx, 0x2800
and edx, 0x3ff
sub edx, 0x2400
movzx edi, cx
movzx esi, dx
jmp 0x4103da
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x410407
movzx eax, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push eax
push 0x102
push ebx
call edi
test si, si
je 0x410452
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x410452
cmp dword [0x4cbddc], 2
je 0x410432
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040f4d0
add esp, 4
test si, si
je 0x410452
push ebx
mov edi, esi
call fcn.0040f4d0
add esp, 4
jmp 0x410452
push 0xa
lea ecx, [ebp - 0x72]
push ecx
mov edx, 0x30
push eax
mov word [ebp - 0x74], dx
call fcn.00490c15
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.00411010
cmp dword [0x4cbddc], 2
jne 0x410474
mov edx, dword [0x4c7a54]
mov esi, dword [edx + 0x60]
call fcn.00412ec0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
mov eax, dword [0x4c7a54]
mov esi, dword [eax + 0x5c]
call fcn.00412ec0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00413b90
mov byte [ebp - 0x3c], al
test al, al
je 0x410511
cmp dword [ebp + 0x14], 0
jne 0x410511
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4104d1
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x4104c1
or byte [0x4cbdb6], al
or byte [ebp - 7], al
jmp 0x410511
cmp ecx, 2
jne 0x4104cc
or byte [0x4cbdb7], al
or byte [ebp - 7], al
jmp 0x410511
cmp ecx, 1
jne 0x410511
mov al, bl
call fcn.0040f450
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4cbdb6]
not al
and byte [0x4cbdb7], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4cbdb6], cl
cmp bl, 0xa5
jne 0x41050b
cmp dword [0x4ca488], 3
jne 0x41050b
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
push 0
push SysReAllocString
push SysReAllocString
push ecx
mov ecx, dword [ebp - 7]
push edx
mov edx, dword [ebp - 0xe]
push eax
push ecx
push edi
push edx
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.00410aa0
add esp, 0x24
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x410619
cmp esi, 2
jne 0x4105a2
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41055a.11
jmp dword [eax*4 + 0x410a80]
cmp word [edi + 2], 0xa
jne case.0x41055a.10
add edi, 2
mov dword [ebp + 8], edi
mov byte [ebp - 0xe], 0xd
jmp 0x4105d2
mov byte [ebp - 0xe], 8
jmp 0x4105d2
mov byte [ebp - 0xe], 9
jmp 0x4105d2
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x410602
movzx eax, word [edi]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x410619
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x4105b2
test esi, esi
jne 0x4105b2
mov al, 1
jmp 0x4105b4
xor al, al
mov ecx, dword [0x4ca48c]
mov si, word [edi]
push eax
push ecx
lea edx, [ebp - 1]
push edx
call fcn.00414510
add esp, 0xc
mov byte [ebp - 0xe], al
test al, al
je 0x410584
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov al, byte [ebp - 1]
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
call fcn.00410aa0
add esp, 0x24
jmp 0x410619
or al, byte [ebp - 7]
movzx ecx, al
mov ax, word [edi]
push ecx
mov ecx, 1
call fcn.00410f00
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4cbda3], dl
jne 0x40fc70
mov edi, dword [0x4cbddc]
test edi, edi
je 0x4106f4
cmp byte [0x4ca46d], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4106b7
cmp dword [0x4ca480], 0
jbe 0x4106b7
cmp byte [0x4ca467], 0
je 0x41066d
xor eax, eax
jmp 0x410679
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [0x4cbdb7]
movzx edx, byte [0x4ca46f]
or al, byte [ebp - 7]
push 1
push 1
mov byte [ebp - 0x14], al
mov esi, dword [ebp - 0x14]
push 0
push edx
push esi
mov eax, 0xffc3d44d
call fcn.004132b0
add esp, 0x14
lea eax, [ebp + 8]
push esi
push eax
call fcn.00412d70
mov edi, dword [0x4cbddc]
add esp, 8
dec edi
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4ca47c], edi
jbe 0x4106df
mov ecx, dword [0x4ca484]
push ecx
call fcn.00491536
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4cbddc], edi
call fcn.00412ec0
jmp 0x4108c3
cmp dword [0x4cb688], 0
je 0x410705
mov cl, byte [0x4cb557]
jmp 0x410729
cmp dword [0x4c7954], 0
jl 0x410726
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ccfd4]
cmp eax, dword [0x4c7954]
jb 0x410726
xor cl, cl
jmp 0x410729
mov cl, byte [ebp - 2]
or cl, byte [0x4cbdb7]
cmp byte [0x4ca467], 0
je 0x410751
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 0x41075e
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4cb688], 0
je 0x410771
mov al, byte [0x4cb555]
jmp 0x41089e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov edx, 0x8000
test dx, ax
je 0x410790
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x4107a5
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x4107ba
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x4107cf
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x4107e4
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x4107f9
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x41080b
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x41081d
or byte [ebp + 0xb], 0x80
cmp dword [0x4cb688], 0
je 0x41089b
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4cb555]
cmp byte [0x4cb57a], 0
je 0x410855
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca440]
cmp eax, 0x14
jae 0x410855
mov dl, byte [0x4cb57a]
not dl
and bl, dl
test bl, bl
je 0x41089b
mov cl, byte [0x4cb557]
mov al, bl
not al
and byte [0x4cb555], al
and byte [0x4cb556], al
and cl, al
mov al, cl
mov byte [0x4cb557], cl
mov ecx, 0x4cb580
call fcn.00413ac0
mov eax, dword [0x4ca460]
test eax, eax
je 0x41089b
test byte [eax + 8], bl
je 0x41089b
mov dword [0x4ca460], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4cb578]
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.004132b0
add esp, 0x14
xor edi, edi
cmp dword [0x4cb688], edi
je 0x4108e3
mov al, byte [0x4cb556]
mov cl, al
xor cl, byte [0x4cb555]
and cl, al
not cl
and al, cl
mov byte [0x4cb556], al
mov ebx, 1
cmp dword [ebp - 0x44], ebx
jne 0x41095d
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x41095d
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x41091c
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00411460
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00411460
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cc4e4]
jne 0x41095d
push ebx
push 0xffffffffffffffff
mov dword [0x4c795c], edi
call fcn.00401430
add esp, 8
mov dword [0x4c795c], ebx
cmp byte [ebp - 0xf], 0
je 0x410975
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x4cc4e4]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x41098f
cmp byte [ebp - 0x19], 0
jne 0x41098f
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4cbd6e], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4109b4
mov edx, dword [ebp - 0x5c]
cmp dword [0x4cd018], edx
je 0x4109e5
call fcn.00403a30
test eax, eax
je 0x4109e5
push ebx
push 0xffffffffffffffff
call fcn.00401430
jmp 0x4109e2
cmp eax, ebx
jne 0x4109e5
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cc4e4]
jne 0x4109e5
push ebx
push 0xffffffffffffffff
mov dword [0x4c795c], edi
call fcn.00401430
mov dword [0x4c795c], ebx
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret