Function at 0x52b350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0xb4], 0
je 0x52b3cc
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0xb4], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00553adb
mov dword [ebp - 4], 0xffffffff
jmp 0x52b622
mov ecx, dword [ebp - 0x70]
call fcn.005516e7
push 0
push 1
push 0xf3
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0x88], 0xffffffff
je 0x52b459
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x4c], eax
call fcn.0055f60b
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x4c]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00553a84
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x52b459
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00553a51
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x52b474
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [ebp - 0x14]
call fcn.00553a84
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xa8]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x58]
jge 0x52b4a8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0x74], ecx
jmp 0x52b4ba
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], 0
jmp 0x52b4d2
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x18]
jge 0x52b51a
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x90]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xa4]
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [ecx + edx*2]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x68]
push edx
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x52b4c9
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x70]
call dword [edx + 0xd8]
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x60], 0
je 0x52b54a
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x60]
push edx
call fcn.0054e7f3
mov dword [ebp - 0x78], eax
jmp 0x52b566
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0054e7f3
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x2c]
add ecx, eax
push ecx
push 4
mov ecx, dword [ebp - 0x1c]
call fcn.0054f2ac
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
test eax, eax
jge 0x52b5d5
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edx, dword [ebp - 0x70]
cmp eax, dword [edx + 0x1c]
jne 0x52b5d5
mov dword [ebp - 0x7c], 1
jmp 0x52b5dc
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xb4], ecx
push 0
push 0
push 0xf3
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00553adb
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc