Function at 0x4f445c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
mov edi, ecx
push 0x11
call ebx
mov si, ax
push 0x10
and esi, 0x8000
call ebx
and eax, 0x8000
push 0x12
mov dword [ebp - 0xc], eax
call ebx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov bx, ax
mov eax, dword [ebp + 8]
and ebx, 0x8000
cmp dword [ebp + 8], 0x24
ja 0x4f4652
cmp eax, 0x24
je 0x4f463d
sub eax, 8
je 0x4f461f
dec eax
je 0x4f45e9
sub eax, 4
je 0x4f4711
sub eax, 0xe
je 0x4f4530
sub eax, 6
je 0x4f4517
dec eax
je 0x4f44fe
dec eax
jne 0x4f48dc
test esi, esi
je 0x4f48dc
mov eax, dword [edi]
push 1
pop ebx
push ebx
push 0xc
mov ecx, edi
call dword [eax + 0x320]
mov dword [ebp - 4], ebx
jmp 0x4f48cd
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f450a
mov eax, ebx
mov edx, dword [edi]
push eax
mov dword [ebp - 4], ebx
push 5
jmp 0x4f48af
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f4523
mov eax, ebx
mov edx, dword [edi]
push eax
mov dword [ebp - 4], ebx
push 6
jmp 0x4f48af
mov eax, dword [edi + 0x4b0]
push 1
add eax, 0x224
pop ebx
cmp dword [eax], 0
je 0x4f4555
xor esi, esi
push ebx
mov dword [eax], esi
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x474]
jmp 0x4f4557
xor esi, esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004f30c1
test eax, eax
je 0x4f45c6
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0xc]
call dword [eax + 0x380]
mov esi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
test eax, eax
mov eax, dword [esi]
je 0x4f45a8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0xc]
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
jmp 0x4f45b0
mov ecx, esi
call dword [eax + 0x98]
mov eax, dword [edi]
push 0
push 2
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [eax + 0x2c8]
xor esi, esi
mov eax, dword [edi + 0x4b0]
cmp dword [eax + 0x1cc], esi
jne 0x4f44f6
push esi
push esi
push esi
push esi
push esi
mov ecx, edi
call fcn.004fbecc
jmp 0x4f44f6
mov eax, dword [edi]
push 1
pop ebx
mov ecx, edi
push ebx
push ebx
push ebx
call dword [eax + 0x300]
test eax, eax
je 0x4f44f6
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
neg eax
sbb eax, eax
push ebx
and al, 0xfe
push ebx
add eax, 4
mov ecx, edi
push eax
call dword [edx + 0x30c]
jmp 0x4f44f6
test esi, esi
je 0x4f48dc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x290]
mov dword [ebp - 4], 1
jmp 0x4f48cd
test esi, esi
je 0x4f48dc
mov eax, dword [edi]
push 1
pop ebx
push ebx
push 0xb
jmp 0x4f44ee
sub eax, 0x25
je 0x4f4893
dec eax
je 0x4f4877
dec eax
je 0x4f4859
dec eax
je 0x4f483b
sub eax, 5
je 0x4f47eb
dec eax
je 0x4f4764
sub eax, 0x43
jne 0x4f48dc
mov ecx, edi
call fcn.004f3239
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4f4711
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
test eax, eax
jne 0x4f46ef
mov eax, dword [edi]
push 1
pop ebx
mov ecx, edi
push ebx
push 2
push 0
call dword [eax + 0x300]
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x13c]
test eax, eax
jne 0x4f44f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
je 0x4f44f6
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
jmp 0x4f44f6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x4f4711
mov eax, dword [edi]
push 1
pop ebx
mov ecx, edi
push ebx
push 2
push ebx
call dword [eax + 0x300]
jmp 0x4f44f6
test ebx, ebx
jne 0x4f48dc
test esi, esi
jne 0x4f48dc
cmp dword [ebp - 0xc], esi
jne 0x4f48dc
mov eax, dword [edi + 0x4b0]
push 1
pop ebx
mov ecx, edi
mov si, word [eax + 0x94]
mov eax, dword [edi]
push ebx
push ebx
push ebx
call dword [eax + 0x300]
test eax, eax
je 0x4f44f6
test si, si
je 0x4f44f6
mov eax, dword [edi]
push ebx
movzx ecx, si
push ecx
jmp 0x4f44ee
cmp dword [ebp - 0xc], 0
je 0x4f478b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x444]
test eax, eax
je 0x4f4631
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x438]
jmp 0x4f4631
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004f30c1
test eax, eax
je 0x4f4631
mov ecx, edi
call fcn.004f3211
test eax, eax
jne 0x4f4631
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44c]
test eax, eax
je 0x4f4631
mov ecx, edi
call fcn.004f3239
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x48]
test eax, eax
je 0x4f4631
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x43c]
jmp 0x4f4631
test esi, esi
je 0x4f4810
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x440]
test eax, eax
je 0x4f4631
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x430]
jmp 0x4f4631
cmp dword [ebp - 0xc], 0
je 0x4f48dc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x448]
test eax, eax
je 0x4f4631
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x434]
jmp 0x4f4631
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f4847
mov eax, ebx
mov edx, dword [edi]
mov dword [ebp - 4], ebx
neg esi
sbb esi, esi
push eax
and esi, 5
add esi, 3
jmp 0x4f48ae
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f4865
mov eax, ebx
mov edx, dword [edi]
mov dword [ebp - 4], ebx
neg esi
sbb esi, esi
push eax
and esi, 6
add esi, 4
jmp 0x4f48ae
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f4883
mov eax, ebx
mov edx, dword [edi]
mov dword [ebp - 4], ebx
neg esi
sbb esi, esi
push eax
and esi, 6
inc esi
jmp 0x4f48ae
mov eax, dword [ebp + 0xc]
push 1
pop ebx
cmp eax, ebx
jae 0x4f489f
mov eax, ebx
mov edx, dword [edi]
mov dword [ebp - 4], ebx
neg esi
sbb esi, esi
push eax
and esi, 7
inc esi
inc esi
push esi
mov ecx, edi
call dword [edx + 0x320]
test eax, eax
je 0x4f48c9
cmp dword [edi + 0x208], 0
jne 0x4f48c9
mov dword [ebp - 8], ebx
jmp 0x4f48cd
and dword [ebp - 8], 0
mov eax, dword [edi + 0xb4]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ecx, ecx
cmp dword [edi + 0x4dc], ecx
je 0x4f4919
mov edx, dword [ebp - 8]
cmp edx, ecx
je 0x4f4919
cmp dword [edi + 0x4d8], ecx
lea eax, [edi + 0x4d8]
jne 0x4f4919
mov dword [eax], edx
mov eax, dword [ebp + 8]
push ecx
mov dword [edi + 0x4ec], eax
mov eax, dword [ebp + 0x10]
push ecx
push ecx
mov ecx, edi
mov dword [edi + 0x4f0], eax
call fcn.005081cc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc