Function at 0x40d3b0
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 0x40e533
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c040c]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d44b
push 7
push str.Blind
push edi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40d44b
add edi, 0xe
mov byte [0x4c2e07], 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 0x40d413
cmp eax, 3
jne 0x40d481
cmp dword [0x4c6ea0], 0
je 0x40d457
call fcn.00408990
test al, al
jne 0x40d454
test bl, bl
jne 0x40d442
call fcn.004089f0
test al, al
je 0x40d442
mov eax, str.Click
mov ecx, edi
call fcn.00472660
test eax, eax
jne 0x40d454
mov dword [ebp + 0x10], 1
jmp 0x40d481
mov byte [0x4c2e07], 0
jmp 0x40d3fa
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d465
mov dword [ebp + 0x10], 2
jmp 0x40d481
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d477
cmp dword [esi + 0x64], eax
jge 0x40d477
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 0x40d4d9
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x40d5da
cmp ebx, dword [0x4c6004]
je 0x40d5da
call fcn.00476cc0
test al, al
jne 0x40d5da
mov edx, dword [0x4c6004]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40d5da
test byte [0x4c6ace], 0xc0
je 0x40d5c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, 0x32
jae 0x40d5c5
cmp dword [ebp + 0x10], 2
je 0x40d5c5
cmp byte [0x4c2e07], 0
jne 0x40d5c5
cmp byte [0x4c6e8e], 0
je 0x40d5c5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c6004]
jne 0x40d5c5
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a17d4
je 0x40d593
call fcn.00409140
test eax, eax
setne al
test al, al
je 0x40d5c5
jmp 0x40d550
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d572
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d5c5
push 1
push 0x8000012f
mov dword [0x4c03d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
jmp 0x40d550
call fcn.00409140
test eax, eax
je 0x40d5c5
lea esp, [esp]
add eax, 2
mov ebx, 0x4a17dc
call fcn.00409140
test eax, eax
je 0x40d550
cmp word [eax], 0x7b
je 0x40d550
mov ebx, 0x4a17d4
call fcn.00409140
test eax, eax
jne 0x40d5a0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d5da
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 [0x4c2e2c], eax
push eax
xor eax, eax
call fcn.00411a00
add esp, 4
push 1
mov dword [0x4c2e28], eax
call fcn.00411460
add esp, 4
cmp dword [0x4c4018], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d62a
mov cl, byte [0x4c3ee5]
mov dl, byte [0x4c3ee7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d655
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, dword [0x4c03cc]
jae 0x40d64a
mov al, byte [0x4c6ace]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d651
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c58f8]
not al
and al, bl
and cl, al
mov al, byte [0x4c2e07]
mov byte [0x4c58f8], cl
test al, al
je 0x40d67c
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d683
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xef], 0
je 0x40d75c
test al, al
jne 0x40d75c
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 0x40d6be
mov dword [ebp - 0x38], esi
jmp 0x40d763
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040ee60
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
sete bl
test bl, bl
je 0x40d711
push 1
push 0xffffffffffffffff
mov dword [0x4c03d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
push 0x14
call edi
test al, 1
je 0x40d754
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040ee60
add esp, 0x18
test bl, bl
je 0x40d754
push 1
push 0xffffffffffffffff
mov dword [0x4c03d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x38], esi
jmp 0x40d763
mov dword [ebp - 0x38], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c5950], esi
test esi, esi
je 0x40d7d5
cmp esi, 1
jne 0x40d786
mov eax, 0x36b0
mov dword [0x4c2e1c], 0x1f4
jmp 0x40d795
mov eax, 0x2ee0
mov dword [0x4c2e1c], 0x5dc
call fcn.00492820
mov eax, esp
mov dword [0x4c2e24], eax
mov eax, SysReAllocString
mov byte [0x4c2e0f], bl
mov dword [0x4c2e10], eax
mov dword [0x4c2e14], eax
mov byte [0x4c2e0e], 0
mov dword [0x4c2e20], 0
mov byte [0x4c2e0d], 0
mov byte [0x4c2e0c], 1
mov eax, dword [0x4c04e8]
mov dl, byte [0x4c46eb]
mov byte [ebp - 0x19], dl
cmp eax, 8
je 0x40d7ed
cmp eax, 0xa
jne 0x40d828
test esi, esi
jne 0x40d828
cmp dword [ebp + 0x14], esi
jne 0x40d828
test byte [0x4c7740], 1
mov byte [ebp - 4], 1
jne 0x40d82e
or dword [0x4c7740], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c773c], eax
jmp 0x40d833
mov byte [ebp - 4], 0
jmp 0x40d842
mov eax, dword [0x4c773c]
test eax, eax
je 0x40d83b
push 1
call eax
mov byte [0x4c46eb], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40e1ed
cmp dword [0x4c5950], 0
mov byte [ebp - 9], 0
jne 0x40d8c1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c6b04]
mov edx, dword [0x4c040c]
cmp eax, dword [edx + 0xd4]
jbe 0x40d8c1
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 0x40d8ba
push 1
push 0xffffffffffffffff
mov dword [0x4c03d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
call esi
mov dword [0x4c6b04], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e0bb
movzx ecx, word [edi]
push ecx
push str._
call fcn.0048c1e1
add esp, 8
test eax, eax
je 0x40e0bb
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d8fd.34
movzx edx, byte [eax + 0x40e55c]
jmp dword [edx*4 + 0x40e540]
test byte [ebp - 8], 3
jne case.0x40d8fd.34
or byte [ebp - 1], 1
jmp case.0x40d8fd.34
test byte [ebp - 8], 0x30
jne case.0x40d8fd.34
or byte [ebp - 1], 0x10
jmp case.0x40d8fd.34
test byte [ebp - 8], 0xc
jne case.0x40d8fd.34
or byte [ebp - 1], 4
jmp case.0x40d8fd.34
test byte [ebp - 8], 0xc0
jne case.0x40d8fd.34
or byte [ebp - 1], 0x40
jmp case.0x40d8fd.34
mov ebx, dword [ebp + 8]
add ebx, 2
push 0x7d
push ebx
call fcn.0048c1e1
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je case.0x40d8fd.34
mov eax, ebx
call fcn.00409190
mov edi, eax
mov ebx, esi
sub ebx, edi
sar ebx, 1
mov dword [ebp + 8], edi
mov dword [ebp - 0x28], ebx
jne 0x40da09
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x40d9a1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
jmp 0x40da03
cmp ecx, 0x20
je 0x40d9af
cmp ecx, 9
jne 0x40e0b0
call fcn.00409190
push 4
mov esi, eax
push str.Down
push esi
call fcn.0048bc52
add esp, 0xc
test eax, eax
je 0x40d9e2
push 2
push 0x49ed20
push esi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40e0b0
push 0x7d
push esi
call fcn.0048c1e1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d8fd.34
sub eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
push 5
push 0x4a0738
push edi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40daac
lea ecx, [ebp - 0x4c]
push ecx
mov word [esi], 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 - 0x40]
push eax
lea eax, [edi + 0xa]
call fcn.00409190
call fcn.0040f5c0
mov ecx, 0x7d
mov word [esi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
cmp ecx, 1
jge 0x40da88
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0xeb]
mov edx, dword [ebp - 0x4c]
push edx
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x40]
call fcn.00410210
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x1d]
push 0
push eax
push 0
push edx
jmp 0x40e0a5
push 3
push 0x4a17f4
push edi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40dacf
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 2
mov dword [ebp - 0x48], ebx
mov ebx, 0x4a14ec
mov eax, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], 1
call fcn.00409140
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40db86
mov ecx, eax
movzx edx, word [ecx]
xor eax, eax
mov word [ecx], ax
mov eax, ecx
sub eax, edi
sar eax, 1
mov dword [ebp - 0x48], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x54], edx
call fcn.00409190
mov ecx, dword [ebp - 0x18]
mov ebx, eax
sub ecx, ebx
sar ecx, 1
je 0x40db86
push 4
push str.Down
push ebx
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40db5d
push 4
push str.Temp
add ebx, 8
xor esi, esi
push ebx
mov dword [ebp - 0x10], esi
call fcn.0048bc52
add esp, 0xc
test eax, eax
setne byte [ebp - 0x1e]
jmp 0x40db86
push 0x49ed20
push ebx
call fcn.0048b419
add esp, 8
test eax, eax
jne 0x40db79
mov esi, 1
mov dword [ebp - 0x10], esi
jmp 0x40db86
mov esi, ebx
call fcn.0040cd10
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
movzx eax, word [edi]
test ax, ax
je 0x40dbcb
cmp word [edi + 2], 0
jne 0x40dba8
mov ecx, dword [0x4c2e2c]
lea esi, [ebp - 1]
call fcn.00411d40
mov esi, dword [ebp - 0x10]
jmp 0x40dbcd
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebx*8 + 0x4c11f8]
push edi
push edx
call fcn.0048b419
add esp, 8
test eax, eax
je 0x40dbe2
inc ebx
cmp ebx, 0x6d
jl 0x40dbb0
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40dbeb
mov dword [ebp - 0x30], 0
jmp 0x40dc67
mov al, byte [ebx*8 + 0x4c11fc]
jmp 0x40dbcd
mov eax, edi
call fcn.00411be0
movzx eax, ax
mov dword [ebp - 0x30], eax
test ax, ax
jne 0x40dc67
mov ax, word [edi]
call fcn.00409110
cmp ax, 0x56
jne 0x40dc67
mov ax, word [edi + 2]
call fcn.00409110
cmp ax, 0x4b
jne 0x40dc67
lea eax, [edi + 4]
mov ebx, 0x4a1808
call fcn.00409140
mov ebx, eax
test ebx, ebx
je 0x40dc52
mov ax, word [ebx + 2]
call fcn.00409110
cmp ax, 0x43
jne 0x40dc52
push 0x10
push 0
add ebx, 4
push ebx
call fcn.0048ca3b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.0048ca3b
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dc75
mov cx, word [ebp - 0x54]
mov word [eax], cx
cmp dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x7d
mov word [eax], dx
jl 0x40e0b0
test bl, bl
jne 0x40e015
cmp word [ebp - 0x30], 0
jne 0x40e015
cmp dword [ebp - 0x48], 1
jne 0x40dcec
cmp esi, 1
je 0x40e0b0
cmp dword [ebp + 0x14], 0
je 0x40dcd2
movzx ecx, word [edi]
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
jmp 0x40e1cd
movzx eax, word [edi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e960
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e1cd
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
sete bl
push edx
call fcn.00411dc0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40dee5
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dd27
cmp dword [ebp - 0x10], edi
jne 0x40dd22
mov byte [ebp - 9], al
jmp 0x40dd27
call fcn.0040cee0
cmp dword [0x4c5950], 0
je 0x40dd3b
mov bl, byte [0x4c2e0f]
jmp 0x40de2d
cmp dword [0x4c4018], 0
je 0x40dd4f
mov bl, byte [0x4c3ee5]
jmp 0x40de2d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd6a
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd7e
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd92
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dda6
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddba
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddce
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dddf
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddf0
or bl, 0x80
cmp dword [0x4c4018], 0
je 0x40de2d
mov al, bl
not al
and al, byte [0x4c3ee5]
je 0x40de2d
mov cl, byte [0x4c3ee7]
not al
and byte [0x4c3ee5], al
and byte [0x4c3ee6], al
and cl, al
mov al, cl
mov byte [0x4c3ee7], cl
mov ecx, 0x4c3f08
call fcn.00411560
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410d60
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e0b0
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.0040ee60
add esp, 0x18
cmp dword [0x4c5950], 0
jne 0x40ded3
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c6b04]
mov ecx, dword [0x4c040c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40ded3
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 0x40decc
push 1
push 0xffffffffffffffff
mov dword [0x4c03d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
call esi
mov dword [0x4c6b04], eax
dec edi
jne 0x40de54
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40df50
push 4
push str.ASC
push esi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40df50
cmp dword [ebp + 0x14], eax
jne 0x40df50
lea eax, [esi + 6]
call fcn.00409190
call fcn.0040ea60
cmp dword [0x4c5950], 2
jne 0x40df37
mov eax, dword [0x4c040c]
mov esi, dword [eax + 0x60]
call fcn.00410980
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov ecx, dword [0x4c040c]
mov esi, dword [ecx + 0x5c]
call fcn.00410980
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov ebx, 2
cmp edi, ebx
jbe 0x40e0b0
push ebx
push 0x4a181c
push esi
call fcn.0048bc52
add esp, 0xc
test eax, eax
jne 0x40e0b0
push 0x10
push eax
add esi, 4
push esi
call fcn.0048ca3b
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40df9e
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dfdb
cmp dword [0x4c5950], ebx
je 0x40dfbb
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040cf60
add esp, 4
jmp 0x40dfdb
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.0048b195
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040ea60
cmp dword [0x4c5950], ebx
jne 0x40dffc
mov ecx, dword [0x4c040c]
mov esi, dword [ecx + 0x60]
call fcn.00410980
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov edx, dword [0x4c040c]
mov esi, dword [edx + 0x5c]
call fcn.00410980
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov al, bl
call fcn.00411630
mov byte [ebp - 0x14], al
test al, al
je 0x40e080
cmp dword [ebp + 0x14], 0
jne 0x40e080
test esi, esi
jne 0x40e046
cmp byte [ebp - 0x1e], 0
mov byte [ebp - 9], bl
je 0x40e041
or byte [0x4c58f8], al
or byte [ebp - 8], al
jmp 0x40e080
cmp esi, 1
jne 0x40e080
mov al, bl
call fcn.0040cee0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c58f8]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c58f8], cl
cmp bl, 0xa5
jne 0x40e07a
cmp dword [0x4c2e28], 3
jne 0x40e07a
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 - 8]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1d]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x24]
mov edi, esi
mov al, byte [ebp - 1]
call fcn.0040e5c0
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e1cd
mov ax, word [edi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e15e
cmp word [ebp - 0x2a], 0
jne 0x40e0e5
mov ecx, dword [0x4c2e2c]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411d40
jmp 0x40e160
movzx ebx, ax
test ebx, 0xffffff80
jne 0x40e102
push 2
push ebx
call fcn.0048c65e
add esp, 8
test eax, eax
je 0x40e102
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x40e13e
movzx ebx, word [ebp - 0x2a]
test ebx, 0xffffff80
jne 0x40e126
push 2
push ebx
call fcn.0048c65e
add esp, 8
test eax, eax
je 0x40e126
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x40e13e
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048ca3b
add esp, 0xc
jmp 0x40e160
xor ebx, ebx
mov edx, dword [ebx*8 + 0x4c11f8]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0048b419
add esp, 8
test eax, eax
je 0x40e19b
inc ebx
cmp ebx, 0x6d
jl 0x40e140
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e1a4
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 ecx
mov edi, 2
push 0
push edx
lea ecx, [edi - 1]
call fcn.0040e5c0
add esp, 0x20
jmp 0x40e1cd
mov al, byte [ebx*8 + 0x4c11fc]
jmp 0x40e160
test eax, eax
je 0x40e1bc
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e1cd
movzx edx, word [edi]
push edx
mov eax, 1
call fcn.0040e960
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4c4937], cl
jne 0x40d858
cmp dword [0x4c5950], 0
je 0x40e29e
cmp byte [0x4c2e0d], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e25e
cmp dword [0x4c2e20], 0
jbe 0x40e25e
cmp byte [0x4c2e07], 0
je 0x40e220
xor eax, eax
jmp 0x40e22c
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 8]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4c2e0f]
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00410d60
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00410830
add esp, 8
mov eax, dword [0x4c5950]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c2e1c], eax
jbe 0x40e289
mov edx, dword [0x4c2e24]
push edx
call fcn.0048ca6f
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c5950], edi
call fcn.00410980
jmp 0x40e418
cmp dword [0x4c4018], 0
je 0x40e2af
mov cl, byte [0x4c3ee7]
jmp 0x40e2d3
cmp dword [0x4c03cc], 0
jl 0x40e2d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, dword [0x4c03cc]
jb 0x40e2d0
xor cl, cl
jmp 0x40e2d3
mov cl, byte [ebp - 2]
cmp byte [0x4c2e07], 0
je 0x40e2f5
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 0x40e302
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c4018], 0
je 0x40e318
mov al, byte [0x4c3ee5]
mov byte [ebp - 0x14], al
jmp 0x40e3f9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e333
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e347
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e35b
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e36f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e383
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e397
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3a8
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3b9
or bl, 0x80
cmp dword [0x4c4018], 0
je 0x40e3f6
mov al, bl
not al
and al, byte [0x4c3ee5]
je 0x40e3f6
mov cl, byte [0x4c3ee7]
not al
and byte [0x4c3ee5], al
and byte [0x4c3ee6], al
and cl, al
mov al, cl
mov byte [0x4c3ee7], cl
mov ecx, 0x4c3f08
call fcn.00411560
mov byte [ebp - 0x14], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 1
push 1
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.00410d60
add esp, 0x14
xor edi, edi
cmp dword [0x4c4018], edi
je 0x40e438
mov al, byte [0x4c3ee6]
mov cl, al
xor cl, byte [0x4c3ee5]
and cl, al
not cl
and al, cl
mov byte [0x4c3ee6], al
mov esi, 1
cmp dword [ebp - 0x38], esi
jne 0x40e48f
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e48f
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040ee60
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
jne 0x40e48f
push esi
push 0xffffffffffffffff
mov dword [0x4c03d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], esi
cmp byte [ebp - 0xb], 0
je 0x40e4a6
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4c6004]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e4f2
cmp byte [ebp - 0x19], 0
jne 0x40e4f2
test byte [0x4c7740], 1
jne 0x40e4df
or dword [0x4c7740], esi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c773c], eax
jmp 0x40e4e4
mov eax, dword [0x4c773c]
cmp eax, edi
je 0x40e4eb
push edi
call eax
mov byte [0x4c46eb], 0
cmp dword [ebp + 0x10], esi
jne 0x40e524
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
jne 0x40e524
push esi
push 0xffffffffffffffff
mov dword [0x4c03d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], esi
mov eax, dword [ebp - 0x3c]
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