Function at 0x40cf90
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 0x40e162
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4be3fc]
mov dword [ebp - 0x40], esi
test bl, bl
jne 0x40d02b
push 7
push str.Blind
push edi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40d02b
add edi, 0xe
mov byte [0x4c0dc7], 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 0x40cff3
cmp eax, 3
jne 0x40d061
cmp dword [0x4c4e58], 0
je 0x40d037
call fcn.00408790
test al, al
jne 0x40d034
test bl, bl
jne 0x40d022
call fcn.004087f0
test al, al
je 0x40d022
mov eax, str.Click
mov ecx, edi
call fcn.0046f4b0
test eax, eax
jne 0x40d034
mov dword [ebp + 0x10], 1
jmp 0x40d061
mov byte [0x4c0dc7], 0
jmp 0x40cfda
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d045
mov dword [ebp + 0x10], 2
jmp 0x40d061
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d057
cmp dword [esi + 0x64], eax
jge 0x40d057
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 0x40d0b9
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40d1ba
cmp ebx, dword [0x4c3fc0]
je 0x40d1ba
call fcn.00473a10
test al, al
jne 0x40d1ba
mov edx, dword [0x4c3fc0]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40d1ba
test byte [0x4c4a82], 0xc0
je 0x40d1a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, 0x32
jae 0x40d1a5
cmp dword [ebp + 0x10], edi
jne 0x40d1a5
cmp byte [0x4c0dc7], 0
jne 0x40d1a5
cmp byte [0x4c4e46], 0
je 0x40d1a5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c3fc0]
jne 0x40d1a5
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49e82c
je 0x40d173
call fcn.00408f40
test eax, eax
setne al
test al, al
je 0x40d1a5
lea ebx, [ebx]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d152
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d1a5
push 1
push 0x8000012f
mov dword [0x4be3c4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
jmp 0x40d130
call fcn.00408f40
test eax, eax
je 0x40d1a5
lea esp, [esp]
add eax, 2
mov ebx, 0x49e834
call fcn.00408f40
test eax, eax
je 0x40d130
cmp word [eax], 0x7b
je 0x40d130
mov ebx, 0x49e82c
call fcn.00408f40
test eax, eax
jne 0x40d180
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d1ba
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 [0x4c0dec], eax
push eax
xor eax, eax
call fcn.004116e0
add esp, 4
push 1
mov dword [0x4c0de8], eax
call fcn.00411140
add esp, 4
cmp dword [0x4c1fd8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d20a
mov cl, byte [0x4c1ea5]
mov dl, byte [0x4c1ea7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d235
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, dword [0x4be3bc]
jae 0x40d22a
mov al, byte [0x4c4a82]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d231
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c28f7]
not al
and al, bl
and cl, al
mov al, byte [0x4c0dc7]
mov byte [0x4c28f7], cl
test al, al
je 0x40d25c
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d263
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xeb], 0
je 0x40d33c
test al, al
jne 0x40d33c
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 0x40d29e
mov dword [ebp - 0x3c], esi
jmp 0x40d343
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040eb20
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
sete bl
test bl, bl
je 0x40d2f1
push 1
push 0xffffffffffffffff
mov dword [0x4be3c4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
push 0x14
call edi
test al, 1
je 0x40d334
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040eb20
add esp, 0x18
test bl, bl
je 0x40d334
push 1
push 0xffffffffffffffff
mov dword [0x4be3c4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x3c], esi
jmp 0x40d343
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp + 0x10]
mov edi, esi
mov dword [0x4c3908], edi
test esi, esi
je 0x40d3b7
cmp esi, 1
jne 0x40d368
mov eax, 0x36b0
mov dword [0x4c0ddc], 0x1f4
jmp 0x40d377
mov eax, 0x2ee0
mov dword [0x4c0ddc], 0x5dc
call fcn.0048f490
mov eax, esp
mov dword [0x4c0de4], eax
mov eax, SysReAllocString
mov byte [0x4c0dcf], bl
mov dword [0x4c0dd0], eax
mov dword [0x4c0dd4], eax
mov byte [0x4c0dce], 0
mov dword [0x4c0de0], 0
mov byte [0x4c0dcd], 0
mov byte [0x4c0dcc], 1
mov eax, dword [0x4be4d8]
mov dl, byte [0x4c28ba]
mov byte [ebp - 0x25], dl
cmp eax, 8
je 0x40d3cf
cmp eax, 0xa
jne 0x40d410
test esi, esi
jne 0x40d410
cmp dword [ebp + 0x14], esi
jne 0x40d410
test byte [0x4c56f8], 1
mov byte [ebp - 4], 1
jne 0x40d416
or dword [0x4c56f8], 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 [0x4c3908]
mov dword [0x4c56f4], eax
jmp 0x40d41b
mov byte [ebp - 4], 0
jmp 0x40d430
mov eax, dword [0x4c56f4]
test eax, eax
je 0x40d429
push 1
call eax
mov edi, dword [0x4c3908]
mov byte [0x4c28ba], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40de14
mov esi, ecx
cmp dword [0x4c3908], 0
mov byte [ebp - 9], 0
jne 0x40d4b1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4c4abc]
mov edx, dword [0x4be3fc]
cmp eax, dword [edx + 0xd0]
jbe 0x40d4b1
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 0x40d4aa
push 1
push 0xffffffffffffffff
mov dword [0x4be3c4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
call edi
mov dword [0x4c4abc], eax
cmp byte [ebp + 0xc], 0
jne 0x40dcc8
movzx ecx, word [esi]
push ecx
push str._
call fcn.00488f71
add esp, 8
test eax, eax
je 0x40dcc8
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d4ea.34
movzx edx, byte [eax + 0x40e18c]
jmp dword [edx*4 + 0x40e170]
test byte [ebp - 8], 3
jne case.0x40d4ea.34
or byte [ebp - 1], 1
jmp case.0x40d4ea.34
test byte [ebp - 8], 0x30
jne case.0x40d4ea.34
or byte [ebp - 1], 0x10
jmp case.0x40d4ea.34
test byte [ebp - 8], 0xc
jne case.0x40d4ea.34
or byte [ebp - 1], 4
jmp case.0x40d4ea.34
cmp byte [0x4c4a9f], 0
jne case.0x40d4ea.34
test byte [ebp - 8], 0xc0
jne case.0x40d4ea.34
or byte [ebp - 1], 0x40
jmp case.0x40d4ea.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.00488f71
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40d4ea.34
mov eax, ebx
call fcn.00408f90
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40d5f8
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40d594
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40d5f2
cmp ecx, 0x20
je 0x40d5a2
cmp ecx, 9
jne 0x40dcbb
call fcn.00408f90
push 4
mov edi, eax
push str.Down
push edi
call fcn.004889e2
add esp, 0xc
test eax, eax
je 0x40d5d5
push 2
push 0x49bd08
push edi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40dcbb
push 0x7d
push edi
call fcn.00488f71
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d4ea.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 0x49d78c
push esi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40d69b
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.00408f90
call fcn.0040f280
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 0x40d67a
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.0040ff50
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
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 0x40dcb0
push 3
push 0x49e84c
push esi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40d6c0
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x49e544
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.00408f40
mov edi, eax
test edi, edi
je 0x40d76f
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.00408f90
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40d76c
push 4
push str.Down
push esi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40d749
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.004889e2
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40d76c
push 0x49bd08
push esi
call fcn.004881a9
add esp, 8
test eax, eax
jne 0x40d764
mov dword [ebp - 0x10], 1
jmp 0x40d76c
call fcn.0040c940
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40d7b4
cmp word [esi + 2], 0
jne 0x40d791
mov ecx, dword [0x4c0dec]
lea esi, [ebp - 1]
call fcn.00411a20
mov esi, dword [ebp + 8]
jmp 0x40d7b6
mov ebx, dword [ebp + 8]
xor esi, esi
mov edx, dword [esi*8 + 0x4bf230]
push ebx
push edx
call fcn.004881a9
add esp, 8
test eax, eax
je 0x40d7cb
inc esi
cmp esi, 0x6d
jl 0x40d796
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40d7d7
mov dword [ebp - 0x38], 0
jmp 0x40d85c
mov al, byte [esi*8 + 0x4bf234]
mov esi, dword [ebp + 8]
jmp 0x40d7b6
mov eax, esi
call fcn.004118c0
movzx eax, ax
mov dword [ebp - 0x38], eax
test ax, ax
jne 0x40d85c
mov ax, word [esi]
call fcn.00408f10
cmp ax, 0x56
jne 0x40d85c
mov ax, word [esi + 2]
call fcn.00408f10
cmp ax, 0x4b
jne 0x40d85c
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x49e860
call fcn.00408f40
mov esi, eax
test esi, esi
je 0x40d841
mov ax, word [esi + 2]
call fcn.00408f10
cmp ax, 0x43
jne 0x40d841
push 0x10
push 0
add esi, 4
push esi
call fcn.004897cb
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.004897cb
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40d867
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 0x40dcbb
test bl, bl
jne 0x40dc1d
cmp word [ebp - 0x38], 0
jne 0x40dc1d
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40d8e6
cmp dword [ebp - 0x10], eax
je 0x40dcbb
cmp dword [ebp + 0x14], 0
je 0x40d8ca
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 0x40ddf2
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e620
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
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.00411aa0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40dae4
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d924
cmp dword [ebp - 0x10], edi
jne 0x40d91f
mov byte [ebp - 9], al
jmp 0x40d924
call fcn.0040cb10
cmp dword [0x4c3908], 0
je 0x40d938
mov bl, byte [0x4c0dcf]
jmp 0x40da2a
cmp dword [0x4c1fd8], 0
je 0x40d94c
mov bl, byte [0x4c1ea5]
jmp 0x40da2a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d967
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d97b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d98f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9a3
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d9b7
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9cb
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d9dc
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9ed
or bl, 0x80
cmp dword [0x4c1fd8], 0
je 0x40da2a
mov al, bl
not al
and al, byte [0x4c1ea5]
je 0x40da2a
mov cl, byte [0x4c1ea7]
not al
and byte [0x4c1ea5], al
and byte [0x4c1ea6], al
and cl, al
mov al, cl
mov byte [0x4c1ea7], cl
mov ecx, 0x4c1ec8
call fcn.00411240
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410a90
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40dcbb
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.0040eb20
add esp, 0x18
cmp dword [0x4c3908], 0
jne 0x40dad0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c4abc]
mov ecx, dword [0x4be3fc]
cmp eax, dword [ecx + 0xd0]
jbe 0x40dad0
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 0x40dac9
push 1
push 0xffffffffffffffff
mov dword [0x4be3c4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
call esi
mov dword [0x4c4abc], eax
dec edi
jne 0x40da51
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40db55
push 4
push str.ASC
push edi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40db55
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40db58
lea eax, [edi + 6]
call fcn.00408f90
call fcn.0040e720
cmp dword [0x4c3908], 2
jne 0x40db3a
mov eax, dword [0x4be3fc]
mov esi, dword [eax + 0x60]
call fcn.004106b0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov ecx, dword [0x4be3fc]
mov esi, dword [ecx + 0x5c]
call fcn.004106b0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov esi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40dcbb
push 2
push 0x49e874
push edi
call fcn.004889e2
add esp, 0xc
test eax, eax
jne 0x40dcbb
push 0x10
push eax
add edi, 4
push edi
call fcn.004897cb
add esp, 0xc
movzx ecx, ax
test esi, esi
je 0x40dba0
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dbde
cmp dword [0x4c3908], 2
je 0x40dbbe
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040cb90
add esp, 4
jmp 0x40dbde
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.00487f25
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e720
cmp dword [0x4c3908], 2
jne 0x40dc02
mov ecx, dword [0x4be3fc]
mov esi, dword [ecx + 0x60]
call fcn.004106b0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov edx, dword [0x4be3fc]
mov esi, dword [edx + 0x5c]
call fcn.004106b0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411310
mov byte [ebp - 0x14], al
test al, al
je 0x40dc8c
cmp dword [ebp + 0x14], 0
jne 0x40dc8c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40dc52
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40dc4d
or byte [0x4c28f7], al
or byte [ebp - 8], al
jmp 0x40dc8c
cmp ecx, 1
jne 0x40dc8c
mov al, bl
call fcn.0040cb10
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c28f7]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c28f7], cl
cmp bl, 0xa5
jne 0x40dc86
cmp dword [0x4c0de8], 3
jne 0x40dc86
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.0040e1f0
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40ddf2
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40dd81
cmp word [ebp - 0x2a], 0
jne 0x40dcf8
mov ecx, dword [0x4c0dec]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411a20
mov esi, dword [ebp + 8]
jmp 0x40dd83
movzx esi, ax
test esi, 0xffffff80
jne 0x40dd15
push 2
push esi
call fcn.004893ee
add esp, 8
test eax, eax
je 0x40dd15
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40dd54
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40dd39
push 2
push esi
call fcn.004893ee
add esp, 8
test eax, eax
je 0x40dd39
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40dd54
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004897cb
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40dd83
xor esi, esi
jmp 0x40dd60
mov edx, dword [esi*8 + 0x4bf230]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.004881a9
add esp, 8
test eax, eax
je 0x40ddbd
inc esi
cmp esi, 0x6d
jl 0x40dd60
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 0x40ddc9
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.0040e1f0
add esp, 0x24
jmp 0x40ddf2
mov al, byte [esi*8 + 0x4bf234]
mov esi, dword [ebp + 8]
jmp 0x40dd83
test eax, eax
je 0x40dde1
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ddf2
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040e620
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 [0x4c28f6], al
jne 0x40d448
mov edi, dword [0x4c3908]
test edi, edi
je 0x40dece
cmp byte [0x4c0dcd], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40de8b
cmp dword [0x4c0de0], 0
jbe 0x40de8b
cmp byte [0x4c0dc7], 0
je 0x40de42
xor eax, eax
jmp 0x40de4e
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4c0dcf]
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.00410a90
add esp, 0x14
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00410560
mov edi, dword [0x4c3908]
add esp, 8
jmp 0x40de90
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c0ddc], edi
jbe 0x40deb9
mov ecx, dword [0x4c0de4]
push ecx
call fcn.004897ff
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c3908], edi
call fcn.004106b0
jmp 0x40e04c
cmp dword [0x4c1fd8], 0
je 0x40dedf
mov cl, byte [0x4c1ea7]
jmp 0x40df03
cmp dword [0x4be3bc], 0
jl 0x40df00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, dword [0x4be3bc]
jb 0x40df00
xor cl, cl
jmp 0x40df03
mov cl, byte [ebp - 2]
cmp byte [0x4c0dc7], 0
je 0x40df25
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 0x40df32
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c1fd8], 0
je 0x40df49
mov dl, byte [0x4c1ea5]
mov byte [ebp - 0x14], dl
jmp 0x40e02a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df64
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40df78
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df8c
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dfa0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dfb4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dfc8
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dfd9
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dfea
or bl, 0x80
cmp dword [0x4c1fd8], 0
je 0x40e027
mov al, bl
not al
and al, byte [0x4c1ea5]
je 0x40e027
mov cl, byte [0x4c1ea7]
not al
and byte [0x4c1ea5], al
and byte [0x4c1ea6], al
and cl, al
mov al, cl
mov byte [0x4c1ea7], cl
mov ecx, 0x4c1ec8
call fcn.00411240
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.00410a90
add esp, 0x14
xor edi, edi
cmp dword [0x4c1fd8], edi
je 0x40e06c
mov al, byte [0x4c1ea6]
mov cl, al
xor cl, byte [0x4c1ea5]
and cl, al
not cl
and al, cl
mov byte [0x4c1ea6], al
cmp dword [ebp - 0x3c], ebx
jne 0x40e0be
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e0be
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040eb20
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x40e0be
push ebx
push 0xffffffffffffffff
mov dword [0x4be3c4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], ebx
cmp byte [ebp - 0xb], 0
je 0x40e0d5
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4c3fc0]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e121
cmp byte [ebp - 0x25], 0
jne 0x40e121
test byte [0x4c56f8], 1
jne 0x40e10e
or dword [0x4c56f8], 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 [0x4c56f4], eax
jmp 0x40e113
mov eax, dword [0x4c56f4]
cmp eax, edi
je 0x40e11a
push edi
call eax
mov byte [0x4c28ba], 0
cmp dword [ebp + 0x10], ebx
jne 0x40e153
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x40e153
push ebx
push 0xffffffffffffffff
mov dword [0x4be3c4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 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