Function at 0x40bbe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x190]
push ebp
call fcn.0040cda0
test eax, eax
jne 0x40bc0a
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0
call edi
test ah, 0x80
je case.0x40bc43.69
mov edx, dword [esp + 0x4c]
lea eax, [edx - 0x41]
cmp eax, 0x17
ja case.0x40bc43.69
xor ecx, ecx
mov cl, byte [eax + 0x40c0c4]
jmp dword [ecx*4 + 0x40c0b0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe4]
jmp case.0x40bc43.69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
jmp case.0x40bc43.69
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xdc]
jmp case.0x40bc43.69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ecx - 9]
cmp eax, 0x25
mov dword [esp + 0x14], eax
ja case.0x40bc9a.19
xor edx, edx
mov dl, byte [eax + 0x40c108]
jmp dword [edx*4 + 0x40c0dc]
mov eax, dword [esi + 0x194]
mov ecx, dword [ebp]
push eax
push ecx
mov ecx, esi
call fcn.00410c20
jmp 0x40beda
push 0x10
call edi
test ah, 0x80
je 0x40bd0e
mov eax, dword [esi + 0xc8]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x40bcd9
dec ecx
mov dword [esp + 0x1c], ecx
jmp 0x40beda
jne case.0x40bc9a.19
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xc0]
cmp edx, eax
jle case.0x40bc9a.19
mov eax, dword [esi + 0xc4]
dec edx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
jmp 0x40beda
mov eax, dword [esi + 0xc4]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x40bd27
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40beda
jne case.0x40bc9a.19
mov eax, dword [esi + 0xbc]
mov ecx, dword [esp + 0x18]
dec eax
cmp ecx, eax
jge case.0x40bc9a.19
mov eax, ecx
mov ecx, dword [esi + 0xc8]
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
jmp 0x40beda
mov edx, dword [esi + 0xbc]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jge 0x40beda
inc eax
mov dword [esp + 0x18], eax
jmp 0x40beda
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc0]
cmp eax, ecx
jle 0x40beda
dec eax
mov dword [esp + 0x18], eax
jmp 0x40beda
mov ecx, dword [esi + 0xc4]
mov eax, dword [esp + 0x1c]
dec ecx
cmp eax, ecx
jge 0x40beda
inc eax
mov dword [esp + 0x1c], eax
jmp 0x40beda
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc8]
cmp edx, eax
jle 0x40beda
mov eax, edx
dec eax
mov dword [esp + 0x1c], eax
jmp 0x40beda
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040e5d0
mov edi, dword [eax]
mov edx, dword [esi + 0x20]
push 0
push 3
mov ecx, dword [eax + 4]
push 0x115
push edx
mov dword [esp + 0x3c], ecx
call ebx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0040e5d0
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
je 0x40bec6
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0xbc]
dec eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
jle 0x40beda
mov dword [esp + 0x18], eax
jmp 0x40beda
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.0040e5d0
mov edi, dword [eax]
mov edx, dword [esi + 0x20]
push 0
push 2
mov ecx, dword [eax + 4]
push 0x115
push edx
mov dword [esp + 0x3c], ecx
call ebx
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.0040e5d0
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], edx
je 0x40be90
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0xc0]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x40beda
mov dword [esp + 0x18], eax
jmp 0x40beda
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x18], eax
jmp 0x40beda
mov ecx, dword [esi + 0x20]
push 0
push 6
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x18], edx
jmp 0x40beda
mov eax, dword [esi + 0x20]
push 0
push 7
push 0x115
push eax
call ebx
mov eax, dword [esi + 0xbc]
dec eax
mov dword [esp + 0x18], eax
jmp 0x40beda
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
cmp ecx, eax
jne 0x40bef4
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
cmp edx, eax
je 0x40c0a6
mov eax, dword [esi + 0x16c]
xor edi, edi
cmp eax, edi
jne 0x40bfa9
mov edx, dword [esi + 0x1d0]
cmp edx, edi
je 0x40bf2e
mov eax, dword [esi + 0x1d4]
cmp eax, edi
jbe 0x40bf2e
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
test eax, eax
je 0x40bf28
mov eax, dword [eax]
test eax, eax
jne 0x40bf22
add ecx, 4
dec edi
jne 0x40bf1c
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 0x1e0]
xor edi, edi
add esp, 4
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1dc], edi
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [esi + 0x1e0], edi
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
push 0x10
add eax, 4
mov dword [esi + 0x16c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40bf83
cmp dword [esp + 0x4c], 9
jne 0x40bf97
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x188], ecx
mov dword [esi + 0x18c], edx
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040d890
mov dword [esi + 0x16c], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.0040d0b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00410c50
test eax, eax
jne 0x40c0a6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00410af0
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
ja case.0x40bffe.5
xor edx, edx
mov dl, byte [eax + 0x40c148]
jmp dword [edx*4 + 0x40c130]
push edi
push 1
mov eax, dword [esi + 0x20]
push 0x114
push eax
jmp 0x40c097
mov ecx, dword [esi + 0x20]
push edi
push edi
push 0x114
push ecx
jmp 0x40c097
push edi
push 1
push 0x115
jmp 0x40c093
mov eax, dword [esi + 0x20]
push edi
push edi
push 0x115
push eax
jmp 0x40c097
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x10]
je 0x40c06f
cmp eax, edi
push edi
push edi
je 0x40c008
mov ecx, dword [esi + 0x20]
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0x104]
push 1
push edx
push edi
mov ecx, esi
call fcn.0040ea30
jmp case.0x40bffe.5
cmp eax, edi
push edi
push 1
je 0x40c08e
mov ecx, dword [esi + 0x20]
push 0x115
push ecx
call ebx
push 1
push edi
push edi
mov ecx, esi
call fcn.0040ea30
jmp case.0x40bffe.5
push 0x114
mov edx, dword [esi + 0x20]
push edx
call ebx
mov eax, dword [esi + 0x20]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc