Function at 0x40d9a0
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 0x40eb24
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c48ec]
mov dword [ebp - 0x38], esi
test bl, bl
jne 0x40da3c
push 7
push str.Blind
push edi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40da3c
add edi, 0xe
mov byte [0x4c73df], 1
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
cmp edi, 1
je 0x40da03
cmp edi, 3
jne 0x40da6f
cmp dword [0x4cb2ec], 0
je 0x40da45
call fcn.00408eb0
test al, al
jne 0x40da45
test bl, bl
jne 0x40da33
call fcn.00408f10
test al, al
je 0x40da33
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00474ad0
test eax, eax
jne 0x40da45
mov dword [ebp + 0x10], 1
jmp 0x40da6f
mov byte [0x4c73df], 0
jmp 0x40d9ea
cmp edi, 3
jne 0x40da53
mov dword [ebp + 0x10], 2
jmp 0x40da6f
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40da65
cmp dword [esi + 0x64], eax
jge 0x40da65
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0xb], 0
cmp dword [ebp + 0x14], edi
je 0x40db17
mov edx, dword [ebp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40dac0
cmp ebx, dword [0x4ca5dc]
je 0x40dac0
mov esi, dword [ebp + 0x14]
call fcn.00479390
test al, al
jne 0x40dabd
mov eax, dword [0x4ca5dc]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
mov esi, dword [ebp - 0x38]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c7404], eax
push eax
xor eax, eax
call fcn.00411fc0
add esp, 4
push 1
mov dword [0x4c7400], eax
call fcn.004119f0
add esp, 4
cmp dword [0x4c85f8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40dc23
mov cl, byte [0x4c84c5]
mov dl, byte [0x4c84c7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dc4e
test byte [0x4cb102], 0xc0
je 0x40dc05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, 0x32
jae 0x40dc05
cmp dword [ebp + 0x10], 2
je 0x40dc05
cmp byte [0x4c73df], 0
jne 0x40dc05
cmp byte [0x4cb2de], 0
je 0x40dc05
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ca5dc]
jne 0x40dc05
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a48ac
je 0x40dbd3
call fcn.00409660
test eax, eax
setne al
test al, al
je 0x40dc05
lea esp, [esp]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x40dbb2
push 0x5c
call ebx
mov edx, 0x8000
test dx, ax
je 0x40dc05
push 1
push 0x8000012f
mov dword [0x4c48b4], edi
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
jmp 0x40db90
call fcn.00409660
test eax, eax
je 0x40dc05
lea esp, [esp]
add eax, 2
mov ebx, 0x4a48b4
call fcn.00409660
test eax, eax
je 0x40db90
cmp word [eax], 0x7b
je 0x40db90
mov ebx, 0x4a48ac
call fcn.00409660
test eax, eax
jne 0x40dbe0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40dac0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
jmp 0x40dac0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, dword [0x4c48ac]
jae 0x40dc43
mov al, byte [0x4cb102]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dc4a
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c9ed1]
not al
and al, bl
and cl, al
mov al, byte [0x4c73df]
mov byte [0x4c9ed1], cl
test al, al
je 0x40dc75
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40dc7c
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
cmp byte [esi + 0xf3], 0
je 0x40dc9d
test al, al
jne 0x40dc9d
push 2
mov bl, 0x14
call fcn.004111e0
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40dca4
mov dword [ebp - 0x40], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4c9f28], edi
test edi, edi
je 0x40dd16
cmp edi, 1
jne 0x40dcc7
mov eax, 0x36b0
mov dword [0x4c73f4], 0x1f4
jmp 0x40dcd6
mov eax, 0x2ee0
mov dword [0x4c73f4], 0x5dc
call fcn.00495170
mov eax, esp
mov dword [0x4c73fc], eax
mov eax, SysReAllocString
mov byte [0x4c73e7], bl
mov dword [0x4c73e8], eax
mov dword [0x4c73ec], eax
mov byte [0x4c73e6], 0
mov dword [0x4c73f8], 0
mov byte [0x4c73e5], 0
mov byte [0x4c73e4], 1
mov al, byte [0x4c8ed4]
mov byte [ebp - 0x25], al
mov eax, dword [0x4c49c8]
cmp eax, 8
je 0x40dd2d
cmp eax, 0xa
jne 0x40dd6e
test edi, edi
jne 0x40dd6e
cmp dword [ebp + 0x14], edi
jne 0x40dd6e
test byte [0x4cbb90], 1
mov byte [ebp - 4], 1
jne 0x40dd74
or dword [0x4cbb90], 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 [0x4c9f28]
mov dword [0x4cbb8c], eax
jmp 0x40dd79
mov byte [ebp - 4], 0
jmp 0x40dd8e
mov eax, dword [0x4cbb8c]
test eax, eax
je 0x40dd87
push 1
call eax
mov edi, dword [0x4c9f28]
mov byte [0x4c8ed4], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov byte [ebp - 1], 0
cmp word [edx], cx
je 0x40e798
mov esi, edx
cmp dword [0x4c9f28], 0
mov byte [ebp - 9], 0
jne 0x40de0f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4cb134]
mov ecx, dword [0x4c48ec]
cmp eax, dword [ecx + 0xd8]
jbe 0x40de0f
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 0x40de08
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call edi
mov dword [0x4cb134], eax
cmp byte [ebp + 0xc], 0
jne 0x40e651
movzx eax, word [esi]
push eax
push str._
call fcn.0048e971
add esp, 8
test eax, eax
je 0x40e651
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40de48.34
movzx ecx, byte [eax + 0x40eb50]
jmp dword [ecx*4 + 0x40eb34]
test byte [ebp - 8], 3
jne case.0x40de48.34
or byte [ebp - 1], 1
jmp case.0x40de48.34
test byte [ebp - 8], 0x30
jne case.0x40de48.34
or byte [ebp - 1], 0x10
jmp case.0x40de48.34
test byte [ebp - 8], 0xc
jne case.0x40de48.34
or byte [ebp - 1], 4
jmp case.0x40de48.34
test byte [ebp - 8], 0xc0
jne case.0x40de48.34
or byte [ebp - 1], 0x40
jmp case.0x40de48.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.0048e971
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40de48.34
mov eax, ebx
call fcn.004096b0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40df49
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40dee5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40df43
cmp ecx, 0x20
je 0x40def3
cmp ecx, 9
jne 0x40e644
call fcn.004096b0
push 4
mov edi, eax
push str.Down
push edi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
je 0x40df26
push 2
push 0x4a1d68
push edi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40e644
push 0x7d
push edi
call fcn.0048e971
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40de48.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 0x4a3790
push esi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40dff1
xor edx, edx
lea eax, [ebp - 0x48]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [esi + 0xa]
call fcn.004096b0
call fcn.0040fb30
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40dfcc
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
call fcn.00410780
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push edx
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 0x40e639
push 3
push 0x4a48cc
push esi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40e016
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x4a45a4
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.00409660
mov edi, eax
test edi, edi
je 0x40e0c5
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.004096b0
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40e0c2
push 4
push str.Down
push esi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40e09f
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.0048e3e7
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40e0c2
push 0x4a1d68
push esi
call fcn.0048db99
add esp, 8
test eax, eax
jne 0x40e0ba
mov dword [ebp - 0x10], 1
jmp 0x40e0c2
call fcn.0040d300
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40e10e
cmp word [esi + 2], 0
jne 0x40e0e7
mov ecx, dword [0x4c7404]
lea esi, [ebp - 1]
call fcn.00412410
mov esi, dword [ebp + 8]
jmp 0x40e110
mov ebx, dword [ebp + 8]
xor esi, esi
lea esp, [esp]
mov edx, dword [esi*8 + 0x4c56f8]
push ebx
push edx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x40e125
inc esi
cmp esi, 0x6d
jl 0x40e0f0
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40e131
mov dword [ebp - 0x3c], 0
jmp 0x40e1b6
mov al, byte [esi*8 + 0x4c56fc]
mov esi, dword [ebp + 8]
jmp 0x40e110
mov eax, esi
call fcn.004122b0
movzx eax, ax
mov dword [ebp - 0x3c], eax
test ax, ax
jne 0x40e1b6
mov ax, word [esi]
call fcn.00409630
cmp ax, 0x56
jne 0x40e1b6
mov ax, word [esi + 2]
call fcn.00409630
cmp ax, 0x4b
jne 0x40e1b6
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x4a48e0
call fcn.00409660
mov esi, eax
test esi, esi
je 0x40e19b
mov ax, word [esi + 2]
call fcn.00409630
cmp ax, 0x43
jne 0x40e19b
push 0x10
push 0
add esi, 4
push esi
call fcn.0048f1cb
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
push 0x10
add eax, 4
push 0
push eax
call fcn.0048f1cb
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40e1c1
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 0x40e644
test bl, bl
jne 0x40e5a6
cmp word [ebp - 0x3c], 0
jne 0x40e5a6
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40e240
cmp dword [ebp - 0x10], eax
je 0x40e644
cmp dword [ebp + 0x14], 0
je 0x40e224
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 ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040ef50
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
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.00412490
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40e443
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e27e
cmp dword [ebp - 0x10], edi
jne 0x40e279
mov byte [ebp - 9], al
jmp 0x40e27e
call fcn.0040d4d0
cmp dword [0x4c9f28], 0
je 0x40e292
mov bl, byte [0x4c73e7]
jmp 0x40e384
cmp dword [0x4c85f8], 0
je 0x40e2a6
mov bl, byte [0x4c84c5]
jmp 0x40e384
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2c1
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2d5
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2e9
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2fd
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e311
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e325
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e336
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e347
or bl, 0x80
cmp dword [0x4c85f8], 0
je 0x40e384
mov al, bl
not al
and al, byte [0x4c84c5]
je 0x40e384
mov cl, byte [0x4c84c7]
not al
and byte [0x4c84c5], al
and byte [0x4c84c6], al
and cl, al
mov al, cl
mov byte [0x4c84c7], cl
mov ecx, 0x4c84e8
call fcn.00411af0
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.004112f0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e644
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40e3b0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040f460
add esp, 0x18
cmp dword [0x4c9f28], 0
jne 0x40e42f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cb134]
mov ecx, dword [0x4c48ec]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e42f
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 0x40e428
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call esi
mov dword [0x4cb134], eax
dec edi
jne 0x40e3b0
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40e478
push 4
push str.ASC
push esi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40e478
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x40e47b
lea eax, [esi + 6]
call fcn.004096b0
mov edi, eax
jmp 0x40e55b
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e644
push 2
push 0x4a48f4
push esi
call fcn.0048e3e7
add esp, 0xc
test eax, eax
jne 0x40e644
push 0x10
push eax
add esi, 4
push esi
call fcn.0048f1cb
add esp, 0xc
cmp eax, 0x10000
jb 0x40e4de
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
sub edx, 0x2800
movzx ecx, dx
mov edx, eax
and edx, 0x3ff
sub edx, 0x2400
movzx esi, dx
jmp 0x40e4e3
movzx ecx, ax
xor esi, esi
test ebx, ebx
je 0x40e510
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push ebx
call edi
test si, si
je 0x40e560
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e560
cmp dword [0x4c9f28], 2
je 0x40e540
movzx edx, byte [ebp - 8]
movzx edi, byte [ebp - 1]
or edi, edx
push ecx
mov eax, edi
call fcn.0040d550
add esp, 4
test si, si
je 0x40e560
push esi
mov eax, edi
call fcn.0040d550
add esp, 4
jmp 0x40e560
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x74], cx
call fcn.0048d915
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.0040f060
cmp dword [0x4c9f28], 2
jne 0x40e587
mov eax, dword [0x4c48ec]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410ef0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov ecx, dword [0x4c48ec]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410ef0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411bc0
mov byte [ebp - 0x14], al
test al, al
je 0x40e615
cmp dword [ebp + 0x14], 0
jne 0x40e615
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40e5db
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40e5d6
or byte [0x4c9ed1], al
or byte [ebp - 8], al
jmp 0x40e615
cmp ecx, 1
jne 0x40e615
mov al, bl
call fcn.0040d4d0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c9ed1]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c9ed1], cl
cmp bl, 0xa5
jne 0x40e60f
cmp dword [0x4c7400], 3
jne 0x40e60f
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1d]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push esi
push eax
mov al, byte [ebp - 1]
call fcn.0040ebb0
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e775
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e701
cmp word [ebp - 0x2a], 0
jne 0x40e681
mov ecx, dword [0x4c7404]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00412410
mov esi, dword [ebp + 8]
jmp 0x40e703
movzx esi, ax
test esi, 0xffffff80
jne 0x40e69e
push 2
push esi
call fcn.0048edee
add esp, 8
test eax, eax
je 0x40e69e
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40e6dd
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40e6c2
push 2
push esi
call fcn.0048edee
add esp, 8
test eax, eax
je 0x40e6c2
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40e6dd
push 0x10
lea edx, [ebp - 0x28]
push 0
push edx
call fcn.0048f1cb
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40e703
xor esi, esi
nop
mov ecx, dword [esi*8 + 0x4c56f8]
lea eax, [ebp - 0x2c]
push eax
push ecx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x40e73d
inc esi
cmp esi, 0x6d
jl 0x40e6e0
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
je 0x40e749
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040ebb0
add esp, 0x24
jmp 0x40e775
mov al, byte [esi*8 + 0x4c56fc]
mov esi, dword [ebp + 8]
jmp 0x40e703
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e764
movzx edx, word [esi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e775
movzx eax, word [esi]
push eax
mov eax, 1
call fcn.0040ef50
add esp, 4
mov byte [ebp - 1], 0
mov cl, byte [ebp - 9]
add esi, 2
cmp word [esi], 0
mov dword [ebp + 8], esi
mov byte [0x4c9ed0], cl
jne 0x40dda6
mov edi, dword [0x4c9f28]
test edi, edi
je 0x40e858
cmp byte [0x4c73e5], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e80f
cmp dword [0x4c73f8], 0
jbe 0x40e80f
cmp byte [0x4c73df], 0
je 0x40e7c6
xor eax, eax
jmp 0x40e7d2
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 8]
mov ebx, 1
push ebx
mov byte [ebp + 8], al
movzx eax, byte [0x4c73e7]
mov edi, dword [ebp + 8]
push ebx
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.004112f0
add esp, 0x14
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00410da0
mov edi, dword [0x4c9f28]
add esp, 8
jmp 0x40e814
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c73f4], edi
jbe 0x40e83d
mov edx, dword [0x4c73fc]
push edx
call fcn.0048f1ff
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov dword [0x4c9f28], 0
call fcn.00410ef0
add esp, 4
jmp 0x40e9d4
cmp dword [0x4c85f8], 0
je 0x40e869
mov cl, byte [0x4c84c7]
jmp 0x40e88d
cmp dword [0x4c48ac], 0
jl 0x40e88a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, dword [0x4c48ac]
jb 0x40e88a
xor cl, cl
jmp 0x40e88d
mov cl, byte [ebp - 2]
cmp byte [0x4c73df], 0
je 0x40e8af
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 0x40e8bc
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c85f8], 0
je 0x40e8d3
mov cl, byte [0x4c84c5]
mov byte [ebp - 0x14], cl
jmp 0x40e9b4
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e8ee
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e902
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e916
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e92a
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e93e
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e952
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e963
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e974
or bl, 0x80
cmp dword [0x4c85f8], 0
je 0x40e9b1
mov al, bl
not al
and al, byte [0x4c84c5]
je 0x40e9b1
mov cl, byte [0x4c84c7]
not al
and byte [0x4c84c5], al
and byte [0x4c84c6], al
and cl, al
mov al, cl
mov byte [0x4c84c7], cl
mov ecx, 0x4c84e8
call fcn.00411af0
mov byte [ebp - 0x14], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.004112f0
add esp, 0x14
cmp dword [0x4c85f8], 0
je 0x40e9f5
mov al, byte [0x4c84c6]
mov dl, al
xor dl, byte [0x4c84c5]
and dl, al
not dl
and al, dl
mov byte [0x4c84c6], al
cmp dword [ebp - 0x40], ebx
jne 0x40ea79
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ea79
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ea30
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push ebx
call fcn.0040f460
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f460
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5dc]
jne 0x40ea79
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
cmp byte [ebp - 0xb], 0
je 0x40ea91
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4ca5dc]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40eade
cmp byte [ebp - 0x25], 0
jne 0x40eade
test byte [0x4cbb90], 1
jne 0x40eaca
or dword [0x4cbb90], 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 [0x4cbb8c], eax
jmp 0x40eacf
mov eax, dword [0x4cbb8c]
test eax, eax
je 0x40ead7
push 0
call eax
mov byte [0x4c8ed4], 0
cmp dword [ebp + 0x10], ebx
jne 0x40eb15
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5dc]
jne 0x40eb15
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
mov eax, dword [ebp - 0x38]
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