Function at 0x4d9610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], edx
call fcn.004d86a0
movzx eax, al
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4d996b
mov ecx, dword [esi + 0xd0]
lea edi, [esi + 0xac]
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x20], ecx
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], edi
cmp ecx, dword [edi + 0x34]
jb 0x4d967c
xor eax, eax
jmp 0x4d9682
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x24]
push 0xfffffffffffffff0
push dword [esi + 0xb0]
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
shr eax, 7
mov edx, ecx
not al
movq qword [ebp - 0x60], xmm0
and al, 1
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], eax
mov ecx, edi
mov eax, dword [ebp - 0x34]
cmovne edx, eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x24], edx
call fcn.00508060
mov ecx, dword [ebp - 0x28]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x4d9796
cmp ecx, dword [ebx]
je 0x4d9796
cmp eax, 0xffffffff
jne 0x4d972f
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004d7410
cmp byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
je 0x4d9721
cmp dword [ebp - 0x14], eax
jle 0x4d9716
mov dword [ebp - 0x1c], 0
jmp 0x4d9732
mov eax, dword [edx + 0xe0]
mov dword [ebp - 0x1c], eax
jmp 0x4d9732
cmp dword [ebp - 0x10], eax
jle 0x4d9716
mov dword [ebp - 0x1c], 0
jmp 0x4d9732
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push 0
push ecx
mov ecx, esp
mov dword [edx + 0x174], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edx
call fcn.004d84f0
push 1
push 0x4e
push 0x4e
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push 0
push eax
call esi
test eax, eax
je 0x4d977c
lea eax, [ebp - 0x54]
push eax
call edi
push 1
push 0x4e
push 0x4e
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
jne 0x4d9764
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edx + 0x17c], eax
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x178], ecx
jmp 0x4d979c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d9803
cmp eax, ecx
je 0x4d9803
mov edi, dword [edx + 0x178]
cmp eax, edi
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
jne 0x4d97cf
mov eax, dword [ebp - 0x24]
sub eax, dword [edx + 0x17c]
sub dword [ebp - 0x28], ecx
imul eax, dword [ebp - 0x28]
test eax, eax
jle 0x4d9803
mov eax, dword [ebp - 0x1c]
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004e5680
mov ecx, dword [ebp - 0x1c]
push 1
mov dword [ebp - 0x20], ecx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004e4190
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
call fcn.00508060
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x178], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x17c], eax
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], eax
call dword [sym.imp.USER32.dll_WaitMessage]
test eax, eax
je 0x4d98aa
nop dword [eax + eax]
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4d985a
lea eax, [ebp - 0x54]
push eax
call edi
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
jne 0x4d9842
push 0
push 0x104
push 0x104
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
jne 0x4d98aa
push eax
push eax
push eax
push dword [ebx]
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4d98a0
mov ecx, dword [ebp - 0x54]
cmp dword [ebx], ecx
je 0x4d98ad
mov eax, dword [ebp - 0x50]
push 1
push eax
push eax
push ecx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4d98a0
lea eax, [ebp - 0x54]
push eax
call edi
call dword [sym.imp.USER32.dll_WaitMessage]
test eax, eax
jne 0x4d9830
mov ecx, dword [ebp - 0x54]
movsx eax, word [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
shr eax, 0x10
cwde
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
cmp dword [ebp - 0x50], 0x200
jne 0x4d98f8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, dword [ebp - 0x18]
mov ecx, 0x8000
test cx, ax
jne 0x4d98fb
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004d86a0
test al, al
jne 0x4d9968
jmp 0x4d98fb
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0xac]
cmp ecx, dword [eax + 0x34]
jb 0x4d990d
xor edx, edx
jmp 0x4d9919
mov eax, dword [eax + 0x30]
mov edx, dword [eax + ecx*4]
lea eax, [ebx + 0xac]
cmp dword [edx + 0x24], 0
jne 0x4d993e
push 0
push 0
push ecx
mov ecx, eax
call fcn.004d3130
push 1
push dword [ebx + 0x174]
lea ecx, [ebx + 0xac]
call fcn.004e4190
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4d9968
lea eax, [ebp - 0x54]
push eax
call edi
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
jne 0x4d9950
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513512
mov esp, ebp
pop ebp
ret 4