Function at 0x4a35e6
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x56b098
call fcn.00548c55
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x4a3600
mov dword [ebp - 0x24], edi
jmp 0x4a3606
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x28], eax
call fcn.0041c985
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x4a3634
cmp eax, 0x109
jbe 0x4a3642
add eax, 0xfffffe00
cmp eax, 9
ja 0x4a375c
test esi, esi
je 0x4a375c
cmp dword [esi + 0x74], edi
jne 0x4a3677
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041c985
cmp eax, ebx
je 0x4a3677
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041c985
mov esi, eax
test esi, esi
jne 0x4a364a
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4a36ac
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x4a36ac
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x4a36ac
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x5749cc]
call esi
test eax, eax
jne 0x4a36a9
inc eax
jmp 0x4a380a
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 0x101
je 0x4a36c4
cmp eax, 0x100
je 0x4a36c4
cmp eax, 0x102
jne 0x4a36ff
test esi, esi
je 0x4a36ff
mov edx, dword [esi + 0x74]
test edx, edx
je 0x4a36ff
mov eax, dword [ebp + 0xc]
push 0xd
pop ecx
movzx esi, word [eax + 8]
cmp si, cx
jne 0x4a36e7
test byte [edx + 0x84], 1
jne 0x4a36f8
push 0x1b
pop ecx
cmp si, cx
jne 0x4a3702
test byte [edx + 0x84], 2
je 0x4a3702
xor eax, eax
jmp 0x4a380a
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.0041c985
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
sub ecx, 0x100
je 0x4a3812
dec ecx
sub ecx, 1
je 0x4a3761
sub ecx, 4
jne 0x4a3859
test esi, esi
jne 0x4a374a
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a3859
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x4a385c
jmp 0x4a3764
mov eax, dword [ebp + 0xc]
jmp 0x4a3705
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.004a4078
cmp dword [ebp - 0x18], 0x102
jne 0x4a377c
test al, 0x84
jne 0x4a385c
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x4a3790
test al, 2
jne 0x4a385c
push 0x20
pop eax
cmp cx, ax
je 0x4a36f8
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.004a40a8
test eax, eax
je 0x4a385c
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4a385c
push esi
call fcn.004a1fc9
xor edi, edi
inc edi
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a3808
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041c985
push eax
push esi
call fcn.004a3c57
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a3808
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041c985
push eax
push esi
push ebx
call fcn.004a3ce4
mov eax, edi
call fcn.00548bb3
ret 8
push dword [ebp + 0xc]
push edx
call fcn.004a4078
mov edx, eax
mov eax, dword [ebp + 0xc]
push 0x1b
movzx ecx, word [eax + 8]
movzx esi, cx
mov dword [ebp - 0x18], ecx
pop ecx
cmp si, cx
ja 0x4a393b
je 0x4a3999
cmp esi, 3
je 0x4a3999
push 9
pop eax
cmp si, ax
je 0x4a38ac
push 0xd
pop eax
cmp si, ax
je 0x4a3964
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x4a37c2
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, eax
test edi, edi
je 0x4a37c2
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041c985
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x4a37c5
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041c985
push eax
call fcn.004a3bdc
pop ecx
jmp 0x4a37c5
test dl, 2
jne 0x4a3859
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, ebx
push edi
call fcn.00421b24
mov ecx, eax
test ecx, ecx
je 0x4a3859
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4a38fa
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x5749cc]
mov ecx, dword [ebp - 0x20]
call esi
jmp 0x4a37bf
cmp dword [ecx], 0
je 0x4a3908
push dword [ecx]
call fcn.0041c985
jmp 0x4a3915
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.004144ef
mov esi, eax
test esi, esi
je 0x4a37bf
mov eax, dword [ebx + 0x70]
push esi
mov dword [eax + 0x70], edi
call fcn.004a3dc2
push esi
push dword [ebp - 0x14]
call fcn.004a3c57
pop ecx
pop ecx
jmp 0x4a37bf
cmp esi, 0x25
jb 0x4a3b05
push 0x26
pop ecx
cmp cx, si
jae 0x4a3a0e
cmp esi, 0x28
jbe 0x4a3a0b
cmp word [ebp - 0x18], 0x2b
jne 0x4a3b05
test dl, 4
jne 0x4a3859
mov esi, dword [ebp - 0x14]
push esi
call fcn.004a359c
pop ecx
test al, 0x10
je 0x4a398a
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.0042192b
mov dword [ebp - 0x1c], eax
jmp 0x4a3990
push ebx
call fcn.004a428d
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x4a39ad
jmp 0x4a399c
push 2
pop eax
push eax
push ebx
call fcn.004a3df3
mov esi, eax
test esi, esi
je 0x4a3859
mov ecx, esi
call fcn.00421ef7
test eax, eax
jne 0x4a39c4
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4a3859
cmp dword [esi + 0x74], edi
je 0x4a3859
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.00421e41
add esp, 0x18
or dword [ebp - 4], 0xffffffff
jmp 0x4a37c2
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.004a4078
test al, 1
jne 0x4a3859
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x4a3a37
call fcn.00421ce9
jmp 0x4a3a3c
call fcn.00421ad4
mov esi, eax
test esi, esi
je 0x4a3859
cmp dword [esi + 8], edi
je 0x4a3a53
push esi
mov ecx, ebx
call fcn.00422141
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4a3a78
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x5749cc]
mov ecx, dword [ebp - 0x20]
jmp 0x4a38f3
cmp dword [esi], 0
je 0x4a3a8b
push dword [esi]
call fcn.0041c985
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4a3a9d
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.004a35c2
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a3859
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.004a3dc2
cmp dword [esi + 8], edi
je 0x4a37bf
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
xor edi, edi
mov esi, eax
mov eax, dword [ebp - 0x18]
inc edi
push edi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x20]
movzx eax, si
push eax
push 0x111
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x18]
call fcn.004a3dc2
jmp 0x4a37c2
mov esi, eax
jmp 0x4a385c