Function at 0x40da50
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 0x40eb85
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a7978]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40da9b
push 7
push str.Blind
push ebx
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40da9b
add ebx, 7
mov byte [0x4aa1b8], 1
mov dword [ebp + 8], ebx
jmp 0x40daa6
mov byte [0x4aa1b8], 0
test edi, edi
jne 0x40daca
push 6
push 0x49b20c
push ebx
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40daca
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 0x40dae3
cmp eax, 3
jne 0x40db4b
cmp dword [0x4adaf4], 0
je 0x40db21
call fcn.00408a50
test al, al
jne 0x40db1e
test edi, edi
jne 0x40db15
call fcn.00408ab0
test al, al
je 0x40db15
push str.Click
mov eax, ebx
call fcn.004728d0
add esp, 4
test eax, eax
jne 0x40db1e
mov dword [ebp + 0x10], 1
jmp 0x40db4b
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40db2f
mov dword [ebp + 0x10], 2
jmp 0x40db4b
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40db41
cmp dword [esi + 0x64], eax
jge 0x40db41
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 0x40dba6
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 0x40dcd7
cmp edi, dword [0x4ad2b4]
je 0x40dcd7
mov esi, dword [ebp + 0x14]
call fcn.004771e0
test al, al
jne 0x40dcd4
mov eax, dword [0x4ad2b4]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40dcd4
test byte [0x4ad921], 0xc0
je 0x40dc8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad918]
cmp eax, 0x32
jae 0x40dc8f
cmp dword [ebp + 0x10], 2
je 0x40dc8f
cmp byte [0x4aa1b8], bl
jne 0x40dc8f
cmp edi, 2
je 0x40dc8f
cmp byte [0x4adade], bl
je 0x40dc8f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ad2b4]
jne 0x40dc8f
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49b354
je 0x40dc64
call fcn.00409200
test eax, eax
setne al
test al, al
je 0x40dc8f
mov ebx, 1
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40dc48
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc8f
push ebx
push 0x8000012f
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
jmp 0x40dc26
call fcn.00409200
test eax, eax
je 0x40dc8f
inc eax
mov edi, 0x49b358
call fcn.00409200
test eax, eax
je 0x40dc1f
cmp byte [eax], 0x7b
je 0x40dc1f
mov edi, 0x49b354
call fcn.00409200
test eax, eax
jne 0x40dc6d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40dcd4
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 0x40dcd4
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40dcd4
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 [0x4aa1dc], eax
push eax
xor eax, eax
call fcn.00411fc0
add esp, 4
push 1
mov dword [0x4aa1d8], eax
call fcn.00411a80
mov bl, al
and byte [0x4acbb1], bl
add esp, 4
cmp dword [0x4ab3d0], 0
mov byte [ebp - 8], bl
je 0x40dd2d
mov cl, byte [0x4ab29d]
mov dl, byte [0x4ab29f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 3], dl
mov byte [ebp - 0xa], cl
jmp 0x40dd58
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad918]
cmp eax, dword [0x4a78e4]
jae 0x40dd4d
mov al, byte [0x4ad921]
and al, bl
mov byte [ebp - 3], al
jmp 0x40dd54
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4acbb0]
not al
and al, bl
and cl, al
mov al, byte [0x4aa1b8]
mov byte [0x4acbb0], cl
test al, al
je 0x40dd7f
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 7], bl
jmp 0x40dd86
mov byte [ebp - 2], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40ddad
test al, al
jne 0x40ddad
cmp dword [ebp + 0xc], 2
je 0x40ddad
push 2
mov bl, 0x14
call fcn.00411300
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x40ddb4
mov dword [ebp - 0x34], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4acbb4], esi
test esi, esi
je 0x40de26
cmp esi, 1
jne 0x40ddd7
mov eax, 0x36b0
mov dword [0x4aa1cc], 0x1f4
jmp 0x40dde6
mov eax, 0x2ee0
mov dword [0x4aa1cc], 0x5dc
call fcn.0048ee80
mov eax, esp
mov dword [0x4aa1d4], eax
mov eax, SysReAllocString
mov byte [0x4aa1c4], bl
mov dword [0x4aa1bc], eax
mov dword [0x4aa1c0], eax
mov byte [0x4aa1bb], 0
mov dword [0x4aa1d0], 0
mov byte [0x4aa1ba], 0
mov byte [0x4aa1b9], 1
mov eax, dword [0x4a7988]
mov cl, byte [0x4abbac]
mov byte [ebp - 0x1e], cl
cmp eax, 8
je 0x40de3e
cmp eax, 0xa
jne 0x40de79
test esi, esi
jne 0x40de79
cmp dword [ebp + 0x14], esi
jne 0x40de79
test byte [0x4ae3b4], 1
mov byte [ebp - 8], 1
jne 0x40de7f
or dword [0x4ae3b4], 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 [0x4ae3b0], eax
jmp 0x40de84
mov byte [ebp - 8], 0
jmp 0x40de93
mov eax, dword [0x4ae3b0]
test eax, eax
je 0x40de8c
push 1
call eax
mov byte [0x4abbac], 1
mov edx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [edx], bl
je 0x40e816
jmp 0x40deb0
cmp dword [0x4acbb4], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x40df19
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ad954]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40df19
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 0x40df12
push 1
push 0xffffffffffffffff
mov dword [0x4a78ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], 1
call edi
mov dword [0x4ad954], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e72b
movsx eax, byte [esi]
push eax
push str._
call fcn.00486441
add esp, 8
test eax, eax
je 0x40e780
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40df53.34
movzx eax, byte [eax + 0x40ebb0]
jmp dword [eax*4 + 0x40eb94]
test byte [ebp - 7], 3
jne case.0x40df53.34
or bl, 1
jmp 0x40e7fa
test byte [ebp - 7], 0x30
jne case.0x40df53.34
or bl, 0x10
jmp 0x40e7fa
test byte [ebp - 7], 0xc
jne case.0x40df53.34
or bl, 4
jmp 0x40e7fa
test byte [ebp - 7], 0xc0
jne case.0x40df53.34
or bl, 0x40
jmp 0x40e7fa
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00486441
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40df53.34
mov edi, edi
mov al, byte [esi]
cmp al, 0x20
je 0x40dfca
cmp al, 9
jne 0x40dfcd
inc esi
jmp 0x40dfc0
mov eax, edi
sub eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40e057
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40dff0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40e054
cmp al, 0x20
je 0x40e000
cmp al, 9
jne 0x40e720
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x40e00a
cmp al, 9
jne 0x40e00d
inc edi
jmp 0x40e000
push 4
push str.Down
push edi
call fcn.00485ed0
add esp, 0xc
test eax, eax
je 0x40e039
push 2
push 0x499b20
push edi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e720
push 0x7d
push edi
call fcn.00486441
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40df53.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49a93c
push esi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e0fd
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e080
cmp cl, 9
jne 0x40e083
inc eax
jmp 0x40e074
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0040fc70
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e0da
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0xcf]
mov eax, dword [ebp - 0x40]
push eax
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x3c]
call fcn.004108e0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x3c]
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
push eax
push 0
mov al, bl
jmp 0x40e714
push 3
push 0x49b364
push esi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e123
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40e7f8
push 4
push str.Text
push esi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e167
add esi, 4
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x40e14a
cmp al, 9
jne 0x40e14d
inc esi
jmp 0x40e140
cmp esi, edi
jne 0x40e720
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov edi, 0x49b0f8
mov eax, esi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x30], 1
mov byte [ecx], 0
call fcn.00409200
mov ebx, eax
test ebx, ebx
je 0x40e233
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 0x40e1b1
cmp al, 9
jne 0x40e1b4
inc edi
jmp 0x40e1a7
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x40e233
push 4
push str.Down
push edi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e20b
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x14], eax
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e1ee
mov dword [ebp - 0x38], eax
jmp 0x40e233
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00486f93
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40e233
push 0x499b20
push edi
call fcn.00485451
add esp, 8
test eax, eax
jne 0x40e226
mov dword [ebp - 0x14], 1
jmp 0x40e233
mov esi, edi
call fcn.0040d4d0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4aa1dc]
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x44]
mov edx, esi
call fcn.004124f0
add esp, 4
test ebx, ebx
je 0x40e255
mov al, byte [ebp - 0x1d]
mov byte [ebx], al
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov eax, 1
mov byte [ecx], 0x7d
cmp edi, eax
jl 0x40e720
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40e66a
cmp word [ebp - 0x44], 0
jne 0x40e66a
cmp dword [ebp + 8], eax
jne 0x40e2e6
cmp dword [ebp - 0x14], eax
je 0x40e720
cmp dword [ebp + 0x14], 0
je 0x40e2c3
test edi, edi
jle 0x40e720
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 0x40e2a0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
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.0040efe0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40e7f8
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x14]
sete bl
push edx
call fcn.004125a0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e4db
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e324
cmp dword [ebp - 0x14], edi
jne 0x40e31f
mov byte [ebp - 9], al
jmp 0x40e324
call fcn.0040d6a0
cmp dword [0x4acbb4], 0
je 0x40e338
mov bl, byte [0x4aa1c4]
jmp 0x40e42a
cmp dword [0x4ab3d0], 0
je 0x40e34c
mov bl, byte [0x4ab29d]
jmp 0x40e42a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e367
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e37b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e38f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3a3
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3b7
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3cb
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3dc
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3ed
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40e42a
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40e42a
mov cl, byte [0x4ab29f]
not al
and byte [0x4ab29d], al
and byte [0x4ab29e], al
and cl, al
mov al, cl
mov byte [0x4ab29f], cl
mov ecx, 0x4ab2c0
call fcn.00411b80
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411410
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e720
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.0040f4f0
add esp, 0x18
cmp dword [0x4acbb4], 0
jne 0x40e4cd
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ad954]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e4cd
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 0x40e4c6
push 1
push 0xffffffffffffffff
mov dword [0x4a78ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], 1
call esi
mov dword [0x4ad954], eax
dec edi
jne 0x40e451
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
cmp edi, 4
jbe 0x40e552
push 4
push str.ASC
push esi
call fcn.00485ed0
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40e555
test ebx, ebx
jne 0x40e555
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e510
cmp cl, 9
jne 0x40e513
inc eax
jmp 0x40e504
call fcn.0040f100
cmp dword [0x4acbb4], 2
jne 0x40e539
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x60]
call fcn.00411050
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov ecx, dword [0x4a7978]
mov esi, dword [ecx + 0x5c]
call fcn.00411050
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e720
push 2
push 0x49b378
push esi
call fcn.00485ed0
add esp, 0xc
test eax, eax
jne 0x40e720
push 0x10
push eax
add esi, 2
push esi
call fcn.00486e26
add esp, 0xc
cmp eax, 0x10000
jb 0x40e5b8
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 0x40e5bd
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40e5ea
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 0x40e630
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40e630
cmp dword [0x4acbb4], 2
je 0x40e615
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d720
add esp, 4
test si, si
je 0x40e630
push ebx
mov edi, esi
call fcn.0040d720
add esp, 4
jmp 0x40e630
push 0xa
lea ecx, [ebp - 0x5b]
push ecx
push eax
mov byte [ebp - 0x5c], 0x30
call fcn.004850e2
add esp, 0xc
lea eax, [ebp - 0x5c]
call fcn.0040f100
cmp dword [0x4acbb4], 2
jne 0x40e652
mov edx, dword [0x4a7978]
mov esi, dword [edx + 0x60]
call fcn.00411050
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x5c]
call fcn.00411050
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
mov esi, dword [ebp - 0x44]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411c50
mov byte [ebp - 0x18], al
test al, al
je 0x40e6f2
cmp dword [ebp + 0x14], 0
jne 0x40e6f2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40e6b2
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x40e6a2
or byte [0x4acbb0], al
or byte [ebp - 7], al
jmp 0x40e6f2
cmp ecx, 2
jne 0x40e6ad
or byte [0x4acbb1], al
or byte [ebp - 7], al
jmp 0x40e6f2
cmp ecx, 1
jne 0x40e6f2
mov al, bl
call fcn.0040d6a0
mov al, byte [ebp - 0x18]
mov cl, byte [0x4acbb0]
not al
and byte [0x4acbb1], al
and byte [ebp - 2], al
and cl, al
mov byte [0x4acbb0], cl
cmp bl, 0xa5
jne 0x40e6ec
cmp dword [0x4aa1d8], 3
jne 0x40e6ec
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
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.0040ec30
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e7f8
cmp edi, 2
jne 0x40e780
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e73b.11
jmp dword [eax*4 + 0x40ec10]
cmp byte [esi + 1], 0xa
jne case.0x40e73b.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40e7b1
mov byte [ebp - 0xe], 8
jmp 0x40e7b1
mov byte [ebp - 0xe], 9
jmp 0x40e7b1
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40e7e0
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e7f8
or bl, byte [ebp - 7]
je 0x40e78d
test edi, edi
jne 0x40e78d
mov al, 1
jmp 0x40e78f
xor al, al
mov ecx, dword [0x4aa1dc]
mov edx, dword [ebp + 8]
mov bl, byte [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.00412430
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e762
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.0040ec30
add esp, 0x24
jmp 0x40e7f8
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.0040efe0
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 [0x4acb8b], cl
jne 0x40deb0
mov eax, dword [0x4acbb4]
test eax, eax
je 0x40e8c7
cmp byte [0x4aa1ba], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x40e88c
cmp dword [0x4aa1d0], 0
jbe 0x40e88c
cmp byte [0x4aa1b8], 0
je 0x40e849
xor eax, eax
jmp 0x40e855
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4aa1c4]
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00411410
add esp, 0x14
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.00410f00
mov eax, dword [0x4acbb4]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4aa1cc], eax
jbe 0x40e8b2
mov edx, dword [0x4aa1d4]
push edx
call fcn.00485468
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [0x4acbb4], edi
call fcn.00411050
jmp 0x40ea47
cmp dword [0x4ab3d0], 0
je 0x40e8d8
mov cl, byte [0x4ab29f]
jmp 0x40e8fc
cmp dword [0x4a78e4], 0
jl 0x40e8f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad918]
cmp eax, dword [0x4a78e4]
jb 0x40e8f9
xor cl, cl
jmp 0x40e8fc
mov cl, byte [ebp - 3]
or cl, byte [0x4acbb1]
cmp byte [0x4aa1b8], 0
je 0x40e924
mov dl, byte [ebp - 3]
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 0x40e931
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4ab3d0], 0
je 0x40e947
mov al, byte [0x4ab29d]
mov byte [ebp - 0x18], al
jmp 0x40ea28
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e962
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e976
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e98a
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e99e
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e9b2
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e9c6
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e9d7
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e9e8
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40ea25
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40ea25
mov cl, byte [0x4ab29f]
not al
and byte [0x4ab29d], al
and byte [0x4ab29e], al
and cl, al
mov al, cl
mov byte [0x4ab29f], cl
mov ecx, 0x4ab2c0
call fcn.00411b80
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.00411410
add esp, 0x14
xor edi, edi
cmp dword [0x4ab3d0], edi
je 0x40ea67
mov al, byte [0x4ab29e]
mov cl, al
xor cl, byte [0x4ab29d]
and cl, al
not cl
and al, cl
mov byte [0x4ab29e], al
mov ebx, 1
cmp dword [ebp - 0x34], ebx
jne 0x40eae1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40eae1
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40eaa0
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.0040f4f0
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040f4f0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad2b4]
jne 0x40eae1
push ebx
push 0xffffffffffffffff
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
cmp byte [ebp - 0xf], 0
je 0x40eaf9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4ad2b4]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40eb44
cmp byte [ebp - 0x1e], 0
jne 0x40eb44
test byte [0x4ae3b4], bl
jne 0x40eb31
or dword [0x4ae3b4], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae3b0], eax
jmp 0x40eb36
mov eax, dword [0x4ae3b0]
cmp eax, edi
je 0x40eb3d
push edi
call eax
mov byte [0x4abbac], 0
cmp dword [ebp + 0x10], ebx
jne 0x40eb76
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad2b4]
jne 0x40eb76
push ebx
push 0xffffffffffffffff
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], 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