Function at 0x40d310
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 0x40e493
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c040c]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d3ab
push 7
push str.Blind
push edi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40d3ab
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 0x40d373
cmp eax, 3
jne 0x40d3e1
cmp dword [0x4c6ea0], 0
je 0x40d3b7
call fcn.004089b0
test al, al
jne 0x40d3b4
test bl, bl
jne 0x40d3a2
call fcn.00408a10
test al, al
je 0x40d3a2
mov eax, str.Click
mov ecx, edi
call fcn.00471b50
test eax, eax
jne 0x40d3b4
mov dword [ebp + 0x10], 1
jmp 0x40d3e1
mov byte [0x4c2e07], 0
jmp 0x40d35a
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d3c5
mov dword [ebp + 0x10], 2
jmp 0x40d3e1
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d3d7
cmp dword [esi + 0x64], eax
jge 0x40d3d7
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 0x40d439
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x40d53a
cmp ebx, dword [0x4c6004]
je 0x40d53a
call fcn.00476120
test al, al
jne 0x40d53a
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 0x40d53a
test byte [0x4c6ace], 0xc0
je 0x40d525
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, 0x32
jae 0x40d525
cmp dword [ebp + 0x10], 2
je 0x40d525
cmp byte [0x4c2e07], 0
jne 0x40d525
cmp byte [0x4c6e8e], 0
je 0x40d525
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c6004]
jne 0x40d525
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a17c4
je 0x40d4f3
call fcn.00409160
test eax, eax
setne al
test al, al
je 0x40d525
jmp 0x40d4b0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d4d2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d525
push 1
push 0x8000012f
mov dword [0x4c03d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], 1
jmp 0x40d4b0
call fcn.00409160
test eax, eax
je 0x40d525
lea esp, [esp]
add eax, 2
mov ebx, 0x4a17cc
call fcn.00409160
test eax, eax
je 0x40d4b0
cmp word [eax], 0x7b
je 0x40d4b0
mov ebx, 0x4a17c4
call fcn.00409160
test eax, eax
jne 0x40d500
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d53a
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.00411960
add esp, 4
push 1
mov dword [0x4c2e28], eax
call fcn.004113c0
add esp, 4
cmp dword [0x4c4018], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d58a
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 0x40d5b5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, dword [0x4c03cc]
jae 0x40d5aa
mov al, byte [0x4c6ace]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d5b1
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 0x40d5dc
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d5e3
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xef], 0
je 0x40d6bc
test al, al
jne 0x40d6bc
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 0x40d61e
mov dword [ebp - 0x38], esi
jmp 0x40d6c3
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040edc0
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 0x40d671
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 0x40d6b4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040edc0
add esp, 0x18
test bl, bl
je 0x40d6b4
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 0x40d6c3
mov dword [ebp - 0x38], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c5950], esi
test esi, esi
je 0x40d735
cmp esi, 1
jne 0x40d6e6
mov eax, 0x36b0
mov dword [0x4c2e1c], 0x1f4
jmp 0x40d6f5
mov eax, 0x2ee0
mov dword [0x4c2e1c], 0x5dc
call fcn.00491b90
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 0x40d74d
cmp eax, 0xa
jne 0x40d788
test esi, esi
jne 0x40d788
cmp dword [ebp + 0x14], esi
jne 0x40d788
test byte [0x4c7740], 1
mov byte [ebp - 4], 1
jne 0x40d78e
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 0x40d793
mov byte [ebp - 4], 0
jmp 0x40d7a2
mov eax, dword [0x4c773c]
test eax, eax
je 0x40d79b
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 0x40e14d
cmp dword [0x4c5950], 0
mov byte [ebp - 9], 0
jne 0x40d821
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c6b04]
mov edx, dword [0x4c040c]
cmp eax, dword [edx + 0xd4]
jbe 0x40d821
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 0x40d81a
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 0x40e01b
movzx ecx, word [edi]
push ecx
push str._
call fcn.0048b551
add esp, 8
test eax, eax
je 0x40e01b
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d85d.34
movzx edx, byte [eax + 0x40e4bc]
jmp dword [edx*4 + 0x40e4a0]
test byte [ebp - 8], 3
jne case.0x40d85d.34
or byte [ebp - 1], 1
jmp case.0x40d85d.34
test byte [ebp - 8], 0x30
jne case.0x40d85d.34
or byte [ebp - 1], 0x10
jmp case.0x40d85d.34
test byte [ebp - 8], 0xc
jne case.0x40d85d.34
or byte [ebp - 1], 4
jmp case.0x40d85d.34
test byte [ebp - 8], 0xc0
jne case.0x40d85d.34
or byte [ebp - 1], 0x40
jmp case.0x40d85d.34
mov ebx, dword [ebp + 8]
add ebx, 2
push 0x7d
push ebx
call fcn.0048b551
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je case.0x40d85d.34
mov eax, ebx
call fcn.004091b0
mov edi, eax
mov ebx, esi
sub ebx, edi
sar ebx, 1
mov dword [ebp + 8], edi
mov dword [ebp - 0x28], ebx
jne 0x40d969
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x40d901
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
jmp 0x40d963
cmp ecx, 0x20
je 0x40d90f
cmp ecx, 9
jne 0x40e010
call fcn.004091b0
push 4
mov esi, eax
push str.Down
push esi
call fcn.0048afc2
add esp, 0xc
test eax, eax
je 0x40d942
push 2
push 0x49ed20
push esi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40e010
push 0x7d
push esi
call fcn.0048b551
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d85d.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 0x4a0728
push edi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40da0c
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.004091b0
call fcn.0040f520
mov ecx, 0x7d
mov word [esi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
cmp ecx, 1
jge 0x40d9e8
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.00410170
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e12d
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 0x40e005
push 3
push 0x4a17e4
push edi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40da2f
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e12d
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 2
mov dword [ebp - 0x48], ebx
mov ebx, 0x4a14dc
mov eax, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], 1
call fcn.00409160
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dae6
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.004091b0
mov ecx, dword [ebp - 0x18]
mov ebx, eax
sub ecx, ebx
sar ecx, 1
je 0x40dae6
push 4
push str.Down
push ebx
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40dabd
push 4
push str.Temp
add ebx, 8
xor esi, esi
push ebx
mov dword [ebp - 0x10], esi
call fcn.0048afc2
add esp, 0xc
test eax, eax
setne byte [ebp - 0x1e]
jmp 0x40dae6
push 0x49ed20
push ebx
call fcn.0048a789
add esp, 8
test eax, eax
jne 0x40dad9
mov esi, 1
mov dword [ebp - 0x10], esi
jmp 0x40dae6
mov esi, ebx
call fcn.0040cc70
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
movzx eax, word [edi]
test ax, ax
je 0x40db2b
cmp word [edi + 2], 0
jne 0x40db08
mov ecx, dword [0x4c2e2c]
lea esi, [ebp - 1]
call fcn.00411ca0
mov esi, dword [ebp - 0x10]
jmp 0x40db2d
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebx*8 + 0x4c11f0]
push edi
push edx
call fcn.0048a789
add esp, 8
test eax, eax
je 0x40db42
inc ebx
cmp ebx, 0x6d
jl 0x40db10
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40db4b
mov dword [ebp - 0x30], 0
jmp 0x40dbc7
mov al, byte [ebx*8 + 0x4c11f4]
jmp 0x40db2d
mov eax, edi
call fcn.00411b40
movzx eax, ax
mov dword [ebp - 0x30], eax
test ax, ax
jne 0x40dbc7
mov ax, word [edi]
call fcn.00409130
cmp ax, 0x56
jne 0x40dbc7
mov ax, word [edi + 2]
call fcn.00409130
cmp ax, 0x4b
jne 0x40dbc7
lea eax, [edi + 4]
mov ebx, 0x4a17f8
call fcn.00409160
mov ebx, eax
test ebx, ebx
je 0x40dbb2
mov ax, word [ebx + 2]
call fcn.00409130
cmp ax, 0x43
jne 0x40dbb2
push 0x10
push 0
add ebx, 4
push ebx
call fcn.0048bdab
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.0048bdab
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dbd5
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 0x40e010
test bl, bl
jne 0x40df75
cmp word [ebp - 0x30], 0
jne 0x40df75
cmp dword [ebp - 0x48], 1
jne 0x40dc4c
cmp esi, 1
je 0x40e010
cmp dword [ebp + 0x14], 0
je 0x40dc32
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 0x40e12d
movzx eax, word [edi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e8c0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e12d
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.00411d20
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40de45
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dc87
cmp dword [ebp - 0x10], edi
jne 0x40dc82
mov byte [ebp - 9], al
jmp 0x40dc87
call fcn.0040ce40
cmp dword [0x4c5950], 0
je 0x40dc9b
mov bl, byte [0x4c2e0f]
jmp 0x40dd8d
cmp dword [0x4c4018], 0
je 0x40dcaf
mov bl, byte [0x4c3ee5]
jmp 0x40dd8d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dcca
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dcde
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dcf2
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd06
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd1a
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd2e
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd3f
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd50
or bl, 0x80
cmp dword [0x4c4018], 0
je 0x40dd8d
mov al, bl
not al
and al, byte [0x4c3ee5]
je 0x40dd8d
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.004114c0
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410cc0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e010
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.0040edc0
add esp, 0x18
cmp dword [0x4c5950], 0
jne 0x40de33
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c6b04]
mov ecx, dword [0x4c040c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40de33
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 0x40de2c
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 0x40ddb4
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40deb0
push 4
push str.ASC
push esi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40deb0
cmp dword [ebp + 0x14], eax
jne 0x40deb0
lea eax, [esi + 6]
call fcn.004091b0
call fcn.0040e9c0
cmp dword [0x4c5950], 2
jne 0x40de97
mov eax, dword [0x4c040c]
mov esi, dword [eax + 0x60]
call fcn.004108e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov ecx, dword [0x4c040c]
mov esi, dword [ecx + 0x5c]
call fcn.004108e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov ebx, 2
cmp edi, ebx
jbe 0x40e010
push ebx
push 0x4a180c
push esi
call fcn.0048afc2
add esp, 0xc
test eax, eax
jne 0x40e010
push 0x10
push eax
add esi, 4
push esi
call fcn.0048bdab
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40defe
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40df3b
cmp dword [0x4c5950], ebx
je 0x40df1b
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040cec0
add esp, 4
jmp 0x40df3b
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.0048a505
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e9c0
cmp dword [0x4c5950], ebx
jne 0x40df5c
mov ecx, dword [0x4c040c]
mov esi, dword [ecx + 0x60]
call fcn.004108e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov edx, dword [0x4c040c]
mov esi, dword [edx + 0x5c]
call fcn.004108e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov al, bl
call fcn.00411590
mov byte [ebp - 0x14], al
test al, al
je 0x40dfe0
cmp dword [ebp + 0x14], 0
jne 0x40dfe0
test esi, esi
jne 0x40dfa6
cmp byte [ebp - 0x1e], 0
mov byte [ebp - 9], bl
je 0x40dfa1
or byte [0x4c58f8], al
or byte [ebp - 8], al
jmp 0x40dfe0
cmp esi, 1
jne 0x40dfe0
mov al, bl
call fcn.0040ce40
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 0x40dfda
cmp dword [0x4c2e28], 3
jne 0x40dfda
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.0040e520
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e12d
mov ax, word [edi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e0be
cmp word [ebp - 0x2a], 0
jne 0x40e045
mov ecx, dword [0x4c2e2c]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411ca0
jmp 0x40e0c0
movzx ebx, ax
test ebx, 0xffffff80
jne 0x40e062
push 2
push ebx
call fcn.0048b9ce
add esp, 8
test eax, eax
je 0x40e062
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x40e09e
movzx ebx, word [ebp - 0x2a]
test ebx, 0xffffff80
jne 0x40e086
push 2
push ebx
call fcn.0048b9ce
add esp, 8
test eax, eax
je 0x40e086
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x40e09e
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048bdab
add esp, 0xc
jmp 0x40e0c0
xor ebx, ebx
mov edx, dword [ebx*8 + 0x4c11f0]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0048a789
add esp, 8
test eax, eax
je 0x40e0fb
inc ebx
cmp ebx, 0x6d
jl 0x40e0a0
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e104
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.0040e520
add esp, 0x20
jmp 0x40e12d
mov al, byte [ebx*8 + 0x4c11f4]
jmp 0x40e0c0
test eax, eax
je 0x40e11c
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e12d
movzx edx, word [edi]
push edx
mov eax, 1
call fcn.0040e8c0
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 0x40d7b8
cmp dword [0x4c5950], 0
je 0x40e1fe
cmp byte [0x4c2e0d], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e1be
cmp dword [0x4c2e20], 0
jbe 0x40e1be
cmp byte [0x4c2e07], 0
je 0x40e180
xor eax, eax
jmp 0x40e18c
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.00410cc0
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00410790
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 0x40e1e9
mov edx, dword [0x4c2e24]
push edx
call fcn.0048bddf
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c5950], edi
call fcn.004108e0
jmp 0x40e378
cmp dword [0x4c4018], 0
je 0x40e20f
mov cl, byte [0x4c3ee7]
jmp 0x40e233
cmp dword [0x4c03cc], 0
jl 0x40e230
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ac4]
cmp eax, dword [0x4c03cc]
jb 0x40e230
xor cl, cl
jmp 0x40e233
mov cl, byte [ebp - 2]
cmp byte [0x4c2e07], 0
je 0x40e255
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 0x40e262
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 0x40e278
mov al, byte [0x4c3ee5]
mov byte [ebp - 0x14], al
jmp 0x40e359
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e293
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2a7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2bb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2cf
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2e3
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2f7
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e308
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e319
or bl, 0x80
cmp dword [0x4c4018], 0
je 0x40e356
mov al, bl
not al
and al, byte [0x4c3ee5]
je 0x40e356
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.004114c0
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.00410cc0
add esp, 0x14
xor edi, edi
cmp dword [0x4c4018], edi
je 0x40e398
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 0x40e3ef
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e3ef
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040edc0
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 0x40e3ef
push esi
push 0xffffffffffffffff
mov dword [0x4c03d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c03d4], esi
cmp byte [ebp - 0xb], 0
je 0x40e406
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 0x40e452
cmp byte [ebp - 0x19], 0
jne 0x40e452
test byte [0x4c7740], 1
jne 0x40e43f
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 0x40e444
mov eax, dword [0x4c773c]
cmp eax, edi
je 0x40e44b
push edi
call eax
mov byte [0x4c46eb], 0
cmp dword [ebp + 0x10], esi
jne 0x40e484
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
jne 0x40e484
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