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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40e579
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4a6440]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d53d
push 7
push str.Blind
push edi
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40d53d
add edi, 7
mov byte [0x4a8c35], 1
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
cmp eax, 1
je 0x40d502
cmp eax, 3
jne 0x40d573
cmp dword [0x4ac550], 0
je 0x40d549
call fcn.00408bc0
test al, al
jne 0x40d546
test bl, bl
jne 0x40d534
call fcn.00408c20
test al, al
je 0x40d534
push str.Click
mov eax, edi
call fcn.00472460
add esp, 4
test eax, eax
jne 0x40d546
mov dword [ebp + 0x10], 1
jmp 0x40d573
mov byte [0x4a8c35], 0
jmp 0x40d4e9
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d557
mov dword [ebp + 0x10], 2
jmp 0x40d573
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d569
cmp dword [esi + 0x64], eax
jge 0x40d569
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0x15], 0
test esi, esi
je 0x40d5cb
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x40d6c7
cmp edi, dword [0x4abd28]
je 0x40d6c7
call fcn.00476bb0
test al, al
jne 0x40d6c7
mov edx, dword [0x4abd28]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x15]
mov ebx, edi
jmp 0x40d6c7
test byte [0x4ac365], 0xc0
je 0x40d6b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac35c]
cmp eax, 0x32
jae 0x40d6b2
cmp dword [ebp + 0x10], 2
je 0x40d6b2
cmp byte [0x4a8c35], bl
jne 0x40d6b2
cmp byte [0x4ac546], bl
je 0x40d6b2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4abd28]
jne 0x40d6b2
mov eax, dword [ebp + 8]
mov edi, 0x49a19c
call fcn.00409340
cmp byte [ebp + 0xc], bl
je 0x40d683
test eax, eax
setne al
test al, al
je 0x40d6b2
lea esp, [esp]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d662
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d6b2
push 1
push 0x8000012f
mov dword [0x4a63a4], ebx
call fcn.00401330
add esp, 8
mov dword [0x4a63a4], 1
jmp 0x40d640
test eax, eax
je 0x40d6b2
jmp 0x40d690
inc eax
mov edi, 0x49a1a0
call fcn.00409340
test eax, eax
je 0x40d640
cmp byte [eax], 0x7b
je 0x40d640
mov edi, 0x49a19c
call fcn.00409340
test eax, eax
jne 0x40d690
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d6c7
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4a8c5c], eax
push eax
xor eax, eax
call fcn.00411930
add esp, 4
push 1
mov dword [0x4a8c58], eax
call fcn.00411400
add esp, 4
cmp dword [0x4a9e50], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d717
mov cl, byte [0x4a9d1d]
mov dl, byte [0x4a9d1f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 3], dl
mov byte [ebp - 0xa], cl
jmp 0x40d742
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac35c]
cmp eax, dword [0x4a639c]
jae 0x40d737
mov al, byte [0x4ac365]
and al, bl
mov byte [ebp - 3], al
jmp 0x40d73e
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4ab625]
not al
and al, bl
and cl, al
mov al, byte [0x4a8c35]
mov byte [0x4ab625], cl
test al, al
je 0x40d769
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 8], bl
jmp 0x40d770
mov byte [ebp - 2], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xcf], 0
je 0x40d794
test al, al
jne 0x40d794
push 2
mov bl, 0x14
call fcn.00410bf0
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40d79b
mov dword [ebp - 0x40], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4ab678], esi
test esi, esi
je 0x40d80d
cmp esi, 1
jne 0x40d7be
mov eax, 0x36b0
mov dword [0x4a8c4c], 0x1f4
jmp 0x40d7cd
mov eax, 0x2ee0
mov dword [0x4a8c4c], 0x5dc
call fcn.0048e830
mov eax, esp
mov dword [0x4a8c54], eax
mov eax, SysReAllocString
mov byte [0x4a8c3d], bl
mov dword [0x4a8c40], eax
mov dword [0x4a8c44], eax
mov byte [0x4a8c3c], 0
mov dword [0x4a8c50], 0
mov byte [0x4a8c37], 0
mov byte [0x4a8c36], 1
mov eax, dword [0x4a6450]
mov dl, byte [0x4aa628]
mov byte [ebp - 0x26], dl
cmp eax, 8
je 0x40d825
cmp eax, 0xa
jne 0x40d860
test esi, esi
jne 0x40d860
cmp dword [ebp + 0x14], esi
jne 0x40d860
test byte [0x4ace04], 1
mov byte [ebp - 4], 1
jne 0x40d866
or dword [0x4ace04], 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 [0x4ace00], eax
jmp 0x40d86b
mov byte [ebp - 4], 0
jmp 0x40d87a
mov eax, dword [0x4ace00]
test eax, eax
je 0x40d873
push 1
call eax
mov byte [0x4aa628], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0x13], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40e207
cmp dword [0x4ab678], 0
mov byte [ebp - 9], 0
jne 0x40d8f7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac39c]
mov ecx, dword [0x4a6440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40d8f7
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d8f0
push 1
push 0xffffffffffffffff
mov dword [0x4a63a4], 0
call fcn.00401330
add esp, 8
mov dword [0x4a63a4], 1
call esi
mov dword [0x4ac39c], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e0de
movsx eax, byte [edi]
push eax
push str._
call fcn.00485df1
add esp, 8
test eax, eax
je 0x40e0de
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d933.34
movzx eax, byte [eax + 0x40e5a4]
jmp dword [eax*4 + 0x40e588]
test byte [ebp - 8], 3
jne case.0x40d933.34
or byte [ebp - 1], 1
jmp case.0x40d933.34
test byte [ebp - 8], 0x30
jne case.0x40d933.34
or byte [ebp - 1], 0x10
jmp case.0x40d933.34
test byte [ebp - 8], 0xc
jne case.0x40d933.34
or byte [ebp - 1], 4
jmp case.0x40d933.34
test byte [ebp - 8], 0xc0
jne case.0x40d933.34
or byte [ebp - 1], 0x40
jmp case.0x40d933.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00485df1
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40d933.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40d9ae
cmp al, 9
jne 0x40d9b1
inc ebx
jmp 0x40d9a4
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], esi
jne 0x40da3c
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40d9d6
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 1
jmp 0x40da36
cmp al, 0x20
je 0x40d9e2
cmp al, 9
jne 0x40e0d3
mov al, byte [esi]
cmp al, 0x20
je 0x40d9ec
cmp al, 9
jne 0x40d9ef
inc esi
jmp 0x40d9e2
push 4
push str.Down
push esi
call fcn.00485880
add esp, 0xc
test eax, eax
je 0x40da1b
push 2
push 0x498ad0
push esi
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40e0d3
push 0x7d
push esi
call fcn.00485df1
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40d933.34
sub eax, ebx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
push 5
push 0x4998ec
push ebx
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40daeb
mov byte [edi], al
add ebx, 5
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x20
je 0x40da6a
cmp al, 9
jne 0x40da6d
inc ebx
jmp 0x40da60
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0040f550
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40dac6
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0xcb]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x4c]
call fcn.004101c0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40e0c8
push 3
push 0x49a1ac
push ebx
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40db0e
mov ecx, dword [ebp - 0x24]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov eax, dword [ebp - 0x24]
mov byte [eax], 0
mov edi, 0x499ffc
mov eax, ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x20], esi
call fcn.00409340
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dbaf
mov esi, eax
mov cl, byte [esi]
sub eax, ebx
mov byte [ebp - 0x27], cl
mov byte [esi], 0
mov dword [ebp - 0x20], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40db47
cmp al, 9
je 0x40db47
mov edx, dword [ebp - 0x24]
sub edx, esi
je 0x40dbaf
push 4
push str.Down
push esi
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40db8c
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x1c], eax
call fcn.00485880
add esp, 0xc
test eax, eax
setne byte [ebp - 0x25]
jmp 0x40dbaf
push 0x498ad0
push esi
call fcn.00484e01
add esp, 8
test eax, eax
jne 0x40dba7
mov dword [ebp - 0x1c], 1
jmp 0x40dbaf
call fcn.0040ce00
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40dbeb
cmp byte [ebx + 1], 0
jne 0x40dbcb
mov ecx, dword [0x4a8c5c]
lea esi, [ebp - 1]
call fcn.00411d70
jmp 0x40dbed
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7180]
push ebx
push eax
call fcn.00484e01
add esp, 8
test eax, eax
je 0x40dbf8
inc esi
cmp esi, 0x6d
jl 0x40dbd0
xor al, al
mov byte [ebp - 0xe], al
test al, al
je 0x40dc01
xor esi, esi
jmp 0x40dc74
mov al, byte [esi*8 + 0x4a7184]
jmp 0x40dbed
mov eax, ebx
call fcn.00411c10
movzx esi, ax
mov dword [ebp + 8], esi
test si, si
jne 0x40dc74
mov al, byte [ebx]
call fcn.00409310
cmp al, 0x56
jne 0x40dc74
mov al, byte [ebx + 1]
call fcn.00409310
cmp al, 0x4b
jne 0x40dc74
lea esi, [ebx + 2]
mov edi, 0x49a1b8
mov eax, esi
call fcn.00409340
mov edi, eax
test edi, edi
je 0x40dc61
mov al, byte [edi + 1]
call fcn.00409310
cmp al, 0x43
jne 0x40dc61
push 0x10
push 0
add edi, 2
push edi
call fcn.00486784
movzx eax, ax
add esp, 0xc
mov dword [ebp + 8], eax
push 0x10
push 0
push esi
call fcn.00486784
mov esi, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dc80
mov cl, byte [ebp - 0x27]
mov byte [eax], cl
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x40e0d3
cmp byte [ebp - 0xe], 0
jne 0x40e032
test si, si
jne 0x40e032
cmp dword [ebp - 0x20], eax
jne 0x40dcef
cmp dword [ebp - 0x1c], eax
je 0x40e0d3
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40dcdb
movsx ecx, byte [ebx]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov cl, byte [ebx]
mov eax, edi
call fcn.0040e9b0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e1ea
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
sete bl
push eax
call fcn.00411de0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40def1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dd2d
cmp dword [ebp - 0x1c], edi
jne 0x40dd28
mov byte [ebp - 9], al
jmp 0x40dd2d
call fcn.0040cfd0
cmp dword [0x4ab678], 0
je 0x40dd41
mov bl, byte [0x4a8c3d]
jmp 0x40de33
cmp dword [0x4a9e50], 0
je 0x40dd55
mov bl, byte [0x4a9d1d]
jmp 0x40de33
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd70
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd84
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd98
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddac
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddc0
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddd4
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dde5
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddf6
or bl, 0x80
cmp dword [0x4a9e50], 0
je 0x40de33
mov al, bl
not al
and al, byte [0x4a9d1d]
je 0x40de33
mov cl, byte [0x4a9d1f]
not al
and byte [0x4a9d1d], al
and byte [0x4a9d1e], al
and cl, al
mov al, cl
mov byte [0x4a9d1f], cl
mov ecx, 0x4a9d40
call fcn.00411500
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00410d00
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e0d3
mov ebx, dword [ebp - 0xe]
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040ee80
add esp, 0x18
cmp dword [0x4ab678], 0
jne 0x40dedf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac39c]
mov ecx, dword [0x4a6440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40dedf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40ded8
push 1
push 0xffffffffffffffff
mov dword [0x4a63a4], 0
call fcn.00401330
add esp, 8
mov dword [0x4a63a4], 1
call esi
mov dword [0x4ac39c], eax
dec edi
jne 0x40de60
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmp edi, 4
jbe 0x40df6c
push 4
push str.ASC
push esi
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40df6c
cmp dword [ebp + 0x14], eax
jne 0x40df6c
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x40df22
cmp al, 9
jne 0x40df25
inc edi
jmp 0x40df18
call fcn.0040ea90
cmp dword [0x4ab678], 2
jne 0x40df4f
mov eax, dword [0x4a6440]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410930
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov ecx, dword [0x4a6440]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410930
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov ebx, 2
cmp edi, ebx
jbe 0x40e0d3
push ebx
push 0x49a1c4
push esi
call fcn.00485880
add esp, 0xc
test eax, eax
jne 0x40e0d3
push 0x10
push eax
add esi, ebx
push esi
call fcn.00486784
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40dfb9
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dff1
cmp dword [0x4ab678], ebx
je 0x40dfd6
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040d050
add esp, 4
jmp 0x40dff1
push 0xa
lea eax, [ebp - 0x67]
push eax
push ecx
mov byte [ebp - 0x68], 0x30
call fcn.00484a92
add esp, 0xc
lea edi, [ebp - 0x68]
call fcn.0040ea90
cmp dword [0x4ab678], ebx
jne 0x40e016
mov edx, dword [0x4a6440]
mov eax, dword [edx + 0x60]
push eax
call fcn.00410930
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov eax, dword [0x4a6440]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00410930
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov al, byte [ebp - 0xe]
xor ecx, ecx
mov edx, esi
call fcn.004115d0
mov bl, al
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40e0a5
cmp dword [ebp + 0x14], 0
jne 0x40e0a5
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40e06a
mov cl, byte [ebp - 0xe]
mov byte [ebp - 9], cl
cmp byte [ebp - 0x25], al
je 0x40e065
or byte [0x4ab625], bl
or byte [ebp - 8], bl
jmp 0x40e0a5
cmp eax, 1
jne 0x40e0a5
mov al, byte [ebp - 0xe]
call fcn.0040cfd0
mov cl, byte [0x4ab625]
mov al, bl
not al
and byte [ebp - 2], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4ab625], cl
jne 0x40e09f
cmp dword [0x4a8c58], 3
jne 0x40e09f
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xe]
push ecx
push edx
push esi
push eax
mov ecx, edi
mov al, byte [ebp - 1]
call fcn.0040e610
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e1ea
mov al, byte [edi]
mov byte [ebp - 0x14], al
test al, al
je 0x40e17e
cmp byte [ebp - 0x13], 0
jne 0x40e101
mov ecx, dword [0x4a8c5c]
lea esi, [ebp - 1]
call fcn.00411d70
jmp 0x40e180
movzx esi, al
test esi, 0xffffff80
jne 0x40e11e
push 2
push esi
call fcn.0048633e
add esp, 8
test eax, eax
je 0x40e11e
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40e15a
movzx esi, byte [ebp - 0x13]
test esi, 0xffffff80
jne 0x40e142
push 2
push esi
call fcn.0048633e
add esp, 8
test eax, eax
je 0x40e142
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40e15a
push 0x10
lea edx, [ebp - 0x12]
push 0
push edx
call fcn.00486784
add esp, 0xc
jmp 0x40e180
xor esi, esi
lea esp, [esp]
mov eax, dword [esi*8 + 0x4a7180]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00484e01
add esp, 8
test eax, eax
je 0x40e1ba
inc esi
cmp esi, 0x6d
jl 0x40e160
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0xe], al
test al, al
je 0x40e1c3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040e610
add esp, 0x24
jmp 0x40e1ea
mov al, byte [esi*8 + 0x4a7184]
jmp 0x40e180
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e1de
movsx edx, byte [edi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e1ea
mov cl, byte [edi]
mov eax, 1
call fcn.0040e9b0
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4ab624], cl
jne 0x40d88e
cmp dword [0x4ab678], 0
je 0x40e2c4
cmp byte [0x4a8c37], 0
mov dword [ebp - 0x20], 0xffffffff
jne 0x40e278
cmp dword [0x4a8c50], 0
jbe 0x40e278
cmp byte [0x4a8c35], 0
je 0x40e23a
xor eax, eax
jmp 0x40e246
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [ebp - 8]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4a8c3d]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00410d00
add esp, 0x14
lea ecx, [ebp - 0x20]
push edi
push ecx
call fcn.004107e0
add esp, 8
mov eax, dword [0x4ab678]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4a8c4c], eax
jbe 0x40e2a9
mov edx, dword [0x4a8c54]
push edx
call fcn.00484e18
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov dword [0x4ab678], 0
call fcn.00410930
add esp, 4
jmp 0x40e442
cmp dword [0x4a9e50], 0
je 0x40e2d5
mov cl, byte [0x4a9d1f]
jmp 0x40e2f9
cmp dword [0x4a639c], 0
jl 0x40e2f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac35c]
cmp eax, dword [0x4a639c]
jb 0x40e2f6
xor cl, cl
jmp 0x40e2f9
mov cl, byte [ebp - 3]
cmp byte [0x4a8c35], 0
je 0x40e31b
mov dl, byte [ebp - 3]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 8]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40e328
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4a9e50], 0
je 0x40e33f
mov cl, byte [0x4a9d1d]
mov byte [ebp - 0x20], cl
jmp 0x40e420
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e35a
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e36e
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e382
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e396
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3aa
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3be
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3cf
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3e0
or bl, 0x80
cmp dword [0x4a9e50], 0
je 0x40e41d
mov al, bl
not al
and al, byte [0x4a9d1d]
je 0x40e41d
mov cl, byte [0x4a9d1f]
not al
and byte [0x4a9d1d], al
and byte [0x4a9d1e], al
and cl, al
mov al, cl
mov byte [0x4a9d1f], cl
mov ecx, 0x4a9d40
call fcn.00411500
mov byte [ebp - 0x20], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00410d00
add esp, 0x14
mov edi, 1
xor ebx, ebx
cmp dword [0x4a9e50], ebx
je 0x40e464
mov al, byte [0x4a9d1e]
mov dl, al
xor dl, byte [0x4a9d1d]
and dl, al
not dl
and al, dl
mov byte [0x4a9d1e], al
cmp dword [ebp - 0x40], edi
jne 0x40e4d9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e4d9
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e498
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040ee80
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040ee80
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4abd28]
jne 0x40e4d9
push edi
push 0xffffffffffffffff
mov dword [0x4a63a4], ebx
call fcn.00401330
add esp, 8
mov dword [0x4a63a4], edi
cmp byte [ebp - 0x15], bl
je 0x40e4ef
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4abd28]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], bl
je 0x40e538
cmp byte [ebp - 0x26], bl
jne 0x40e538
test byte [0x4ace04], 1
jne 0x40e526
or dword [0x4ace04], 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 [0x4ace00], eax
jmp 0x40e52b
mov eax, dword [0x4ace00]
cmp eax, ebx
je 0x40e532
push ebx
call eax
mov byte [0x4aa628], bl
cmp dword [ebp + 0x10], edi
jne 0x40e56a
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4abd28]
jne 0x40e56a
push edi
push 0xffffffffffffffff
mov dword [0x4a63a4], ebx
call fcn.00401330
add esp, 8
mov dword [0x4a63a4], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret