Function at 0x45f698be
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov esi, ecx
call edi
test ax, ax
push 0x11
setl byte [esp + 0x20]
call edi
test ax, ax
push 0x12
setl byte [esp + 0x17]
call edi
test ax, ax
mov eax, dword [esi]
mov ecx, esi
setl bl
call dword [eax + 0x388]
test eax, eax
je 0x45f699f9
test bl, bl
jne 0x45f699f9
cmp dword [ebp + 8], 9
je 0x45f69b61
cmp dword [ebp + 8], 0xd
je 0x45f69a9c
cmp dword [ebp + 8], 0x71
jne 0x45f699f9
mov eax, dword [esi]
or edi, 0xffffffff
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
call dword [eax + 0x314]
test al, al
je 0x45f69959
mov eax, dword [esi + 0x364]
cmp eax, edi
je 0x45f69959
mov dword [esp + 0x28], eax
mov dword [esi + 0x364], edi
cmp dword [esi + 0x360], edi
jne 0x45f69973
mov eax, dword [esi + 0x118]
mov dword [esi + 0x360], eax
push dword [esi + 0x360]
lea ebx, [esp + 0x18]
push edi
push dword [esp + 0x24]
lea edi, [esp + 0x24]
mov eax, esi
call fcn.45f6a727
test al, al
je 0x45f699f9
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x190]
jae 0x45f69a56
mov al, byte [0x4603baf5]
test al, al
jne 0x45f69991
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x388]
cmp dword [esp + 0x14], eax
jae 0x45f69a0c
mov al, byte [0x4603baf5]
test al, al
jne 0x45f699aa
mov eax, dword [esi + 0x360]
cmp dword [esp + 0x14], eax
je 0x45f699d4
cmp eax, 0xffffffff
jne 0x45f699f9
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
je 0x45f699f9
lea ecx, [esi + 0x19c]
mov edx, dword [ecx]
push eax
call dword [edx]
push dword [eax]
mov edx, dword [esi]
push dword [esp + 0x18]
mov ecx, esi
call dword [edx + 0x468]
push dword [ebp + 8]
mov ecx, esi
call fcn.45f4ffc1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x7a1
push 0x45dd0d24
mov esi, 0x80004005
push esi
call fcn.45f85675
mov eax, dword [esp + 0x2c]
add esp, 0x10
and dword [esp + 0x44], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], 0x45dc096c
mov dword [esp + 0x3c], esi
push 0x45ff0f98
lea eax, [esp + 0x3c]
push eax
call fcn.45fb1416
and dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
push 0x7a0
push 0x45dd0d24
mov esi, 0x80004005
push esi
call fcn.45f85675
mov eax, dword [esp + 0x3c]
add esp, 0x10
and dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], 0x45dc096c
mov dword [esp + 0x4c], esi
push 0x45ff0f98
lea eax, [esp + 0x4c]
jmp 0x45f69a50
mov eax, dword [esi + 0x118]
cmp eax, 0xffffffff
je 0x45f699f9
cmp byte [esp + 0x1c], 0
jne 0x45f69abd
cmp byte [esp + 0x13], 0
je 0x45f699f9
lea ebx, [esi + 0x11c]
cmp dword [ebx], 0x80000000
jne 0x45f69ad8
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xbc]
mov dword [ebx], eax
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x138]
lea edi, [esi + 0x19c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov dword [esp + 0x30], eax
call dword [edx]
push dword [eax]
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x98]
test al, al
je 0x45f69b28
push dword [esp + 0x2c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push dword [eax]
push dword [esi + 0x118]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x468]
jmp 0x45f69a03
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x388]
dec eax
cmp dword [esi + 0x118], eax
jne 0x45f699f9
cmp byte [esi + 0x354], 0
je 0x45f699f9
mov ecx, dword [esi + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x94]
test al, al
je 0x45f699f9
jmp 0x45f69b07
mov eax, dword [esi + 0x5c]
mov ecx, eax
shr ecx, 0xb
test cl, 1
jne 0x45f699f9
shr eax, 0xf
test al, 1
jne 0x45f699f9
mov eax, dword [esi]
or dword [esp + 0x20], 0xffffffff
or dword [esp + 0x24], 0xffffffff
mov ecx, esi
call dword [eax + 0x314]
test al, al
jne 0x45f69ba8
mov eax, dword [esi + 0x118]
or dword [esi + 0x364], 0xffffffff
mov dword [esi + 0x360], eax
push dword [esi + 0x360]
lea ebx, [esp + 0x28]
push dword [esi + 0x364]
lea edi, [esp + 0x28]
push dword [esp + 0x24]
mov eax, esi
call fcn.45f6a727
test al, al
je 0x45f699f9
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x190]
jae 0x45f69c63
mov al, byte [0x4603baf5]
test al, al
jne 0x45f69bcf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x388]
cmp dword [esp + 0x24], eax
jae 0x45f69c1a
mov al, byte [0x4603baf5]
test al, al
jne 0x45f69be8
push dword [esp + 0x20]
lea ecx, [esi + 0x19c]
mov eax, dword [ecx]
call dword [eax]
push dword [eax]
push dword [esp + 0x28]
jmp 0x45f69b19
and dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 0x7c4
push 0x45dd0d24
mov esi, 0x80004005
push esi
call fcn.45f85675
mov eax, dword [esp + 0x40]
add esp, 0x10
and dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], 0x45dc096c
mov dword [esp + 0x5c], esi
push 0x45ff0f98
lea eax, [esp + 0x5c]
jmp 0x45f69a50
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push eax
push 0x7c3
push 0x45dd0d24
mov esi, 0x80004005
push esi
call fcn.45f85675
mov eax, dword [esp + 0x44]
add esp, 0x10
and dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], 0x45dc096c
mov dword [esp + 0x6c], esi
push 0x45ff0f98
lea eax, [esp + 0x6c]
jmp 0x45f69a50