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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x40ee2b
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a78d4]
mov dword [ebp - 0x34], esi
test edi, edi
jne 0x40ddad
push 7
push str.Blind
push ebx
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40ddad
add ebx, 7
mov byte [0x4aa188], 1
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
cmp eax, 1
je 0x40dd72
cmp eax, 3
jne 0x40dde3
cmp dword [0x4adab4], 0
je 0x40ddb9
call fcn.00408dc0
test al, al
jne 0x40ddb6
test edi, edi
jne 0x40dda4
call fcn.00408e20
test al, al
je 0x40dda4
push str.Click
mov eax, ebx
call fcn.00473260
add esp, 4
test eax, eax
jne 0x40ddb6
mov dword [ebp + 0x10], 1
jmp 0x40dde3
mov byte [0x4aa188], 0
jmp 0x40dd59
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40ddc7
mov dword [ebp + 0x10], 2
jmp 0x40dde3
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40ddd9
cmp dword [esi + 0x64], eax
jge 0x40ddd9
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0xf], 0
test esi, esi
je 0x40de3b
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40df67
cmp edi, dword [0x4ad284]
je 0x40df67
call fcn.00477b60
test al, al
jne 0x40df67
mov edx, dword [0x4ad284]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40df67
test byte [0x4ad8e1], 0xc0
je 0x40df22
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad8d8]
cmp eax, 0x32
jae 0x40df22
cmp dword [ebp + 0x10], 2
je 0x40df22
cmp byte [0x4aa188], bl
jne 0x40df22
cmp byte [0x4ada9e], bl
je 0x40df22
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ad284]
jne 0x40df22
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49b36c
je 0x40def3
call fcn.004095a0
test eax, eax
setne al
test al, al
je 0x40df22
jmp 0x40deb0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40ded2
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40df22
push 1
push 0x8000012f
mov dword [0x4a78b0], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], 1
jmp 0x40deb0
call fcn.004095a0
test eax, eax
je 0x40df22
lea esp, [esp]
inc eax
mov edi, 0x49b370
call fcn.004095a0
test eax, eax
je 0x40deb0
cmp byte [eax], 0x7b
je 0x40deb0
mov edi, 0x49b36c
call fcn.004095a0
test eax, eax
jne 0x40df00
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40df67
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0xb0]
push eax
push ebx
mov dword [ebp - 0xb0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40df67
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40df67
push 0
push eax
call esi
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4aa1ac], eax
push eax
xor eax, eax
call fcn.004121e0
add esp, 4
push 1
mov dword [0x4aa1a8], eax
call fcn.00411ca0
mov bl, al
and byte [0x4acb81], bl
add esp, 4
cmp dword [0x4ab3a0], 0
mov byte [ebp - 8], bl
je 0x40dfbd
mov cl, byte [0x4ab26d]
mov dl, byte [0x4ab26f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dfe8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad8d8]
cmp eax, dword [0x4a78a8]
jae 0x40dfdd
mov al, byte [0x4ad8e1]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dfe4
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4acb80]
not al
and al, bl
and cl, al
mov al, byte [0x4aa188]
mov byte [0x4acb80], cl
test al, al
je 0x40e00f
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40e016
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0xd3], 0
je 0x40e03a
test al, al
jne 0x40e03a
push 2
mov bl, 0x14
call fcn.00411530
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x40e041
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4acb84], esi
test esi, esi
je 0x40e0b3
cmp esi, 1
jne 0x40e064
mov eax, 0x36b0
mov dword [0x4aa19c], 0x1f4
jmp 0x40e073
mov eax, 0x2ee0
mov dword [0x4aa19c], 0x5dc
call fcn.0048f810
mov eax, esp
mov dword [0x4aa1a4], eax
mov eax, SysReAllocString
mov byte [0x4aa194], bl
mov dword [0x4aa18c], eax
mov dword [0x4aa190], eax
mov byte [0x4aa18b], 0
mov dword [0x4aa1a0], 0
mov byte [0x4aa18a], 0
mov byte [0x4aa189], 1
mov eax, dword [0x4a794c]
mov dl, byte [0x4abb7c]
mov byte [ebp - 0x25], dl
cmp eax, 8
je 0x40e0cb
cmp eax, 0xa
jne 0x40e106
test esi, esi
jne 0x40e106
cmp dword [ebp + 0x14], esi
jne 0x40e106
test byte [0x4ae36c], 1
mov byte [ebp - 8], 1
jne 0x40e10c
or dword [0x4ae36c], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae368], eax
jmp 0x40e111
mov byte [ebp - 8], 0
jmp 0x40e120
mov eax, dword [0x4ae368]
test eax, eax
je 0x40e119
push 1
call eax
mov byte [0x4abb7c], 1
mov eax, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [eax], bl
je 0x40eab3
cmp dword [0x4acb84], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x40e199
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ad914]
mov ecx, dword [0x4a78d4]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e199
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e192
push 1
push 0xffffffffffffffff
mov dword [0x4a78b0], 0
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], 1
call edi
mov dword [0x4ad914], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e9c9
movsx eax, byte [esi]
push eax
push str._
call fcn.00486dd1
add esp, 8
test eax, eax
je 0x40ea02
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e1d3.34
movzx eax, byte [eax + 0x40ee54]
jmp dword [eax*4 + 0x40ee38]
test byte [ebp - 7], 3
jne case.0x40e1d3.34
or bl, 1
jmp 0x40ea97
test byte [ebp - 7], 0x30
jne case.0x40e1d3.34
or bl, 0x10
jmp 0x40ea97
test byte [ebp - 7], 0xc
jne case.0x40e1d3.34
or bl, 4
jmp 0x40ea97
test byte [ebp - 7], 0xc0
jne case.0x40e1d3.34
or bl, 0x40
jmp 0x40ea97
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00486dd1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40e1d3.34
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40e24a
cmp al, 9
jne 0x40e24d
inc esi
jmp 0x40e240
mov edi, dword [ebp - 0x18]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], eax
jne 0x40e2d7
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40e273
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 1
jmp 0x40e2d4
cmp al, 0x20
je 0x40e280
cmp al, 9
jne 0x40e9be
nop
mov al, byte [edi]
cmp al, 0x20
je 0x40e28a
cmp al, 9
jne 0x40e28d
inc edi
jmp 0x40e280
push 4
push str.Down
push edi
call fcn.00486860
add esp, 0xc
test eax, eax
je 0x40e2b9
push 2
push 0x499b38
push edi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e9be
push 0x7d
push edi
call fcn.00486dd1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40e1d3.34
sub eax, esi
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x18]
push 5
push 0x49a954
push esi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e38f
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e300
cmp cl, 9
jne 0x40e303
inc eax
jmp 0x40e2f4
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0040fe90
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e35a
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0xcf]
mov eax, dword [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x38]
call fcn.00410b00
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov edx, dword [ebp - 0x44]
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 - 0x14]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
mov al, bl
call fcn.0040eed0
mov ecx, dword [ebp - 0x18]
add esp, 0x24
mov dword [ebp + 8], ecx
jmp 0x40ea95
push 3
push 0x49b37c
push esi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e3b5
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40ea95
push 4
push str.Text
push esi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e3f7
add esi, 4
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40e3da
cmp al, 9
jne 0x40e3dd
inc esi
jmp 0x40e3d0
cmp esi, edi
jne 0x40e9be
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov edi, 0x49b110
mov eax, esi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x24], 1
mov byte [ecx], 0
call fcn.004095a0
mov ebx, eax
test ebx, ebx
je 0x40e4c3
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 0x40e441
cmp al, 9
jne 0x40e444
inc edi
jmp 0x40e437
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x40e4c3
push 4
push str.Down
push edi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e49b
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x14], eax
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e47e
mov dword [ebp - 0x3c], eax
jmp 0x40e4c3
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00487923
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x40e4c3
push 0x499b38
push edi
call fcn.00485de1
add esp, 8
test eax, eax
jne 0x40e4b6
mov dword [ebp - 0x14], 1
jmp 0x40e4c3
mov esi, edi
call fcn.0040d7b0
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4aa1ac]
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x4c]
mov edx, esi
call fcn.00412710
add esp, 4
test ebx, ebx
je 0x40e4e5
mov al, byte [ebp - 0x1d]
mov byte [ebx], al
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov byte [ecx], 0x7d
mov ecx, 1
cmp eax, ecx
jl 0x40e9be
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x4c]
test bl, bl
jne 0x40e90a
test di, di
jne 0x40e90a
cmp dword [ebp + 8], ecx
jne 0x40e577
cmp dword [ebp - 0x14], ecx
je 0x40e9be
cmp dword [ebp + 0x14], 0
je 0x40e553
test eax, eax
jle 0x40e9be
mov ebx, dword [ebp + 0x14]
mov edi, eax
movsx edx, byte [esi]
push 0
push edx
push 0x102
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
dec edi
jne 0x40e533
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
movzx edx, byte [esi]
movzx ecx, al
mov eax, dword [ebp - 0x24]
push ecx
push edx
call fcn.0040f280
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [ebp + 8], ecx
jmp 0x40ea95
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 7]
push eax
lea ecx, [ebp - 0x14]
sete bl
push ecx
call fcn.004127c0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e76c
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e5b5
cmp dword [ebp - 0x14], edi
jne 0x40e5b0
mov byte [ebp - 9], al
jmp 0x40e5b5
call fcn.0040d980
cmp dword [0x4acb84], 0
je 0x40e5c9
mov bl, byte [0x4aa194]
jmp 0x40e6bb
cmp dword [0x4ab3a0], 0
je 0x40e5dd
mov bl, byte [0x4ab26d]
jmp 0x40e6bb
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e5f8
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e60c
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e620
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e634
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e648
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e65c
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e66d
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e67e
or bl, 0x80
cmp dword [0x4ab3a0], 0
je 0x40e6bb
mov al, bl
not al
and al, byte [0x4ab26d]
je 0x40e6bb
mov cl, byte [0x4ab26f]
not al
and byte [0x4ab26d], al
and byte [0x4ab26e], al
and cl, al
mov al, cl
mov byte [0x4ab26f], cl
mov ecx, 0x4ab290
call fcn.00411da0
mov edx, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push edx
mov esi, 0xffc3d44d
call fcn.00411640
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e9be
mov ebx, dword [ebp - 0xe]
mov edi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.0040f7a0
add esp, 0x18
cmp dword [0x4acb84], 0
jne 0x40e75e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ad914]
mov edx, dword [0x4a78d4]
cmp eax, dword [edx + 0xb8]
jbe 0x40e75e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e757
push 1
push 0xffffffffffffffff
mov dword [0x4a78b0], 0
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], 1
call esi
mov dword [0x4ad914], eax
dec edi
jne 0x40e6e2
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, 4
jbe 0x40e7ea
push 4
push str.ASC
push esi
call fcn.00486860
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40e7ed
test ebx, ebx
jne 0x40e7ed
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x40e79f
cmp al, 9
jne 0x40e7a2
inc edi
jmp 0x40e795
call fcn.0040f3b0
cmp dword [0x4acb84], 2
jne 0x40e7cd
mov ecx, dword [0x4a78d4]
mov eax, dword [ecx + 0x60]
push eax
call fcn.00411270
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov edx, dword [0x4a78d4]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00411270
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e9be
push 2
push 0x49b390
push esi
call fcn.00486860
add esp, 0xc
test eax, eax
jne 0x40e9be
push 0x10
push eax
add esi, 2
push esi
call fcn.004877b6
add esp, 0xc
cmp eax, 0x10000
jb 0x40e850
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 0x40e855
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40e882
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 0x40e8c8
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e8c8
cmp dword [0x4acb84], 2
je 0x40e8ad
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d9f0
add esp, 4
test si, si
je 0x40e8c8
push ebx
mov edi, esi
call fcn.0040d9f0
add esp, 4
jmp 0x40e8c8
push 0xa
lea edx, [ebp - 0x5f]
push edx
push eax
mov byte [ebp - 0x60], 0x30
call fcn.00485a72
add esp, 0xc
lea edi, [ebp - 0x60]
call fcn.0040f3b0
cmp dword [0x4acb84], 2
jne 0x40e8ed
mov eax, dword [0x4a78d4]
mov eax, dword [eax + 0x60]
push eax
call fcn.00411270
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40ea95
mov ecx, dword [0x4a78d4]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00411270
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40ea95
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00411e70
mov byte [ebp - 0x1c], al
test al, al
je 0x40e98f
cmp dword [ebp + 0x14], 0
jne 0x40e98f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40e94f
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x40e93f
or byte [0x4acb80], al
or byte [ebp - 7], al
jmp 0x40e98f
cmp ecx, 2
jne 0x40e94a
or byte [0x4acb81], al
or byte [ebp - 7], al
jmp 0x40e98f
cmp ecx, 1
jne 0x40e98f
mov al, bl
call fcn.0040d980
mov al, byte [ebp - 0x1c]
mov cl, byte [0x4acb80]
not al
and byte [0x4acb81], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4acb80], cl
cmp bl, 0xa5
jne 0x40e989
cmp dword [0x4aa1a8], 3
jne 0x40e989
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 7]
push eax
mov eax, dword [ebp - 0xe]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push edi
push eax
mov al, byte [ebp - 1]
call fcn.0040eed0
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40ea95
cmp edi, 2
jne 0x40ea02
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e9d9.11
jmp dword [eax*4 + 0x40eeb4]
cmp byte [esi + 1], 0xa
jne case.0x40e9d9.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40ea30
mov byte [ebp - 0xe], 8
jmp 0x40ea30
mov byte [ebp - 0xe], 9
jmp 0x40ea30
mov byte [ebp - 0xe], 0
jmp 0x40ea62
or bl, byte [ebp - 7]
je 0x40ea0f
test edi, edi
jne 0x40ea0f
mov al, 1
jmp 0x40ea11
xor al, al
mov edx, dword [0x4aa1ac]
mov bl, byte [esi]
push eax
push edx
lea edi, [ebp - 1]
call fcn.00412650
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40ea5f
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.0040eed0
add esp, 0x24
jmp 0x40ea95
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ea7d
movsx ecx, byte [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40ea95
or bl, byte [ebp - 7]
movzx eax, byte [esi]
movzx edx, bl
push edx
push eax
mov eax, 1
call fcn.0040f280
add esp, 8
xor bl, bl
mov byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4acb5b], cl
jne 0x40e130
mov eax, dword [0x4acb84]
test eax, eax
je 0x40eb70
cmp byte [0x4aa18a], 0
mov dword [ebp - 0x1c], 0xffffffff
jne 0x40eb29
cmp dword [0x4aa1a0], 0
jbe 0x40eb29
cmp byte [0x4aa188], 0
je 0x40eae6
xor eax, eax
jmp 0x40eaf2
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4aa194]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00411640
add esp, 0x14
lea ecx, [ebp - 0x1c]
push edi
push ecx
call fcn.00411120
mov eax, dword [0x4acb84]
add esp, 8
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4aa19c], eax
jbe 0x40eb55
mov edx, dword [0x4aa1a4]
push edx
call fcn.00485df8
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov dword [0x4acb84], 0
call fcn.00411270
add esp, 4
jmp 0x40ecf4
cmp dword [0x4ab3a0], 0
je 0x40eb81
mov cl, byte [0x4ab26f]
jmp 0x40eba5
cmp dword [0x4a78a8], 0
jl 0x40eba2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad8d8]
cmp eax, dword [0x4a78a8]
jb 0x40eba2
xor cl, cl
jmp 0x40eba5
mov cl, byte [ebp - 2]
or cl, byte [0x4acb81]
cmp byte [0x4aa188], 0
je 0x40ebcd
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 0x40ebda
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4ab3a0], 0
je 0x40ebf1
mov cl, byte [0x4ab26d]
mov byte [ebp - 0x1c], cl
jmp 0x40ecd2
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40ec0c
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec20
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40ec34
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec48
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40ec5c
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec70
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40ec81
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec92
or bl, 0x80
cmp dword [0x4ab3a0], 0
je 0x40eccf
mov al, bl
not al
and al, byte [0x4ab26d]
je 0x40eccf
mov cl, byte [0x4ab26f]
not al
and byte [0x4ab26d], al
and byte [0x4ab26e], al
and cl, al
mov al, cl
mov byte [0x4ab26f], cl
mov ecx, 0x4ab290
call fcn.00411da0
mov byte [ebp - 0x1c], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00411640
add esp, 0x14
mov edi, 1
xor ebx, ebx
cmp dword [0x4ab3a0], ebx
je 0x40ed16
mov al, byte [0x4ab26e]
mov dl, al
xor dl, byte [0x4ab26d]
and dl, al
not dl
and al, dl
mov byte [0x4ab26e], al
cmp dword [ebp - 0x48], edi
jne 0x40ed8b
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ed8b
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ed4a
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040f7a0
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040f7a0
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad284]
jne 0x40ed8b
push edi
push 0xffffffffffffffff
mov dword [0x4a78b0], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], edi
cmp byte [ebp - 0xf], bl
je 0x40eda1
mov edx, dword [ebp - 0x58]
mov eax, dword [0x4ad284]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], bl
je 0x40edea
cmp byte [ebp - 0x25], bl
jne 0x40edea
test byte [0x4ae36c], 1
jne 0x40edd8
or dword [0x4ae36c], edi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae368], eax
jmp 0x40eddd
mov eax, dword [0x4ae368]
cmp eax, ebx
je 0x40ede4
push ebx
call eax
mov byte [0x4abb7c], bl
cmp dword [ebp + 0x10], edi
jne 0x40ee1c
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad284]
jne 0x40ee1c
push edi
push 0xffffffffffffffff
mov dword [0x4a78b0], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret