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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x40ea3c
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c440c]
mov dword [ebp - 0x38], esi
test bl, bl
jne 0x40d96c
push 7
push str.Blind
push edi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40d96c
add edi, 0xe
mov byte [0x4c6ecf], 1
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
cmp edi, 1
je 0x40d933
cmp edi, 3
jne 0x40d99f
cmp dword [0x4caddc], 0
je 0x40d975
call fcn.00408e20
test al, al
jne 0x40d975
test bl, bl
jne 0x40d963
call fcn.00408e80
test al, al
je 0x40d963
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00475ab0
test eax, eax
jne 0x40d975
mov dword [ebp + 0x10], 1
jmp 0x40d99f
mov byte [0x4c6ecf], 0
jmp 0x40d91a
cmp edi, 3
jne 0x40d983
mov dword [ebp + 0x10], 2
jmp 0x40d99f
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d995
cmp dword [esi + 0x64], eax
jge 0x40d995
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0xb], 0
cmp dword [ebp + 0x14], edi
je 0x40da47
mov edx, dword [ebp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40d9f0
cmp ebx, dword [0x4ca0cc]
je 0x40d9f0
mov esi, dword [ebp + 0x14]
call fcn.0047a260
test al, al
jne 0x40d9ed
mov eax, dword [0x4ca0cc]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
mov esi, dword [ebp - 0x38]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c6ef4], eax
push eax
xor eax, eax
call fcn.00411ee0
add esp, 4
push 1
mov dword [0x4c6ef0], eax
call fcn.00411910
add esp, 4
cmp dword [0x4c80e8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40db53
mov cl, byte [0x4c7fb5]
mov dl, byte [0x4c7fb7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40db7e
test byte [0x4cabee], 0xc0
je 0x40db35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cabe4]
cmp eax, 0x32
jae 0x40db35
cmp dword [ebp + 0x10], 2
je 0x40db35
cmp byte [0x4c6ecf], 0
jne 0x40db35
cmp byte [0x4cadce], 0
je 0x40db35
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ca0cc]
jne 0x40db35
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a5834
je 0x40db03
call fcn.004095d0
test eax, eax
setne al
test al, al
je 0x40db35
lea esp, [esp]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x40dae2
push 0x5c
call ebx
mov edx, 0x8000
test dx, ax
je 0x40db35
push 1
push 0x8000012f
mov dword [0x4c43d4], edi
call fcn.00401340
add esp, 8
mov dword [0x4c43d4], 1
jmp 0x40dac0
call fcn.004095d0
test eax, eax
je 0x40db35
lea esp, [esp]
add eax, 2
mov ebx, 0x4a583c
call fcn.004095d0
test eax, eax
je 0x40dac0
cmp word [eax], 0x7b
je 0x40dac0
mov ebx, 0x4a5834
call fcn.004095d0
test eax, eax
jne 0x40db10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d9f0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
jmp 0x40d9f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cabe4]
cmp eax, dword [0x4c43cc]
jae 0x40db73
mov al, byte [0x4cabee]
and al, bl
mov byte [ebp - 2], al
jmp 0x40db7a
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c99c1]
not al
and al, bl
and cl, al
mov al, byte [0x4c6ecf]
mov byte [0x4c99c1], cl
test al, al
je 0x40dba5
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40dbac
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
cmp byte [esi + 0xef], 0
je 0x40dbcd
test al, al
jne 0x40dbcd
push 2
mov bl, 0x14
call fcn.00411100
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40dbd4
mov dword [ebp - 0x40], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4c9a18], edi
test edi, edi
je 0x40dc46
cmp edi, 1
jne 0x40dbf7
mov eax, 0x36b0
mov dword [0x4c6ee4], 0x1f4
jmp 0x40dc06
mov eax, 0x2ee0
mov dword [0x4c6ee4], 0x5dc
call fcn.00496040
mov eax, esp
mov dword [0x4c6eec], eax
mov eax, SysReAllocString
mov byte [0x4c6ed7], bl
mov dword [0x4c6ed8], eax
mov dword [0x4c6edc], eax
mov byte [0x4c6ed6], 0
mov dword [0x4c6ee8], 0
mov byte [0x4c6ed5], 0
mov byte [0x4c6ed4], 1
mov al, byte [0x4c89c4]
mov byte [ebp - 0x25], al
mov eax, dword [0x4c44e8]
cmp eax, 8
je 0x40dc5d
cmp eax, 0xa
jne 0x40dc9e
test edi, edi
jne 0x40dc9e
cmp dword [ebp + 0x14], edi
jne 0x40dc9e
test byte [0x4cb680], 1
mov byte [ebp - 4], 1
jne 0x40dca4
or dword [0x4cb680], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x4c9a18]
mov dword [0x4cb67c], eax
jmp 0x40dca9
mov byte [ebp - 4], 0
jmp 0x40dcbe
mov eax, dword [0x4cb67c]
test eax, eax
je 0x40dcb7
push 1
call eax
mov edi, dword [0x4c9a18]
mov byte [0x4c89c4], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov byte [ebp - 1], 0
cmp word [edx], cx
je 0x40e6b4
mov esi, edx
cmp dword [0x4c9a18], 0
mov byte [ebp - 9], 0
jne 0x40dd3f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4cac24]
mov ecx, dword [0x4c440c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40dd3f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40dd38
push 1
push 0xffffffffffffffff
mov dword [0x4c43d4], 0
call fcn.00401340
add esp, 8
mov dword [0x4c43d4], 1
call edi
mov dword [0x4cac24], eax
cmp byte [ebp + 0xc], 0
jne 0x40e569
movzx eax, word [esi]
push eax
push 0x4a5844
call fcn.0048f841
add esp, 8
test eax, eax
je 0x40e569
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40dd78.34
movzx ecx, byte [eax + 0x40ea68]
jmp dword [ecx*4 + 0x40ea4c]
test byte [ebp - 8], 3
jne case.0x40dd78.34
or byte [ebp - 1], 1
jmp case.0x40dd78.34
test byte [ebp - 8], 0x30
jne case.0x40dd78.34
or byte [ebp - 1], 0x10
jmp case.0x40dd78.34
test byte [ebp - 8], 0xc
jne case.0x40dd78.34
or byte [ebp - 1], 4
jmp case.0x40dd78.34
test byte [ebp - 8], 0xc0
jne case.0x40dd78.34
or byte [ebp - 1], 0x40
jmp case.0x40dd78.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.0048f841
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40dd78.34
mov eax, ebx
call fcn.00409620
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40de79
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40de15
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40de73
cmp ecx, 0x20
je 0x40de23
cmp ecx, 9
jne 0x40e55c
call fcn.00409620
push 4
mov edi, eax
push str.Down
push edi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
je 0x40de56
push 2
push 0x4a2d58
push edi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40e55c
push 0x7d
push edi
call fcn.0048f841
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40dd78.34
sub eax, esi
sar eax, 1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
push 5
push 0x4a4780
push esi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40df21
xor edx, edx
lea eax, [ebp - 0x48]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [esi + 0xa]
call fcn.00409620
call fcn.0040fa50
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40defc
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0xeb]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
call fcn.004106a0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
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 - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0x1d]
push eax
push 0
push edx
jmp 0x40e551
push 3
push 0x4a5854
push esi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40df46
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x4a552c
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.004095d0
mov edi, eax
test edi, edi
je 0x40dff5
movzx edx, word [edi]
xor eax, eax
mov word [edi], ax
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ebp - 0x60], edx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [edi + 2]
call fcn.00409620
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40dff2
push 4
push str.Down
push esi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40dfcf
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.0048f2b7
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40dff2
push 0x4a2d58
push esi
call fcn.0048ea69
add esp, 8
test eax, eax
jne 0x40dfea
mov dword [ebp - 0x10], 1
jmp 0x40dff2
call fcn.0040d230
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40e03e
cmp word [esi + 2], 0
jne 0x40e017
mov ecx, dword [0x4c6ef4]
lea esi, [ebp - 1]
call fcn.00412330
mov esi, dword [ebp + 8]
jmp 0x40e040
mov ebx, dword [ebp + 8]
xor esi, esi
lea esp, [esp]
mov edx, dword [esi*8 + 0x4c5218]
push ebx
push edx
call fcn.0048ea69
add esp, 8
test eax, eax
je 0x40e055
inc esi
cmp esi, 0x6d
jl 0x40e020
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40e061
mov dword [ebp - 0x3c], 0
jmp 0x40e0e6
mov al, byte [esi*8 + 0x4c521c]
mov esi, dword [ebp + 8]
jmp 0x40e040
mov eax, esi
call fcn.004121d0
movzx eax, ax
mov dword [ebp - 0x3c], eax
test ax, ax
jne 0x40e0e6
mov ax, word [esi]
call fcn.004095a0
cmp ax, 0x56
jne 0x40e0e6
mov ax, word [esi + 2]
call fcn.004095a0
cmp ax, 0x4b
jne 0x40e0e6
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x4a5868
call fcn.004095d0
mov esi, eax
test esi, esi
je 0x40e0cb
mov ax, word [esi + 2]
call fcn.004095a0
cmp ax, 0x43
jne 0x40e0cb
push 0x10
push 0
add esi, 4
push esi
call fcn.0049009b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
push 0x10
add eax, 4
push 0
push eax
call fcn.0049009b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40e0f1
mov cx, word [ebp - 0x60]
mov word [edi], cx
cmp dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x7d
mov word [eax], dx
jl 0x40e55c
test bl, bl
jne 0x40e4be
cmp word [ebp - 0x3c], 0
jne 0x40e4be
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40e170
cmp dword [ebp - 0x10], eax
je 0x40e55c
cmp dword [ebp + 0x14], 0
je 0x40e154
movzx ecx, word [esi]
mov edx, dword [ebp + 0x14]
push 0
push ecx
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040ee70
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
sete bl
push edx
call fcn.004123b0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40e373
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e1ae
cmp dword [ebp - 0x10], edi
jne 0x40e1a9
mov byte [ebp - 9], al
jmp 0x40e1ae
call fcn.0040d400
cmp dword [0x4c9a18], 0
je 0x40e1c2
mov bl, byte [0x4c6ed7]
jmp 0x40e2b4
cmp dword [0x4c80e8], 0
je 0x40e1d6
mov bl, byte [0x4c7fb5]
jmp 0x40e2b4
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e1f1
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e205
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e219
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e22d
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e241
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e255
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e266
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e277
or bl, 0x80
cmp dword [0x4c80e8], 0
je 0x40e2b4
mov al, bl
not al
and al, byte [0x4c7fb5]
je 0x40e2b4
mov cl, byte [0x4c7fb7]
not al
and byte [0x4c7fb5], al
and byte [0x4c7fb6], al
and cl, al
mov al, cl
mov byte [0x4c7fb7], cl
mov ecx, 0x4c7fd8
call fcn.00411a10
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00411210
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e55c
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40e2e0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040f380
add esp, 0x18
cmp dword [0x4c9a18], 0
jne 0x40e35f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cac24]
mov ecx, dword [0x4c440c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40e35f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e358
push 1
push 0xffffffffffffffff
mov dword [0x4c43d4], 0
call fcn.00401340
add esp, 8
mov dword [0x4c43d4], 1
call esi
mov dword [0x4cac24], eax
dec edi
jne 0x40e2e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40e3ee
push 4
push str.ASC
push edi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40e3ee
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40e3f1
lea eax, [edi + 6]
call fcn.00409620
mov edi, eax
call fcn.0040ef80
cmp dword [0x4c9a18], 2
jne 0x40e3cf
mov eax, dword [0x4c440c]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410e10
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov ecx, dword [0x4c440c]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410e10
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov esi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40e55c
push 2
push 0x4a587c
push edi
call fcn.0048f2b7
add esp, 0xc
test eax, eax
jne 0x40e55c
push 0x10
push eax
add edi, 4
push edi
call fcn.0049009b
add esp, 0xc
movzx ecx, ax
test esi, esi
je 0x40e439
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e477
cmp dword [0x4c9a18], 2
je 0x40e457
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040d480
add esp, 4
jmp 0x40e477
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.0048e7e5
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.0040ef80
cmp dword [0x4c9a18], 2
jne 0x40e49f
mov ecx, dword [0x4c440c]
mov eax, dword [ecx + 0x60]
push eax
call fcn.00410e10
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov edx, dword [0x4c440c]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00410e10
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411ae0
mov byte [ebp - 0x14], al
test al, al
je 0x40e52d
cmp dword [ebp + 0x14], 0
jne 0x40e52d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40e4f3
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40e4ee
or byte [0x4c99c1], al
or byte [ebp - 8], al
jmp 0x40e52d
cmp ecx, 1
jne 0x40e52d
mov al, bl
call fcn.0040d400
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c99c1]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c99c1], cl
cmp bl, 0xa5
jne 0x40e527
cmp dword [0x4c6ef0], 3
jne 0x40e527
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 8], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x1d]
push edx
push eax
push esi
push ecx
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 1]
call fcn.0040ead0
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e692
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e621
cmp word [ebp - 0x2a], 0
jne 0x40e599
mov ecx, dword [0x4c6ef4]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00412330
mov esi, dword [ebp + 8]
jmp 0x40e623
movzx esi, ax
test esi, 0xffffff80
jne 0x40e5b6
push 2
push esi
call fcn.0048fcbe
add esp, 8
test eax, eax
je 0x40e5b6
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40e5f5
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40e5da
push 2
push esi
call fcn.0048fcbe
add esp, 8
test eax, eax
je 0x40e5da
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40e5f5
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0049009b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40e623
xor esi, esi
jmp 0x40e600
mov edx, dword [esi*8 + 0x4c5218]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0048ea69
add esp, 8
test eax, eax
je 0x40e65d
inc esi
cmp esi, 0x6d
jl 0x40e600
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e669
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov al, byte [ebp - 1]
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
call fcn.0040ead0
add esp, 0x24
jmp 0x40e692
mov al, byte [esi*8 + 0x4c521c]
mov esi, dword [ebp + 8]
jmp 0x40e623
test eax, eax
je 0x40e681
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e692
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040ee70
add esp, 4
mov byte [ebp - 1], 0
mov al, byte [ebp - 9]
add esi, 2
cmp word [esi], 0
mov dword [ebp + 8], esi
mov byte [0x4c99c0], al
jne 0x40dcd6
mov edi, dword [0x4c9a18]
test edi, edi
je 0x40e774
cmp byte [0x4c6ed5], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e72b
cmp dword [0x4c6ee8], 0
jbe 0x40e72b
cmp byte [0x4c6ecf], 0
je 0x40e6e2
xor eax, eax
jmp 0x40e6ee
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4c6ed7]
mov ebx, 1
push ebx
push ebx
mov byte [ebp + 8], al
mov edi, dword [ebp + 8]
push 0
push edx
push edi
mov esi, 0xffc3d44d
call fcn.00411210
add esp, 0x14
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00410cc0
mov edi, dword [0x4c9a18]
add esp, 8
jmp 0x40e730
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c6ee4], edi
jbe 0x40e759
mov ecx, dword [0x4c6eec]
push ecx
call fcn.004900cf
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
mov dword [0x4c9a18], 0
call fcn.00410e10
add esp, 4
jmp 0x40e8ef
cmp dword [0x4c80e8], 0
je 0x40e785
mov cl, byte [0x4c7fb7]
jmp 0x40e7a9
cmp dword [0x4c43cc], 0
jl 0x40e7a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cabe4]
cmp eax, dword [0x4c43cc]
jb 0x40e7a6
xor cl, cl
jmp 0x40e7a9
mov cl, byte [ebp - 2]
cmp byte [0x4c6ecf], 0
je 0x40e7cb
mov dl, byte [ebp - 2]
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 0x40e7d8
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c80e8], 0
je 0x40e7ee
mov al, byte [0x4c7fb5]
mov byte [ebp - 0x14], al
jmp 0x40e8cf
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e809
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e81d
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e831
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e845
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e859
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e86d
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e87e
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e88f
or bl, 0x80
cmp dword [0x4c80e8], 0
je 0x40e8cc
mov al, bl
not al
and al, byte [0x4c7fb5]
je 0x40e8cc
mov cl, byte [0x4c7fb7]
not al
and byte [0x4c7fb5], al
and byte [0x4c7fb6], al
and cl, al
mov al, cl
mov byte [0x4c7fb7], cl
mov ecx, 0x4c7fd8
call fcn.00411a10
mov byte [ebp - 0x14], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push eax
push ecx
push edx
mov esi, 0xffc3d44d
call fcn.00411210
add esp, 0x14
cmp dword [0x4c80e8], 0
je 0x40e910
mov al, byte [0x4c7fb6]
mov cl, al
xor cl, byte [0x4c7fb5]
and cl, al
not cl
and al, cl
mov byte [0x4c7fb6], al
cmp dword [ebp - 0x40], ebx
jne 0x40e990
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e990
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40e947
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push ebx
call fcn.0040f380
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f380
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca0cc]
jne 0x40e990
push ebx
push 0xffffffffffffffff
mov dword [0x4c43d4], 0
call fcn.00401340
add esp, 8
mov dword [0x4c43d4], ebx
cmp byte [ebp - 0xb], 0
je 0x40e9a9
mov eax, dword [ebp - 0x54]
mov ecx, dword [0x4ca0cc]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e9f6
cmp byte [ebp - 0x25], 0
jne 0x40e9f6
test byte [0x4cb680], 1
jne 0x40e9e2
or dword [0x4cb680], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb67c], eax
jmp 0x40e9e7
mov eax, dword [0x4cb67c]
test eax, eax
je 0x40e9ef
push 0
call eax
mov byte [0x4c89c4], 0
cmp dword [ebp + 0x10], ebx
jne 0x40ea2d
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca0cc]
jne 0x40ea2d
push ebx
push 0xffffffffffffffff
mov dword [0x4c43d4], 0
call fcn.00401340
add esp, 8
mov dword [0x4c43d4], ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret