Function at 0x4d2440
Capabilities:
Log keystrokes via polling

Disassembly:
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004d0e90
mov edx, dword [esp + 0x10]
add esp, 8
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x4d2463
jmp dword [eax*4 + 0x4d28f0]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d2486
push 0x7f84
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ec0], eax
call esi
test ax, ax
jl 0x4d24ab
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ec8]
mov edx, dword [0x5b6ec0]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fdiv dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
mov ecx, dword [0x5b6ecc]
mov edx, dword [esp + 0xc]
sub ecx, eax
push edx
mov dword [0x5b6ec4], ecx
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d2515
push 0x7f85
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ec4], edx
call esi
test ax, ax
jl 0x4d253b
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ecc]
mov edx, dword [0x5b6ec4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x4d26c7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d257e
push 0x7f84
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ec8], edx
call esi
test ax, ax
jl 0x4d25a4
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ec8]
mov edx, dword [0x5b6ec0]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x4d28c7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d25e7
push 0x7f85
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ecc], eax
call esi
test ax, ax
jl 0x4d260c
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ecc]
mov edx, dword [0x5b6ec4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
mov ecx, dword [0x5b6ec0]
mov edx, dword [esp + 0xc]
add eax, ecx
push edx
mov dword [0x5b6ec8], eax
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d2675
push 0x7f82
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ec4], ecx
mov dword [0x5b6ec0], edx
call esi
test ax, ax
jl 0x4d26a5
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ecc]
mov edx, dword [0x5b6ec4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
mov ecx, dword [0x5b6ec8]
mov edx, dword [esp + 0xc]
sub ecx, eax
push edx
mov dword [0x5b6ec0], ecx
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d270f
push 0x7f83
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jl 0x4d2749
push 0x12
call esi
test ax, ax
jl 0x4d2749
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [0x5b6ec4], edx
mov edx, dword [esp + 0xc]
push edx
mov dword [0x5b6ec8], eax
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [0x5b6ecc]
mov esi, dword [esp + 0x14]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
mov edx, dword [0x5b6ec0]
mov ecx, dword [0x5ba150]
add eax, edx
cmp eax, ecx
jg case.default.0x4d2463
mov edx, dword [esp + 0xc]
mov dword [0x5b6ec4], esi
push edx
mov dword [0x5b6ec8], eax
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d27c4
push 0x7f83
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jl 0x4d27ff
push 0x12
call esi
test ax, ax
jl 0x4d27ff
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [0x5b6ecc], edx
mov edx, dword [esp + 0xc]
push edx
mov dword [0x5b6ec0], ecx
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [0x5b6ec8]
mov esi, dword [esp + 0x10]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fdiv dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
mov edx, dword [0x5b6ec4]
mov ecx, dword [0x5b9250]
add eax, edx
cmp eax, ecx
jg case.default.0x4d2463
mov edx, dword [esp + 0xc]
mov dword [0x5b6ec0], esi
push edx
mov dword [0x5b6ecc], eax
call fcn.004d2320
add esp, 4
pop esi
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d287a
push 0x7f82
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x5b6ec8], eax
mov dword [0x5b6ecc], ecx
call esi
test ax, ax
jl 0x4d28a5
push 0x12
call esi
test ax, ax
jge case.default.0x4d2463
mov eax, dword [0x5b6ec8]
mov edx, dword [0x5b6ec0]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fdiv dword [esp + 0xc]
fadd qword [0x5526c8]
call fcn.004d6118
add eax, dword [0x5b6ec4]
mov dword [0x5b6ecc], eax
mov edx, dword [esp + 0xc]
push edx
call fcn.004d2320
add esp, 4
pop esi
ret