Function at 0x4c2230
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ax, word [ebp + 0xc]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c0b30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4c263a
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
add edx, 0x5a878c
push edx
call fcn.00504c07
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov ecx, dword [eax + 0x5a898c]
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 0x18]
cmp edx, 0x27
jne 0x4c239c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x4c2347
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx*2 + 0x5a878c]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89bc]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
je 0x4c22d5
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4c22ff
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c20d0
add esp, 8
jmp 0x4c2337
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
mov dword [edx + 0x5a89a0], 0xffffffff
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov dword [eax + 0x5a899c], 0xffffffff
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 8]
mov dword [ecx + 0x5a898c], edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4c239c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x4c239c
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
cmp dword [edx + 0x5a899c], 0
jl 0x4c239c
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov dword [eax + 0x5a89a0], 0xffffffff
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov dword [ecx + 0x5a899c], 0xffffffff
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
movzx eax, word [ebp - 0x18]
cmp eax, 0x25
jne 0x4c24c7
cmp dword [ebp - 8], 0
je 0x4c2474
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jge 0x4c240b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x14]
movzx edx, byte [eax + ecx*2 + 0x5a878c]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov ecx, dword [eax + 0x5a89bc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
je 0x4c2400
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4c23ba
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4c242c
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004c20d0
add esp, 8
jmp 0x4c2464
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov dword [ecx + 0x5a89a0], 0xffffffff
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
mov dword [edx + 0x5a899c], 0xffffffff
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x5a898c], ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4c24c7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x4c24c7
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
cmp dword [ecx + 0x5a899c], 0
jl 0x4c24c7
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
mov dword [edx + 0x5a89a0], 0xffffffff
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
mov dword [eax + 0x5a899c], 0xffffffff
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
movzx edx, word [ebp - 0x18]
cmp edx, 0x2e
jne 0x4c25c9
mov eax, dword [ebp - 4]
imul eax, eax, 0x238
cmp dword [eax + 0x5a899c], 0
jl 0x4c2505
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c1670
add esp, 4
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4c259f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x4c259f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx*2 + 0x5a878c]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89bc]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
je 0x4c2549
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
mov eax, dword [ebp - 8]
sub eax, dword [edx + 0x5a898c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x238
add edx, 0x5a878c
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004c17c0
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebp + 8]
push edx
call fcn.004c1a40
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
or eax, 0x660000
push eax
push 0x111
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4c263a
cmp dword [ebp + 0xc], 0x56
jne 0x4c25ef
push 0
push 0
push 0x302
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp + 0xc], 0x43
jne 0x4c2608
push 0
push 0
push 0x301
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp + 0xc], 0x58
jne 0x4c2621
push 0
push 0
push 0x300
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp + 0xc], 0x5a
jne 0x4c263a
push 0
push 0
push 0x304
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esp, ebp
pop ebp
ret