Function at 0x58151e62
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x581b41d0]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
or dword [eax + 0x48], 0xffffffff
push esi
mov esi, dword [eax]
push edi
neg ecx
sbb ecx, ecx
mov edi, dword [ebp + 0xc]
and ecx, 2
mov dword [ebp - 0x34], esi
add ecx, 0x201
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edi
movzx ecx, di
movzx edx, bx
shl ecx, 0x10
or ecx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x58152199
cmp dword [ebp - 0x30], 0x203
jne 0x58151ee8
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x58152199
push esi
call dword [sym.imp.USER32.dll_SetCapture]
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.5815219e
mov ecx, dword [0x581ae534]
xor eax, eax
add esp, 0x14
cmp word [ecx + 0x2be4], ax
mov ecx, dword [0x581b41d0]
je 0x58151f49
test byte [ecx + 8], 0x40
jne 0x58151f49
mov edx, dword [ecx + 0x138]
push eax
push eax
push eax
push eax
mov dword [ecx + 0x13c], edx
push dword [ebp - 4]
call fcn.58154a09
mov ecx, dword [0x581b41d0]
add esp, 0x14
mov dword [ecx + 0x144], eax
xor eax, eax
mov edx, dword [ebp - 4]
cmp dword [ebp + 0x14], eax
mov dword [ebp - 8], edx
je 0x58151f6c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x581b3d88]
call dword [eax + 0x4c]
mov ecx, dword [0x581b41d0]
xor eax, eax
test byte [ebp + 0x10], 4
jne 0x58151f8e
mov edx, dword [0x581ae534]
cmp dword [edx + 0x284], eax
jne 0x58151f8e
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jmp 0x58151fa9
cmp dword [ecx + 0x50], eax
je 0x58151f98
mov edx, dword [ecx + 0x5c]
jmp 0x58151f9b
mov edx, dword [ecx + 0x58]
mov eax, dword [ecx + 0x58]
add eax, dword [ecx + 0x5c]
sub eax, edx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.58152927
add esp, 0x14
push 0
push esi
call fcn.5818bcec
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x58152193
cmp dword [0x581ae570], 0
jne 0x58152193
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
jne 0x58152046
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x58152046
push 3
push 0x209
push 0x100
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x58152034
movzx eax, di
movzx ecx, bx
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x30], 0x200
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
jmp 0x5815209a
cmp dword [ebp - 0x30], 0x104
jb 0x58152063
cmp dword [ebp - 0x30], 0x106
ja 0x58152063
movzx eax, di
movzx ecx, bx
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x30], 0x202
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
jmp 0x58152066
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x30], 0x200
jb 0x5815209a
cmp dword [ebp - 0x30], 0x209
ja 0x5815209a
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x581b41d0]
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
sub ecx, 0x200
je 0x581520b2
dec ecx
dec ecx
je 0x58152193
jmp 0x58151fe5
movsx ebx, ax
shr eax, 0x10
movsx edi, ax
mov eax, dword [0x581b41d0]
mov esi, dword [eax + 0xac]
sub esi, edi
test esi, esi
jle 0x581520d0
push 0xffffffffffffffff
jmp 0x581520dc
mov esi, edi
sub esi, dword [eax + 0xb4]
js 0x58152122
push 1
call fcn.58153275
pop ecx
push 0
push 2
call fcn.581526ed
mov eax, dword [0x581b41d0]
pop ecx
pop ecx
cmp esi, dword [eax + 0x10]
jg 0x58152122
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jl 0x5815211d
add ecx, 0x64
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp - 0x14]
jg 0x5815211d
call esi
cmp eax, dword [ebp - 0x10]
jge 0x58152111
mov eax, dword [0x581b41d0]
mov ecx, dword [0x581ae534]
cmp word [ecx + 0x2be4], 0
je 0x58152144
test byte [eax + 8], 0x40
jne 0x58152144
mov ecx, dword [eax + 0x138]
mov dword [eax + 0x140], ecx
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.5815219e
mov eax, dword [ebp - 4]
add esp, 0x14
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], eax
je 0x58152174
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x581b3d88]
call dword [eax + 0x4c]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.58152927
mov esi, dword [ebp - 0x18]
add esp, 0x14
jmp 0x58151fe5
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
pop ebx
leave
ret