Function at 0x4a3390
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
call fcn.004a26f0
mov ebx, eax
test ebx, ebx
je 0x4a33ad
cmp dword [ebx + 0x5c], 0
jne 0x4a3756
mov ecx, edi
call fcn.004a29f0
test eax, eax
jne 0x4a3756
cmp dword [edi + 0x114], eax
jg 0x4a374a
lock inc dword [edi + 4]
mov ecx, edi
call fcn.004a28e0
push edi
lea ecx, [ebp + 8]
push ecx
push 0x285a
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0054bb94
test eax, eax
je 0x4a374a
push dword [edi + 0xb8]
mov ecx, edi
call fcn.004a2710
mov esi, eax
test esi, esi
je 0x4a3435
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x74]
test eax, eax
je 0x4a3435
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xe0]
cmp eax, 1
je 0x4a375b
cmp eax, 2
je 0x4a375b
cmp dword [edi + 0x20], 0
je 0x4a374a
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
cmp eax, 0x17
ja case.0x4a3455.10
movzx eax, byte [eax + 0x4a3778]
jmp dword [eax*4 + 0x4a3764]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jns 0x4a34b1
test ebx, ebx
je 0x4a34b1
mov ecx, edi
call fcn.004a2890
push eax
push 0x623784
mov dword [ebp + 0xc], eax
call fcn.0054abdb
add esp, 8
test eax, eax
je 0x4a34b1
push 0x10
call esi
xor ecx, ecx
test ax, ax
setns cl
lea ecx, [ecx*2 - 1]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0047e8e0
test eax, eax
jne 0x4a374a
mov esi, dword [edi]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov ecx, edi
call dword [esi + 0x1f4]
push dword [edi + 0xb8]
mov ecx, edi
call fcn.004a2710
mov esi, eax
test esi, esi
je 0x4a374a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xdc]
test eax, eax
je 0x4a374a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x70]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 5
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 4
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 0xa
call dword [eax + 0x1f4]
test eax, eax
jne 0x4a374a
mov esi, dword [sym.imp.USER32.dll_GetFocus]
call esi
test eax, eax
je 0x4a3564
call esi
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x4a3756
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x4a358a
cmp eax, 1
je 0x4a358a
cmp eax, 4
je 0x4a358a
cmp eax, 5
jne 0x4a3586
cmp dword [edi + 0xe0], 1
je 0x4a358a
xor esi, esi
jmp 0x4a358f
mov esi, 1
mov ecx, edi
call fcn.004a2a10
mov ecx, eax
mov eax, dword [ebp + 8]
lea edx, [eax - 0x23]
cmp edx, 5
ja case.default.0x4a35a7
jmp dword [edx*4 + 0x4a3790]
xor edx, edx
test esi, esi
je 0x4a35ce
mov eax, dword [edi]
test ecx, ecx
mov ecx, edi
setne dl
add edx, 8
push edx
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
test ecx, ecx
mov ecx, edi
setne dl
add edx, 2
push edx
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
test esi, esi
je 0x4a3605
mov eax, dword [edi]
neg ecx
sbb ecx, ecx
add ecx, 9
push ecx
mov ecx, edi
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
neg ecx
sbb ecx, ecx
add ecx, 3
push ecx
mov ecx, edi
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov edx, dword [edi]
lea eax, [esi + 1]
push eax
mov ecx, edi
call dword [edx + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
neg esi
mov ecx, edi
sbb esi, esi
and esi, 3
push esi
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 6
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 7
call dword [eax + 0x1f4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
test eax, eax
je 0x4a374a
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x4a374a
mov ecx, edi
call fcn.0047d5a0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test eax, eax
je 0x4a36bb
push 0x11
call esi
test ax, ax
js 0x4a36bb
push dword [ebp + 8]
mov ecx, edi
call fcn.004a3940
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x4a36df
push edi
push 0x623784
call fcn.0054abdb
add esp, 8
test eax, eax
je 0x4a36df
push dword [ebp + 8]
mov ecx, ebx
call fcn.0047d6c0
test eax, eax
jne 0x4a374a
push 0x11
mov dword [ebp + 0xc], 0
call esi
test ax, ax
js 0x4a3735
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004a1f20
mov esi, eax
cmp esi, 0xffffffff
je 0x4a3735
mov edx, dword [edi]
mov ecx, edi
push 2
push esi
call dword [edx + 0x170]
cmp dword [ebp + 0xc], 0
jne 0x4a374a
push esi
mov ecx, edi
call fcn.004a2710
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xb0]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, 0x10
je 0x4a374a
cmp eax, 0x11
je 0x4a374a
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 8