Function at 0x40cd20
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 0x40e002
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4bd4c4]
mov dword [ebp - 0x40], esi
test bl, bl
jne 0x40cdbb
push 7
push str.Blind
push edi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40cdbb
add edi, 0xe
mov byte [0x4bfc3c], 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 0x40cd83
cmp eax, 3
jne 0x40cdf1
cmp dword [0x4c3c34], 0
je 0x40cdc7
call fcn.00408810
test al, al
jne 0x40cdc4
test bl, bl
jne 0x40cdb2
call fcn.00408870
test al, al
je 0x40cdb2
mov eax, str.Click
mov ecx, edi
call fcn.004672f0
test eax, eax
jne 0x40cdc4
mov dword [ebp + 0x10], 1
jmp 0x40cdf1
mov byte [0x4bfc3c], 0
jmp 0x40cd6a
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40cdd5
mov dword [ebp + 0x10], 2
jmp 0x40cdf1
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40cde7
cmp dword [esi + 0x64], eax
jge 0x40cde7
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 0x40ce49
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40cf4a
cmp ebx, dword [0x4c2fa4]
je 0x40cf4a
call fcn.0046b600
test al, al
jne 0x40cf4a
mov edx, dword [0x4c2fa4]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40cf4a
test byte [0x4c387a], 0xc0
je 0x40cf35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3870]
cmp eax, 0x32
jae 0x40cf35
cmp dword [ebp + 0x10], edi
jne 0x40cf35
cmp byte [0x4bfc3c], 0
jne 0x40cf35
cmp byte [0x4c3c1e], 0
je 0x40cf35
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c2fa4]
jne 0x40cf35
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49f1fc
je 0x40cf03
call fcn.00408fc0
test eax, eax
setne al
test al, al
je 0x40cf35
lea ebx, [ebx]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40cee2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40cf35
push 1
push 0x8000012f
mov dword [0x4bd3c0], edi
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 1
jmp 0x40cec0
call fcn.00408fc0
test eax, eax
je 0x40cf35
lea esp, [esp]
add eax, 2
mov ebx, 0x49f204
call fcn.00408fc0
test eax, eax
je 0x40cec0
cmp word [eax], 0x7b
je 0x40cec0
mov ebx, 0x49f1fc
call fcn.00408fc0
test eax, eax
jne 0x40cf10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40cf4a
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 [0x4bfc60], eax
push eax
xor eax, eax
call fcn.00411510
add esp, 4
push 1
mov dword [0x4bfc5c], eax
call fcn.00410f70
add esp, 4
cmp dword [0x4c0e4c], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40cf9a
mov cl, byte [0x4c0d19]
mov dl, byte [0x4c0d1b]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40cfc5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3870]
cmp eax, dword [0x4bd3b8]
jae 0x40cfba
mov al, byte [0x4c387a]
and al, bl
mov byte [ebp - 2], al
jmp 0x40cfc1
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c18d7]
not al
and al, bl
and cl, al
mov al, byte [0x4bfc3c]
mov byte [0x4c18d7], cl
test al, al
je 0x40cfec
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40cff3
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xea], 0
je 0x40d0cc
test al, al
jne 0x40d0cc
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 0x40d02e
mov dword [ebp - 0x3c], esi
jmp 0x40d0d3
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040e9a0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c2fa4]
sete bl
test bl, bl
je 0x40d081
push 1
push 0xffffffffffffffff
mov dword [0x4bd3c0], 0
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 1
push 0x14
call edi
test al, 1
je 0x40d0c4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040e9a0
add esp, 0x18
test bl, bl
je 0x40d0c4
push 1
push 0xffffffffffffffff
mov dword [0x4bd3c0], 0
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x3c], esi
jmp 0x40d0d3
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp + 0x10]
mov edi, esi
mov dword [0x4c28e8], edi
test esi, esi
je 0x40d147
cmp esi, 1
jne 0x40d0f8
mov eax, 0x36b0
mov dword [0x4bfc50], 0x1f4
jmp 0x40d107
mov eax, 0x2ee0
mov dword [0x4bfc50], 0x5dc
call fcn.00490a60
mov eax, esp
mov dword [0x4bfc58], eax
mov eax, SysReAllocString
mov byte [0x4bfc48], bl
mov dword [0x4bfc40], eax
mov dword [0x4bfc44], eax
mov byte [0x4bfc3f], 0
mov dword [0x4bfc54], 0
mov byte [0x4bfc3e], 0
mov byte [0x4bfc3d], 1
mov eax, dword [0x4bd4d4]
mov dl, byte [0x4c189a]
mov byte [ebp - 0x25], dl
cmp eax, 8
je 0x40d15f
cmp eax, 0xa
jne 0x40d1a0
test esi, esi
jne 0x40d1a0
cmp dword [ebp + 0x14], esi
jne 0x40d1a0
test byte [0x4c44c4], 1
mov byte [ebp - 4], 1
jne 0x40d1a6
or dword [0x4c44c4], 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 [0x4c28e8]
mov dword [0x4c44c0], eax
jmp 0x40d1ab
mov byte [ebp - 4], 0
jmp 0x40d1c0
mov eax, dword [0x4c44c0]
test eax, eax
je 0x40d1b9
push 1
call eax
mov edi, dword [0x4c28e8]
mov byte [0x4c189a], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40dcb4
mov esi, ecx
cmp dword [0x4c28e8], 0
mov byte [ebp - 9], 0
jne 0x40d241
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4c38b4]
mov edx, dword [0x4bd4c4]
cmp eax, dword [edx + 0xd0]
jbe 0x40d241
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 0x40d23a
push 1
push 0xffffffffffffffff
mov dword [0x4bd3c0], 0
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 1
call edi
mov dword [0x4c38b4], eax
cmp byte [ebp + 0xc], 0
jne 0x40db71
movzx ecx, word [esi]
push ecx
push 0x49f20c
call fcn.00482b51
add esp, 8
test eax, eax
je 0x40db71
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d27a.34
movzx edx, byte [eax + 0x40e02c]
jmp dword [edx*4 + 0x40e010]
test byte [ebp - 8], 3
jne case.0x40d27a.34
or byte [ebp - 1], 1
jmp case.0x40d27a.34
test byte [ebp - 8], 0x30
jne case.0x40d27a.34
or byte [ebp - 1], 0x10
jmp case.0x40d27a.34
test byte [ebp - 8], 0xc
jne case.0x40d27a.34
or byte [ebp - 1], 4
jmp case.0x40d27a.34
cmp byte [0x4c3897], 0
jne case.0x40d27a.34
test byte [ebp - 8], 0xc0
jne case.0x40d27a.34
or byte [ebp - 1], 0x40
jmp case.0x40d27a.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.00482b51
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40d27a.34
mov eax, ebx
call fcn.00409010
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40d388
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40d324
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40d382
cmp ecx, 0x20
je 0x40d332
cmp ecx, 9
jne 0x40db64
call fcn.00409010
push 4
mov edi, eax
push str.Down
push edi
call fcn.00482612
add esp, 0xc
test eax, eax
je 0x40d365
push 2
push 0x49c518
push edi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40db64
push 0x7d
push edi
call fcn.00482b51
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d27a.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 0x49df7c
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40d42b
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.00409010
call fcn.0040f0f0
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 0x40d40a
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.0040fdc0
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
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 0x40db59
push 3
push 0x49f21c
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40d450
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x49eed0
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.00408fc0
mov edi, eax
test edi, edi
je 0x40d4ff
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.00409010
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40d4fc
push 4
push str.Down
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40d4d9
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.00482612
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40d4fc
push 0x49c518
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x40d4f4
mov dword [ebp - 0x10], 1
jmp 0x40d4fc
call fcn.0040c910
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40d544
cmp word [esi + 2], 0
jne 0x40d521
mov ecx, dword [0x4bfc60]
lea esi, [ebp - 1]
call fcn.004117b0
mov esi, dword [ebp + 8]
jmp 0x40d546
mov ebx, dword [ebp + 8]
xor esi, esi
mov edx, dword [esi*8 + 0x4be208]
push ebx
push edx
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x40d55b
inc esi
cmp esi, 0x6d
jl 0x40d526
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40d567
mov dword [ebp - 0x38], 0
jmp 0x40d5ec
mov al, byte [esi*8 + 0x4be20c]
mov esi, dword [ebp + 8]
jmp 0x40d546
mov eax, esi
call fcn.00411650
movzx eax, ax
mov dword [ebp - 0x38], eax
test ax, ax
jne 0x40d5ec
mov ax, word [esi]
call fcn.00408f90
cmp ax, 0x56
jne 0x40d5ec
mov ax, word [esi + 2]
call fcn.00408f90
cmp ax, 0x4b
jne 0x40d5ec
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x49f230
call fcn.00408fc0
mov esi, eax
test esi, esi
je 0x40d5d1
mov ax, word [esi + 2]
call fcn.00408f90
cmp ax, 0x43
jne 0x40d5d1
push 0x10
push 0
add esi, 4
push esi
call fcn.004833ab
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.004833ab
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40d5f7
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 0x40db64
test bl, bl
jne 0x40dac6
cmp word [ebp - 0x38], 0
jne 0x40dac6
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40d676
cmp dword [ebp - 0x10], eax
je 0x40db64
cmp dword [ebp + 0x14], 0
je 0x40d65a
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 0x40dc92
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e4c0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
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.00411820
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40d874
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d6b4
cmp dword [ebp - 0x10], edi
jne 0x40d6af
mov byte [ebp - 9], al
jmp 0x40d6b4
call fcn.0040cae0
cmp dword [0x4c28e8], 0
je 0x40d6c8
mov bl, byte [0x4bfc48]
jmp 0x40d7ba
cmp dword [0x4c0e4c], 0
je 0x40d6dc
mov bl, byte [0x4c0d19]
jmp 0x40d7ba
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d6f7
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d70b
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d71f
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d733
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d747
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d75b
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d76c
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d77d
or bl, 0x80
cmp dword [0x4c0e4c], 0
je 0x40d7ba
mov al, bl
not al
and al, byte [0x4c0d19]
je 0x40d7ba
mov cl, byte [0x4c0d1b]
not al
and byte [0x4c0d19], al
and byte [0x4c0d1a], al
and cl, al
mov al, cl
mov byte [0x4c0d1b], cl
mov ecx, 0x4c0d40
call fcn.00411070
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.004108c0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40db64
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.0040e9a0
add esp, 0x18
cmp dword [0x4c28e8], 0
jne 0x40d860
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c38b4]
mov ecx, dword [0x4bd4c4]
cmp eax, dword [ecx + 0xd0]
jbe 0x40d860
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 0x40d859
push 1
push 0xffffffffffffffff
mov dword [0x4bd3c0], 0
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 1
call esi
mov dword [0x4c38b4], eax
dec edi
jne 0x40d7e1
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40d8e5
push 4
push str.ASC
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40d8e5
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d8e8
lea eax, [esi + 6]
call fcn.00409010
call fcn.0040e5b0
cmp dword [0x4c28e8], 2
jne 0x40d8ca
mov eax, dword [0x4bd4c4]
mov esi, dword [eax + 0x60]
call fcn.004104e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov ecx, dword [0x4bd4c4]
mov esi, dword [ecx + 0x5c]
call fcn.004104e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov edi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40db64
push 2
push 0x49f244
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x40db64
push 0x10
push eax
add esi, 4
push esi
call fcn.004833ab
add esp, 0xc
movzx esi, ax
test edi, edi
je 0x40d933
push 0
push esi
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40da87
mov eax, dword [0x4c28e8]
cmp eax, 2
je 0x40da67
test eax, eax
je 0x40d950
mov bl, byte [0x4bfc48]
jmp 0x40da42
cmp dword [0x4c0e4c], 0
je 0x40d964
mov bl, byte [0x4c0d19]
jmp 0x40da42
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d97f
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40d993
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d9a7
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40d9bb
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d9cf
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40d9e3
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d9f4
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40da05
or bl, 0x80
cmp dword [0x4c0e4c], 0
je 0x40da42
mov al, bl
not al
and al, byte [0x4c0d19]
je 0x40da42
mov cl, byte [0x4c0d1b]
not al
and byte [0x4c0d19], al
and byte [0x4c0d1a], al
and cl, al
mov al, cl
mov byte [0x4c0d1b], cl
mov ecx, 0x4c0d40
call fcn.00411070
mov al, byte [ebp - 1]
or al, byte [ebp - 8]
push 1
push 0
movzx eax, al
push 0
push ebx
push eax
mov eax, 0xffc3d44f
call fcn.004108c0
add esp, 0x14
call fcn.0040cb60
jmp 0x40da87
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push esi
mov word [ebp - 0x74], cx
call fcn.00481b55
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e5b0
cmp dword [0x4c28e8], 2
jne 0x40daab
mov ecx, dword [0x4bd4c4]
mov esi, dword [ecx + 0x60]
call fcn.004104e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov edx, dword [0x4bd4c4]
mov esi, dword [edx + 0x5c]
call fcn.004104e0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411140
mov byte [ebp - 0x14], al
test al, al
je 0x40db35
cmp dword [ebp + 0x14], 0
jne 0x40db35
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40dafb
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40daf6
or byte [0x4c18d7], al
or byte [ebp - 8], al
jmp 0x40db35
cmp ecx, 1
jne 0x40db35
mov al, bl
call fcn.0040cae0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c18d7]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c18d7], cl
cmp bl, 0xa5
jne 0x40db2f
cmp dword [0x4bfc5c], 3
jne 0x40db2f
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.0040e090
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40dc92
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40dc21
cmp word [ebp - 0x2a], 0
jne 0x40dba1
mov ecx, dword [0x4bfc60]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.004117b0
mov esi, dword [ebp + 8]
jmp 0x40dc23
movzx esi, ax
test esi, 0xffffff80
jne 0x40dbbe
push 2
push esi
call fcn.00482fce
add esp, 8
test eax, eax
je 0x40dbbe
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40dbfd
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40dbe2
push 2
push esi
call fcn.00482fce
add esp, 8
test eax, eax
je 0x40dbe2
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40dbfd
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004833ab
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40dc23
xor esi, esi
nop
mov edx, dword [esi*8 + 0x4be208]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x40dc5d
inc esi
cmp esi, 0x6d
jl 0x40dc00
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 0x40dc69
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.0040e090
add esp, 0x24
jmp 0x40dc92
mov al, byte [esi*8 + 0x4be20c]
mov esi, dword [ebp + 8]
jmp 0x40dc23
test eax, eax
je 0x40dc81
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40dc92
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040e4c0
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 [0x4c18d6], al
jne 0x40d1d8
mov edi, dword [0x4c28e8]
test edi, edi
je 0x40dd6e
cmp byte [0x4bfc3e], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40dd2b
cmp dword [0x4bfc54], 0
jbe 0x40dd2b
cmp byte [0x4bfc3c], 0
je 0x40dce2
xor eax, eax
jmp 0x40dcee
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4bfc48]
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.004108c0
add esp, 0x14
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00410390
mov edi, dword [0x4c28e8]
add esp, 8
jmp 0x40dd30
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4bfc50], edi
jbe 0x40dd59
mov ecx, dword [0x4bfc58]
push ecx
call fcn.004833c5
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c28e8], edi
call fcn.004104e0
jmp 0x40deec
cmp dword [0x4c0e4c], 0
je 0x40dd7f
mov cl, byte [0x4c0d1b]
jmp 0x40dda3
cmp dword [0x4bd3b8], 0
jl 0x40dda0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c3870]
cmp eax, dword [0x4bd3b8]
jb 0x40dda0
xor cl, cl
jmp 0x40dda3
mov cl, byte [ebp - 2]
cmp byte [0x4bfc3c], 0
je 0x40ddc5
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 0x40ddd2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c0e4c], 0
je 0x40dde9
mov dl, byte [0x4c0d19]
mov byte [ebp - 0x14], dl
jmp 0x40deca
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de04
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40de18
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de2c
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40de40
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de54
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40de68
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de79
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40de8a
or bl, 0x80
cmp dword [0x4c0e4c], 0
je 0x40dec7
mov al, bl
not al
and al, byte [0x4c0d19]
je 0x40dec7
mov cl, byte [0x4c0d1b]
not al
and byte [0x4c0d19], al
and byte [0x4c0d1a], al
and cl, al
mov al, cl
mov byte [0x4c0d1b], cl
mov ecx, 0x4c0d40
call fcn.00411070
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.004108c0
add esp, 0x14
xor edi, edi
cmp dword [0x4c0e4c], edi
je 0x40df0c
mov al, byte [0x4c0d1a]
mov cl, al
xor cl, byte [0x4c0d19]
and cl, al
not cl
and al, cl
mov byte [0x4c0d1a], al
cmp dword [ebp - 0x3c], ebx
jne 0x40df5e
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40df5e
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040e9a0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c2fa4]
jne 0x40df5e
push ebx
push 0xffffffffffffffff
mov dword [0x4bd3c0], edi
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], ebx
cmp byte [ebp - 0xb], 0
je 0x40df75
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4c2fa4]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40dfc1
cmp byte [ebp - 0x25], 0
jne 0x40dfc1
test byte [0x4c44c4], 1
jne 0x40dfae
or dword [0x4c44c4], 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 [0x4c44c0], eax
jmp 0x40dfb3
mov eax, dword [0x4c44c0]
cmp eax, edi
je 0x40dfba
push edi
call eax
mov byte [0x4c189a], 0
cmp dword [ebp + 0x10], ebx
jne 0x40dff3
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c2fa4]
jne 0x40dff3
push ebx
push 0xffffffffffffffff
mov dword [0x4bd3c0], edi
call fcn.00401350
add esp, 8
mov dword [0x4bd3c0], 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