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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x40fae2
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a8978]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40ea0b
push 7
push str.Blind
push ebx
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40ea0b
add ebx, 7
mov byte [0x4ab1e1], 1
mov dword [ebp + 8], ebx
jmp 0x40ea16
mov byte [0x4ab1e1], 0
test edi, edi
jne 0x40ea3a
push 6
push 0x49c268
push ebx
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40ea3a
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 6
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
cmp eax, 1
je 0x40ea53
cmp eax, 3
jne 0x40eab0
call fcn.00408c00
test al, al
jne 0x40ea85
test edi, edi
jne 0x40ea7c
call fcn.00408c70
test al, al
je 0x40ea7c
push str.Click
mov eax, ebx
call fcn.004740a0
add esp, 4
test eax, eax
jne 0x40ea85
mov dword [ebp + 0x10], 1
jmp 0x40eab0
cmp dword [ebp + 0x10], 3
jne 0x40ea94
mov dword [ebp + 0x10], 2
jmp 0x40eab0
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40eaa6
cmp dword [esi + 0x64], eax
jge 0x40eaa6
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 0x40eb0b
mov edx, dword [ebp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x40ec41
cmp edi, dword [0x4ad250]
je 0x40ec41
mov esi, dword [ebp + 0x14]
call fcn.00478b40
test al, al
jne 0x40ec3e
mov eax, dword [0x4ad250]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40ec3e
test byte [0x4ad865], 0xc0
je 0x40ebf9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad85c]
cmp eax, 0x32
jae 0x40ebf9
cmp dword [ebp + 0x10], 2
je 0x40ebf9
cmp byte [0x4ab1e1], bl
jne 0x40ebf9
cmp edi, 2
je 0x40ebf9
cmp byte [0x4ada46], bl
je 0x40ebf9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ad250]
jne 0x40ebf9
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49c514
je 0x40ebce
call fcn.00409380
test eax, eax
setne al
test al, al
je 0x40ebf9
mov ebx, 1
xor edi, edi
jmp 0x40eb90
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40ebb2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebf9
push ebx
push 0x8000012f
mov dword [0x4a88ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], ebx
jmp 0x40eb90
call fcn.00409380
test eax, eax
je 0x40ebf9
inc eax
mov edi, 0x49c518
call fcn.00409380
test eax, eax
je 0x40eb84
cmp byte [eax], 0x7b
je 0x40eb84
mov edi, 0x49c514
call fcn.00409380
test eax, eax
jne 0x40ebd7
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40ec3e
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0xac]
push eax
push ebx
mov dword [ebp - 0xac], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40ec3e
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40ec3e
push 0
push eax
call esi
mov ebx, eax
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4ab208], eax
push eax
xor eax, eax
call fcn.00412f50
add esp, 4
push 1
mov dword [0x4ab204], eax
call fcn.004129e0
mov bl, al
and byte [0x4acb27], bl
add esp, 4
cmp dword [0x4ac3fc], 0
mov byte [ebp - 8], bl
je 0x40ec97
mov cl, byte [0x4ac2c9]
mov dl, byte [0x4ac2cb]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 9], cl
jmp 0x40ecc2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad85c]
cmp eax, dword [0x4a88e4]
jae 0x40ecb7
mov al, byte [0x4ad865]
and al, bl
mov byte [ebp - 2], al
jmp 0x40ecbe
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 9], 0
mov cl, byte [0x4acb26]
not al
and al, bl
and cl, al
mov al, byte [0x4ab1e1]
mov byte [0x4acb26], cl
test al, al
je 0x40ece9
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40ecf0
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40ed17
test al, al
jne 0x40ed17
cmp dword [ebp + 0xc], 2
je 0x40ed17
push 2
mov bl, 0x14
call fcn.00412220
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x40ed1e
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4acb4c], esi
test esi, esi
je 0x40ed90
cmp esi, 1
jne 0x40ed41
mov eax, 0x36b0
mov dword [0x4ab1f8], 0x1f4
jmp 0x40ed50
mov eax, 0x2ee0
mov dword [0x4ab1f8], 0x5dc
call fcn.004908c0
mov eax, esp
mov dword [0x4ab200], eax
mov eax, SysReAllocString
mov byte [0x4ab1e9], bl
mov dword [0x4ab1ec], eax
mov dword [0x4ab1f0], eax
mov byte [0x4ab1e8], 0
mov dword [0x4ab1fc], 0
mov byte [0x4ab1e3], 0
mov byte [0x4ab1e2], 1
mov eax, dword [0x4a8988]
mov cl, byte [0x4acade]
mov byte [ebp - 0x1e], cl
cmp eax, 8
je 0x40edac
cmp eax, 0xa
jne 0x40ee8a
test esi, esi
jne 0x40ee8a
cmp dword [ebp + 0x14], esi
jne 0x40ee8a
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4acade], 1
mov edx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [edx], bl
je 0x40f775
cmp dword [0x4acb4c], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 0xa], 0
jne 0x40ee49
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ad89c]
mov ecx, dword [0x4a8978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40ee49
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40ee42
push 1
push 0xffffffffffffffff
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], 1
call edi
mov dword [0x4ad89c], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40f68a
movsx eax, byte [esi]
push eax
push 0x49c51c
call fcn.00487e91
add esp, 8
test eax, eax
je 0x40f6df
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40ee83.34
movzx eax, byte [eax + 0x40fb0c]
jmp dword [eax*4 + 0x40faf0]
mov byte [ebp - 8], 0
jmp 0x40edd0
test byte [ebp - 7], 3
jne case.0x40ee83.34
or bl, 1
jmp 0x40f759
test byte [ebp - 7], 0x30
jne case.0x40ee83.34
or bl, 0x10
jmp 0x40f759
test byte [ebp - 7], 0xc
jne case.0x40ee83.34
or bl, 4
jmp 0x40f759
test byte [ebp - 7], 0xc0
jne case.0x40ee83.34
or bl, 0x40
jmp 0x40f759
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00487e91
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40ee83.34
mov al, byte [esi]
cmp al, 0x20
je 0x40ef01
cmp al, 9
jne 0x40ef04
inc esi
jmp 0x40eef7
mov eax, edi
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40ef8a
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40ef27
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40ef87
cmp al, 0x20
je 0x40ef33
cmp al, 9
jne 0x40f67f
mov al, byte [edi]
cmp al, 0x20
je 0x40ef3d
cmp al, 9
jne 0x40ef40
inc edi
jmp 0x40ef33
push 4
push str.Down
push edi
call fcn.00487920
add esp, 0xc
test eax, eax
je 0x40ef6c
push 2
push 0x49ab68
push edi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f67f
push 0x7d
push edi
call fcn.00487e91
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40ee83.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49b994
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f030
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40efb3
cmp cl, 9
jne 0x40efb6
inc eax
jmp 0x40efa7
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00410c00
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40f00d
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0xcf]
mov eax, dword [ebp - 0x34]
push eax
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x3c]
call fcn.00411800
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40f757
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
push edx
mov edx, dword [ebp - 0x3c]
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
push eax
push 0
mov al, bl
jmp 0x40f673
push 3
push 0x49c524
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f056
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40f757
push 4
push str.Text
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f097
add esi, 4
lea ecx, [ecx]
mov al, byte [esi]
cmp al, 0x20
je 0x40f07a
cmp al, 9
jne 0x40f07d
inc esi
jmp 0x40f070
cmp esi, edi
jne 0x40f67f
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40f757
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov edi, 0x49c14c
mov eax, esi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x24], 1
mov byte [ecx], 0
call fcn.00409380
mov ebx, eax
test ebx, ebx
je 0x40f163
mov dl, byte [ebx]
sub eax, esi
mov byte [ebp - 0x1d], dl
mov byte [ebx], 0
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
mov al, byte [edi]
cmp al, 0x20
je 0x40f0e1
cmp al, 9
jne 0x40f0e4
inc edi
jmp 0x40f0d7
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x40f163
push 4
push str.Down
push edi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f13b
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f11e
mov dword [ebp - 0x38], eax
jmp 0x40f163
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00488ab2
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40f163
push 0x49ab68
push edi
call fcn.00486ea1
add esp, 8
test eax, eax
jne 0x40f156
mov dword [ebp - 0x18], 1
jmp 0x40f163
mov esi, edi
call fcn.0040e430
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4ab208]
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x30]
mov edx, esi
call fcn.00413480
add esp, 4
test ebx, ebx
je 0x40f185
mov al, byte [ebp - 0x1d]
mov byte [ebx], al
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, 1
mov byte [ecx], 0x7d
cmp edi, eax
jl 0x40f67f
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40f5c9
cmp word [ebp - 0x30], 0
jne 0x40f5c9
cmp dword [ebp + 8], eax
jne 0x40f216
cmp dword [ebp - 0x18], eax
je 0x40f67f
cmp dword [ebp + 0x14], 0
je 0x40f1f3
test edi, edi
jle 0x40f67f
lea ecx, [ecx]
movsx edx, byte [esi]
mov eax, dword [ebp + 0x14]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
dec edi
jne 0x40f1d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov cl, byte [ebp - 1]
or cl, byte [ebp - 7]
movzx eax, byte [esi]
movzx edx, cl
push edx
push eax
mov eax, edi
call fcn.0040ffa0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40f757
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x18]
sete bl
push edx
call fcn.00413530
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40f43a
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40f254
cmp dword [ebp - 0x18], edi
jne 0x40f24f
mov byte [ebp - 0xa], al
jmp 0x40f254
call fcn.0040e600
cmp dword [0x4acb4c], 0
je 0x40f267
mov al, byte [0x4ab1e9]
jmp 0x40f382
cmp dword [0x4ac3fc], 0
je 0x40f27a
mov al, byte [0x4ac2c9]
jmp 0x40f382
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f299
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f2ae
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f2c3
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f2d8
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f2ed
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f302
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f314
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f326
or byte [ebp + 0xb], 0x80
cmp dword [0x4ac3fc], 0
je 0x40f37e
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ac2c9]
je 0x40f37e
mov cl, byte [0x4ac2cb]
mov al, bl
not al
and byte [0x4ac2c9], al
and byte [0x4ac2ca], al
and cl, al
mov al, cl
mov byte [0x4ac2cb], cl
mov ecx, 0x4ac2f0
call fcn.00412b10
mov eax, dword [0x4ab1dc]
test eax, eax
je 0x40f37e
test byte [eax + 8], bl
je 0x40f37e
mov dword [0x4ab1dc], 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.00412330
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40f67f
mov ebx, dword [ebp - 0xe]
mov edi, eax
lea esp, [esp]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.004104f0
add esp, 0x18
cmp dword [0x4acb4c], 0
jne 0x40f42c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ad89c]
mov ecx, dword [0x4a8978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40f42c
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40f425
push 1
push 0xffffffffffffffff
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], 1
call esi
mov dword [0x4ad89c], eax
dec edi
jne 0x40f3b0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp edi, 4
jbe 0x40f4b1
push 4
push str.ASC
push esi
call fcn.00487920
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40f4b4
test ebx, ebx
jne 0x40f4b4
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40f46f
cmp cl, 9
jne 0x40f472
inc eax
jmp 0x40f463
call fcn.004100c0
cmp dword [0x4acb4c], 2
jne 0x40f498
mov eax, dword [0x4a8978]
mov esi, dword [eax + 0x60]
call fcn.00411f70
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov ecx, dword [0x4a8978]
mov esi, dword [ecx + 0x5c]
call fcn.00411f70
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40f67f
push 2
push 0x49c538
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x40f67f
push 0x10
push eax
add esi, 2
push esi
call fcn.00488945
add esp, 0xc
cmp eax, 0x10000
jb 0x40f517
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 0x40f51c
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40f549
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 0x40f58f
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40f58f
cmp dword [0x4acb4c], 2
je 0x40f574
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040e680
add esp, 4
test si, si
je 0x40f58f
push ebx
mov edi, esi
call fcn.0040e680
add esp, 4
jmp 0x40f58f
push 0xa
lea ecx, [ebp - 0x5b]
push ecx
push eax
mov byte [ebp - 0x5c], 0x30
call fcn.00486b32
add esp, 0xc
lea eax, [ebp - 0x5c]
call fcn.004100c0
cmp dword [0x4acb4c], 2
jne 0x40f5b1
mov edx, dword [0x4a8978]
mov esi, dword [edx + 0x60]
call fcn.00411f70
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov eax, dword [0x4a8978]
mov esi, dword [eax + 0x5c]
call fcn.00411f70
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
mov esi, dword [ebp - 0x30]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00412be0
mov byte [ebp - 0x40], al
test al, al
je 0x40f651
cmp dword [ebp + 0x14], 0
jne 0x40f651
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40f611
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0xa], bl
cmp ecx, 1
jne 0x40f601
or byte [0x4acb26], al
or byte [ebp - 7], al
jmp 0x40f651
cmp ecx, 2
jne 0x40f60c
or byte [0x4acb27], al
or byte [ebp - 7], al
jmp 0x40f651
cmp ecx, 1
jne 0x40f651
mov al, bl
call fcn.0040e600
mov al, byte [ebp - 0x40]
mov cl, byte [0x4acb26]
not al
and byte [0x4acb27], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4acb26], cl
cmp bl, 0xa5
jne 0x40f64b
cmp dword [0x4ab204], 3
jne 0x40f64b
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push 0
push SysReAllocString
push SysReAllocString
push ecx
mov ecx, dword [ebp - 7]
push edx
push eax
mov al, byte [ebp - 1]
push ecx
push esi
mov ecx, edi
mov edx, dword [ebp - 0xe]
push edx
call fcn.0040fb90
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f757
cmp edi, 2
jne 0x40f6df
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40f69a.11
jmp dword [eax*4 + 0x40fb6c]
cmp byte [esi + 1], 0xa
jne case.0x40f69a.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40f710
mov byte [ebp - 0xe], 8
jmp 0x40f710
mov byte [ebp - 0xe], 9
jmp 0x40f710
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40f73f
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f757
or bl, byte [ebp - 7]
je 0x40f6ec
test edi, edi
jne 0x40f6ec
mov al, 1
jmp 0x40f6ee
xor al, al
mov ecx, dword [0x4ab208]
mov edx, dword [ebp + 8]
mov bl, byte [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.004133c0
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40f6c1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push SysReAllocString
push SysReAllocString
push eax
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
mov al, bl
call fcn.0040fb90
add esp, 0x24
jmp 0x40f757
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.0040ffa0
add esp, 8
xor bl, bl
mov byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xa]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4acb13], cl
jne 0x40ede0
mov eax, dword [0x4acb4c]
test eax, eax
je 0x40f82c
cmp byte [0x4ab1e3], 0
mov dword [ebp + 8], 0xffffffff
jne 0x40f7f1
cmp dword [0x4ab1fc], 0
jbe 0x40f7f1
cmp byte [0x4ab1e1], 0
je 0x40f7a8
xor eax, eax
jmp 0x40f7b4
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4acb27]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4ab1e9]
mov esi, dword [ebp - 0x14]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00412330
add esp, 0x14
lea ecx, [ebp + 8]
push esi
push ecx
call fcn.00411e20
mov eax, dword [0x4acb4c]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4ab1f8], eax
jbe 0x40f817
mov edx, dword [0x4ab200]
push edx
call fcn.00486eb8
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4acb4c], edi
call fcn.00411f70
jmp 0x40f9d5
cmp dword [0x4ac3fc], 0
je 0x40f83d
mov cl, byte [0x4ac2cb]
jmp 0x40f861
cmp dword [0x4a88e4], 0
jl 0x40f85e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad85c]
cmp eax, dword [0x4a88e4]
jb 0x40f85e
xor cl, cl
jmp 0x40f861
mov cl, byte [ebp - 2]
or cl, byte [0x4acb27]
cmp byte [0x4ab1e1], 0
je 0x40f889
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 0x40f896
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4ac3fc], 0
je 0x40f8a9
mov al, byte [0x4ac2c9]
jmp 0x40f9b0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f8c8
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f8dd
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f8f2
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f907
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f91c
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f931
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f943
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f955
or byte [ebp + 0xb], 0x80
cmp dword [0x4ac3fc], 0
je 0x40f9ad
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ac2c9]
je 0x40f9ad
mov cl, byte [0x4ac2cb]
mov al, bl
not al
and byte [0x4ac2c9], al
and byte [0x4ac2ca], al
and cl, al
mov al, cl
mov byte [0x4ac2cb], cl
mov ecx, 0x4ac2f0
call fcn.00412b10
mov eax, dword [0x4ab1dc]
test eax, eax
je 0x40f9ad
test byte [eax + 8], bl
je 0x40f9ad
mov dword [0x4ab1dc], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4ac2ec]
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.00412330
add esp, 0x14
xor edi, edi
cmp dword [0x4ac3fc], edi
je 0x40f9f5
mov al, byte [0x4ac2ca]
mov cl, al
xor cl, byte [0x4ac2c9]
and cl, al
not cl
and al, cl
mov byte [0x4ac2ca], al
mov ebx, 1
cmp dword [ebp - 0x48], ebx
jne 0x40fa6f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40fa6f
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40fa2e
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.004104f0
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.004104f0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad250]
jne 0x40fa6f
push ebx
push 0xffffffffffffffff
mov dword [0x4a88ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], ebx
cmp byte [ebp - 0xf], 0
je 0x40fa87
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4ad250]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40faa1
cmp byte [ebp - 0x1e], 0
jne 0x40faa1
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4acade], 0
cmp dword [ebp + 0x10], ebx
jne 0x40fad3
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad250]
jne 0x40fad3
push ebx
push 0xffffffffffffffff
mov dword [0x4a88ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], ebx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xb8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret