Function at 0x4ddfb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x58a710]
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.004dd040
movzx eax, al
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4de30b
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 0x4de01c
xor eax, eax
jmp 0x4de022
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.004dc250
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 0x4de136
cmp ecx, dword [ebx]
je 0x4de136
cmp eax, 0xffffffff
jne 0x4de0cf
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004aaa50
cmp byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
je 0x4de0c1
cmp dword [ebp - 0x14], eax
jle 0x4de0b6
mov dword [ebp - 0x1c], 0
jmp 0x4de0d2
mov eax, dword [edx + 0xe0]
mov dword [ebp - 0x1c], eax
jmp 0x4de0d2
cmp dword [ebp - 0x10], eax
jle 0x4de0b6
mov dword [ebp - 0x1c], 0
jmp 0x4de0d2
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.004dcf10
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 0x4de11c
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 0x4de104
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 0x4de13c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4de1a3
cmp eax, ecx
je 0x4de1a3
mov edi, dword [edx + 0x178]
cmp eax, edi
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
jne 0x4de16f
mov eax, dword [ebp - 0x24]
sub eax, dword [edx + 0x17c]
sub dword [ebp - 0x28], ecx
imul eax, dword [ebp - 0x28]
test eax, eax
jle 0x4de1a3
mov eax, dword [ebp - 0x1c]
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004e9d50
mov ecx, dword [ebp - 0x1c]
push 1
mov dword [ebp - 0x20], ecx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004e8860
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
call fcn.004dc250
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 0x4de24a
nop dword [eax + eax]
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4de1fa
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 0x4de1e2
push 0
push 0x104
push 0x104
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
jne 0x4de24a
push eax
push eax
push eax
push dword [ebx]
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4de240
mov ecx, dword [ebp - 0x54]
cmp dword [ebx], ecx
je 0x4de24d
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 0x4de240
lea eax, [ebp - 0x54]
push eax
call edi
call dword [sym.imp.USER32.dll_WaitMessage]
test eax, eax
jne 0x4de1d0
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 0x4de298
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, dword [ebp - 0x18]
mov ecx, 0x8000
test cx, ax
jne 0x4de29b
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004dd040
test al, al
jne 0x4de308
jmp 0x4de29b
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0xac]
cmp ecx, dword [eax + 0x34]
jb 0x4de2ad
xor edx, edx
jmp 0x4de2b9
mov eax, dword [eax + 0x30]
mov edx, dword [eax + ecx*4]
lea eax, [ebx + 0xac]
cmp dword [edx + 0x24], 0
jne 0x4de2de
push 0
push 0
push ecx
mov ecx, eax
call fcn.004d72e0
push 1
push dword [ebx + 0x174]
lea ecx, [ebx + 0xac]
call fcn.004e8860
push 1
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4de308
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 0x4de2f0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005193a0
mov esp, ebp
pop ebp
ret 4