Function at 0x51e43109
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x51eb3b14], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x5c]
push esi
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
je 0x51e4313e
xor eax, eax
inc eax
jmp 0x51e4334d
mov ecx, dword [eax]
lea esi, [ebx + 0x28]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push ebx
mov dword [ebp - 8], ecx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [ebx + 0x44], 0x1a
call fcn.51e07bba
pop ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call fcn.51e48116
test eax, eax
pop ecx
jne 0x51e43310
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x51e432f8
test byte [ebx], 1
je 0x51e4328e
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 4]
jne 0x51e4328e
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x51e4328e
push 3
push 0x20a
xor esi, esi
cmp dword [0x51e8bab8], esi
push pe_nt_image_headers32
lea eax, [ebp - 0x40]
push esi
push eax
jne 0x51e431d3
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x51e431d9
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, esi
je 0x51e432f8
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov esi, 0x200
cmp ecx, esi
jb 0x51e43225
cmp ecx, 0x20a
ja 0x51e43225
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x50], ecx
movsx ecx, ax
mov dword [ebx + 0x54], eax
shr eax, 0x10
movsx eax, ax
push ebx
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], eax
call fcn.51e48116
test eax, eax
pop ecx
jne 0x51e4330a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
sub ecx, esi
je 0x51e432b4
dec ecx
dec ecx
jne 0x51e432f8
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 4]
jne 0x51e43249
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [esi + 4], edx
je 0x51e4333f
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp byte [eax + 4], 1
je 0x51e4332c
cmp dword [ebp + 0x10], edx
jne 0x51e4332c
cmp dword [ebp + 0xc], edx
jne 0x51e43328
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], cl
je 0x51e4332c
mov eax, dword [ebp + 8]
mov ecx, edi
jmp 0x51e4332f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, dx
movzx esi, cx
shl eax, 0x10
or eax, esi
mov dword [ebp - 0x3c], 0x202
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jmp 0x51e431e4
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
push ecx
push ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
movsd dword es:[edi], dword [esi]
call fcn.51e42c2f
mov ecx, dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp - 0xc], eax
mov dword [ecx + 4], eax
je 0x51e432f5
push ebx
call fcn.51e07bba
pop ecx
xor edi, edi
inc edi
mov eax, dword [ebp - 4]
cmp byte [eax + 9], 0
je 0x51e43189
jmp 0x51e43238
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
push ebx
call fcn.51e07bba
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x51e4334b
xor eax, eax
jmp 0x51e4332f
or eax, 0xffffffff
push ecx
push eax
push ebx
mov dword [esi + 4], edx
call fcn.51e4303d
add esp, 0xc
jmp 0x51e43346
push ebx
call fcn.51e07bba
pop ecx
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret