Function at 0x40e0d0
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
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x1c], ebx
cmp byte [esi], 0
je 0x40f040
mov edi, dword [0x4aa1d8]
mov dword [ebp - 0x3c], edi
test ebx, ebx
jne 0x40e119
push 7
push str.Blind
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e119
mov byte [0x4af22b], 1
add esi, 7
jmp 0x40e124
mov byte [0x4af22b], 0
test ebx, ebx
jne 0x40e143
push 6
push 0x49e9d0
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e143
mov ebx, 2
add esi, 6
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 0x5c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x54], eax
cmp ecx, 1
je 0x40e15c
cmp ecx, 3
jne 0x40e1c9
cmp dword [0x4af194], 0
je 0x40e197
call fcn.00409050
test al, al
jne 0x40e194
test ebx, ebx
jne 0x40e18b
call fcn.004090b0
test al, al
je 0x40e18b
mov edx, str.Click
mov ecx, esi
call fcn.00471970
test eax, eax
jne 0x40e194
mov dword [ebp + 8], 1
jmp 0x40e1c9
mov ecx, dword [ebp + 8]
cmp ecx, 3
jne 0x40e1a5
mov dword [ebp + 8], 2
jmp 0x40e1c9
cmp dword [edi + 0x5c], 0
mov dword [ebp + 8], 0
jge 0x40e1bd
cmp dword [edi + 0x64], 0
jge 0x40e1bd
or eax, 0xffffffff
jmp 0x40e1bf
xor eax, eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], 0xffffffff
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0x10], 0
test ebx, ebx
je 0x40e223
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40e32b
cmp eax, dword [0x4ae958]
je 0x40e32b
mov ecx, ebx
call fcn.00476330
test al, al
jne 0x40e32b
mov ebx, dword [ebp - 0x38]
push 1
push ebx
push dword [0x4ae958]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov edi, ebx
setne byte [ebp - 0x10]
jmp 0x40e32b
test byte [0x4aefa9], 0xc0
je 0x40e316
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4aefa0]
cmp eax, 0x32
jae 0x40e316
cmp dword [ebp + 8], 2
je 0x40e316
cmp byte [0x4af22b], 0
jne 0x40e316
mov ebx, dword [ebp - 0x1c]
cmp ebx, 2
je 0x40e316
cmp byte [0x4af183], 0
je 0x40e316
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ae958]
jne 0x40e316
mov edx, 0x49eb18
mov ecx, esi
call fcn.00409840
test ebx, ebx
je 0x40e2e7
test eax, eax
setne al
test al, al
je 0x40e316
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
jmp 0x40e2b0
push 0x5b
call edi
test bx, ax
jne 0x40e2c2
push 0x5c
call edi
test bx, ax
je 0x40e316
mov edx, 1
mov dword [0x4aa1d0], 0
mov ecx, 0x8000012f
call fcn.00401790
mov dword [0x4aa1d0], 1
jmp 0x40e2b0
test eax, eax
je 0x40e316
jmp 0x40e2f0
lea ecx, [eax + 1]
mov edx, 0x49eb1c
call fcn.00409840
test eax, eax
je 0x40e2a0
cmp byte [eax], 0x7b
je 0x40e2a0
mov edx, 0x49eb18
mov ecx, eax
call fcn.00409840
test eax, eax
jne 0x40e2f0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
call fcn.00411f10
mov edi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4af20c], eax
mov ecx, eax
call fcn.00411fb0
mov cl, 1
mov dword [0x4af210], eax
call fcn.00411a40
mov bl, al
and byte [0x4adb5f], bl
cmp dword [0x4ad0fc], 0
je 0x40e375
mov al, byte [0x4ad9f5]
mov dl, byte [0x4ad9e7]
mov cl, al
not al
and cl, dl
and al, dl
mov byte [ebp - 5], al
jmp 0x40e39b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4aefa0]
cmp eax, dword [0x4ab368]
jae 0x40e393
mov dl, byte [0x4aefa9]
and dl, bl
jmp 0x40e395
xor dl, dl
mov cl, dl
mov byte [ebp - 5], 0
mov bh, byte [0x4adbc0]
not cl
and cl, bl
mov byte [ebp - 3], dl
and bh, cl
cmp byte [0x4af22b], 0
mov byte [ebp - 1], bh
mov byte [0x4adbc0], bh
je 0x40e3ca
not bh
and bh, bl
mov byte [ebp - 4], bh
mov bh, bl
mov byte [ebp - 1], bh
jmp 0x40e3cf
xor al, al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0xf], bh
cmp byte [eax + 0xd3], 0
je 0x40e3fe
cmp byte [0x4af22b], 0
jne 0x40e3fe
cmp dword [ebp - 0x1c], 2
je 0x40e3fe
mov edx, 2
mov cl, 0x14
call fcn.004112f0
mov dword [ebp - 0x40], eax
jmp 0x40e405
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp + 8]
mov dword [0x4adb68], ecx
test ecx, ecx
je 0x40e481
cmp ecx, 1
jne 0x40e428
mov eax, 0x36b0
mov dword [0x4af218], 0x1f4
jmp 0x40e437
mov eax, 0x2ee0
mov dword [0x4af218], 0x5dc
call fcn.0048eed0
mov eax, dword [0x4ab370]
mov ecx, esp
mov byte [0x4af207], bl
mov byte [0x4af228], 0
mov dword [0x4af214], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [0x4af220], 0x80000000
mov dword [0x4af224], 0x80000000
mov byte [0x4af229], 0
mov byte [0x4af22a], 1
mov al, byte [0x4ad130]
mov byte [ebp - 0x1d], al
mov eax, dword [0x4aa1e4]
cmp eax, 8
je 0x40e498
cmp eax, 0xa
jne 0x40e4e9
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x40e4ec
test edi, edi
jne 0x40e4ec
mov eax, dword [0x4b05a0]
mov byte [ebp - 0xb], 1
test al, 1
jne 0x40e4d3
or dword [0x4b05a0], 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 [0x4b05a4], eax
mov eax, dword [0x4b05a4]
test eax, eax
je 0x40e4e0
push 1
call eax
mov byte [0x4ad130], 1
jmp 0x40e4f0
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xb], 0
xor bl, bl
mov byte [ebp - 0xa], bl
cmp byte [esi], bl
je 0x40ed77
jmp 0x40e503
mov edi, dword [ebp + 0xc]
cmp dword [0x4adb68], 0
mov byte [ebp - 6], 0
jne 0x40e56f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4aa1d8]
sub eax, dword [0x4aefdc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40e56f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e564
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aefdc], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40eca1
movsx eax, byte [esi]
push eax
push 0x49eb20
call fcn.004855e4
add esp, 8
test eax, eax
je 0x40ecdd
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e5a9.34
movzx eax, byte [eax + 0x40f06c]
jmp dword [eax*4 + 0x40f050]
test bh, 3
jne case.0x40e5a9.34
or bl, 1
jmp 0x40ed62
test bh, 0x30
jne case.0x40e5a9.34
or bl, 0x10
jmp 0x40ed62
test bh, 0xc
jne case.0x40e5a9.34
or bl, 4
jmp 0x40ed62
test bh, 0xc0
jne case.0x40e5a9.34
or bl, 0x40
jmp 0x40ed62
lea edi, [esi + 1]
push 0x7d
push edi
call fcn.004855e4
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40e5a9.34
mov esi, edi
nop
mov cl, byte [esi]
cmp cl, 0x20
je 0x40e61c
cmp cl, 9
jne 0x40e61f
inc esi
jmp 0x40e610
mov edi, eax
sub edi, esi
mov dword [ebp - 0x2c], edi
jne 0x40e6aa
lea edi, [eax + 1]
mov al, byte [edi]
cmp al, 0x7d
jne 0x40e642
mov ebx, 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], ebx
jmp 0x40e6b0
cmp al, 0x20
je 0x40e650
cmp al, 9
jne 0x40ec99
mov edi, edi
mov al, byte [edi]
cmp al, 0x20
je 0x40e65a
cmp al, 9
jne 0x40e65d
inc edi
jmp 0x40e650
push 4
push str.Down
push edi
call fcn.00484c8d
add esp, 0xc
test eax, eax
je 0x40e689
push 2
push 0x49cdac
push edi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40ec99
push 0x7d
push edi
call fcn.004855e4
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40e5a9.34
mov ebx, edi
sub ebx, esi
mov dword [ebp - 0x2c], ebx
jmp 0x40e6b0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
push 5
push 0x49bf24
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e74c
mov byte [edi], al
lea ecx, [esi + 5]
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x20
je 0x40e6da
cmp al, 9
jne 0x40e6dd
inc ecx
jmp 0x40e6d0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x58]
call fcn.0040fde0
mov eax, dword [ebp - 0x34]
add esp, 0x14
mov byte [edi], 0x7d
push dword [ebp - 0x50]
cmp eax, 1
jge 0x40e732
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x58]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004109c0
mov bh, byte [ebp - 1]
add esp, 0xc
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
push dword [ebp - 0x48]
mov edi, dword [ebp + 0xc]
xor edx, edx
push dword [ebp - 0x58]
mov cl, byte [ebp - 2]
push edi
push 0
push dword [ebp - 0x14]
push eax
jmp 0x40ec88
push 3
push 0x49eb28
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e772
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 1
jmp 0x40ed60
push 4
push str.Text
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e7b7
add esi, 4
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40e79a
cmp al, 9
jne 0x40e79d
inc esi
jmp 0x40e790
mov bh, byte [ebp - 1]
cmp esi, edi
jne 0x40ec99
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 2
jmp 0x40ed60
mov eax, dword [ebp - 0x24]
mov edi, 1
mov edx, 0x49e8b4
mov dword [ebp - 0x14], 2
mov ecx, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x4c], ebx
mov byte [eax], 0
call fcn.00409840
mov ebx, eax
test ebx, ebx
je 0x40e846
mov al, byte [ebx]
lea edi, [ebx + 1]
mov byte [ebp - 0x15], al
mov eax, ebx
sub eax, esi
mov byte [ebx], 0
mov dword [ebp - 0x4c], eax
mov al, byte [edi]
cmp al, 0x20
je 0x40e800
cmp al, 9
jne 0x40e803
inc edi
jmp 0x40e7f6
mov eax, dword [ebp - 0x24]
sub eax, edi
je 0x40e843
push 4
push str.Down
push edi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e8fa
push 4
add edi, 4
mov dword [ebp - 0x14], eax
push str.Temp
push edi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40e8da
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x30]
push dword [0x4af20c]
lea eax, [ebp - 0xa]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 2]
call fcn.004124f0
add esp, 0xc
test ebx, ebx
je 0x40e86a
mov al, byte [ebp - 0x15]
mov byte [ebx], al
mov ebx, dword [ebp - 0x24]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x40ec96
mov bh, byte [ebp - 2]
mov eax, dword [ebp - 0x28]
test bh, bh
jne 0x40ebd9
test ax, ax
jne 0x40ebd9
cmp dword [ebp - 0x4c], 1
jne 0x40e949
cmp dword [ebp - 0x14], 1
je 0x40ec96
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40e929
test edi, edi
jle 0x40ec96
movsx eax, byte [esi]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 0xc]
dec edi
jne 0x40e8b7
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
xor eax, eax
cmp byte [edi], 0x52
sete al
push eax
call fcn.00486278
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x44], eax
jmp 0x40e843
push 0x49cdac
push edi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x40e918
mov dword [ebp - 0x14], 1
jmp 0x40e843
mov ecx, edi
call fcn.0040dd10
mov edi, eax
mov dword [ebp - 0x34], edi
jmp 0x40e846
mov al, byte [ebp - 0xa]
mov edx, edi
mov bh, byte [ebp - 1]
mov cl, byte [esi]
or al, bh
movzx eax, al
push eax
call fcn.0040f2a0
mov esi, dword [ebp - 0x24]
add esp, 4
jmp 0x40ed60
cmp dword [ebp + 0xc], 0
mov ecx, esi
mov edx, dword [ebp - 0x2c]
sete al
movzx eax, al
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004125c0
mov bl, al
add esp, 0xc
mov byte [ebp - 2], bl
test bl, bl
je 0x40ea5f
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x14]
jne 0x40e98f
test esi, esi
jne 0x40e988
mov byte [ebp - 6], bl
jmp 0x40e98f
mov cl, bl
call fcn.0040df40
cmp dword [0x4adb68], 0
je 0x40e99f
mov al, byte [0x4af207]
jmp 0x40e9a6
xor cl, cl
call fcn.00411a40
mov bh, byte [ebp - 0xf]
mov dl, al
push 0xffc3d44d
push 0
push 0
push dword [ebp + 0xc]
mov cl, bh
mov byte [ebp - 1], bh
call fcn.00411400
add esp, 0x10
test edi, edi
jle 0x40ec99
lea esp, [esp]
push 0xffc3d44d
push 1
push dword [ebp + 0xc]
mov dl, bl
mov ecx, esi
push 0
call fcn.0040f700
add esp, 0x10
cmp dword [0x4adb68], 0
jne 0x40ea50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4aa1d8]
sub eax, dword [0x4aefdc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40ea50
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40ea45
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aefdc], eax
dec edi
jne 0x40e9d0
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
mov ebx, dword [ebp - 0x2c]
cmp ebx, 4
jbe 0x40ead1
push 4
push str.ASC
push esi
call fcn.00484c8d
mov edi, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x40ead4
test edi, edi
jne 0x40ead4
lea ecx, [esi + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x40ea8f
cmp al, 9
jne 0x40ea92
inc ecx
jmp 0x40ea85
call fcn.0040f400
cmp dword [0x4adb68], 2
mov eax, dword [0x4aa1d8]
jne 0x40eabb
mov ecx, dword [eax + 0x60]
call fcn.00411140
mov bh, byte [ebp - 0xf]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], bh
jmp 0x40ed60
mov ecx, dword [eax + 0x5c]
call fcn.00411140
mov bh, byte [ebp - 0xf]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], bh
jmp 0x40ed60
mov edi, dword [ebp + 0xc]
cmp ebx, 2
jbe 0x40eac3
push 2
push 0x49eb3c
push esi
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x40eac3
push 0x10
push eax
lea eax, [esi + 2]
push eax
call fcn.004860e0
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x40eb31
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x40eb36
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp - 0xf]
mov byte [ebp - 1], bh
test edi, edi
je 0x40eb6b
push 0
movzx eax, cx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test si, si
je 0x40ebab
push 0
movzx eax, si
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ebab
cmp dword [0x4adb68], 2
je 0x40eb90
mov bl, byte [ebp - 0xa]
or bl, bh
mov dl, bl
call fcn.0040dfc0
test si, si
je 0x40ebab
mov dl, bl
mov ecx, esi
call fcn.0040dfc0
jmp 0x40ebab
push 0xa
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0x30
push eax
push edx
call fcn.004840fe
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0040f400
cmp dword [0x4adb68], 2
mov eax, dword [0x4aa1d8]
jne 0x40ebc9
mov ecx, dword [eax + 0x60]
call fcn.00411140
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
mov ecx, dword [eax + 0x5c]
call fcn.00411140
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
push 0
mov edx, eax
mov cl, bh
call fcn.00411bd0
mov esi, dword [ebp - 0x14]
mov bl, al
add esp, 4
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40ec6f
cmp dword [ebp + 0xc], 0
jne 0x40ec6f
test esi, esi
jne 0x40ec2b
mov eax, dword [ebp - 0x44]
mov byte [ebp - 6], bh
cmp eax, 1
jne 0x40ec19
mov al, byte [ebp - 1]
or byte [0x4adbc0], bl
or al, bl
jmp 0x40ec69
cmp eax, 2
jne 0x40ec24
or byte [0x4adb5f], bl
mov al, byte [ebp - 1]
or al, bl
jmp 0x40ec69
cmp esi, 1
jne 0x40ec6f
mov cl, bh
call fcn.0040df40
mov al, byte [0x4adbc0]
not bl
mov cl, byte [ebp - 4]
and al, bl
and byte [0x4adb5f], bl
and cl, bl
mov byte [0x4adbc0], al
mov byte [ebp - 4], cl
cmp bh, 0xa5
jne 0x40ec67
cmp dword [0x4af210], 3
jne 0x40ec67
and cl, 0xfe
mov byte [ebp - 4], cl
or al, cl
mov byte [ebp - 0xf], al
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x28]
mov cl, bh
push 0
push SysReAllocString
push SysReAllocString
push dword [ebp + 0xc]
push dword [ebp - 0x5c]
push esi
push edi
push dword [ebp - 0xf]
push dword [ebp - 0xa]
call fcn.0040f0f0
add esp, 0x24
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
jmp 0x40ed60
cmp eax, 2
jne 0x40ece0
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40ecb1.11
jmp dword [eax*4 + 0x40f0cc]
cmp byte [esi + 1], 0xa
lea eax, [esi + 1]
cmove esi, eax
mov al, 0xd
mov byte [ebp - 2], al
jmp 0x40ed09
mov al, 8
mov byte [ebp - 2], al
jmp 0x40ed09
mov al, 9
mov byte [ebp - 2], al
jmp 0x40ed09
mov byte [ebp - 2], 0
jmp 0x40ed33
mov eax, dword [ebp - 0x1c]
or bl, bh
je 0x40ecec
test eax, eax
jne 0x40ecec
mov al, 1
jmp 0x40ecee
xor al, al
mov cl, byte [esi]
lea edx, [ebp - 0xa]
push eax
push dword [0x4af20c]
call fcn.00412420
add esp, 8
mov byte [ebp - 2], al
test al, al
je 0x40ed30
push 0
push SysReAllocString
push SysReAllocString
push edi
push 0
push 2
push 1
push dword [ebp - 0xf]
xor edx, edx
mov cl, al
push dword [ebp - 0xa]
call fcn.0040f0f0
add esp, 0x24
jmp 0x40ed60
mov bl, byte [ebp - 0xa]
test edi, edi
je 0x40ed4b
movsx eax, byte [esi]
push 0
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40ed60
mov cl, byte [esi]
or bl, bh
movzx eax, bl
mov edx, 1
push eax
call fcn.0040f2a0
add esp, 4
xor bl, bl
mov byte [ebp - 0xa], bl
mov al, byte [ebp - 6]
inc esi
mov byte [0x4adbc1], al
cmp byte [esi], 0
jne 0x40e500
cmp dword [0x4adb68], 0
je 0x40ee47
or esi, 0xffffffff
cmp byte [0x4af229], 0
mov dword [ebp - 0x28], esi
jne 0x40ede6
cmp dword [0x4af214], 0
jbe 0x40ede6
cmp byte [0x4af22b], 0
je 0x40eda9
xor ebx, ebx
jmp 0x40edb5
movzx ebx, byte [ebp - 5]
movzx eax, byte [ebp - 3]
not ebx
and ebx, eax
or bl, byte [0x4adb5f]
or bl, byte [ebp - 1]
mov dl, byte [0x4af207]
mov cl, bl
push 0xffc3d44d
push 1
push 1
push 0
call fcn.00411400
add esp, 0x10
lea ecx, [ebp - 0x28]
mov dl, bl
call fcn.00410ff0
mov esi, dword [ebp - 0x28]
cmp dword [0x4adb68], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4af218], eax
jbe 0x40ee10
push dword [0x4adb6c]
call fcn.004843d4
add esp, 4
mov dword [0x4adb68], 0
test esi, esi
js 0x40eecd
mov edx, 1
mov dword [0x4aa1d0], 0
mov ecx, esi
call fcn.00401790
mov dword [0x4aa1d0], 1
jmp 0x40eecd
cmp dword [0x4ad0fc], 0
je 0x40ee5b
mov cl, byte [0x4ad9e7]
mov dl, byte [ebp - 3]
jmp 0x40ee84
cmp dword [0x4ab368], 0
jl 0x40ee7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4aefa0]
cmp eax, dword [0x4ab368]
jb 0x40ee7f
mov dl, byte [ebp - 3]
xor cl, cl
jmp 0x40ee84
mov dl, byte [ebp - 3]
mov cl, dl
or cl, byte [0x4adb5f]
cmp byte [0x4af22b], 0
je 0x40eea5
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x40eeae
mov bl, byte [ebp - 5]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0xc]
xor cl, cl
call fcn.00411a40
mov dl, al
mov cl, bl
call fcn.00411400
add esp, 0x10
cmp dword [0x4ad0fc], 0
je 0x40eef0
mov cl, byte [0x4ad9f4]
mov al, cl
xor al, byte [0x4ad9f5]
and al, cl
not al
and cl, al
mov byte [0x4ad9f4], cl
cmp dword [ebp - 0x40], 1
jne 0x40ef8c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ef8c
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ef34
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0040f700
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0040f700
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call esi
cmp eax, dword [0x4ae958]
jne 0x40ef98
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
jmp 0x40ef98
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp - 0x10], 0
je 0x40efaf
push 0
push dword [ebp - 0x38]
push dword [0x4ae958]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0xb], 0
je 0x40effb
cmp byte [ebp - 0x1d], 0
jne 0x40effb
mov eax, dword [0x4b05a0]
test al, 1
jne 0x40efe7
or dword [0x4b05a0], 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 [0x4b05a4], eax
mov eax, dword [0x4b05a4]
test eax, eax
je 0x40eff4
push 0
call eax
mov byte [0x4ad130], 0
cmp dword [ebp + 8], 1
jne 0x40f031
push 0
call ebx
push eax
call esi
cmp eax, dword [0x4ae958]
jne 0x40f031
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret