Function at 0x50207a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xabc]
push esi
push edi
test eax, eax
jge 0x50209b
and dword [ebp - 8], 0
jmp 0x5020b0
lea esi, [ebx + 0xb04]
push eax
mov ecx, esi
call fcn.0056bfc3
mov dword [ebp - 8], eax
test eax, eax
jne 0x5020b4
xor esi, esi
jmp 0x5020be
push eax
mov ecx, esi
call fcn.004d4734
mov esi, dword [eax]
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xabc]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
cmp edi, 9
jne 0x5020f2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 0x80
push 0
pop eax
sete al
lea eax, [eax + eax + 0x26]
mov edi, eax
mov dword [ebp + 8], edi
mov edx, dword [ebp - 8]
xor eax, eax
inc eax
mov ecx, edx
cmp edi, 0xd
je 0x5024df
cmp edi, 0x20
jbe 0x502135
cmp edi, 0x22
jbe 0x50239c
cmp edi, 0x23
je 0x5022bd
cmp edi, 0x24
je 0x5021d8
cmp edi, 0x26
je 0x5022c2
cmp edi, 0x28
je 0x5021dd
cmp dword [0x66a5dc], 0
jne 0x5025f0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x5025f0
push edi
call fcn.004ef4ab
test eax, eax
je 0x5024a0
push edi
call fcn.004ef536
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0xbe8]
mov dword [ebp + 8], edi
call fcn.004f0110
test eax, eax
je 0x5024a0
mov eax, dword [ebx + 0xb08]
mov edi, dword [ebp - 0xc]
and dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x502423
lea esi, [ebx + 0xb04]
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0049ad18
mov eax, dword [eax]
test eax, eax
je 0x502418
cmp eax, edi
je 0x50241d
inc dword [ebp + 8]
cmp dword [ebp - 8], 0
jne 0x5021ad
jmp 0x502423
xor edx, edx
mov dword [ebp - 8], edx
cmp dword [ebx + 0xc44], 0
je 0x5021fb
cmp ecx, dword [ebx + 0xb0c]
jne 0x5021fb
cmp edi, 0x24
je 0x5021fb
xor eax, eax
inc eax
jmp 0x5025f3
cmp dword [ebx + 0xb10], 0
mov dword [ebp - 0x10], eax
je 0x5025f0
mov dword [ebp + 8], edx
test edx, edx
je 0x502228
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0xb04]
call fcn.0049ad18
mov eax, dword [ebp + 8]
test eax, eax
jne 0x502237
mov eax, dword [ebx + 0xb08]
and dword [ebp - 4], 0
mov dword [ebp + 8], eax
jmp 0x50223a
inc dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x5025f0
mov edi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0xb04]
call fcn.0049ad18
mov esi, dword [eax]
test byte [esi + 0x24], 1
jne 0x502270
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x502270
cmp dword [esi + 0x20], 0xfffffffe
jne 0x502298
mov eax, dword [ebp + 8]
inc dword [ebp - 4]
test eax, eax
jne 0x502293
cmp dword [ebx + 0xc44], eax
jne 0x5021f3
mov eax, dword [ebx + 0xb08]
and dword [ebp - 4], 0
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 8]
jne 0x502243
test edi, edi
je 0x5025f0
push edi
lea ecx, [ebx + 0xb04]
call fcn.004d4734
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
jmp 0x502542
xor edx, edx
mov dword [ebp - 8], edx
cmp dword [ebx + 0xc44], 0
je 0x5022dc
cmp ecx, dword [ebx + 0xb08]
jne 0x5022dc
cmp edi, 0x23
jne 0x5021f3
cmp dword [ebx + 0xb10], 0
mov dword [ebp - 0x10], eax
je 0x5025f0
mov dword [ebp + 8], edx
test edx, edx
je 0x502309
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0xb04]
call fcn.004d4715
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x50231e
mov eax, dword [ebx + 0xb10]
mov ecx, dword [ebx + 0xb0c]
dec eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
jmp 0x502321
dec dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x5025f0
mov edi, dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebx + 0xb04]
call fcn.004d4715
mov esi, dword [eax]
test byte [esi + 0x24], 1
jne 0x50235b
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x50235b
cmp dword [esi + 0x20], 0xfffffffe
jne 0x50238a
mov ecx, dword [ebp + 8]
dec edi
mov dword [ebp - 4], edi
test ecx, ecx
jne 0x502385
cmp dword [ebx + 0xc44], ecx
jne 0x5021f3
mov edi, dword [ebx + 0xb10]
mov ecx, dword [ebx + 0xb0c]
dec edi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edi
cmp ecx, dword [ebp - 8]
jne 0x50232d
cmp dword [ebp - 0x14], 0
je 0x5025f0
push dword [ebp - 0x14]
jmp 0x5022a1
cmp dword [ebx + 0xc44], 0
je 0x5025f0
mov eax, dword [ebx + 0xc48]
test eax, eax
jle 0x5025f0
mov esi, dword [ebx + 0xabc]
xor edi, edi
mov dword [ebx + 0xc4c], 1
test eax, eax
jle 0x5023f3
xor eax, eax
cmp dword [ebp + 8], 0x21
setne al
lea eax, [eax + eax + 0x26]
mov dword [ebp + 8], eax
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x3d8]
inc edi
cmp edi, dword [ebx + 0xc48]
jl 0x5023dd
mov eax, dword [ebx + 0xabc]
and dword [ebx + 0xc4c], 0
cmp esi, eax
je 0x5021f3
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x234]
jmp 0x5021f3
call fcn.004963bf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
push 0x662b5c
call fcn.004973a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x502542
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc8]
test eax, eax
je 0x50246f
mov esi, dword [esi + 0x8c]
test esi, esi
je 0x502542
push 0
push 0x24
push 0x100
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x502542
test dword [edi + 0x24], 0x40000
mov ecx, ebx
je 0x502487
push edi
push 0
call fcn.005014a5
jmp 0x5021f3
mov eax, dword [ebx]
push esi
call dword [eax + 0x3c0]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x502542
jmp 0x5021f3
cmp dword [0x6632e0], 0
je 0x5025f0
cmp dword [ebx + 0xc2c], 0
jne 0x5025f0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push edi
lea ecx, [ebx + 0xc78]
call fcn.00501aa4
test eax, eax
je 0x5025f0
push 0
push dword [ebp + 8]
mov ecx, ebx
jmp 0x50247d
push esi
push 0x662b5c
mov dword [ebp - 0x10], eax
call fcn.004973a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5025f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xec]
test eax, eax
jne 0x50251b
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc8]
test eax, eax
jne 0x5025f0
mov ecx, ebx
call fcn.0049e489
push 0
push 0xe001
push 0x362
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x3c0]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
je 0x5025f0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x50256a
cmp dword [ebx + 0xc4c], esi
jne 0x50256a
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x234]
cmp dword [0x66a5dc], esi
je 0x50257b
mov eax, dword [ebp - 4]
mov dword [ebx + 0xac0], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0xabc], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0xc]
add esi, 0x54
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x34]
jl 0x5025da
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jg 0x5025da
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
test eax, eax
je 0x5025c6
push 1
add eax, 0x54
push eax
push dword [ebx + 0x20]
call esi
push 1
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x20]
call esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
cmp eax, 0xffffffff
je 0x5025f0
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x3f0]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4