Function at 0x40db60
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 0x40ec9b
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a7978]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40dbab
push 7
push str.Blind
push ebx
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40dbab
add ebx, 7
mov byte [0x4aa1b8], 1
mov dword [ebp + 8], ebx
jmp 0x40dbb6
mov byte [0x4aa1b8], 0
test edi, edi
jne 0x40dbda
push 6
push 0x49b210
push ebx
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40dbda
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 0x40dbf3
cmp eax, 3
jne 0x40dc5b
cmp dword [0x4acb5c], 0
je 0x40dc31
call fcn.00408ae0
test al, al
jne 0x40dc2e
test edi, edi
jne 0x40dc25
call fcn.00408b40
test al, al
je 0x40dc25
push str.Click
mov eax, ebx
call fcn.00472ca0
add esp, 4
test eax, eax
jne 0x40dc2e
mov dword [ebp + 0x10], 1
jmp 0x40dc5b
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40dc3f
mov dword [ebp + 0x10], 2
jmp 0x40dc5b
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40dc51
cmp dword [esi + 0x64], eax
jge 0x40dc51
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 0x40dcb6
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 0x40dde7
cmp edi, dword [0x4ac31c]
je 0x40dde7
mov esi, dword [ebp + 0x14]
call fcn.004775b0
test al, al
jne 0x40dde4
mov eax, dword [0x4ac31c]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40dde4
test byte [0x4ac989], 0xc0
je 0x40dd9f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, 0x32
jae 0x40dd9f
cmp dword [ebp + 0x10], 2
je 0x40dd9f
cmp byte [0x4aa1b8], bl
jne 0x40dd9f
cmp edi, 2
je 0x40dd9f
cmp byte [0x4acb46], bl
je 0x40dd9f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ac31c]
jne 0x40dd9f
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49b358
je 0x40dd74
call fcn.00409290
test eax, eax
setne al
test al, al
je 0x40dd9f
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 0x40dd58
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd9f
push ebx
push 0x8000012f
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
jmp 0x40dd36
call fcn.00409290
test eax, eax
je 0x40dd9f
inc eax
mov edi, 0x49b35c
call fcn.00409290
test eax, eax
je 0x40dd2f
cmp byte [eax], 0x7b
je 0x40dd2f
mov edi, 0x49b358
call fcn.00409290
test eax, eax
jne 0x40dd7d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40dde4
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 0x40dde4
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40dde4
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.004120d0
add esp, 4
push 1
mov dword [0x4aa1d8], eax
call fcn.00411b90
mov bl, al
and byte [0x4abc19], bl
add esp, 4
cmp dword [0x4ab3d0], 0
mov byte [ebp - 8], bl
je 0x40de3d
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 0x40de68
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, dword [0x4a78e4]
jae 0x40de5d
mov al, byte [0x4ac989]
and al, bl
mov byte [ebp - 3], al
jmp 0x40de64
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4abc18]
not al
and al, bl
and cl, al
mov al, byte [0x4aa1b8]
mov byte [0x4abc18], cl
test al, al
je 0x40de8f
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 7], bl
jmp 0x40de96
mov byte [ebp - 2], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40debd
test al, al
jne 0x40debd
cmp dword [ebp + 0xc], 2
je 0x40debd
push 2
mov bl, 0x14
call fcn.00411410
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x40dec4
mov dword [ebp - 0x34], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4abc1c], esi
test esi, esi
je 0x40df36
cmp esi, 1
jne 0x40dee7
mov eax, 0x36b0
mov dword [0x4aa1cc], 0x1f4
jmp 0x40def6
mov eax, 0x2ee0
mov dword [0x4aa1cc], 0x5dc
call fcn.0048f250
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 0x40df4e
cmp eax, 0xa
jne 0x40df89
test esi, esi
jne 0x40df89
cmp dword [ebp + 0x14], esi
jne 0x40df89
test byte [0x4ad41c], 1
mov byte [ebp - 8], 1
jne 0x40df8f
or dword [0x4ad41c], 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 [0x4ad418], eax
jmp 0x40df94
mov byte [ebp - 8], 0
jmp 0x40dfa3
mov eax, dword [0x4ad418]
test eax, eax
je 0x40df9c
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 0x40e926
jmp 0x40dfc0
cmp dword [0x4abc1c], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x40e029
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ac9bc]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e029
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 0x40e022
push 1
push 0xffffffffffffffff
mov dword [0x4a78ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], 1
call edi
mov dword [0x4ac9bc], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e83b
movsx eax, byte [esi]
push eax
push 0x49b360
call fcn.00486811
add esp, 8
test eax, eax
je 0x40e890
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e063.34
movzx eax, byte [eax + 0x40ecc4]
jmp dword [eax*4 + 0x40eca8]
test byte [ebp - 7], 3
jne case.0x40e063.34
or bl, 1
jmp 0x40e90a
test byte [ebp - 7], 0x30
jne case.0x40e063.34
or bl, 0x10
jmp 0x40e90a
test byte [ebp - 7], 0xc
jne case.0x40e063.34
or bl, 4
jmp 0x40e90a
test byte [ebp - 7], 0xc0
jne case.0x40e063.34
or bl, 0x40
jmp 0x40e90a
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00486811
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40e063.34
mov edi, edi
mov al, byte [esi]
cmp al, 0x20
je 0x40e0da
cmp al, 9
jne 0x40e0dd
inc esi
jmp 0x40e0d0
mov eax, edi
sub eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40e167
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40e100
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40e164
cmp al, 0x20
je 0x40e110
cmp al, 9
jne 0x40e830
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x40e11a
cmp al, 9
jne 0x40e11d
inc edi
jmp 0x40e110
push 4
push str.Down
push edi
call fcn.004862a0
add esp, 0xc
test eax, eax
je 0x40e149
push 2
push 0x499b20
push edi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e830
push 0x7d
push edi
call fcn.00486811
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40e063.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49a93c
push esi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e20d
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e190
cmp cl, 9
jne 0x40e193
inc eax
jmp 0x40e184
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.0040fd80
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e1ea
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.004109f0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40e908
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 0x40e824
push 3
push 0x49b368
push esi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e233
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40e908
push 4
push str.Text
push esi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e277
add esi, 4
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x40e25a
cmp al, 9
jne 0x40e25d
inc esi
jmp 0x40e250
cmp esi, edi
jne 0x40e830
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40e908
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov edi, 0x49b0f4
mov eax, esi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x30], 1
mov byte [ecx], 0
call fcn.00409290
mov ebx, eax
test ebx, ebx
je 0x40e343
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 0x40e2c1
cmp al, 9
jne 0x40e2c4
inc edi
jmp 0x40e2b7
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x40e343
push 4
push str.Down
push edi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e31b
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x14], eax
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e2fe
mov dword [ebp - 0x38], eax
jmp 0x40e343
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00487363
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40e343
push 0x499b20
push edi
call fcn.00485821
add esp, 8
test eax, eax
jne 0x40e336
mov dword [ebp - 0x14], 1
jmp 0x40e343
mov esi, edi
call fcn.0040d5e0
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.00412600
add esp, 4
test ebx, ebx
je 0x40e365
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 0x40e830
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40e77a
cmp word [ebp - 0x44], 0
jne 0x40e77a
cmp dword [ebp + 8], eax
jne 0x40e3f6
cmp dword [ebp - 0x14], eax
je 0x40e830
cmp dword [ebp + 0x14], 0
je 0x40e3d3
test edi, edi
jle 0x40e830
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 0x40e3b0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
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.0040f0f0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40e908
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.004126b0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e5eb
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e434
cmp dword [ebp - 0x14], edi
jne 0x40e42f
mov byte [ebp - 9], al
jmp 0x40e434
call fcn.0040d7b0
cmp dword [0x4abc1c], 0
je 0x40e448
mov bl, byte [0x4aa1c4]
jmp 0x40e53a
cmp dword [0x4ab3d0], 0
je 0x40e45c
mov bl, byte [0x4ab29d]
jmp 0x40e53a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e477
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e48b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e49f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e4b3
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4c7
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e4db
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4ec
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e4fd
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40e53a
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40e53a
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.00411c90
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411520
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e830
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.0040f600
add esp, 0x18
cmp dword [0x4abc1c], 0
jne 0x40e5dd
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac9bc]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e5dd
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 0x40e5d6
push 1
push 0xffffffffffffffff
mov dword [0x4a78ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], 1
call esi
mov dword [0x4ac9bc], eax
dec edi
jne 0x40e561
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
cmp edi, 4
jbe 0x40e662
push 4
push str.ASC
push esi
call fcn.004862a0
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40e665
test ebx, ebx
jne 0x40e665
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e620
cmp cl, 9
jne 0x40e623
inc eax
jmp 0x40e614
call fcn.0040f210
cmp dword [0x4abc1c], 2
jne 0x40e649
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x60]
call fcn.00411160
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
mov ecx, dword [0x4a7978]
mov esi, dword [ecx + 0x5c]
call fcn.00411160
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e830
push 2
push 0x49b37c
push esi
call fcn.004862a0
add esp, 0xc
test eax, eax
jne 0x40e830
push 0x10
push eax
add esi, 2
push esi
call fcn.004871f6
add esp, 0xc
cmp eax, 0x10000
jb 0x40e6c8
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 0x40e6cd
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40e6fa
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 0x40e740
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40e740
cmp dword [0x4abc1c], 2
je 0x40e725
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d830
add esp, 4
test si, si
je 0x40e740
push ebx
mov edi, esi
call fcn.0040d830
add esp, 4
jmp 0x40e740
push 0xa
lea ecx, [ebp - 0x5b]
push ecx
push eax
mov byte [ebp - 0x5c], 0x30
call fcn.004854b2
add esp, 0xc
lea eax, [ebp - 0x5c]
call fcn.0040f210
cmp dword [0x4abc1c], 2
jne 0x40e762
mov edx, dword [0x4a7978]
mov esi, dword [edx + 0x60]
call fcn.00411160
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x5c]
call fcn.00411160
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
mov esi, dword [ebp - 0x44]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411d60
mov byte [ebp - 0x18], al
test al, al
je 0x40e802
cmp dword [ebp + 0x14], 0
jne 0x40e802
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40e7c2
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x40e7b2
or byte [0x4abc18], al
or byte [ebp - 7], al
jmp 0x40e802
cmp ecx, 2
jne 0x40e7bd
or byte [0x4abc19], al
or byte [ebp - 7], al
jmp 0x40e802
cmp ecx, 1
jne 0x40e802
mov al, bl
call fcn.0040d7b0
mov al, byte [ebp - 0x18]
mov cl, byte [0x4abc18]
not al
and byte [0x4abc19], al
and byte [ebp - 2], al
and cl, al
mov byte [0x4abc18], cl
cmp bl, 0xa5
jne 0x40e7fc
cmp dword [0x4aa1d8], 3
jne 0x40e7fc
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.0040ed40
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e908
cmp edi, 2
jne 0x40e890
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e84b.11
jmp dword [eax*4 + 0x40ed24]
cmp byte [esi + 1], 0xa
jne case.0x40e84b.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40e8c1
mov byte [ebp - 0xe], 8
jmp 0x40e8c1
mov byte [ebp - 0xe], 9
jmp 0x40e8c1
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40e8f0
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e908
or bl, byte [ebp - 7]
je 0x40e89d
test edi, edi
jne 0x40e89d
mov al, 1
jmp 0x40e89f
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.00412540
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e872
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.0040ed40
add esp, 0x24
jmp 0x40e908
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.0040f0f0
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 [0x4abbf3], cl
jne 0x40dfc0
mov eax, dword [0x4abc1c]
test eax, eax
je 0x40e9dd
cmp byte [0x4aa1ba], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x40e9a2
cmp dword [0x4aa1d0], 0
jbe 0x40e9a2
cmp byte [0x4aa1b8], 0
je 0x40e959
xor eax, eax
jmp 0x40e965
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [0x4abc19]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4aa1c4]
mov esi, dword [ebp + 8]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00411520
add esp, 0x14
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.00411010
mov eax, dword [0x4abc1c]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4aa1cc], eax
jbe 0x40e9c8
mov edx, dword [0x4aa1d4]
push edx
call fcn.00485838
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [0x4abc1c], edi
call fcn.00411160
jmp 0x40eb5d
cmp dword [0x4ab3d0], 0
je 0x40e9ee
mov cl, byte [0x4ab29f]
jmp 0x40ea12
cmp dword [0x4a78e4], 0
jl 0x40ea0f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, dword [0x4a78e4]
jb 0x40ea0f
xor cl, cl
jmp 0x40ea12
mov cl, byte [ebp - 3]
or cl, byte [0x4abc19]
cmp byte [0x4aa1b8], 0
je 0x40ea3a
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 0x40ea47
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 0x40ea5d
mov al, byte [0x4ab29d]
mov byte [ebp - 0x18], al
jmp 0x40eb3e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea78
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea8c
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eaa0
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40eab4
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eac8
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40eadc
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eaed
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40eafe
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40eb3b
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40eb3b
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.00411c90
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.00411520
add esp, 0x14
xor edi, edi
cmp dword [0x4ab3d0], edi
je 0x40eb7d
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 0x40ebf7
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40ebf7
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebb6
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.0040f600
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040f600
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac31c]
jne 0x40ebf7
push ebx
push 0xffffffffffffffff
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
cmp byte [ebp - 0xf], 0
je 0x40ec0f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4ac31c]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40ec5a
cmp byte [ebp - 0x1e], 0
jne 0x40ec5a
test byte [0x4ad41c], bl
jne 0x40ec47
or dword [0x4ad41c], 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 [0x4ad418], eax
jmp 0x40ec4c
mov eax, dword [0x4ad418]
cmp eax, edi
je 0x40ec53
push edi
call eax
mov byte [0x4abbac], 0
cmp dword [ebp + 0x10], ebx
jne 0x40ec8c
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac31c]
jne 0x40ec8c
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