Function at 0x41bfb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x10
mov esi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x41c06c
cmp dword [esi + 0x4c0], 0
jne 0x41c007
mov ecx, dword [esi + 0x448]
mov eax, dword [ecx + 4]
mov dword [esi + 0x4c4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4c8], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x4cc], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4d0], eax
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x448]
call fcn.0048a1d0
mov ecx, dword [esi + 0x448]
dec eax
mov edx, dword [ecx + 4]
cmp edx, eax
jge 0x41c20f
cmp dword [ecx + 0xc], 1
push ebx
jne 0x41c0c1
call fcn.0048a1d0
mov ebx, dword [esi + 0x448]
mov edi, eax
mov edx, dword [ebx + 4]
inc edx
mov dword [ebp - 8], edx
cmp edx, edi
jge 0x41c0b9
mov ecx, dword [ebx + 0x10]
lea ecx, [ecx + edx*4]
mov eax, dword [ecx]
cmp byte [eax + 0x20], 0
jne 0x41c0b5
inc edx
add ecx, 4
cmp edx, edi
jl 0x41c054
mov edx, dword [ebp - 8]
mov dword [ebx + 4], edx
jmp 0x41c0c7
cmp dword [esi + 0x4bc], 0
mov edi, dword [esi + 0x4c0]
je 0x41c08a
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41c08a
push 0
push eax
call fcn.00417a70
mov dword [esi + 0x4c0], 0
mov dword [esi + 0x4bc], 0
test edi, edi
je 0x41c00e
push 0
mov ecx, esi
call fcn.00431450
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edx, edx
jns 0x41c0bc
mov edx, dword [ebp - 8]
mov dword [ebx + 4], edx
jmp 0x41c0c7
lea eax, [edx + 1]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x448]
push dword [ecx + 4]
call fcn.0048ab40
mov ebx, eax
mov eax, dword [esi + 0x494]
test eax, eax
jle 0x41c0ea
mov ecx, dword [esi + 0x448]
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x448]
test ebx, ebx
jne 0x41c12a
cmp dword [edx + 0xc], 1
jne 0x41c12a
mov edi, dword [esi + 0x494]
test edi, edi
jne 0x41c10f
mov edi, dword [edx + 8]
test edi, edi
mov dword [esi + 0x494], edi
jle 0x41c134
mov ecx, dword [edx + 4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 0x25]
cmp edi, eax
jle 0x41c134
mov dword [esi + 0x494], eax
jmp 0x41c134
mov dword [esi + 0x494], 0
cmp dword [edx + 8], ebx
jle 0x41c142
mov dword [edx + 8], ebx
mov edx, dword [esi + 0x448]
push edx
push dword [edx + 8]
lea ecx, [esi + 0x24c]
push dword [edx + 4]
call fcn.00487d30
movzx ebx, word [esi + 0x4e0]
lea eax, [esi + 0x224]
push eax
lea ecx, [esi + 0x24c]
call fcn.004877a0
dec eax
lea ecx, [esi + 0x24c]
push eax
call fcn.00487530
mov word [esi + 0x4e0], ax
mov ecx, esi
mov eax, dword [esi + 0x448]
push dword [eax + 8]
push dword [eax + 4]
call fcn.0041ca80
test eax, eax
jne 0x41c1a4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x98]
cmp dword [ebp - 4], 0
je 0x41c1d9
mov ecx, dword [esi + 0x448]
push 0
push dword [esi + 0xd8]
mov eax, dword [ecx + 4]
mov dword [esi + 0x4cc], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4d0], eax
mov dword [esi + 0x4c0], 1
call fcn.004337f0
movzx eax, word [esi + 0x4e0]
cmp ax, bx
pop ebx
je 0x41c1f5
push 0
push eax
push 0xb8
mov ecx, esi
call fcn.00431a30
push 0
lea ecx, [esi + 0x24c]
call fcn.004877a0
push eax
push 0xb7
mov ecx, esi
call fcn.00431a30
pop edi
pop esi
mov esp, ebp
pop ebp
ret