Function at 0x504993
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x5b97ad
call fcn.005828b6
mov esi, ecx
lea eax, [esi + 0x294]
cmp byte [eax], 0
je 0x5049af
mov byte [eax], 0
cmp dword [esi + 0x328], 0
je 0x504cf5
mov eax, dword [esi]
call dword [eax + 0x174]
push eax
mov ecx, 0x628284
call fcn.0051bf93
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5049e3
cmp dword [0x628288], eax
jne 0x5049e3
call fcn.0047c28e
mov eax, dword [esi + 0x324]
mov edi, dword [esi + 0x328]
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x36c]
mov ecx, esi
call fcn.005023d3
mov ebx, eax
cmp dword [ebp + 8], edi
jne 0x504a2c
mov eax, edi
sub eax, 8
je 0x504c41
dec eax
je 0x504ac5
sub eax, 0xa
je 0x504a38
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x35c]
mov ecx, esi
call fcn.004890d4
jmp 0x504d03
push esi
call fcn.004821b5
mov edi, eax
pop ecx
test edi, edi
je 0x504ab6
push edi
push 0x5d44d8
call fcn.0048d0e0
pop ecx
pop ecx
test eax, eax
je 0x504a63
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1ec]
jmp 0x504aae
push edi
push 0x5d3f6c
call fcn.0048d0e0
pop ecx
pop ecx
test eax, eax
je 0x504a81
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1cc]
jmp 0x504aae
push edi
push 0x5d860c
call fcn.0048d0e0
pop ecx
pop ecx
test eax, eax
jne 0x504aa3
push edi
push 0x5d827c
call fcn.0048d0e0
pop ecx
pop ecx
test eax, eax
je 0x504ab6
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1e4]
test eax, eax
je 0x504a2c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2b8]
jmp 0x504a2c
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x504bea
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x31c]
test eax, eax
je 0x504bea
mov ecx, dword [esi + 0x78]
xor edi, edi
push edi
call fcn.004cae90
cmp dword [esi + 0x2c4], edi
jne 0x504b82
push 0xa
lea ecx, [ebp - 0x50]
call fcn.004edff5
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.004f38a0
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x504b74
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050b6aa
push dword [eax]
push 0x627bc4
call fcn.0048d0e0
mov edi, eax
mov eax, dword [edi]
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 0x10], edi
call dword [eax + 0x31c]
test eax, eax
je 0x504b6c
mov edi, dword [edi]
mov eax, dword [ebx]
push 0
push 0
mov ecx, ebx
add edi, 0x344
call dword [eax + 0x16c]
mov ecx, dword [ebp - 0x10]
push eax
push 1
call dword [edi]
cmp dword [ebp + 8], 0
jne 0x504b21
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004ee01d
jmp 0x504ba9
mov ecx, dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x178]
push eax
push 0x5e4c54
call fcn.0048d0e0
pop ecx
pop ecx
cmp eax, edi
je 0x504ba9
push edi
mov ecx, eax
call fcn.00521e61
mov ecx, dword [esi + 0x78]
push 1
call fcn.004cae90
push dword [esi + 0x78]
push 0x5d64d8
call fcn.0048d0e0
pop ecx
pop ecx
cmp eax, edi
je 0x504bd2
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x150]
mov eax, dword [esi + 0x78]
push 0x181
push edi
push edi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x504d03
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x504d03
test ebx, ebx
je 0x504d03
mov edi, dword [eax + 0x11c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x16c]
test edi, eax
je 0x504d03
mov edi, dword [esi]
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
add edi, 0x344
call dword [eax + 0x16c]
push eax
xor eax, eax
cmp dword [esi + 0x2c4], eax
mov ecx, esi
sete al
push eax
call dword [edi]
jmp 0x504d03
cmp dword [0x62f540], 0
je 0x504d03
push 8
mov ecx, esi
call fcn.0050434d
mov edi, eax
test edi, edi
je 0x504d03
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.004840da
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0048411b
mov dword [edi + 0x14], 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
inc eax
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0047d7a1
test eax, 0x400000
je 0x504cc6
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
add ebx, eax
mov eax, dword [esi + 0x20]
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c0]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x504d03
and dword [edi + 0x14], 0
push edi
mov ecx, esi
call fcn.00503f0c
jmp 0x504d03
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004cafea
call fcn.0058298e
ret 0xc