Function at 0x4c2160
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
add eax, 0xffffffdf
cmp eax, 7
push esi
mov esi, ecx
ja case.0x4c2176.37
jmp dword [eax*4 + 0x4c24ec]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl case.0x4c2176.36
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
push 1
push ecx
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0x68]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x4c21de
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
mov byte [esi + 0x78], 0
add ecx, 1
cmp eax, ecx
jl 0x4c21f9
mov byte [esi + 0x78], 1
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
push 1
lea edx, [esp + 8]
push edx
push 1
push eax
mov dword [esp + 0x18], 0xc
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004c2090
mov al, 1
pop esi
add esp, 0x1c
ret 4
xor eax, eax
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
push 1
push eax
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov ecx, dword [esp + 0xc]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x4c2274
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
mov byte [esi + 0x78], 0
add ecx, 1
cmp eax, ecx
jl 0x4c228f
mov byte [esi + 0x78], 1
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 8]
push ecx
push 1
push edx
mov dword [esp + 0x18], 0xc
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.004c2090
mov al, 1
pop esi
add esp, 0x1c
ret 4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl case.0x4c2176.35
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
xor eax, eax
push ecx
push 1
push edx
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [esp + 0x18]
add eax, dword [esi + 0x68]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x4c2320
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
mov byte [esi + 0x78], 0
add ecx, 1
cmp eax, ecx
jl 0x4c233b
mov byte [esi + 0x78], 1
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
push 1
lea eax, [esp + 8]
push eax
push 1
push ecx
mov dword [esp + 0x18], 0xc
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.004c2090
mov al, 1
pop esi
add esp, 0x1c
ret 4
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
push 1
push ecx
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
cmp eax, edx
mov ecx, eax
mov dword [esp + 0x18], ecx
jge 0x4c23ba
mov ecx, edx
mov dword [esp + 0x18], ecx
sub eax, dword [esp + 0x14]
mov byte [esi + 0x78], 0
add eax, 1
cmp ecx, eax
jl 0x4c23d1
mov byte [esi + 0x78], 1
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push 1
lea edx, [esp + 8]
push edx
push 1
push eax
mov dword [esp + 0x18], 0xc
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004c2090
mov al, 1
pop esi
add esp, 0x1c
ret 4
xor eax, eax
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
push 1
push eax
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edx, dword [esp + 0xc]
cmp eax, edx
mov dword [esp + 0x18], eax
jge 0x4c2454
mov eax, edx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
sub edx, ecx
lea ecx, [edx + 1]
cmp eax, ecx
mov byte [esi + 0x78], 0
jl 0x4c246d
mov byte [esi + 0x78], 1
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
push 1
lea eax, [esp + 8]
push eax
push 1
push ecx
mov dword [esp + 0x18], 0xc
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.004c2090
mov al, 1
pop esi
add esp, 0x1c
ret 4
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
push 1
push ecx
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, ecx
jmp 0x4c2442
xor al, al
pop esi
add esp, 0x1c
ret 4