Function at 0x4c73d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ab08a
push eax
mov dword fs:[0], esp
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x37f38]
test eax, eax
je 0x4c7415
mov ecx, dword [0x68111c]
test ecx, ecx
je 0x4c740d
mov dword [esi + 0x37f38], 0
jmp 0x4c766e
test eax, eax
jne 0x4c766e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7580
mov eax, dword [esi + 0x37f64]
test eax, eax
jne 0x4c74b6
mov al, byte [0x681110]
test al, al
jne 0x4c74ad
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4c74a8
push 0x9c
call fcn.0057110b
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4c746c
push 0
mov ecx, eax
call fcn.0043a8a0
jmp 0x4c746e
xor eax, eax
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x37f64], eax
mov dword [eax + 0x5c], ecx
mov ecx, dword [esi + 0x37f64]
push 0
push 0x132
mov dword [esp + 0x1c], 0xffffffff
call fcn.00571319
mov ecx, dword [esi + 0x37f64]
push 5
call fcn.005751f1
mov dword [esi + 0x34], 0xfffffc18
mov al, byte [0x681110]
inc al
and al, 0xf
mov byte [0x681110], al
mov ebp, dword [esp + 0x1c]
mov edx, dword [esi + 0x84]
mov edi, dword [ebp]
lea eax, [edi + edx*2]
cmp edi, eax
jae 0x4c756b
mov ecx, dword [esi + 0x1c]
mov eax, ecx
shr eax, 0x10
cmp ax, 0x8000
ja 0x4c7503
cmp ax, 0x4000
ja 0x4c74f0
and eax, 0xffff
mov eax, dword [eax*4 + 0x6a5480]
jmp 0x4c752a
and eax, 0xffff
mov edx, 0x6c5480
shl eax, 2
sub edx, eax
mov eax, dword [edx]
jmp 0x4c752a
cmp ax, 0xc000
ja 0x4c7517
and eax, 0xffff
mov eax, dword [eax*4 + 0x685480]
jmp 0x4c7528
and eax, 0xffff
mov edx, str.t8Y__h_a
shl eax, 2
sub edx, eax
mov eax, dword [edx]
neg eax
mov edx, dword [esi + 0x78]
add edx, ecx
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x4c7551
mov ecx, eax
mov eax, 0x51eb851f
imul ecx, dword [edx]
imul ecx
mov eax, edx
sar eax, 5
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
mov word [edi], ax
mov edx, dword [esi + 0x84]
mov eax, dword [ebp]
add edi, 2
lea ecx, [eax + edx*2]
cmp edi, ecx
jb 0x4c74ce
mov edx, dword [esi + 0xa8]
push 0x20
push ebp
push edx
call dword [sym.imp.WINMM.dll_waveOutWrite]
jmp 0x4c766e
mov edx, dword [esi + 0x37f34]
mov edi, dword [esp + 0x1c]
cmp edx, edi
je 0x4c765c
mov eax, dword [esi + 0x37f48]
cmp eax, 0xffffffff
je 0x4c765c
mov ecx, dword [esi + eax*4 + 0x37e90]
test ecx, ecx
jne 0x4c75c2
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
cmp edx, 2
jae 0x4c75e2
mov edx, dword [esi + 0x84]
mov eax, dword [ecx]
push edx
mov edx, dword [edi]
push edx
call dword [eax + 0x2c]
test eax, eax
jne 0x4c7602
mov dword [esi + 0x37f34], edi
jmp 0x4c7602
mov ecx, dword [esi + 0x84]
xor eax, eax
test ecx, ecx
jle 0x4c7602
mov ecx, dword [edi]
inc eax
mov word [ecx + eax*2 - 2], 0
mov ecx, dword [esi + 0x84]
cmp eax, ecx
jl 0x4c75ee
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c762b
mov ecx, dword [esi + 0x37f34]
xor eax, eax
cmp ecx, edi
setne al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov edx, dword [esi + 0xa8]
push 0x20
push edi
push edx
call dword [sym.imp.WINMM.dll_waveOutWrite]
mov ecx, dword [esi + 0x37f34]
xor eax, eax
cmp ecx, edi
setne al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [esi + 0x37f48]
push 0
push 0
push eax
mov ecx, esi
call fcn.004c5960
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 8