Function at 0x40ce20
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 0x40e102
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4bd41c]
mov dword [ebp - 0x40], esi
test bl, bl
jne 0x40cebb
push 7
push str.Blind
push edi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40cebb
add edi, 0xe
mov byte [0x4bfd94], 1
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
cmp eax, 1
je 0x40ce83
cmp eax, 3
jne 0x40cef1
cmp dword [0x4c3fac], 0
je 0x40cec7
call fcn.004088c0
test al, al
jne 0x40cec4
test bl, bl
jne 0x40ceb2
call fcn.00408920
test al, al
je 0x40ceb2
mov eax, str.Click
mov ecx, edi
call fcn.0046b6b0
test eax, eax
jne 0x40cec4
mov dword [ebp + 0x10], 1
jmp 0x40cef1
mov byte [0x4bfd94], 0
jmp 0x40ce6a
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40ced5
mov dword [ebp + 0x10], 2
jmp 0x40cef1
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40cee7
cmp dword [esi + 0x64], eax
jge 0x40cee7
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor edi, edi
mov byte [ebp - 0xb], 0
test esi, esi
je 0x40cf49
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40d04a
cmp ebx, dword [0x4c310c]
je 0x40d04a
call fcn.0046fb60
test al, al
jne 0x40d04a
mov edx, dword [0x4c310c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40d04a
test byte [0x4c3bf2], 0xc0
je 0x40d035
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3be8]
cmp eax, 0x32
jae 0x40d035
cmp dword [ebp + 0x10], edi
jne 0x40d035
cmp byte [0x4bfd94], 0
jne 0x40d035
cmp byte [0x4c3f96], 0
je 0x40d035
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c310c]
jne 0x40d035
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49e9fc
je 0x40d003
call fcn.00409070
test eax, eax
setne al
test al, al
je 0x40d035
lea ebx, [ebx]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40cfe2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d035
push 1
push 0x8000012f
mov dword [0x4bd3e4], edi
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
jmp 0x40cfc0
call fcn.00409070
test eax, eax
je 0x40d035
lea esp, [esp]
add eax, 2
mov ebx, 0x49ea04
call fcn.00409070
test eax, eax
je 0x40cfc0
cmp word [eax], 0x7b
je 0x40cfc0
mov ebx, 0x49e9fc
call fcn.00409070
test eax, eax
jne 0x40d010
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d04a
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4bfdb8], eax
push eax
xor eax, eax
call fcn.00411640
add esp, 4
push 1
mov dword [0x4bfdb4], eax
call fcn.004110a0
add esp, 4
cmp dword [0x4c0fa4], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d09a
mov cl, byte [0x4c0e71]
mov dl, byte [0x4c0e73]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d0c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3be8]
cmp eax, dword [0x4bd3dc]
jae 0x40d0ba
mov al, byte [0x4c3bf2]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d0c1
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c1a3f]
not al
and al, bl
and cl, al
mov al, byte [0x4bfd94]
mov byte [0x4c1a3f], cl
test al, al
je 0x40d0ec
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d0f3
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xea], 0
je 0x40d1cc
test al, al
jne 0x40d1cc
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call edi
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp esi, 2
jne 0x40d12e
mov dword [ebp - 0x3c], esi
jmp 0x40d1d3
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040eaa0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
sete bl
test bl, bl
je 0x40d181
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
push 0x14
call edi
test al, 1
je 0x40d1c4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040eaa0
add esp, 0x18
test bl, bl
je 0x40d1c4
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x3c], esi
jmp 0x40d1d3
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp + 0x10]
mov edi, esi
mov dword [0x4c2a50], edi
test esi, esi
je 0x40d247
cmp esi, 1
jne 0x40d1f8
mov eax, 0x36b0
mov dword [0x4bfda8], 0x1f4
jmp 0x40d207
mov eax, 0x2ee0
mov dword [0x4bfda8], 0x5dc
call fcn.00491130
mov eax, esp
mov dword [0x4bfdb0], eax
mov eax, SysReAllocString
mov byte [0x4bfda0], bl
mov dword [0x4bfd98], eax
mov dword [0x4bfd9c], eax
mov byte [0x4bfd97], 0
mov dword [0x4bfdac], 0
mov byte [0x4bfd96], 0
mov byte [0x4bfd95], 1
mov eax, dword [0x4bd4f8]
mov dl, byte [0x4c1a02]
mov byte [ebp - 0x25], dl
cmp eax, 8
je 0x40d25f
cmp eax, 0xa
jne 0x40d2a0
test esi, esi
jne 0x40d2a0
cmp dword [ebp + 0x14], esi
jne 0x40d2a0
test byte [0x4c4844], 1
mov byte [ebp - 4], 1
jne 0x40d2a6
or dword [0x4c4844], 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 [0x4c2a50]
mov dword [0x4c4840], eax
jmp 0x40d2ab
mov byte [ebp - 4], 0
jmp 0x40d2c0
mov eax, dword [0x4c4840]
test eax, eax
je 0x40d2b9
push 1
call eax
mov edi, dword [0x4c2a50]
mov byte [0x4c1a02], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40ddb4
mov esi, ecx
cmp dword [0x4c2a50], 0
mov byte [ebp - 9], 0
jne 0x40d341
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4c3c2c]
mov edx, dword [0x4bd41c]
cmp eax, dword [edx + 0xd0]
jbe 0x40d341
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40d33a
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
call edi
mov dword [0x4c3c2c], eax
cmp byte [ebp + 0xc], 0
jne 0x40dc71
movzx ecx, word [esi]
push ecx
push str._
call fcn.00487101
add esp, 8
test eax, eax
je 0x40dc71
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d37a.34
movzx edx, byte [eax + 0x40e12c]
jmp dword [edx*4 + 0x40e110]
test byte [ebp - 8], 3
jne case.0x40d37a.34
or byte [ebp - 1], 1
jmp case.0x40d37a.34
test byte [ebp - 8], 0x30
jne case.0x40d37a.34
or byte [ebp - 1], 0x10
jmp case.0x40d37a.34
test byte [ebp - 8], 0xc
jne case.0x40d37a.34
or byte [ebp - 1], 4
jmp case.0x40d37a.34
cmp byte [0x4c3c0f], 0
jne case.0x40d37a.34
test byte [ebp - 8], 0xc0
jne case.0x40d37a.34
or byte [ebp - 1], 0x40
jmp case.0x40d37a.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.00487101
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40d37a.34
mov eax, ebx
call fcn.004090c0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40d488
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40d424
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40d482
cmp ecx, 0x20
je 0x40d432
cmp ecx, 9
jne 0x40dc64
call fcn.004090c0
push 4
mov edi, eax
push str.Down
push edi
call fcn.00486b72
add esp, 0xc
test eax, eax
je 0x40d465
push 2
push 0x49bd18
push edi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40dc64
push 0x7d
push edi
call fcn.00487101
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d37a.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 0x49d77c
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40d52b
lea ecx, [ebp - 0x48]
push ecx
mov word [edi], ax
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1d]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
lea eax, [esi + 0xa]
call fcn.004090c0
call fcn.0040f1f0
mov edx, dword [ebp - 0x48]
mov ecx, 0x7d
mov word [edi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
push edx
cmp ecx, 1
jge 0x40d50a
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0xe7]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040fec0
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov eax, dword [ebp - 0x50]
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 0x40dc59
push 3
push 0x49ea1c
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40d550
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x49e6d0
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.00409070
mov edi, eax
test edi, edi
je 0x40d5ff
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.004090c0
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40d5fc
push 4
push str.Down
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40d5d9
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.00486b72
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40d5fc
push 0x49bd18
push esi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x40d5f4
mov dword [ebp - 0x10], 1
jmp 0x40d5fc
call fcn.0040ca10
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40d644
cmp word [esi + 2], 0
jne 0x40d621
mov ecx, dword [0x4bfdb8]
lea esi, [ebp - 1]
call fcn.004118e0
mov esi, dword [ebp + 8]
jmp 0x40d646
mov ebx, dword [ebp + 8]
xor esi, esi
mov edx, dword [esi*8 + 0x4be228]
push ebx
push edx
call fcn.00486339
add esp, 8
test eax, eax
je 0x40d65b
inc esi
cmp esi, 0x6d
jl 0x40d626
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40d667
mov dword [ebp - 0x38], 0
jmp 0x40d6ec
mov al, byte [esi*8 + 0x4be22c]
mov esi, dword [ebp + 8]
jmp 0x40d646
mov eax, esi
call fcn.00411780
movzx eax, ax
mov dword [ebp - 0x38], eax
test ax, ax
jne 0x40d6ec
mov ax, word [esi]
call fcn.00409040
cmp ax, 0x56
jne 0x40d6ec
mov ax, word [esi + 2]
call fcn.00409040
cmp ax, 0x4b
jne 0x40d6ec
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x49ea30
call fcn.00409070
mov esi, eax
test esi, esi
je 0x40d6d1
mov ax, word [esi + 2]
call fcn.00409040
cmp ax, 0x43
jne 0x40d6d1
push 0x10
push 0
add esi, 4
push esi
call fcn.0048795b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push 0x10
add eax, 4
push 0
push eax
call fcn.0048795b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40d6f7
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 0x40dc64
test bl, bl
jne 0x40dbc6
cmp word [ebp - 0x38], 0
jne 0x40dbc6
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40d776
cmp dword [ebp - 0x10], eax
je 0x40dc64
cmp dword [ebp + 0x14], 0
je 0x40d75a
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 0x40dd92
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e5c0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
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.00411950
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40d974
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d7b4
cmp dword [ebp - 0x10], edi
jne 0x40d7af
mov byte [ebp - 9], al
jmp 0x40d7b4
call fcn.0040cbe0
cmp dword [0x4c2a50], 0
je 0x40d7c8
mov bl, byte [0x4bfda0]
jmp 0x40d8ba
cmp dword [0x4c0fa4], 0
je 0x40d7dc
mov bl, byte [0x4c0e71]
jmp 0x40d8ba
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d7f7
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d80b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d81f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d833
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d847
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d85b
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d86c
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d87d
or bl, 0x80
cmp dword [0x4c0fa4], 0
je 0x40d8ba
mov al, bl
not al
and al, byte [0x4c0e71]
je 0x40d8ba
mov cl, byte [0x4c0e73]
not al
and byte [0x4c0e71], al
and byte [0x4c0e72], al
and cl, al
mov al, cl
mov byte [0x4c0e73], cl
mov ecx, 0x4c0e98
call fcn.004111a0
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.004109f0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40dc64
mov ebx, dword [ebp - 0x1d]
mov edi, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040eaa0
add esp, 0x18
cmp dword [0x4c2a50], 0
jne 0x40d960
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c3c2c]
mov ecx, dword [0x4bd41c]
cmp eax, dword [ecx + 0xd0]
jbe 0x40d960
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 0x40d959
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
call esi
mov dword [0x4c3c2c], eax
dec edi
jne 0x40d8e1
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40d9e5
push 4
push str.ASC
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40d9e5
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d9e8
lea eax, [esi + 6]
call fcn.004090c0
call fcn.0040e6b0
cmp dword [0x4c2a50], 2
jne 0x40d9ca
mov eax, dword [0x4bd41c]
mov esi, dword [eax + 0x60]
call fcn.00410610
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov ecx, dword [0x4bd41c]
mov esi, dword [ecx + 0x5c]
call fcn.00410610
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov edi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40dc64
push 2
push 0x49ea44
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x40dc64
push 0x10
push eax
add esi, 4
push esi
call fcn.0048795b
add esp, 0xc
movzx esi, ax
test edi, edi
je 0x40da33
push 0
push esi
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40db87
mov eax, dword [0x4c2a50]
cmp eax, 2
je 0x40db67
test eax, eax
je 0x40da50
mov bl, byte [0x4bfda0]
jmp 0x40db42
cmp dword [0x4c0fa4], 0
je 0x40da64
mov bl, byte [0x4c0e71]
jmp 0x40db42
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40da7f
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40da93
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40daa7
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40dabb
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40dacf
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40dae3
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40daf4
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40db05
or bl, 0x80
cmp dword [0x4c0fa4], 0
je 0x40db42
mov al, bl
not al
and al, byte [0x4c0e71]
je 0x40db42
mov cl, byte [0x4c0e73]
not al
and byte [0x4c0e71], al
and byte [0x4c0e72], al
and cl, al
mov al, cl
mov byte [0x4c0e73], cl
mov ecx, 0x4c0e98
call fcn.004111a0
mov al, byte [ebp - 1]
or al, byte [ebp - 8]
push 1
push 0
movzx eax, al
push 0
push ebx
push eax
mov eax, 0xffc3d44f
call fcn.004109f0
add esp, 0x14
call fcn.0040cc60
jmp 0x40db87
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push esi
mov word [ebp - 0x74], cx
call fcn.004860b5
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e6b0
cmp dword [0x4c2a50], 2
jne 0x40dbab
mov ecx, dword [0x4bd41c]
mov esi, dword [ecx + 0x60]
call fcn.00410610
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov edx, dword [0x4bd41c]
mov esi, dword [edx + 0x5c]
call fcn.00410610
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411270
mov byte [ebp - 0x14], al
test al, al
je 0x40dc35
cmp dword [ebp + 0x14], 0
jne 0x40dc35
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40dbfb
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40dbf6
or byte [0x4c1a3f], al
or byte [ebp - 8], al
jmp 0x40dc35
cmp ecx, 1
jne 0x40dc35
mov al, bl
call fcn.0040cbe0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c1a3f]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c1a3f], cl
cmp bl, 0xa5
jne 0x40dc2f
cmp dword [0x4bfdb4], 3
jne 0x40dc2f
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.0040e190
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dd92
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40dd21
cmp word [ebp - 0x2a], 0
jne 0x40dca1
mov ecx, dword [0x4bfdb8]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.004118e0
mov esi, dword [ebp + 8]
jmp 0x40dd23
movzx esi, ax
test esi, 0xffffff80
jne 0x40dcbe
push 2
push esi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x40dcbe
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40dcfd
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40dce2
push 2
push esi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x40dce2
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40dcfd
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048795b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40dd23
xor esi, esi
nop
mov edx, dword [esi*8 + 0x4be228]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00486339
add esp, 8
test eax, eax
je 0x40dd5d
inc esi
cmp esi, 0x6d
jl 0x40dd00
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 0x40dd69
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.0040e190
add esp, 0x24
jmp 0x40dd92
mov al, byte [esi*8 + 0x4be22c]
mov esi, dword [ebp + 8]
jmp 0x40dd23
test eax, eax
je 0x40dd81
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dd92
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040e5c0
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 [0x4c1a3e], al
jne 0x40d2d8
mov edi, dword [0x4c2a50]
test edi, edi
je 0x40de6e
cmp byte [0x4bfd96], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40de2b
cmp dword [0x4bfdac], 0
jbe 0x40de2b
cmp byte [0x4bfd94], 0
je 0x40dde2
xor eax, eax
jmp 0x40ddee
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4bfda0]
mov ebx, 1
push ebx
push ebx
mov byte [ebp + 8], al
mov esi, dword [ebp + 8]
push 0
push edx
push esi
mov eax, 0xffc3d44d
call fcn.004109f0
add esp, 0x14
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004104c0
mov edi, dword [0x4c2a50]
add esp, 8
jmp 0x40de30
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4bfda8], edi
jbe 0x40de59
mov ecx, dword [0x4bfdb0]
push ecx
call fcn.00487975
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c2a50], edi
call fcn.00410610
jmp 0x40dfec
cmp dword [0x4c0fa4], 0
je 0x40de7f
mov cl, byte [0x4c0e73]
jmp 0x40dea3
cmp dword [0x4bd3dc], 0
jl 0x40dea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3be8]
cmp eax, dword [0x4bd3dc]
jb 0x40dea0
xor cl, cl
jmp 0x40dea3
mov cl, byte [ebp - 2]
cmp byte [0x4bfd94], 0
je 0x40dec5
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 0x40ded2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c0fa4], 0
je 0x40dee9
mov dl, byte [0x4c0e71]
mov byte [ebp - 0x14], dl
jmp 0x40dfca
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df04
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40df18
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df2c
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40df40
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df54
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40df68
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df79
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40df8a
or bl, 0x80
cmp dword [0x4c0fa4], 0
je 0x40dfc7
mov al, bl
not al
and al, byte [0x4c0e71]
je 0x40dfc7
mov cl, byte [0x4c0e73]
not al
and byte [0x4c0e71], al
and byte [0x4c0e72], al
and cl, al
mov al, cl
mov byte [0x4c0e73], cl
mov ecx, 0x4c0e98
call fcn.004111a0
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 eax, 0xffc3d44d
call fcn.004109f0
add esp, 0x14
xor edi, edi
cmp dword [0x4c0fa4], edi
je 0x40e00c
mov al, byte [0x4c0e72]
mov cl, al
xor cl, byte [0x4c0e71]
and cl, al
not cl
and al, cl
mov byte [0x4c0e72], al
cmp dword [ebp - 0x3c], ebx
jne 0x40e05e
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e05e
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040eaa0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
jne 0x40e05e
push ebx
push 0xffffffffffffffff
mov dword [0x4bd3e4], edi
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], ebx
cmp byte [ebp - 0xb], 0
je 0x40e075
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4c310c]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e0c1
cmp byte [ebp - 0x25], 0
jne 0x40e0c1
test byte [0x4c4844], 1
jne 0x40e0ae
or dword [0x4c4844], 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 [0x4c4840], eax
jmp 0x40e0b3
mov eax, dword [0x4c4840]
cmp eax, edi
je 0x40e0ba
push edi
call eax
mov byte [0x4c1a02], 0
cmp dword [ebp + 0x10], ebx
jne 0x40e0f3
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
jne 0x40e0f3
push ebx
push 0xffffffffffffffff
mov dword [0x4bd3e4], edi
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret