Function at 0x5020ef
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x50
mov eax, 0x58a3ca
call fcn.005553ef
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
cmp byte [ebx + 0x2c8], 0
je 0x502110
mov byte [ebx + 0x2c8], 0
cmp dword [ebx + 0x35c], 0
je 0x50253a
mov eax, dword [ebx]
mov esi, dword [eax + 0x19c]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
push eax
mov ecx, 0x5e38e4
call fcn.004cbc98
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x50214f
cmp dword [0x5e38e8], eax
je 0x502550
mov eax, dword [ebx + 0x35c]
mov edi, dword [ebx + 0x358]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x38c]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
mov ecx, ebx
call fcn.005014a1
mov edx, dword [ebp - 0x38]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp edi, edx
jne 0x5021b3
mov ecx, edx
sub ecx, 8
je 0x502465
sub ecx, 1
je 0x50226c
sub ecx, 0xa
je 0x5021bf
mov eax, dword [ebx]
push edx
mov esi, dword [eax + 0x37c]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
mov ecx, ebx
call fcn.0042d7de
jmp 0x502548
mov esi, dword [0x5ebf9c]
test esi, esi
jne 0x5021d6
mov ecx, ebx
call fcn.0042e02f
mov esi, eax
test esi, esi
je 0x502253
push esi
push 0x5a3f58
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5021f3
mov ecx, dword [edi]
mov esi, dword [ecx + 0x218]
jmp 0x50223e
push esi
push 0x5a39c8
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x502210
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1f8]
jmp 0x50223e
push esi
push 0x5a4568
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x502236
push esi
push 0x5a4920
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x502253
mov ecx, dword [edi]
mov esi, dword [ecx + 0x210]
push ebx
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
test eax, eax
je 0x5021b3
mov eax, dword [ebx]
mov esi, dword [eax + 0x2dc]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
jmp 0x5021b3
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x5023ed
mov eax, dword [ebx]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
test eax, eax
je 0x5023ea
mov eax, dword [ebx + 0xa4]
xor esi, esi
push esi
push esi
push 0xb
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x2f8], esi
jne 0x502356
push 0xa
lea ecx, [ebp - 0x5c]
call fcn.00423e05
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], esi
call fcn.005330b6
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x502348
mov ebx, dword [ebp - 0x34]
push dword [ecx + 8]
mov ecx, dword [ecx]
push 0x5e3b24
mov dword [ebp - 0x34], ecx
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x38], edi
mov ecx, dword [edi]
mov esi, dword [ecx + 0x340]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
test eax, eax
je 0x50233e
mov eax, dword [edi]
mov edi, dword [eax + 0x368]
mov eax, dword [ebx]
mov esi, dword [eax + 0x194]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
push 0
push 0
push eax
push 1
mov ecx, edi
call dword [0x58f988]
mov ecx, dword [ebp - 0x38]
call edi
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x5022dd
mov ebx, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00423e2b
jmp 0x50238a
mov edi, dword [ebx + 0x330]
mov eax, dword [edi]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
push eax
push 0x5b32f0
call fcn.00423946
pop ecx
pop ecx
test eax, eax
je 0x50238a
push 0
mov ecx, eax
call fcn.0053687b
mov eax, dword [ebx + 0xa4]
push 0
push 1
push 0xb
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 0xa4]
push 0x59da90
call fcn.00423946
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5023cd
mov ecx, dword [edi]
push 1
mov esi, dword [ecx + 0x178]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
mov eax, dword [ebx + 0xa4]
push 0x181
push 0
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x502548
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x502548
test esi, esi
je 0x502548
mov eax, dword [esi]
mov edi, dword [edi + 0x11c]
mov esi, dword [eax + 0x194]
mov ecx, esi
call dword [0x58f988]
mov ecx, dword [ebp - 0x34]
call esi
test edi, eax
je 0x502548
mov eax, dword [ebx]
mov edi, dword [eax + 0x368]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [eax + 0x194]
mov ecx, esi
call dword [0x58f988]
mov ecx, dword [ebp - 0x34]
call esi
push 1
push 0
push eax
xor eax, eax
mov ecx, edi
cmp dword [ebx + 0x2f8], eax
sete al
push eax
call dword [0x58f988]
mov ecx, ebx
call edi
jmp 0x502548
cmp dword [0x5ec0c0], 0
je 0x502548
push 8
mov ecx, ebx
call fcn.005013f1
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x502548
mov ecx, dword [edi]
lea eax, [ebp - 0x30]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0042acc7
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.0042a706
mov dword [edi + 0x14], 1
mov ecx, ebx
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x40], eax
call fcn.00432ae6
test eax, 0x400000
je 0x502503
sub esi, dword [ebp - 0x30]
add esi, dword [ebp - 0x28]
mov eax, dword [ebx]
push dword [ebp - 0x40]
mov edi, dword [ebx + 0x20]
push esi
mov esi, dword [eax + 0x2e4]
mov ecx, esi
call dword [0x58f988]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x502548
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
push eax
and dword [eax + 0x14], 0
call fcn.00503a05
jmp 0x502548
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045c913
call fcn.0055539e
ret 0xc
call fcn.004228fd
int3