Function at 0x41eb1d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
or dword [0x47cbf8], 0xffffffff
or dword [ecx], 0xffffffff
or dword [edx], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x40], eax
mov dword [eax], edi
mov eax, dword [ebx + 0xe2]
mov dword [0x47cc24], eax
mov eax, dword [ebp + 8]
mov dword [0x47cc28], eax
mov eax, dword [ebx + 0x1de]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [0x47cc00], edi
mov dword [0x47cc04], edi
mov dword [0x47cc08], edi
mov dword [0x47cbfc], edi
mov dword [0x47cc10], edi
test eax, eax
je 0x41ebb0
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebx + 0xb6]
lea edi, [ebx + 0xce]
push edi
push 0x67
mov dword [0x47cbc8], eax
mov eax, dword [ebx + 0x1c6]
push 0x64
mov dword [0x47cbcc], eax
push dword [ebx + 0x26]
mov dword [0x47cc18], 0x420672
mov dword [0x47cc1c], 0x418adc
mov dword [0x47cc20], 0x41714f
call fcn.0043c3a1
test eax, eax
je 0x41ec02
xor eax, eax
jmp 0x41f038
mov eax, dword [edi]
mov dword [0x47cbd0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, edi
sub ecx, dword [0x47cbe8]
movzx ecx, cx
cmp ecx, eax
jae 0x41ec46
push dword [0x47cbf0]
push dword [0x47cbec]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0046b114
test eax, eax
je 0x41ec46
xor eax, eax
inc eax
jmp 0x41ec48
xor eax, eax
mov dword [0x47cbf4], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [0x47cbec], eax
mov eax, dword [ebp + 0x1c]
push 0x10
mov dword [0x47cbe8], edi
mov dword [0x47cbf0], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
xor ecx, ecx
cmp dword [ebp + 0x2c], ecx
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x49de80]
add eax, 0xfffff446
cmp eax, 0xc
ja case.0x41ec95.3003
movzx eax, byte [eax + 0x41f05f]
jmp dword [eax*4 + 0x41f04b]
xor eax, eax
inc eax
mov dword [0x47cbfc], eax
jmp 0x41ecce
xor eax, eax
inc eax
jmp 0x41ecc9
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x41ecce
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x41ecce
cmp dword [ebp + 0x30], ecx
mov eax, dword [0x47cc10]
push 1
pop ecx
cmovne eax, ecx
mov dword [0x47cc10], eax
push 2
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0046afeb
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + edx]
sub edi, edx
push eax
lea eax, [esi + ecx]
sub esi, ecx
push eax
push edi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea edi, [ebx + 0xd6]
push edi
push dword [ebx + 0xde]
push 0x65
push dword [ebx + 0x26]
call fcn.0043c3a1
test eax, eax
jne 0x41efac
inc eax
push eax
push dword [edi]
call fcn.0043d8ef
cmp dword [ebp - 0x30], 0
je 0x41ee20
cmp dword [0x47cbfc], 0
jne 0x41ee20
cmp dword [ebp - 0x24], 0
jne 0x41ee20
xor eax, eax
xor esi, esi
push esi
inc eax
push eax
push 0x4204bb
push 0x420344
call fcn.0041e006
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x28]
push 0x49eeb8
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
test dword [ebx + 0x22], 0x200
mov ecx, dword [ebp + 0x10]
jne 0x41ed91
test ecx, ecx
je 0x41ed99
cmp ecx, 0x1f4
jge 0x41ed99
xor eax, eax
inc eax
mov dword [0x47cbb0], eax
xor edx, edx
lea eax, [ebx + 0xea]
mov dword [0x47cb98], edx
mov dword [0x47cbe0], eax
cmp dword [ebx + 0x32], edx
jne 0x41edb8
mov dword [eax + 4], 1
lea eax, [ebx + 0x16a]
mov dword [0x47cbe4], eax
cmp dword [ebx + 0x36], edx
jne 0x41edce
mov dword [eax], 1
push edx
push edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebx + 0x72]
push dword [ebx + 0x6e]
push dword [edi]
push dword [ebx + 0x26]
push ecx
push esi
call fcn.0041e3a3
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
push 1
pop eax
cmove ecx, eax
mov eax, dword [0x47cbe0]
mov dword [ebp - 0x20], ecx
mov ecx, 0x4000
test dword [eax + 4], ecx
jne 0x41ef65
mov eax, dword [0x47cbe4]
test dword [eax], ecx
je 0x41ef70
jmp 0x41ef65
xor esi, esi
push esi
push esi
push 0x41fe9c
push 0x41f7a6
call fcn.0041e006
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x28]
push 0x49eeb8
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
lea eax, [ebx + 0xea]
xor ecx, ecx
mov dword [0x47cbe0], eax
xor edx, edx
inc ecx
mov dword [0x47cb98], edx
mov dword [eax + 4], ecx
lea eax, [ebx + 0x16a]
mov dword [0x47cbe4], eax
mov dword [eax], ecx
test dword [ebx + 0x22], 0x200
mov eax, dword [ebp + 0x10]
jne 0x41ee85
test eax, eax
je 0x41ee8b
cmp eax, 0x1f4
jge 0x41ee8b
mov dword [0x47cbb0], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [0x47cc14], ecx
cmp dword [ebp - 0x24], edx
jne 0x41eebb
push edx
push edx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebx + 0x72]
push dword [ebx + 0x6e]
push dword [edi]
push dword [ebx + 0x26]
push eax
push esi
call fcn.0041e3a3
xor edx, edx
jmp 0x41eebd
mov eax, edx
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
push 1
pop eax
push edx
push edx
push 0x41f166
cmove ecx, eax
mov dword [0x47cc14], edx
push 0x41f0e9
mov dword [0x47cc10], edx
mov dword [0x47cbfc], edx
mov dword [ebp - 0x20], ecx
mov dword [0x47cbf4], edx
call fcn.0041e006
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
push 0x49eeb8
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
xor ecx, ecx
xor eax, eax
inc ecx
mov dword [0x47cbe0], eax
push ecx
push eax
mov dword [0x47cbe4], eax
mov dword [0x47cbf4], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [0x47cb98], ecx
push dword [ebp - 0x1c]
push dword [ebx + 0x72]
push dword [ebx + 0x6e]
push dword [edi]
push dword [ebx + 0x26]
push dword [ebp + 0x10]
push esi
call fcn.0041e3a3
lea eax, [ebx + 0xea]
lea ecx, [ebx + 0x16a]
mov dword [0x47cbe0], eax
mov dword [0x47cbe4], ecx
mov eax, dword [eax + 4]
or eax, dword [ecx]
bt eax, 0xe
jae 0x41ef70
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call fcn.004201ea
xor esi, esi
mov dword [0x47cbb0], esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
mov ecx, dword [eax + 0x44]
mov dword [ebx + 0x32], ecx
mov eax, dword [eax + 0x48]
mov dword [ebx + 0x36], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebx + 0x32], esi
jne 0x41ef9f
mov dword [ebx + 0xee], esi
cmp dword [ebx + 0x36], esi
jne 0x41efae
mov dword [ebx + 0x16a], esi
jmp 0x41efae
xor esi, esi
push esi
push dword [edi]
mov dword [0x47cc18], esi
call fcn.0043d8ef
push dword [edi]
call fcn.0043d8ec
cmp dword [ebp - 0x20], 0
je 0x41f034
mov ecx, dword [ebp - 0x38]
xor esi, esi
movsx eax, word [0x47cbfa]
inc esi
cmp dword [ebp - 0x30], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 0x3c]
movsx eax, word [0x47cbf8]
mov dword [ecx], eax
jne 0x41eff6
push esi
push dword [ebx + 0x1d6]
call fcn.0042dbb7
cmp dword [0x47cc04], 0
je 0x41f004
push 2
pop ecx
jmp 0x41f028
cmp dword [0x47cc08], 0
je 0x41f01c
mov ecx, dword [0x47cc0c]
neg ecx
sbb ecx, ecx
add ecx, 4
jmp 0x41f028
cmp dword [ebp - 0x34], 0
mov ecx, esi
push 5
pop eax
cmovne ecx, eax
mov edx, dword [ebp - 0x40]
mov eax, dword [0x47cc00]
mov dword [edx], eax
jmp 0x41f036
mov ecx, esi
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 0x2c