Function at 0x5027c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x12c]
push 0
push 0x37eb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x502a3e
mov ecx, esi
call fcn.005054c0
cmp eax, 0x32
jge 0x502807
mov dword [esi + 0x114], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov eax, dword [esi + 0x350]
mov ecx, ebx
mov dword [esi + 0xf4], 1
shr ecx, 0x10
movsx edi, bx
movsx ebp, cx
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], ebp
test eax, eax
je 0x502887
push ebp
lea edx, [esi + 0x358]
push edi
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x502887
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], 2
call dword [eax + 0x34]
mov ecx, esi
call fcn.00502b70
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x60]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00502d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esi + 4]
call fcn.0050c060
cmp dword [esi + 0x10c], 0xffffffff
jne 0x5028db
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [edx + 0x70]
cmp edi, 4
jne 0x502a3e
mov eax, dword [esi + 8]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
mov eax, dword [esi + 0x12c]
push 0x37e9
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
lea ecx, [esi + 0x28]
call fcn.00506f40
mov eax, dword [esi + 0x10c]
push ebp
mov edx, eax
push edi
shl edx, 7
add edx, eax
mov eax, dword [esi + 0xfc]
lea ecx, [eax + edx*4 + 0x1a8]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x502a3e
mov edx, dword [esi]
mov ebx, 4
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], bl
call dword [edx + 0x34]
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0xfc]
mov ecx, eax
shl ecx, 7
add ecx, eax
cmp byte [edx + ecx*4 + 0x44], 0
jne 0x50294f
cmp dword [esp + 0x1c], ebx
jmp 0x5028ad
cmp dword [esi + 0x110], 0xffffffff
jne 0x50295e
mov dword [esi + 0x110], eax
mov edx, dword [esi]
mov ebx, 1
push eax
mov ecx, esi
mov dword [esi + 0x114], ebx
call dword [edx + 0x34]
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x5029ee
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0xc0]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 0xc4]
sub ecx, edx
test eax, eax
jge 0x5029b8
neg eax
test ecx, ecx
jge 0x5029be
neg ecx
mov edx, dword [esi + 0x110]
cmp edx, dword [esi + 0x10c]
jne 0x502a1e
cmp eax, ecx
jle 0x502a1e
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x502a1e
mov dword [esi + 0xbc], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0xfc]
mov ecx, eax
shl ecx, 7
add ecx, eax
test byte [edx + ecx*4 + 0x48], 2
je 0x502a1e
mov eax, dword [esi + 8]
push 0
push 0x96
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [esp + 0x1c]
cmp ebx, 5
je 0x502a34
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x60]
push ebx
push ebp
push edi
mov ecx, esi
call fcn.005054e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8