Function at 0x40db40
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 0x40ec7b
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a7978]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40db8b
push 7
push str.Blind
push ebx
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40db8b
add ebx, 7
mov byte [0x4aa1b8], 1
mov dword [ebp + 8], ebx
jmp 0x40db96
mov byte [0x4aa1b8], 0
test edi, edi
jne 0x40dbba
push 6
push 0x49b210
push ebx
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40dbba
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 0x40dbd3
cmp eax, 3
jne 0x40dc3b
cmp dword [0x4acb5c], 0
je 0x40dc11
call fcn.00408ae0
test al, al
jne 0x40dc0e
test edi, edi
jne 0x40dc05
call fcn.00408b40
test al, al
je 0x40dc05
push str.Click
mov eax, ebx
call fcn.00472c70
add esp, 4
test eax, eax
jne 0x40dc0e
mov dword [ebp + 0x10], 1
jmp 0x40dc3b
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40dc1f
mov dword [ebp + 0x10], 2
jmp 0x40dc3b
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40dc31
cmp dword [esi + 0x64], eax
jge 0x40dc31
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 0x40dc96
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 0x40ddc7
cmp edi, dword [0x4ac31c]
je 0x40ddc7
mov esi, dword [ebp + 0x14]
call fcn.00477580
test al, al
jne 0x40ddc4
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 0x40ddc4
test byte [0x4ac989], 0xc0
je 0x40dd7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, 0x32
jae 0x40dd7f
cmp dword [ebp + 0x10], 2
je 0x40dd7f
cmp byte [0x4aa1b8], bl
jne 0x40dd7f
cmp edi, 2
je 0x40dd7f
cmp byte [0x4acb46], bl
je 0x40dd7f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ac31c]
jne 0x40dd7f
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49b358
je 0x40dd54
call fcn.00409290
test eax, eax
setne al
test al, al
je 0x40dd7f
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 0x40dd38
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd7f
push ebx
push 0x8000012f
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
jmp 0x40dd16
call fcn.00409290
test eax, eax
je 0x40dd7f
inc eax
mov edi, 0x49b35c
call fcn.00409290
test eax, eax
je 0x40dd0f
cmp byte [eax], 0x7b
je 0x40dd0f
mov edi, 0x49b358
call fcn.00409290
test eax, eax
jne 0x40dd5d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40ddc4
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 0x40ddc4
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40ddc4
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.004120b0
add esp, 4
push 1
mov dword [0x4aa1d8], eax
call fcn.00411b70
mov bl, al
and byte [0x4abc19], bl
add esp, 4
cmp dword [0x4ab3d0], 0
mov byte [ebp - 8], bl
je 0x40de1d
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 0x40de48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, dword [0x4a78e4]
jae 0x40de3d
mov al, byte [0x4ac989]
and al, bl
mov byte [ebp - 3], al
jmp 0x40de44
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 0x40de6f
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 7], bl
jmp 0x40de76
mov byte [ebp - 2], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40de9d
test al, al
jne 0x40de9d
cmp dword [ebp + 0xc], 2
je 0x40de9d
push 2
mov bl, 0x14
call fcn.004113f0
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x40dea4
mov dword [ebp - 0x34], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4abc1c], esi
test esi, esi
je 0x40df16
cmp esi, 1
jne 0x40dec7
mov eax, 0x36b0
mov dword [0x4aa1cc], 0x1f4
jmp 0x40ded6
mov eax, 0x2ee0
mov dword [0x4aa1cc], 0x5dc
call fcn.0048f220
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 0x40df2e
cmp eax, 0xa
jne 0x40df69
test esi, esi
jne 0x40df69
cmp dword [ebp + 0x14], esi
jne 0x40df69
test byte [0x4ad41c], 1
mov byte [ebp - 8], 1
jne 0x40df6f
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 0x40df74
mov byte [ebp - 8], 0
jmp 0x40df83
mov eax, dword [0x4ad418]
test eax, eax
je 0x40df7c
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 0x40e906
jmp 0x40dfa0
cmp dword [0x4abc1c], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x40e009
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ac9bc]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e009
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 0x40e002
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 0x40e81b
movsx eax, byte [esi]
push eax
push str._
call fcn.004867e1
add esp, 8
test eax, eax
je 0x40e870
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e043.34
movzx eax, byte [eax + 0x40eca4]
jmp dword [eax*4 + 0x40ec88]
test byte [ebp - 7], 3
jne case.0x40e043.34
or bl, 1
jmp 0x40e8ea
test byte [ebp - 7], 0x30
jne case.0x40e043.34
or bl, 0x10
jmp 0x40e8ea
test byte [ebp - 7], 0xc
jne case.0x40e043.34
or bl, 4
jmp 0x40e8ea
test byte [ebp - 7], 0xc0
jne case.0x40e043.34
or bl, 0x40
jmp 0x40e8ea
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004867e1
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40e043.34
mov edi, edi
mov al, byte [esi]
cmp al, 0x20
je 0x40e0ba
cmp al, 9
jne 0x40e0bd
inc esi
jmp 0x40e0b0
mov eax, edi
sub eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40e147
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40e0e0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40e144
cmp al, 0x20
je 0x40e0f0
cmp al, 9
jne 0x40e810
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x40e0fa
cmp al, 9
jne 0x40e0fd
inc edi
jmp 0x40e0f0
push 4
push str.Down
push edi
call fcn.00486270
add esp, 0xc
test eax, eax
je 0x40e129
push 2
push 0x499b20
push edi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e810
push 0x7d
push edi
call fcn.004867e1
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40e043.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49a93c
push esi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e1ed
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e170
cmp cl, 9
jne 0x40e173
inc eax
jmp 0x40e164
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.0040fd60
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e1ca
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.004109d0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40e8e8
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 0x40e804
push 3
push 0x49b368
push esi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e213
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40e8e8
push 4
push str.Text
push esi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e257
add esi, 4
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x40e23a
cmp al, 9
jne 0x40e23d
inc esi
jmp 0x40e230
cmp esi, edi
jne 0x40e810
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40e8e8
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 0x40e323
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 0x40e2a1
cmp al, 9
jne 0x40e2a4
inc edi
jmp 0x40e297
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x40e323
push 4
push str.Down
push edi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e2fb
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x14], eax
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e2de
mov dword [ebp - 0x38], eax
jmp 0x40e323
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00487333
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40e323
push 0x499b20
push edi
call fcn.004857f1
add esp, 8
test eax, eax
jne 0x40e316
mov dword [ebp - 0x14], 1
jmp 0x40e323
mov esi, edi
call fcn.0040d5c0
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.004125e0
add esp, 4
test ebx, ebx
je 0x40e345
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 0x40e810
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40e75a
cmp word [ebp - 0x44], 0
jne 0x40e75a
cmp dword [ebp + 8], eax
jne 0x40e3d6
cmp dword [ebp - 0x14], eax
je 0x40e810
cmp dword [ebp + 0x14], 0
je 0x40e3b3
test edi, edi
jle 0x40e810
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 0x40e390
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
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.0040f0d0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40e8e8
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.00412690
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e5cb
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e414
cmp dword [ebp - 0x14], edi
jne 0x40e40f
mov byte [ebp - 9], al
jmp 0x40e414
call fcn.0040d790
cmp dword [0x4abc1c], 0
je 0x40e428
mov bl, byte [0x4aa1c4]
jmp 0x40e51a
cmp dword [0x4ab3d0], 0
je 0x40e43c
mov bl, byte [0x4ab29d]
jmp 0x40e51a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e457
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e46b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e47f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e493
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4a7
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e4bb
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4cc
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e4dd
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40e51a
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40e51a
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.00411c70
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411500
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e810
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.0040f5e0
add esp, 0x18
cmp dword [0x4abc1c], 0
jne 0x40e5bd
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac9bc]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e5bd
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 0x40e5b6
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 0x40e541
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
cmp edi, 4
jbe 0x40e642
push 4
push str.ASC
push esi
call fcn.00486270
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40e645
test ebx, ebx
jne 0x40e645
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e600
cmp cl, 9
jne 0x40e603
inc eax
jmp 0x40e5f4
call fcn.0040f1f0
cmp dword [0x4abc1c], 2
jne 0x40e629
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x60]
call fcn.00411140
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
mov ecx, dword [0x4a7978]
mov esi, dword [ecx + 0x5c]
call fcn.00411140
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e810
push 2
push 0x49b37c
push esi
call fcn.00486270
add esp, 0xc
test eax, eax
jne 0x40e810
push 0x10
push eax
add esi, 2
push esi
call fcn.004871c6
add esp, 0xc
cmp eax, 0x10000
jb 0x40e6a8
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 0x40e6ad
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40e6da
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 0x40e720
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40e720
cmp dword [0x4abc1c], 2
je 0x40e705
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d810
add esp, 4
test si, si
je 0x40e720
push ebx
mov edi, esi
call fcn.0040d810
add esp, 4
jmp 0x40e720
push 0xa
lea ecx, [ebp - 0x5b]
push ecx
push eax
mov byte [ebp - 0x5c], 0x30
call fcn.00485482
add esp, 0xc
lea eax, [ebp - 0x5c]
call fcn.0040f1f0
cmp dword [0x4abc1c], 2
jne 0x40e742
mov edx, dword [0x4a7978]
mov esi, dword [edx + 0x60]
call fcn.00411140
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
mov eax, dword [0x4a7978]
mov esi, dword [eax + 0x5c]
call fcn.00411140
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
mov esi, dword [ebp - 0x44]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411d40
mov byte [ebp - 0x18], al
test al, al
je 0x40e7e2
cmp dword [ebp + 0x14], 0
jne 0x40e7e2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40e7a2
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x40e792
or byte [0x4abc18], al
or byte [ebp - 7], al
jmp 0x40e7e2
cmp ecx, 2
jne 0x40e79d
or byte [0x4abc19], al
or byte [ebp - 7], al
jmp 0x40e7e2
cmp ecx, 1
jne 0x40e7e2
mov al, bl
call fcn.0040d790
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 0x40e7dc
cmp dword [0x4aa1d8], 3
jne 0x40e7dc
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.0040ed20
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40e8e8
cmp edi, 2
jne 0x40e870
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e82b.11
jmp dword [eax*4 + 0x40ed04]
cmp byte [esi + 1], 0xa
jne case.0x40e82b.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40e8a1
mov byte [ebp - 0xe], 8
jmp 0x40e8a1
mov byte [ebp - 0xe], 9
jmp 0x40e8a1
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40e8d0
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e8e8
or bl, byte [ebp - 7]
je 0x40e87d
test edi, edi
jne 0x40e87d
mov al, 1
jmp 0x40e87f
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.00412520
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e852
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.0040ed20
add esp, 0x24
jmp 0x40e8e8
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.0040f0d0
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 0x40dfa0
mov eax, dword [0x4abc1c]
test eax, eax
je 0x40e9bd
cmp byte [0x4aa1ba], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x40e982
cmp dword [0x4aa1d0], 0
jbe 0x40e982
cmp byte [0x4aa1b8], 0
je 0x40e939
xor eax, eax
jmp 0x40e945
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.00411500
add esp, 0x14
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.00410ff0
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 0x40e9a8
mov edx, dword [0x4aa1d4]
push edx
call fcn.00485808
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [0x4abc1c], edi
call fcn.00411140
jmp 0x40eb3d
cmp dword [0x4ab3d0], 0
je 0x40e9ce
mov cl, byte [0x4ab29f]
jmp 0x40e9f2
cmp dword [0x4a78e4], 0
jl 0x40e9ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac980]
cmp eax, dword [0x4a78e4]
jb 0x40e9ef
xor cl, cl
jmp 0x40e9f2
mov cl, byte [ebp - 3]
or cl, byte [0x4abc19]
cmp byte [0x4aa1b8], 0
je 0x40ea1a
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 0x40ea27
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 0x40ea3d
mov al, byte [0x4ab29d]
mov byte [ebp - 0x18], al
jmp 0x40eb1e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea58
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea6c
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea80
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea94
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eaa8
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40eabc
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eacd
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40eade
or bl, 0x80
cmp dword [0x4ab3d0], 0
je 0x40eb1b
mov al, bl
not al
and al, byte [0x4ab29d]
je 0x40eb1b
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.00411c70
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.00411500
add esp, 0x14
xor edi, edi
cmp dword [0x4ab3d0], edi
je 0x40eb5d
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 0x40ebd7
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40ebd7
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40eb96
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.0040f5e0
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040f5e0
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 0x40ebd7
push ebx
push 0xffffffffffffffff
mov dword [0x4a78ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a78ec], ebx
cmp byte [ebp - 0xf], 0
je 0x40ebef
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 0x40ec3a
cmp byte [ebp - 0x1e], 0
jne 0x40ec3a
test byte [0x4ad41c], bl
jne 0x40ec27
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 0x40ec2c
mov eax, dword [0x4ad418]
cmp eax, edi
je 0x40ec33
push edi
call eax
mov byte [0x4abbac], 0
cmp dword [ebp + 0x10], ebx
jne 0x40ec6c
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac31c]
jne 0x40ec6c
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