Function at 0x40d350
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 0x40e4d3
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c140c]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d3eb
push 7
push str.Blind
push edi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40d3eb
add edi, 0xe
mov byte [0x4c3e87], 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 0x40d3b3
cmp eax, 3
jne 0x40d421
cmp dword [0x4c7d30], 0
je 0x40d3f7
call fcn.004089b0
test al, al
jne 0x40d3f4
test bl, bl
jne 0x40d3e2
call fcn.00408a10
test al, al
je 0x40d3e2
mov eax, str.Click
mov ecx, edi
call fcn.00473620
test eax, eax
jne 0x40d3f4
mov dword [ebp + 0x10], 1
jmp 0x40d421
mov byte [0x4c3e87], 0
jmp 0x40d39a
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d405
mov dword [ebp + 0x10], 2
jmp 0x40d421
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d417
cmp dword [esi + 0x64], eax
jge 0x40d417
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 0x40d479
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x40d57a
cmp ebx, dword [0x4c708c]
je 0x40d57a
call fcn.00477dc0
test al, al
jne 0x40d57a
mov edx, dword [0x4c708c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40d57a
test byte [0x4c7b5e], 0xc0
je 0x40d565
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c7b54]
cmp eax, 0x32
jae 0x40d565
cmp dword [ebp + 0x10], 2
je 0x40d565
cmp byte [0x4c3e87], 0
jne 0x40d565
cmp byte [0x4c7d1e], 0
je 0x40d565
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c708c]
jne 0x40d565
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a283c
je 0x40d533
call fcn.00409160
test eax, eax
setne al
test al, al
je 0x40d565
jmp 0x40d4f0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d512
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d565
push 1
push 0x8000012f
mov dword [0x4c13d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 1
jmp 0x40d4f0
call fcn.00409160
test eax, eax
je 0x40d565
lea esp, [esp]
add eax, 2
mov ebx, 0x4a2844
call fcn.00409160
test eax, eax
je 0x40d4f0
cmp word [eax], 0x7b
je 0x40d4f0
mov ebx, 0x4a283c
call fcn.00409160
test eax, eax
jne 0x40d540
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d57a
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 [0x4c3eac], eax
push eax
xor eax, eax
call fcn.004119a0
add esp, 4
push 1
mov dword [0x4c3ea8], eax
call fcn.00411400
add esp, 4
cmp dword [0x4c50a0], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d5ca
mov cl, byte [0x4c4f6d]
mov dl, byte [0x4c4f6f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d5f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c7b54]
cmp eax, dword [0x4c13cc]
jae 0x40d5ea
mov al, byte [0x4c7b5e]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d5f1
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c6981]
not al
and al, bl
and cl, al
mov al, byte [0x4c3e87]
mov byte [0x4c6981], cl
test al, al
je 0x40d61c
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d623
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xef], 0
je 0x40d6fc
test al, al
jne 0x40d6fc
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 0x40d65e
mov dword [ebp - 0x38], esi
jmp 0x40d703
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040ee00
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c708c]
sete bl
test bl, bl
je 0x40d6b1
push 1
push 0xffffffffffffffff
mov dword [0x4c13d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 1
push 0x14
call edi
test al, 1
je 0x40d6f4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040ee00
add esp, 0x18
test bl, bl
je 0x40d6f4
push 1
push 0xffffffffffffffff
mov dword [0x4c13d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x38], esi
jmp 0x40d703
mov dword [ebp - 0x38], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c69d8], esi
test esi, esi
je 0x40d775
cmp esi, 1
jne 0x40d726
mov eax, 0x36b0
mov dword [0x4c3e9c], 0x1f4
jmp 0x40d735
mov eax, 0x2ee0
mov dword [0x4c3e9c], 0x5dc
call fcn.00493ae0
mov eax, esp
mov dword [0x4c3ea4], eax
mov eax, SysReAllocString
mov byte [0x4c3e8f], bl
mov dword [0x4c3e90], eax
mov dword [0x4c3e94], eax
mov byte [0x4c3e8e], 0
mov dword [0x4c3ea0], 0
mov byte [0x4c3e8d], 0
mov byte [0x4c3e8c], 1
mov eax, dword [0x4c14e8]
mov dl, byte [0x4c5984]
mov byte [ebp - 0x19], dl
cmp eax, 8
je 0x40d78d
cmp eax, 0xa
jne 0x40d7c8
test esi, esi
jne 0x40d7c8
cmp dword [ebp + 0x14], esi
jne 0x40d7c8
test byte [0x4c85d0], 1
mov byte [ebp - 4], 1
jne 0x40d7ce
or dword [0x4c85d0], 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 [0x4c85cc], eax
jmp 0x40d7d3
mov byte [ebp - 4], 0
jmp 0x40d7e2
mov eax, dword [0x4c85cc]
test eax, eax
je 0x40d7db
push 1
call eax
mov byte [0x4c5984], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40e18d
cmp dword [0x4c69d8], 0
mov byte [ebp - 9], 0
jne 0x40d861
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c7b94]
mov edx, dword [0x4c140c]
cmp eax, dword [edx + 0xd4]
jbe 0x40d861
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 0x40d85a
push 1
push 0xffffffffffffffff
mov dword [0x4c13d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 1
call esi
mov dword [0x4c7b94], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e05b
movzx ecx, word [edi]
push ecx
push 0x4a284c
call fcn.0048d2f1
add esp, 8
test eax, eax
je 0x40e05b
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d89d.34
movzx edx, byte [eax + 0x40e4fc]
jmp dword [edx*4 + 0x40e4e0]
test byte [ebp - 8], 3
jne case.0x40d89d.34
or byte [ebp - 1], 1
jmp case.0x40d89d.34
test byte [ebp - 8], 0x30
jne case.0x40d89d.34
or byte [ebp - 1], 0x10
jmp case.0x40d89d.34
test byte [ebp - 8], 0xc
jne case.0x40d89d.34
or byte [ebp - 1], 4
jmp case.0x40d89d.34
test byte [ebp - 8], 0xc0
jne case.0x40d89d.34
or byte [ebp - 1], 0x40
jmp case.0x40d89d.34
mov ebx, dword [ebp + 8]
add ebx, 2
push 0x7d
push ebx
call fcn.0048d2f1
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je case.0x40d89d.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 0x40d9a9
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x40d941
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
jmp 0x40d9a3
cmp ecx, 0x20
je 0x40d94f
cmp ecx, 9
jne 0x40e050
call fcn.004091b0
push 4
mov esi, eax
push str.Down
push esi
call fcn.0048cd67
add esp, 0xc
test eax, eax
je 0x40d982
push 2
push 0x49fd68
push esi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40e050
push 0x7d
push esi
call fcn.0048d2f1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d89d.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 0x4a1780
push edi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40da4c
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.0040f560
mov ecx, 0x7d
mov word [esi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
cmp ecx, 1
jge 0x40da28
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.004101b0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e16d
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 0x40e045
push 3
push 0x4a285c
push edi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40da6f
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e16d
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 2
mov dword [ebp - 0x48], ebx
mov ebx, 0x4a2534
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 0x40db26
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 0x40db26
push 4
push str.Down
push ebx
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40dafd
push 4
push str.Temp
add ebx, 8
xor esi, esi
push ebx
mov dword [ebp - 0x10], esi
call fcn.0048cd67
add esp, 0xc
test eax, eax
setne byte [ebp - 0x1e]
jmp 0x40db26
push 0x49fd68
push ebx
call fcn.0048c519
add esp, 8
test eax, eax
jne 0x40db19
mov esi, 1
mov dword [ebp - 0x10], esi
jmp 0x40db26
mov esi, ebx
call fcn.0040ccb0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
movzx eax, word [edi]
test ax, ax
je 0x40db6b
cmp word [edi + 2], 0
jne 0x40db48
mov ecx, dword [0x4c3eac]
lea esi, [ebp - 1]
call fcn.00411ce0
mov esi, dword [ebp - 0x10]
jmp 0x40db6d
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebx*8 + 0x4c21f8]
push edi
push edx
call fcn.0048c519
add esp, 8
test eax, eax
je 0x40db82
inc ebx
cmp ebx, 0x6d
jl 0x40db50
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40db8b
mov dword [ebp - 0x30], 0
jmp 0x40dc07
mov al, byte [ebx*8 + 0x4c21fc]
jmp 0x40db6d
mov eax, edi
call fcn.00411b80
movzx eax, ax
mov dword [ebp - 0x30], eax
test ax, ax
jne 0x40dc07
mov ax, word [edi]
call fcn.00409130
cmp ax, 0x56
jne 0x40dc07
mov ax, word [edi + 2]
call fcn.00409130
cmp ax, 0x4b
jne 0x40dc07
lea eax, [edi + 4]
mov ebx, 0x4a2870
call fcn.00409160
mov ebx, eax
test ebx, ebx
je 0x40dbf2
mov ax, word [ebx + 2]
call fcn.00409130
cmp ax, 0x43
jne 0x40dbf2
push 0x10
push 0
add ebx, 4
push ebx
call fcn.0048db4b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.0048db4b
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dc15
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 0x40e050
test bl, bl
jne 0x40dfb5
cmp word [ebp - 0x30], 0
jne 0x40dfb5
cmp dword [ebp - 0x48], 1
jne 0x40dc8c
cmp esi, 1
je 0x40e050
cmp dword [ebp + 0x14], 0
je 0x40dc72
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 0x40e16d
movzx eax, word [edi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e900
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e16d
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.00411d60
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40de85
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dcc7
cmp dword [ebp - 0x10], edi
jne 0x40dcc2
mov byte [ebp - 9], al
jmp 0x40dcc7
call fcn.0040ce80
cmp dword [0x4c69d8], 0
je 0x40dcdb
mov bl, byte [0x4c3e8f]
jmp 0x40ddcd
cmp dword [0x4c50a0], 0
je 0x40dcef
mov bl, byte [0x4c4f6d]
jmp 0x40ddcd
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd0a
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd1e
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd32
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd46
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd5a
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd6e
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd7f
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd90
or bl, 0x80
cmp dword [0x4c50a0], 0
je 0x40ddcd
mov al, bl
not al
and al, byte [0x4c4f6d]
je 0x40ddcd
mov cl, byte [0x4c4f6f]
not al
and byte [0x4c4f6d], al
and byte [0x4c4f6e], al
and cl, al
mov al, cl
mov byte [0x4c4f6f], cl
mov ecx, 0x4c4f90
call fcn.00411500
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410d00
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e050
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.0040ee00
add esp, 0x18
cmp dword [0x4c69d8], 0
jne 0x40de73
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c7b94]
mov ecx, dword [0x4c140c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40de73
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 0x40de6c
push 1
push 0xffffffffffffffff
mov dword [0x4c13d4], 0
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 1
call esi
mov dword [0x4c7b94], eax
dec edi
jne 0x40ddf4
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40def0
push 4
push str.ASC
push esi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40def0
cmp dword [ebp + 0x14], eax
jne 0x40def0
lea eax, [esi + 6]
call fcn.004091b0
call fcn.0040ea00
cmp dword [0x4c69d8], 2
jne 0x40ded7
mov eax, dword [0x4c140c]
mov esi, dword [eax + 0x60]
call fcn.00410920
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov ecx, dword [0x4c140c]
mov esi, dword [ecx + 0x5c]
call fcn.00410920
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov ebx, 2
cmp edi, ebx
jbe 0x40e050
push ebx
push 0x4a2884
push esi
call fcn.0048cd67
add esp, 0xc
test eax, eax
jne 0x40e050
push 0x10
push eax
add esi, 4
push esi
call fcn.0048db4b
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40df3e
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40df7b
cmp dword [0x4c69d8], ebx
je 0x40df5b
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040cf00
add esp, 4
jmp 0x40df7b
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.0048c295
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040ea00
cmp dword [0x4c69d8], ebx
jne 0x40df9c
mov ecx, dword [0x4c140c]
mov esi, dword [ecx + 0x60]
call fcn.00410920
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov edx, dword [0x4c140c]
mov esi, dword [edx + 0x5c]
call fcn.00410920
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov al, bl
call fcn.004115d0
mov byte [ebp - 0x14], al
test al, al
je 0x40e020
cmp dword [ebp + 0x14], 0
jne 0x40e020
test esi, esi
jne 0x40dfe6
cmp byte [ebp - 0x1e], 0
mov byte [ebp - 9], bl
je 0x40dfe1
or byte [0x4c6981], al
or byte [ebp - 8], al
jmp 0x40e020
cmp esi, 1
jne 0x40e020
mov al, bl
call fcn.0040ce80
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c6981]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c6981], cl
cmp bl, 0xa5
jne 0x40e01a
cmp dword [0x4c3ea8], 3
jne 0x40e01a
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.0040e560
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e16d
mov ax, word [edi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e0fe
cmp word [ebp - 0x2a], 0
jne 0x40e085
mov ecx, dword [0x4c3eac]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411ce0
jmp 0x40e100
movzx ebx, ax
test ebx, 0xffffff80
jne 0x40e0a2
push 2
push ebx
call fcn.0048d76e
add esp, 8
test eax, eax
je 0x40e0a2
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x40e0de
movzx ebx, word [ebp - 0x2a]
test ebx, 0xffffff80
jne 0x40e0c6
push 2
push ebx
call fcn.0048d76e
add esp, 8
test eax, eax
je 0x40e0c6
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x40e0de
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048db4b
add esp, 0xc
jmp 0x40e100
xor ebx, ebx
mov edx, dword [ebx*8 + 0x4c21f8]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0048c519
add esp, 8
test eax, eax
je 0x40e13b
inc ebx
cmp ebx, 0x6d
jl 0x40e0e0
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e144
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.0040e560
add esp, 0x20
jmp 0x40e16d
mov al, byte [ebx*8 + 0x4c21fc]
jmp 0x40e100
test eax, eax
je 0x40e15c
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e16d
movzx edx, word [edi]
push edx
mov eax, 1
call fcn.0040e900
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 [0x4c6980], cl
jne 0x40d7f8
cmp dword [0x4c69d8], 0
je 0x40e23e
cmp byte [0x4c3e8d], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e1fe
cmp dword [0x4c3ea0], 0
jbe 0x40e1fe
cmp byte [0x4c3e87], 0
je 0x40e1c0
xor eax, eax
jmp 0x40e1cc
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 [0x4c3e8f]
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00410d00
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.004107d0
add esp, 8
mov eax, dword [0x4c69d8]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c3e9c], eax
jbe 0x40e229
mov edx, dword [0x4c3ea4]
push edx
call fcn.0048db7f
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c69d8], edi
call fcn.00410920
jmp 0x40e3b8
cmp dword [0x4c50a0], 0
je 0x40e24f
mov cl, byte [0x4c4f6f]
jmp 0x40e273
cmp dword [0x4c13cc], 0
jl 0x40e270
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c7b54]
cmp eax, dword [0x4c13cc]
jb 0x40e270
xor cl, cl
jmp 0x40e273
mov cl, byte [ebp - 2]
cmp byte [0x4c3e87], 0
je 0x40e295
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 0x40e2a2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c50a0], 0
je 0x40e2b8
mov al, byte [0x4c4f6d]
mov byte [ebp - 0x14], al
jmp 0x40e399
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2d3
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2e7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2fb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e30f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e323
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e337
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e348
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e359
or bl, 0x80
cmp dword [0x4c50a0], 0
je 0x40e396
mov al, bl
not al
and al, byte [0x4c4f6d]
je 0x40e396
mov cl, byte [0x4c4f6f]
not al
and byte [0x4c4f6d], al
and byte [0x4c4f6e], al
and cl, al
mov al, cl
mov byte [0x4c4f6f], cl
mov ecx, 0x4c4f90
call fcn.00411500
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.00410d00
add esp, 0x14
xor edi, edi
cmp dword [0x4c50a0], edi
je 0x40e3d8
mov al, byte [0x4c4f6e]
mov cl, al
xor cl, byte [0x4c4f6d]
and cl, al
not cl
and al, cl
mov byte [0x4c4f6e], al
mov esi, 1
cmp dword [ebp - 0x38], esi
jne 0x40e42f
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e42f
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040ee00
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c708c]
jne 0x40e42f
push esi
push 0xffffffffffffffff
mov dword [0x4c13d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], esi
cmp byte [ebp - 0xb], 0
je 0x40e446
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4c708c]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e492
cmp byte [ebp - 0x19], 0
jne 0x40e492
test byte [0x4c85d0], 1
jne 0x40e47f
or dword [0x4c85d0], 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 [0x4c85cc], eax
jmp 0x40e484
mov eax, dword [0x4c85cc]
cmp eax, edi
je 0x40e48b
push edi
call eax
mov byte [0x4c5984], 0
cmp dword [ebp + 0x10], esi
jne 0x40e4c4
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c708c]
jne 0x40e4c4
push esi
push 0xffffffffffffffff
mov dword [0x4c13d4], edi
call fcn.00401290
add esp, 8
mov dword [0x4c13d4], 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