Function at 0x1004e14
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1009066
call fcn.01008b68
sub esp, 0xf0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
jne 0x1004e3f
push ebx
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1005418
push edi
push ebx
lea ecx, [ebp - 0xec]
call sub.MFC42u.DLL_CClientDC::CClientDC
xor edi, edi
inc edi
cmp dword [0x100b2b4], ebx
mov dword [ebp - 4], edi
je 0x1004e71
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
js 0x1004e71
cmp dword [esi + 0xc4], ebx
mov dword [ebp - 0x20], edi
je 0x1004e74
mov dword [ebp - 0x20], ebx
push 0x4e
call fcn.010046b0
cmp eax, ebx
jne 0x1004ee3
mov edi, dword [esi + 0x154]
mov eax, edi
cdq
sub eax, edx
mov dword [ebp - 0x10], eax
sar dword [ebp - 0x10], 1
push ebx
call fcn.010046b0
mov ecx, dword [ebp - 0x10]
sub ecx, edi
add eax, ecx
push eax
push dword [ebp - 0x10]
push dword [esi + 0x15c]
call fcn.010047d7
mov edi, eax
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x18], eax
cdq
sub eax, edx
mov dword [ebp - 0x10], eax
sar dword [ebp - 0x10], 1
push 1
call fcn.010046b0
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add eax, ecx
push eax
push dword [ebp - 0x10]
push dword [esi + 0x160]
call fcn.010047d7
jmp 0x1004f7f
mov eax, dword [esi + 0x154]
push 0x4e
mov dword [ebp - 0x10], eax
call fcn.010046b0
push 0x4c
mov edi, eax
call fcn.010046b0
add edi, eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0x10]
add edi, eax
push edi
push 0x4c
call fcn.010046b0
mov ecx, eax
mov eax, dword [esi + 0x154]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
push ecx
push dword [esi + 0x15c]
call fcn.010047d7
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x158]
push 0x4f
mov dword [ebp - 0x10], eax
call fcn.010046b0
push 0x4d
mov edi, eax
call fcn.010046b0
add edi, eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0x10]
add edi, eax
push edi
push 0x4d
call fcn.010046b0
mov ecx, eax
mov eax, dword [esi + 0x158]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
push ecx
push dword [esi + 0x160]
call fcn.010047d7
mov edi, dword [ebp - 0x30]
mov ecx, eax
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x18], eax
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esi + 0x154]
mov dword [ebp - 0x10], eax
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov dword [ebp - 0x28], edi
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
push 6
xor eax, eax
cmp dword [ebp - 0x20], ebx
pop ecx
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
je 0x100503f
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x14
call dword [0x100b2b4]
cmp dword [ebp - 0x80], ebx
je 0x1004ff9
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetIconInfo]
cmp dword [ebp - 0x54], ebx
je 0x1005012
lea eax, [ebp - 0xb0]
push eax
push 0x18
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_GetObjectW]
jmp 0x100503f
cmp dword [ebp - 0x58], ebx
je 0x100503c
lea eax, [ebp - 0xb0]
push eax
push 0x18
push dword [ebp - 0x58]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0xa8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xa8], eax
jmp 0x100503f
mov dword [ebp - 0x20], ebx
lea edi, [esi + 0xd0]
mov eax, dword [edi]
push 0xff0000
mov ecx, edi
call dword [eax + 0x34]
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
push 2
push ebx
mov dword [ebp - 0x44], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call dword [eax + 0x68]
push dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xfc]
add ecx, edx
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0xfc]
push eax
mov ecx, esi
call fcn.01003342
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.Mag_Hook.dll__GetPopupInfo_4]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
mov ecx, edi
je 0x10051a7
mov eax, dword [esi + 0x178]
mov eax, dword [eax + 0x27c]
neg eax
sbb eax, eax
and eax, 0xff66ffe8
add eax, 0xcc0020
or eax, 0x40000000
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xec]
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push ebx
push ebx
call fcn.01004907
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10052da
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x28]
push 0x808080
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [edi]
call dword [eax + 0x34]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x50]
push ecx
push 2
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x68]
push dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
jmp 0x10052da
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc4], eax
mov eax, dword [edi]
push 0x808080
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
call dword [eax + 0x34]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xd0]
push ecx
push 2
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x68]
push dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10052da
mov eax, dword [esi + 0x178]
cmp dword [eax + 0x278], 1
jbe 0x10052da
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
mov edx, dword [esi + 0xa4]
cmp edx, 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
jne 0x1005236
mov edx, dword [esi + 0x6c]
cmp edx, 1
je 0x1005275
cmp edx, 3
je 0x1005275
cmp edx, 0xfffffffe
je 0x1005275
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x28]
cdq
sub eax, edx
mov dword [ebp - 0xd8], ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov edx, dword [ebp - 0xd8]
sar ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x3c]
add ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x100529b
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x1c]
sar ecx, 1
sar edx, 1
sub edx, ecx
mov ecx, edx
sub ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x178]
mov ecx, dword [ecx + 0x27c]
neg ecx
sbb ecx, ecx
and ecx, 0xff66ffe8
add ecx, 0xcc0020
or ecx, 0x40000000
push ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0xec]
push dword [ebp - 0x40]
push ecx
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x48]
push eax
push edx
call fcn.01004907
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
add ecx, eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x74]
add edx, ecx
push eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xb8], edx
call dword [sym.imp.USER32.dll_IntersectRect]
cmp dword [ebp - 0x20], ebx
je 0x1005387
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1005387
mov eax, dword [esi + 0x178]
cmp dword [eax + 0x278], 1
jbe 0x1005387
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x7c]
sub ecx, dword [ebp - 0x60]
sub eax, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x28]
add eax, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x30]
cmp edi, ebx
jne 0x1005368
xor edx, edx
jmp 0x100536b
mov edx, dword [edi + 4]
push 3
push ebx
push ebx
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push dword [ebp - 0x80]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [ebp - 0x58], ebx
je 0x1005395
push dword [ebp - 0x58]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x54], ebx
je 0x10053a3
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esi + 0x148]
push eax
call sub.MFC42u.DLL_CDC::SelectPalette
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [ebp + 8]
push 3
call sub.MFC42u.DLL_CDC::SetStretchBltMode
mov eax, dword [esi + 0x178]
mov eax, dword [eax + 0x278]
push 0xcc0020
push dword [ebp - 0x18]
mov ecx, eax
imul eax, dword [ebp - 0x10]
push dword [ebp - 0x10]
imul ecx, dword [ebp - 0x18]
push ebx
push ebx
push edi
push ecx
mov ecx, dword [ebp + 8]
push eax
push ebx
push ebx
call fcn.0100493e
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CDC::SelectPalette
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.010086c0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8