Function at 0x496f10
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x5a65e4]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, edx
mov edi, ecx
je 0x497210
call fcn.004e27f0
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x497210
xor eax, eax
cmp edi, ebx
sete al
cmp esi, ebx
push ebp
mov ebp, eax
je 0x496f79
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
sub eax, 0x8000
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x496f79
cmp dword [0x5a65e8], ebx
je 0x496f73
cmp dword [0x5a6d40], ebx
je 0x496f8d
mov dword [esp + 0x14], ebx
jmp 0x496f95
cmp dword [0x5a65e8], ebx
je 0x496f8d
cmp dword [0x5a6d40], ebx
mov dword [esp + 0x14], ebx
je 0x496f95
mov dword [esp + 0x14], 1
push 0xa
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov esi, eax
cmp esi, ebx
je 0x49720f
cmp dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.USER32.dll_DeferWindowPos]
je 0x496fff
mov edi, dword [0x5b430c]
test edi, edi
je 0x497054
mov ecx, dword [edi + 0xbbc]
cmp ecx, dword [esp + 0x18]
jne 0x496ff3
mov ecx, dword [edi]
call fcn.00543010
test eax, eax
je 0x496ff3
mov edx, dword [edi]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push edx
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
mov edi, dword [edi + 0xd9c]
test edi, edi
jne 0x496fc1
jmp 0x497054
mov eax, dword [0x5b4318]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x497054
mov ecx, edi
call fcn.00542c90
test eax, eax
je 0x497045
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0xbbc], ecx
jne 0x497045
mov edx, dword [eax]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push edx
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x497013
mov eax, dword [0x5ab6c4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x49713a
jmp 0x497070
mov eax, dword [esp + 0x10]
jmp 0x497070
cmp eax, dword [esp + 0x18]
je 0x497128
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4970ce
mov edi, dword [0x5b430c]
test edi, edi
je 0x497128
cmp dword [edi + 0xbbc], eax
jne 0x4970c2
mov ecx, dword [edi]
call fcn.00543010
test eax, eax
je 0x4970be
mov eax, dword [edi]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push eax
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
mov eax, dword [esp + 0x10]
mov edi, dword [edi + 0xd9c]
test edi, edi
jne 0x497090
jmp 0x497128
mov ecx, dword [0x5b4318]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x497124
mov ecx, edi
call fcn.00542c90
test eax, eax
je 0x497115
mov edx, dword [esp + 0x10]
cmp dword [eax + 0xbbc], edx
jne 0x497115
mov eax, dword [eax]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push eax
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x4970e3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x2424]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x497067
mov eax, dword [0x5ab6c4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x497204
jmp 0x497150
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49719e
mov edi, dword [0x5b430c]
test edi, edi
je 0x4971ee
mov eax, dword [edi + 0xa28]
test eax, eax
je 0x497192
mov ecx, dword [edi]
call fcn.00543010
test eax, eax
je 0x497192
mov ecx, dword [edi]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push ecx
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
mov edi, dword [edi + 0xd9c]
test edi, edi
jne 0x497166
jmp 0x4971ee
mov edx, dword [0x5b4318]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x4971ee
mov ecx, edi
call fcn.00542c90
test eax, eax
je 0x4971df
mov ecx, dword [eax + 0xa28]
test ecx, ecx
je 0x4971df
mov eax, dword [eax]
push 0x13
push 0
push 0
push 0
push 0
push ebp
push eax
push esi
call ebx
mov esi, eax
test esi, esi
je 0x49720f
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x4971b3
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x2424]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x497150
test esi, esi
je 0x49720f
push esi
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret