Function at 0x40cfc0
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 0x40e192
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4be3fc]
mov dword [ebp - 0x40], esi
test bl, bl
jne 0x40d05b
push 7
push str.Blind
push edi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40d05b
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 0x40d023
cmp eax, 3
jne 0x40d091
cmp dword [0x4c4e58], 0
je 0x40d067
call fcn.004087c0
test al, al
jne 0x40d064
test bl, bl
jne 0x40d052
call fcn.00408820
test al, al
je 0x40d052
mov eax, str.Click
mov ecx, edi
call fcn.0046f610
test eax, eax
jne 0x40d064
mov dword [ebp + 0x10], 1
jmp 0x40d091
mov byte [0x4c0dc7], 0
jmp 0x40d00a
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d075
mov dword [ebp + 0x10], 2
jmp 0x40d091
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d087
cmp dword [esi + 0x64], eax
jge 0x40d087
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 0x40d0e9
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40d1ea
cmp ebx, dword [0x4c3fc0]
je 0x40d1ea
call fcn.00473b70
test al, al
jne 0x40d1ea
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 0x40d1ea
test byte [0x4c4a82], 0xc0
je 0x40d1d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, 0x32
jae 0x40d1d5
cmp dword [ebp + 0x10], edi
jne 0x40d1d5
cmp byte [0x4c0dc7], 0
jne 0x40d1d5
cmp byte [0x4c4e46], 0
je 0x40d1d5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c3fc0]
jne 0x40d1d5
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49e82c
je 0x40d1a3
call fcn.00408f70
test eax, eax
setne al
test al, al
je 0x40d1d5
lea ebx, [ebx]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d182
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d1d5
push 1
push 0x8000012f
mov dword [0x4be3c4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], 1
jmp 0x40d160
call fcn.00408f70
test eax, eax
je 0x40d1d5
lea esp, [esp]
add eax, 2
mov ebx, 0x49e834
call fcn.00408f70
test eax, eax
je 0x40d160
cmp word [eax], 0x7b
je 0x40d160
mov ebx, 0x49e82c
call fcn.00408f70
test eax, eax
jne 0x40d1b0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d1ea
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.00411710
add esp, 4
push 1
mov dword [0x4c0de8], eax
call fcn.00411170
add esp, 4
cmp dword [0x4c1fd8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d23a
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 0x40d265
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, dword [0x4be3bc]
jae 0x40d25a
mov al, byte [0x4c4a82]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d261
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 0x40d28c
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d293
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xeb], 0
je 0x40d36c
test al, al
jne 0x40d36c
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 0x40d2ce
mov dword [ebp - 0x3c], esi
jmp 0x40d373
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040eb50
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 0x40d321
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 0x40d364
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040eb50
add esp, 0x18
test bl, bl
je 0x40d364
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 0x40d373
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp + 0x10]
mov edi, esi
mov dword [0x4c3908], edi
test esi, esi
je 0x40d3e7
cmp esi, 1
jne 0x40d398
mov eax, 0x36b0
mov dword [0x4c0ddc], 0x1f4
jmp 0x40d3a7
mov eax, 0x2ee0
mov dword [0x4c0ddc], 0x5dc
call fcn.0048f5f0
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 0x40d3ff
cmp eax, 0xa
jne 0x40d440
test esi, esi
jne 0x40d440
cmp dword [ebp + 0x14], esi
jne 0x40d440
test byte [0x4c56f8], 1
mov byte [ebp - 4], 1
jne 0x40d446
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 0x40d44b
mov byte [ebp - 4], 0
jmp 0x40d460
mov eax, dword [0x4c56f4]
test eax, eax
je 0x40d459
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 0x40de44
mov esi, ecx
cmp dword [0x4c3908], 0
mov byte [ebp - 9], 0
jne 0x40d4e1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4c4abc]
mov edx, dword [0x4be3fc]
cmp eax, dword [edx + 0xd0]
jbe 0x40d4e1
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 0x40d4da
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 0x40dcf8
movzx ecx, word [esi]
push ecx
push 0x49e83c
call fcn.004890d1
add esp, 8
test eax, eax
je 0x40dcf8
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d51a.34
movzx edx, byte [eax + 0x40e1bc]
jmp dword [edx*4 + 0x40e1a0]
test byte [ebp - 8], 3
jne case.0x40d51a.34
or byte [ebp - 1], 1
jmp case.0x40d51a.34
test byte [ebp - 8], 0x30
jne case.0x40d51a.34
or byte [ebp - 1], 0x10
jmp case.0x40d51a.34
test byte [ebp - 8], 0xc
jne case.0x40d51a.34
or byte [ebp - 1], 4
jmp case.0x40d51a.34
cmp byte [0x4c4a9f], 0
jne case.0x40d51a.34
test byte [ebp - 8], 0xc0
jne case.0x40d51a.34
or byte [ebp - 1], 0x40
jmp case.0x40d51a.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.004890d1
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40d51a.34
mov eax, ebx
call fcn.00408fc0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40d628
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40d5c4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40d622
cmp ecx, 0x20
je 0x40d5d2
cmp ecx, 9
jne 0x40dceb
call fcn.00408fc0
push 4
mov edi, eax
push str.Down
push edi
call fcn.00488b42
add esp, 0xc
test eax, eax
je 0x40d605
push 2
push 0x49bd08
push edi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40dceb
push 0x7d
push edi
call fcn.004890d1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d51a.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.00488b42
add esp, 0xc
test eax, eax
jne 0x40d6cb
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.00408fc0
call fcn.0040f2b0
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 0x40d6aa
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.0040ff80
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
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 0x40dce0
push 3
push 0x49e84c
push esi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40d6f0
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
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.00408f70
mov edi, eax
test edi, edi
je 0x40d79f
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.00408fc0
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40d79c
push 4
push str.Down
push esi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40d779
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.00488b42
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40d79c
push 0x49bd08
push esi
call fcn.00488309
add esp, 8
test eax, eax
jne 0x40d794
mov dword [ebp - 0x10], 1
jmp 0x40d79c
call fcn.0040c970
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40d7e4
cmp word [esi + 2], 0
jne 0x40d7c1
mov ecx, dword [0x4c0dec]
lea esi, [ebp - 1]
call fcn.00411a50
mov esi, dword [ebp + 8]
jmp 0x40d7e6
mov ebx, dword [ebp + 8]
xor esi, esi
mov edx, dword [esi*8 + 0x4bf230]
push ebx
push edx
call fcn.00488309
add esp, 8
test eax, eax
je 0x40d7fb
inc esi
cmp esi, 0x6d
jl 0x40d7c6
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40d807
mov dword [ebp - 0x38], 0
jmp 0x40d88c
mov al, byte [esi*8 + 0x4bf234]
mov esi, dword [ebp + 8]
jmp 0x40d7e6
mov eax, esi
call fcn.004118f0
movzx eax, ax
mov dword [ebp - 0x38], eax
test ax, ax
jne 0x40d88c
mov ax, word [esi]
call fcn.00408f40
cmp ax, 0x56
jne 0x40d88c
mov ax, word [esi + 2]
call fcn.00408f40
cmp ax, 0x4b
jne 0x40d88c
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x49e860
call fcn.00408f70
mov esi, eax
test esi, esi
je 0x40d871
mov ax, word [esi + 2]
call fcn.00408f40
cmp ax, 0x43
jne 0x40d871
push 0x10
push 0
add esi, 4
push esi
call fcn.0048992b
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.0048992b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40d897
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 0x40dceb
test bl, bl
jne 0x40dc4d
cmp word [ebp - 0x38], 0
jne 0x40dc4d
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40d916
cmp dword [ebp - 0x10], eax
je 0x40dceb
cmp dword [ebp + 0x14], 0
je 0x40d8fa
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 0x40de22
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e650
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
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.00411ad0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40db14
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d954
cmp dword [ebp - 0x10], edi
jne 0x40d94f
mov byte [ebp - 9], al
jmp 0x40d954
call fcn.0040cb40
cmp dword [0x4c3908], 0
je 0x40d968
mov bl, byte [0x4c0dcf]
jmp 0x40da5a
cmp dword [0x4c1fd8], 0
je 0x40d97c
mov bl, byte [0x4c1ea5]
jmp 0x40da5a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d997
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9ab
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d9bf
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9d3
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d9e7
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d9fb
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40da0c
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40da1d
or bl, 0x80
cmp dword [0x4c1fd8], 0
je 0x40da5a
mov al, bl
not al
and al, byte [0x4c1ea5]
je 0x40da5a
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.00411270
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410ac0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40dceb
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.0040eb50
add esp, 0x18
cmp dword [0x4c3908], 0
jne 0x40db00
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c4abc]
mov ecx, dword [0x4be3fc]
cmp eax, dword [ecx + 0xd0]
jbe 0x40db00
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 0x40daf9
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 0x40da81
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40db85
push 4
push str.ASC
push edi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40db85
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40db88
lea eax, [edi + 6]
call fcn.00408fc0
call fcn.0040e750
cmp dword [0x4c3908], 2
jne 0x40db6a
mov eax, dword [0x4be3fc]
mov esi, dword [eax + 0x60]
call fcn.004106e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov ecx, dword [0x4be3fc]
mov esi, dword [ecx + 0x5c]
call fcn.004106e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov esi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40dceb
push 2
push 0x49e874
push edi
call fcn.00488b42
add esp, 0xc
test eax, eax
jne 0x40dceb
push 0x10
push eax
add edi, 4
push edi
call fcn.0048992b
add esp, 0xc
movzx ecx, ax
test esi, esi
je 0x40dbd0
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dc0e
cmp dword [0x4c3908], 2
je 0x40dbee
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040cbc0
add esp, 4
jmp 0x40dc0e
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.00488085
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e750
cmp dword [0x4c3908], 2
jne 0x40dc32
mov ecx, dword [0x4be3fc]
mov esi, dword [ecx + 0x60]
call fcn.004106e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov edx, dword [0x4be3fc]
mov esi, dword [edx + 0x5c]
call fcn.004106e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411340
mov byte [ebp - 0x14], al
test al, al
je 0x40dcbc
cmp dword [ebp + 0x14], 0
jne 0x40dcbc
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40dc82
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40dc7d
or byte [0x4c28f7], al
or byte [ebp - 8], al
jmp 0x40dcbc
cmp ecx, 1
jne 0x40dcbc
mov al, bl
call fcn.0040cb40
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 0x40dcb6
cmp dword [0x4c0de8], 3
jne 0x40dcb6
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.0040e220
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40de22
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40ddb1
cmp word [ebp - 0x2a], 0
jne 0x40dd28
mov ecx, dword [0x4c0dec]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411a50
mov esi, dword [ebp + 8]
jmp 0x40ddb3
movzx esi, ax
test esi, 0xffffff80
jne 0x40dd45
push 2
push esi
call fcn.0048954e
add esp, 8
test eax, eax
je 0x40dd45
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40dd84
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40dd69
push 2
push esi
call fcn.0048954e
add esp, 8
test eax, eax
je 0x40dd69
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40dd84
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048992b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40ddb3
xor esi, esi
jmp 0x40dd90
mov edx, dword [esi*8 + 0x4bf230]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00488309
add esp, 8
test eax, eax
je 0x40dded
inc esi
cmp esi, 0x6d
jl 0x40dd90
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 0x40ddf9
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.0040e220
add esp, 0x24
jmp 0x40de22
mov al, byte [esi*8 + 0x4bf234]
mov esi, dword [ebp + 8]
jmp 0x40ddb3
test eax, eax
je 0x40de11
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40de22
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040e650
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 0x40d478
mov edi, dword [0x4c3908]
test edi, edi
je 0x40defe
cmp byte [0x4c0dcd], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40debb
cmp dword [0x4c0de0], 0
jbe 0x40debb
cmp byte [0x4c0dc7], 0
je 0x40de72
xor eax, eax
jmp 0x40de7e
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.00410ac0
add esp, 0x14
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00410590
mov edi, dword [0x4c3908]
add esp, 8
jmp 0x40dec0
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c0ddc], edi
jbe 0x40dee9
mov ecx, dword [0x4c0de4]
push ecx
call fcn.0048995f
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c3908], edi
call fcn.004106e0
jmp 0x40e07c
cmp dword [0x4c1fd8], 0
je 0x40df0f
mov cl, byte [0x4c1ea7]
jmp 0x40df33
cmp dword [0x4be3bc], 0
jl 0x40df30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4a78]
cmp eax, dword [0x4be3bc]
jb 0x40df30
xor cl, cl
jmp 0x40df33
mov cl, byte [ebp - 2]
cmp byte [0x4c0dc7], 0
je 0x40df55
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 0x40df62
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 0x40df79
mov dl, byte [0x4c1ea5]
mov byte [ebp - 0x14], dl
jmp 0x40e05a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40df94
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dfa8
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dfbc
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dfd0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dfe4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dff8
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e009
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e01a
or bl, 0x80
cmp dword [0x4c1fd8], 0
je 0x40e057
mov al, bl
not al
and al, byte [0x4c1ea5]
je 0x40e057
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.00411270
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.00410ac0
add esp, 0x14
xor edi, edi
cmp dword [0x4c1fd8], edi
je 0x40e09c
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 0x40e0ee
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e0ee
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040eb50
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 0x40e0ee
push ebx
push 0xffffffffffffffff
mov dword [0x4be3c4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3c4], ebx
cmp byte [ebp - 0xb], 0
je 0x40e105
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 0x40e151
cmp byte [ebp - 0x25], 0
jne 0x40e151
test byte [0x4c56f8], 1
jne 0x40e13e
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 0x40e143
mov eax, dword [0x4c56f4]
cmp eax, edi
je 0x40e14a
push edi
call eax
mov byte [0x4c28ba], 0
cmp dword [ebp + 0x10], ebx
jne 0x40e183
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x40e183
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