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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
push esi
push edi
je 0x40e9ec
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4c49ac]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x40d98c
push 7
push str.Blind
push ebx
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40d98c
add ebx, 0xe
mov byte [0x4c73bd], 1
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
cmp ebx, 1
je 0x40d953
cmp ebx, 3
jne 0x40d9bf
cmp dword [0x4cb2d0], 0
je 0x40d995
call fcn.00408f40
test al, al
jne 0x40d995
test edi, edi
jne 0x40d983
call fcn.00408fa0
test al, al
je 0x40d983
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.004749b0
test eax, eax
jne 0x40d995
mov dword [ebp + 0x10], 1
jmp 0x40d9bf
mov byte [0x4c73bd], 0
jmp 0x40d93a
cmp ebx, 3
jne 0x40d9a3
mov dword [ebp + 0x10], 2
jmp 0x40d9bf
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d9b5
cmp dword [esi + 0x64], eax
jge 0x40d9b5
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 0x40da6d
mov edx, dword [ebp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40da10
cmp edi, dword [0x4ca5c0]
je 0x40da10
mov esi, dword [ebp + 0x14]
call fcn.004792e0
test al, al
jne 0x40da0d
mov eax, dword [0x4ca5c0]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c73e4], eax
push eax
xor eax, eax
call fcn.00411eb0
add esp, 4
push 1
mov dword [0x4c73e0], eax
call fcn.004118d0
mov bl, al
and byte [0x4c9eb5], bl
add esp, 4
cmp dword [0x4c85d8], 0
mov byte [ebp - 8], bl
je 0x40dbab
mov cl, byte [0x4c84a5]
mov dl, byte [0x4c84a7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dbd6
test byte [0x4cb0ca], 0xc0
je 0x40db55
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0c0]
cmp eax, 0x32
jae 0x40db55
cmp dword [ebp + 0x10], 2
je 0x40db55
cmp byte [0x4c73bd], bl
jne 0x40db55
cmp byte [0x4cb2c6], bl
je 0x40db55
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ca5c0]
jne 0x40db55
mov eax, dword [ebp + 8]
mov ebx, 0x4a4a18
call fcn.004096e0
test edi, edi
je 0x40db27
test eax, eax
setne al
test al, al
je 0x40db55
lea ecx, [ecx]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40db02
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40db55
push 1
push 0x8000012f
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
jmp 0x40dae0
test eax, eax
je 0x40db55
jmp 0x40db30
add eax, 2
mov ebx, 0x4a4a20
call fcn.004096e0
test eax, eax
je 0x40dae0
cmp word [eax], 0x7b
je 0x40dae0
mov ebx, 0x4a4a18
call fcn.004096e0
test eax, eax
jne 0x40db30
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40da10
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0xbc]
push eax
push ebx
mov dword [ebp - 0xbc], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40da10
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40da10
push 0
push eax
call edi
mov ebx, eax
jmp 0x40da10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0c0]
cmp eax, dword [0x4c48ac]
jae 0x40dbcb
mov al, byte [0x4cb0ca]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dbd2
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c9eb4]
not al
and al, bl
and cl, al
mov al, byte [0x4c73bd]
mov byte [0x4c9eb4], cl
test al, al
je 0x40dbfd
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40dc04
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x40dc25
test al, al
jne 0x40dc25
push 2
mov bl, 0x14
call fcn.004110c0
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x40dc2c
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c9f08], esi
test esi, esi
je 0x40dc9e
cmp esi, 1
jne 0x40dc4f
mov eax, 0x36b0
mov dword [0x4c73d4], 0x1f4
jmp 0x40dc5e
mov eax, 0x2ee0
mov dword [0x4c73d4], 0x5dc
call fcn.004950e0
mov eax, esp
mov dword [0x4c73dc], eax
mov eax, SysReAllocString
mov byte [0x4c73c5], bl
mov dword [0x4c73c8], eax
mov dword [0x4c73cc], eax
mov byte [0x4c73c4], 0
mov dword [0x4c73d8], 0
mov byte [0x4c73bf], 0
mov byte [0x4c73be], 1
mov eax, dword [0x4c49bc]
mov cl, byte [0x4c8ca7]
mov byte [ebp - 0x19], cl
cmp eax, 8
je 0x40dcb6
cmp eax, 0xa
jne 0x40dcf1
test esi, esi
jne 0x40dcf1
cmp dword [ebp + 0x14], esi
jne 0x40dcf1
test byte [0x4cbb80], 1
mov byte [ebp - 8], 1
jne 0x40dcf7
or dword [0x4cbb80], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cbb7c], eax
jmp 0x40dcfc
mov byte [ebp - 8], 0
jmp 0x40dd0b
mov eax, dword [0x4cbb7c]
test eax, eax
je 0x40dd04
push 1
call eax
mov byte [0x4c8ca7], 1
mov edx, dword [ebp + 8]
cmp word [edx], 0
mov byte [ebp - 1], 0
je 0x40e65f
cmp dword [0x4c9f08], 0
mov byte [ebp - 9], 0
jne 0x40dd85
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cb0fc]
mov ecx, dword [0x4c49ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40dd85
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40dd7e
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call esi
mov dword [0x4cb0fc], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x40e571
movzx eax, word [edi]
push eax
push 0x4a4a28
call fcn.0048e8e1
add esp, 8
test eax, eax
je 0x40e5c9
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40ddc2.34
movzx ecx, byte [eax + 0x40ea18]
jmp dword [ecx*4 + 0x40e9fc]
test byte [ebp - 7], 3
jne case.0x40ddc2.34
or byte [ebp - 1], 1
jmp case.0x40ddc2.34
test byte [ebp - 7], 0x30
jne case.0x40ddc2.34
or byte [ebp - 1], 0x10
jmp case.0x40ddc2.34
test byte [ebp - 7], 0xc
jne case.0x40ddc2.34
or byte [ebp - 1], 4
jmp case.0x40ddc2.34
test byte [ebp - 7], 0xc0
jne case.0x40ddc2.34
or byte [ebp - 1], 0x40
jmp case.0x40ddc2.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0048e8e1
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40ddc2.34
mov eax, esi
call fcn.00409730
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x40ded0
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x40de66
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x40deca
cmp eax, 0x20
je 0x40de74
cmp eax, 9
jne 0x40e566
mov eax, edi
call fcn.00409730
push 4
mov esi, eax
push str.Down
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
je 0x40dea9
push 2
push 0x4a1dcc
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40e566
push 0x7d
push esi
call fcn.0048e8e1
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40ddc2.34
sub eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push 5
push 0x4a37f4
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40df76
xor edx, edx
lea eax, [ebp - 0x30]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [esi + 0xa]
call fcn.00409730
call fcn.0040fa10
mov ecx, dword [ebp - 0x28]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40df51
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x38]
call fcn.00410660
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e63f
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x38]
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
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40e55b
push 3
push 0x4a4a38
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40df9c
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e63f
push 4
push str.Text
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40dfd2
lea eax, [esi + 8]
call fcn.00409730
cmp eax, edi
jne 0x40e566
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], edx
jmp 0x40e63f
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x34], ebx
mov ebx, 0x4a46f4
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x28], esi
call fcn.004096e0
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40e09c
movzx ecx, word [eax]
mov dword [ebp - 0x5c], ecx
mov ecx, eax
sub ecx, dword [ebp + 8]
xor edx, edx
mov word [eax], dx
sar ecx, 1
add eax, 2
mov dword [ebp - 0x34], ecx
call fcn.00409730
mov ebx, eax
sub edi, ebx
sar edi, 1
je 0x40e09c
push 4
push str.Down
push ebx
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40e079
push 4
add ebx, 8
push str.Temp
xor edi, edi
push ebx
mov dword [ebp - 0x14], edi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40e05b
mov dword [ebp - 0x18], edi
jmp 0x40e09c
xor eax, eax
cmp word [ebx], 0x52
sete al
push eax
call fcn.0048f2bf
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x40e09c
push 0x4a1dcc
push ebx
call fcn.0048db09
add esp, 8
test eax, eax
jne 0x40e090
mov dword [ebp - 0x14], esi
jmp 0x40e09c
mov esi, ebx
call fcn.0040d380
mov dword [ebp - 0x28], eax
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x4c73e4]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x50]
mov edx, ebx
call fcn.004124e0
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40e0c8
mov dx, word [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
mov word [eax], dx
mov edx, dword [ebp - 0x24]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x40e566
mov al, byte [ebp - 0xe]
mov edi, dword [ebp - 0x50]
test al, al
jne 0x40e4af
test di, di
jne 0x40e4af
mov eax, 1
cmp dword [ebp - 0x34], eax
jne 0x40e159
cmp dword [ebp - 0x14], eax
je 0x40e566
cmp dword [ebp + 0x14], 0
je 0x40e137
test esi, esi
jle 0x40e566
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x40e114
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40e63f
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
push eax
mov ax, word [ebx]
call fcn.0040ee40
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e63f
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x14]
sete bl
push edx
call fcn.00412590
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e355
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e197
cmp dword [ebp - 0x14], edi
jne 0x40e192
mov byte [ebp - 9], al
jmp 0x40e197
call fcn.0040d550
cmp dword [0x4c9f08], 0
je 0x40e1ab
mov bl, byte [0x4c73c5]
jmp 0x40e29d
cmp dword [0x4c85d8], 0
je 0x40e1bf
mov bl, byte [0x4c84a5]
jmp 0x40e29d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e1da
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e1ee
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e202
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e216
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e22a
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e23e
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e24f
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e260
or bl, 0x80
cmp dword [0x4c85d8], 0
je 0x40e29d
mov al, bl
not al
and al, byte [0x4c84a5]
je 0x40e29d
mov cl, byte [0x4c84a7]
not al
and byte [0x4c84a5], al
and byte [0x4c84a6], al
and cl, al
mov al, cl
mov byte [0x4c84a7], cl
mov ecx, 0x4c84c8
call fcn.004119d0
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.004111d0
mov eax, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jle 0x40e566
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.0040f350
add esp, 0x18
cmp dword [0x4c9f08], 0
jne 0x40e343
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cb0fc]
mov ecx, dword [0x4c49ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e343
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e33c
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call esi
mov dword [0x4cb0fc], eax
dec edi
jne 0x40e2c4
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40e63f
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40e38a
push 4
push str.ASC
push esi
call fcn.0048e357
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40e38d
test ebx, ebx
jne 0x40e38d
lea eax, [esi + 6]
call fcn.00409730
mov edi, eax
jmp 0x40e468
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e566
push 2
push 0x4a4a58
push esi
call fcn.0048e357
add esp, 0xc
test eax, eax
jne 0x40e566
push 0x10
push eax
add esi, 4
push esi
call fcn.0048f13b
add esp, 0xc
cmp eax, 0x10000
jb 0x40e3f0
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 0x40e3f5
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40e422
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 0x40e46d
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40e46d
cmp dword [0x4c9f08], 2
je 0x40e44d
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d5d0
add esp, 4
test si, si
je 0x40e46d
push ebx
mov edi, esi
call fcn.0040d5d0
add esp, 4
jmp 0x40e46d
push 0xa
lea edx, [ebp - 0x6e]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x70], cx
call fcn.0048d885
add esp, 0xc
lea edi, [ebp - 0x70]
call fcn.0040ef50
cmp dword [0x4c9f08], 2
jne 0x40e492
mov eax, dword [0x4c49ac]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410dd0
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e63f
mov ecx, dword [0x4c49ac]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410dd0
mov edx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e63f
xor ecx, ecx
mov edx, edi
call fcn.00411aa0
mov bl, al
mov byte [ebp - 0x48], bl
test bl, bl
je 0x40e538
cmp dword [ebp + 0x14], 0
jne 0x40e538
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40e4f7
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 0xe]
mov byte [ebp - 9], dl
cmp eax, 1
jne 0x40e4e7
or byte [0x4c9eb4], bl
or byte [ebp - 7], bl
jmp 0x40e538
cmp eax, 2
jne 0x40e4f2
or byte [0x4c9eb5], bl
or byte [ebp - 7], bl
jmp 0x40e538
cmp eax, 1
jne 0x40e538
mov al, byte [ebp - 0xe]
call fcn.0040d550
mov cl, byte [0x4c9eb4]
mov al, bl
not al
and byte [0x4c9eb5], al
and byte [ebp - 3], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4c9eb4], cl
jne 0x40e532
cmp dword [0x4c73e0], 3
jne 0x40e532
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 7]
push ecx
mov ecx, dword [ebp - 0xe]
push edx
push eax
push edi
push ecx
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.0040ea90
add esp, 0x24
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jmp 0x40e63f
cmp esi, 2
jne 0x40e5c9
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e581.11
jmp dword [eax*4 + 0x40ea78]
cmp word [edi + 2], 0xa
jne case.0x40e581.10
add edi, 2
mov dword [ebp + 8], edi
mov byte [ebp - 0xe], 0xd
jmp 0x40e5f8
mov byte [ebp - 0xe], 8
jmp 0x40e5f8
mov byte [ebp - 0xe], 9
jmp 0x40e5f8
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x40e628
movzx edx, word [edi]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e63f
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x40e5d9
test esi, esi
jne 0x40e5d9
mov al, 1
jmp 0x40e5db
xor al, al
mov si, word [edi]
push eax
mov eax, dword [0x4c73e4]
push eax
lea ecx, [ebp - 1]
push ecx
call fcn.00412410
add esp, 0xc
mov byte [ebp - 0xe], al
test al, al
je 0x40e5ab
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 7]
mov ecx, dword [ebp - 0xe]
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.0040ea90
add esp, 0x24
jmp 0x40e63f
or al, byte [ebp - 7]
mov ecx, 1
movzx eax, al
push eax
mov ax, word [edi]
call fcn.0040ee40
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4c9e93], cl
jne 0x40dd1c
cmp dword [0x4c9f08], 0
je 0x40e71c
cmp byte [0x4c73bf], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x40e6d0
cmp dword [0x4c73d8], 0
jbe 0x40e6d0
cmp byte [0x4c73bd], 0
je 0x40e692
xor eax, eax
jmp 0x40e69e
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4c73c5]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.004111d0
add esp, 0x14
lea ecx, [ebp - 0x18]
push edi
push ecx
call fcn.00410c80
add esp, 8
mov eax, dword [0x4c9f08]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c73d4], eax
jbe 0x40e701
mov edx, dword [0x4c73dc]
push edx
call fcn.0048f16f
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov dword [0x4c9f08], 0
call fcn.00410dd0
add esp, 4
jmp 0x40e8a0
cmp dword [0x4c85d8], 0
je 0x40e72d
mov cl, byte [0x4c84a7]
jmp 0x40e751
cmp dword [0x4c48ac], 0
jl 0x40e74e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0c0]
cmp eax, dword [0x4c48ac]
jb 0x40e74e
xor cl, cl
jmp 0x40e751
mov cl, byte [ebp - 2]
or cl, byte [0x4c9eb5]
cmp byte [0x4c73bd], 0
je 0x40e779
mov dl, byte [ebp - 2]
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 0x40e786
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4c85d8], 0
je 0x40e79d
mov cl, byte [0x4c84a5]
mov byte [ebp - 0x18], cl
jmp 0x40e87e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e7b8
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e7cc
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e7e0
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e7f4
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e808
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e81c
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e82d
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e83e
or bl, 0x80
cmp dword [0x4c85d8], 0
je 0x40e87b
mov al, bl
not al
and al, byte [0x4c84a5]
je 0x40e87b
mov cl, byte [0x4c84a7]
not al
and byte [0x4c84a5], al
and byte [0x4c84a6], al
and cl, al
mov al, cl
mov byte [0x4c84a7], cl
mov ecx, 0x4c84c8
call fcn.004119d0
mov byte [ebp - 0x18], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.004111d0
add esp, 0x14
mov edi, 1
cmp dword [0x4c85d8], 0
je 0x40e8c1
mov al, byte [0x4c84a6]
mov dl, al
xor dl, byte [0x4c84a5]
and dl, al
not dl
and al, dl
mov byte [0x4c84a6], al
cmp dword [ebp - 0x44], edi
jne 0x40e941
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e941
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e8f8
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push edi
call fcn.0040f350
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f350
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5c0]
jne 0x40e941
push edi
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], edi
cmp byte [ebp - 0xf], 0
je 0x40e959
mov edx, dword [ebp - 0x58]
mov eax, dword [0x4ca5c0]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40e9a6
cmp byte [ebp - 0x19], 0
jne 0x40e9a6
test byte [0x4cbb80], 1
jne 0x40e992
or dword [0x4cbb80], edi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cbb7c], eax
jmp 0x40e997
mov eax, dword [0x4cbb7c]
test eax, eax
je 0x40e99f
push 0
call eax
mov byte [0x4c8ca7], 0
cmp dword [ebp + 0x10], edi
jne 0x40e9dd
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5c0]
jne 0x40e9dd
push edi
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xc8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret