Function at 0x4f4910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp + 0x10]
test edx, edx
mov ebx, eax
mov ecx, dword [ebx + 0x308]
mov eax, dword [ecx]
je case.0x4f4951.10
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff7
cmp edx, 0x1f
ja case.0x4f4951.10
movzx edx, byte [edx + 0x4f4c50]
jmp dword [edx*4 + 0x4f4c40]
cmp dword [ebx + 0x2f8], 1
jne case.0x4f4951.10
test eax, eax
jle 0x4f49be
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
imul eax, dword [ebx + 0x2fc]
add eax, edx
lea edx, [ebx + 0x310]
mov ecx, 0x56
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2fc]
mov dword [ebx + 0xc], ecx
lea edi, [ebx + 0x10]
mov ecx, 0x56
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x168]
mov ecx, 0x56
mov esi, eax
mov dword [ebx + 0x2f8], 0
mov dword [ebx + 8], 0x838
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x2c8]
push ebx
push edx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x2c0]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x2f8], 1
je case.0x4f4951.10
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
push 0xffffffffffffffff
jge 0x4f4a15
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004f21e0
jmp 0x4f4a20
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004f2170
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x308]
mov dword [ebx + 0x2fc], edx
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 8]
imul eax, edx
add eax, edi
lea edi, [ebx + 0x310]
mov ecx, 0x56
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x10]
mov ecx, 0x56
mov esi, eax
mov dword [ebx + 8], 0x836
mov dword [ebx + 0xc], edx
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x4f4c05
test eax, eax
jle case.0x4f4951.10
mov esi, dword [ecx + 4]
imul esi, dword [ebx + 0x2fc]
add esi, dword [ecx + 8]
lea edi, [ebx + 0x310]
mov ecx, 0x56
mov dword [esp + 0xc], esi
push 0x11
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
mov eax, dword [ebp + 0xc]
setl cl
add eax, 0xffffffdf
cmp eax, 7
ja case.default.0x4f4aac
jmp dword [eax*4 + 0x4f4c70]
test ecx, ecx
mov eax, dword [esp + 0xc]
fld qword [eax + 8]
je 0x4f4acc
fsub qword [ebx + 0x498]
fstp qword [eax + 8]
jmp case.default.0x4f4aac
fsub qword [ebx + 0x490]
fstp qword [eax + 8]
jmp case.default.0x4f4aac
test ecx, ecx
mov eax, dword [esp + 0xc]
je 0x4f4af3
fld qword [ebx + 0x498]
fadd qword [eax + 8]
fstp qword [eax + 8]
jmp case.default.0x4f4aac
fld qword [ebx + 0x490]
fadd qword [eax + 8]
fstp qword [eax + 8]
jmp case.default.0x4f4aac
test ecx, ecx
mov eax, dword [esp + 0xc]
fld qword [eax]
je 0x4f4b15
fsub qword [ebx + 0x488]
fstp qword [eax]
jmp case.default.0x4f4aac
fsub qword [ebx + 0x480]
fstp qword [eax]
jmp case.default.0x4f4aac
test ecx, ecx
mov eax, dword [esp + 0xc]
je 0x4f4b33
fld qword [ebx + 0x488]
fadd qword [eax]
fstp qword [eax]
jmp case.default.0x4f4aac
fld qword [ebx + 0x480]
fadd qword [eax]
fstp qword [eax]
jmp case.default.0x4f4aac
fld qword [0x5d8c90]
mov ecx, dword [esp + 0xc]
fstp qword [ecx + 8]
jmp case.default.0x4f4aac
fld qword [0x5d6138]
mov edx, dword [esp + 0xc]
fstp qword [edx + 8]
jmp case.default.0x4f4aac
fld qword [0x5d8c90]
mov eax, dword [esp + 0xc]
fstp qword [eax]
jmp case.default.0x4f4aac
fld qword [0x5d6138]
mov ecx, dword [esp + 0xc]
fstp qword [ecx]
mov edx, dword [esp + 0xc]
fld qword [edx + 8]
fcomp qword [0x5d8c90]
fnstsw ax
test ah, 5
jp 0x4f4b93
fld qword [0x5d8c90]
jmp 0x4f4bae
fld qword [edx + 8]
fcomp qword [0x5d6138]
fnstsw ax
test ah, 0x41
jne 0x4f4bab
fld qword [0x5d6138]
jmp 0x4f4bae
fld qword [edx + 8]
fstp qword [edx + 8]
fld qword [edx]
fcomp qword [0x5d8c90]
fnstsw ax
test ah, 5
jp 0x4f4bc8
fld qword [0x5d8c90]
jmp 0x4f4be1
fld qword [edx]
fcomp qword [0x5d6138]
fnstsw ax
test ah, 0x41
jne 0x4f4bdf
fld qword [0x5d6138]
jmp 0x4f4be1
fld qword [edx]
fstp qword [edx]
mov eax, dword [ebx + 0x2fc]
lea edi, [ebx + 0x10]
mov ecx, 0x56
lea esi, [ebx + 0x310]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 8], 0x838
mov dword [ebx + 0xc], eax
mov esi, edx
mov edx, dword [ebx + 0x2c8]
lea edi, [ebx + 0x168]
mov ecx, 0x56
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
push ecx
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x2c0]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14