Function at 0x511e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1198]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x5121aa
cmp dword [0x708598], 4
mov edi, dword [0x2203688]
jne 0x512068
mov eax, dword [edi + 0x404]
mov ecx, dword [edi + 0x408]
shl eax, 8
mov al, byte [eax + edi + 6]
shl ecx, 8
cmp al, byte [ecx + edi + 6]
je 0x511e78
test al, al
js 0x511e78
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511e62
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x31
jmp 0x512062
push 3
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511ea6
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511e90
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x32
jmp 0x512062
push 4
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511ed6
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511ec0
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x33
jmp 0x512062
push 5
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511f06
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511ef0
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x34
jmp 0x512062
push 6
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511f36
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511f20
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x35
jmp 0x512062
push 7
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511f66
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511f50
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x36
jmp 0x512062
push 8
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511f96
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511f80
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x37
jmp 0x512062
push 9
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511fc6
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511fb0
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x38
jmp 0x512062
push 0xa
mov ecx, edi
call fcn.004396b0
test al, al
je 0x511ff6
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x511fe0
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x39
jmp 0x512062
push 0xb
mov ecx, edi
call fcn.004396b0
test al, al
je 0x512023
lea eax, [esi + 0x11ce]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x512010
sub eax, edx
mov byte [eax + esi + 0x11ce], 0x30
jmp 0x512062
push 0xe
mov ecx, edi
call fcn.004396b0
test al, al
je 0x512068
lea eax, [esi + 0x11ce]
mov ecx, eax
lea ebp, [ecx + 1]
jmp 0x512040
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x512040
sub ecx, ebp
mov dword [esp + 0x14], ecx
je 0x512068
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x512052
sub eax, edx
mov byte [eax + esi + 0x11cd], bl
mov edi, dword [0x2203688]
mov eax, dword [0x2203690]
mov ebp, 1
cmp eax, ebp
jne 0x51212b
cmp dword [0x2203694], ebx
jne 0x51212b
mov eax, dword [esi + 0x1200]
mov ecx, dword [0x71c2a4]
lea edx, [eax + 0x19]
cmp ecx, edx
jl 0x51210e
add eax, 0x88
cmp ecx, eax
jg 0x51210e
mov eax, dword [esi + 0x1204]
mov ecx, dword [0x71c2a8]
lea edx, [eax + 0x23]
cmp ecx, edx
jl 0x51210e
add eax, 0x32
cmp ecx, eax
jg 0x51210e
push ebp
mov ecx, 0x2203adc
call fcn.005325b0
mov ecx, 0x2203adc
call fcn.005347d0
cmp dword [0x708598], 4
jne 0x5120f3
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 0x11ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esi + 0x1198], ebp
pop edi
pop esi
mov dword [0x719a58], ebp
pop ebp
mov dword [0x864e00], ebx
xor eax, eax
pop ebx
ret 4
mov dword [esi + 0x1198], ebx
push ebx
mov ecx, 0x2203adc
mov dword [0x719a58], ebx
call fcn.005325b0
mov edi, dword [0x2203688]
cmp dword [esi + 0x1198], ebx
je 0x512153
mov eax, dword [edi + 0x404]
mov ecx, dword [edi + 0x408]
shl eax, 8
mov al, byte [eax + edi + 0x20]
shl ecx, 8
cmp al, byte [ecx + edi + 0x20]
je 0x5121a1
test al, al
jns 0x5121a1
push 0xd
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x2203adc
call fcn.005347d0
cmp dword [0x708598], 4
jne 0x51218a
lea eax, [esi + 0x11ce]
lea edx, [esi + 0x119c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x512180
mov dword [esi + 0x1198], ebx
push ebx
mov ecx, 0x2203adc
mov dword [0x719a58], ebx
call fcn.005325b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov eax, dword [0x2203690]
mov ebp, 1
cmp eax, ebp
jne 0x5121fa
cmp dword [0x2203694], ebx
jne 0x5121fa
mov eax, dword [esi + 0x1200]
mov ecx, dword [0x71c2a4]
lea edx, [eax + 0x19]
cmp ecx, edx
jl 0x5121fa
add eax, 0x88
cmp ecx, eax
jg 0x5121fa
mov eax, dword [esi + 0x1204]
mov ecx, dword [0x71c2a8]
lea edx, [eax + 0x23]
cmp ecx, edx
jl 0x5121fa
add eax, 0x32
cmp ecx, eax
jle 0x5120c4
mov eax, dword [esi + 0x1204]
mov ecx, dword [esi + 0x1200]
push eax
push ecx
lea ecx, [esi + 0x5e8]
call fcn.00527450
test eax, eax
je 0x512263
cmp dword [0x708598], 4
jne 0x51223a
lea eax, [esi + 0x11ce]
lea edx, [esi + 0x119c]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x512230
lea edi, [esi + 0x119c]
push edi
call fcn.005cd36a
add esp, 4
cmp edx, ebx
jl 0x512289
jg 0x512254
cmp eax, 0xffffffff
jbe 0x512289
push 0x1d4
push 0x11
call fcn.0041fce0
add esp, 8
mov eax, dword [esi + 0x1204]
mov ecx, dword [esi + 0x1200]
push eax
push ecx
lea ecx, [esi + 0xbc0]
call fcn.00527450
test eax, eax
je 0x5122a4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
push edi
call fcn.005cd2dd
mov edx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 2
pop ebx
ret 4
mov edx, dword [esi + 0x1204]
mov eax, dword [esi + 0x1200]
push edx
push eax
lea ecx, [esi + 0x10]
call fcn.00527450
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 4