Function at 0x500ba205
Capabilities:
Check for unmoving mouse cursor
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [0x5028fed8]
push edi
xor edi, edi
push 0x5028fe74
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
mov dword [0x5028fe70], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp esi, edi
mov eax, dword [0x5028fe74]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5028fe78]
mov dword [esp + 0x20], eax
je 0x500ba25c
push edi
push dword [0x5029a6cc]
push 0x500b86f6
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x5028fe70], eax
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x500ba26c
xor edi, edi
xor esi, esi
inc esi
push esi
push 0x20a
push 0x200
push edi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x500ba2ce
push esi
push 0x108
push 0x100
push edi
lea eax, [esp + 0x34]
push eax
call ebx
test eax, eax
jne 0x500ba2ce
push esi
mov eax, 0x215
push eax
push eax
push edi
lea eax, [esp + 0x34]
push eax
call ebx
test eax, eax
jne 0x500ba2ce
push esi
push 0x1f
push 0x1f
push edi
lea eax, [esp + 0x34]
push eax
call ebx
test eax, eax
jne 0x500ba2ce
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x500ba26c
push 0x5028fe74
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x28]
sub eax, 0x1f
je 0x500ba457
sub eax, 0xe1
je 0x500ba311
sub eax, 4
je 0x500ba311
sub eax, 0xfd
jne 0x500ba391
cmp dword [0x5028fed8], 0
je 0x500ba391
mov edi, esi
jmp 0x500ba391
mov al, byte [esp + 0x2c]
cmp al, 0x1b
je 0x500ba457
cmp al, 0x11
jne 0x500ba325
mov dword [esp + 0x14], esi
cmp dword [0x5028fed8], 0
je 0x500ba391
cmp al, 0xd
jne 0x500ba334
mov edi, esi
cmp al, 0x25
jne 0x500ba349
mov eax, dword [0x5028fe74]
push dword [0x5028fe78]
add eax, 0xfffffff6
push eax
call ebp
cmp byte [esp + 0x2c], 0x27
jne 0x500ba361
mov eax, dword [0x5028fe74]
push dword [0x5028fe78]
add eax, 0xa
push eax
call ebp
cmp byte [esp + 0x2c], 0x26
jne 0x500ba379
mov eax, dword [0x5028fe78]
add eax, 0xfffffff6
push eax
push dword [0x5028fe74]
call ebp
cmp byte [esp + 0x2c], 0x28
jne 0x500ba391
mov eax, dword [0x5028fe78]
add eax, 0xa
push eax
push dword [0x5028fe74]
call ebp
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x18]
call dword [sym.imp.USER32.dll_GetCapture]
cmp esi, eax
jne 0x500ba457
test edi, edi
jne 0x500ba3bf
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x500ba3ca
cmp dword [0x5028fed8], edi
jne 0x500ba3ca
mov eax, dword [0x5028fe80]
dec eax
je 0x500ba440
dec eax
je 0x500ba429
cmp dword [esp + 0x14], 0
mov edx, dword [0x5028fe78]
mov ecx, dword [0x5028fe74]
jne 0x500ba3ed
cmp dword [esp + 0x1c], ecx
jne 0x500ba3ed
cmp dword [esp + 0x20], edx
je 0x500ba26a
mov eax, dword [0x5028fe80]
dec eax
je 0x500ba405
dec eax
jne 0x500ba41c
push edx
push ecx
mov ecx, dword [esp + 0x18]
call fcn.50272bbe
jmp 0x500ba410
push edx
push ecx
mov ecx, dword [esp + 0x18]
call fcn.50272bbe
mov edx, dword [0x5028fe78]
mov ecx, dword [0x5028fe74]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jmp 0x500ba26a
push dword [0x5028fe78]
mov ecx, dword [esp + 0x14]
push dword [0x5028fe74]
call fcn.50272bbe
jmp 0x500ba460
push dword [0x5028fe78]
mov ecx, dword [esp + 0x14]
push dword [0x5028fe74]
call fcn.500b9e09
jmp 0x500ba460
mov ecx, dword [esp + 0x10]
call fcn.500b8dd7
cmp dword [esp + 0x18], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x500ba47b
mov eax, dword [0x5028fe70]
test eax, eax
je 0x500ba47b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
add esp, 0x30
ret