Function at 0x4d9520
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push ecx
mov ecx, edi
mov dword [ebp - 0x60], esi
movups xmmword [ebp - 0x30], xmm0
call dword [eax + 0x40]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x34]
call eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x54]
push eax
push esi
mov dword [ebp - 0x54], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.004d9480
mov esi, eax
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], esi
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x4d95ce
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x58]
push eax
push dword [esi + 4]
mov dword [ebp - 0x58], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x4d95ef
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
call fcn.004d8310
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
and eax, 4
mov dword [ebp - 0x7c], eax
je 0x4d961d
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x70]
sub eax, esi
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x74]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x54]
sar edx, 1
add ecx, eax
add edx, dword [ebp - 0x2c]
add esi, edx
mov dword [ebp - 0x40], eax
and dword [ebp - 0x5c], 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
je 0x4d9694
mov eax, dword [edi]
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [ebp - 0x50], xmm0
mov eax, dword [eax + 8]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call edx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x48]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
neg eax
mov esi, dword [ebp - 0x34]
neg ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], eax
sub esi, edx
sub ecx, eax
push esi
push ecx
push edx
push eax
mov eax, dword [ebp - 0x64]
push dword [eax + 4]
push dword [ebp - 0x78]
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
mov ecx, dword [ebp - 0x80]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x80], ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
mov dword [ebp - 0x54], eax
mov edx, dword [edx + 0x80]
call edx
test al, al
jne 0x4d96f7
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x5c]
mov ecx, edi
shl eax, 0x11
add eax, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x30]
sub eax, 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 0x2c]
call eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
or eax, 0x400
mov dword [ebp - 0x68], eax
call fcn.004da960
mov edx, dword [ebp - 0x68]
test al, al
lea eax, [ebp - 0x20]
je 0x4d9767
push 0
push dword [ebp - 0x64]
push esi
mov esi, dword [ebp - 0x60]
mov ecx, esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004dab20
add esp, 0x14
jmp 0x4d977d
push dword [ebp - 0x64]
push esi
mov esi, dword [ebp - 0x60]
mov ecx, esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004daa80
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x74]
lea ecx, [edx + 5]
add ecx, eax
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], ecx
je 0x4d97a6
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x28]
sub ecx, edx
add eax, 0xfffffffb
add eax, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
mov dword [ebp - 0x60], eax
call fcn.004da960
mov edx, dword [ebp - 0x5c]
test al, al
mov ecx, esi
lea eax, [ebp - 0x20]
je 0x4d97fc
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004dab20
add esp, 0x14
jmp 0x4d980f
push dword [ebp - 0x60]
push dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004daa80
add esp, 0x10
mov al, byte [edi + 0x80]
test al, al
jne 0x4d9836
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
seta al
mov byte [edi + 0x80], al
test al, al
je 0x4d9884
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x70]
call eax
test al, al
je 0x4d9884
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x80]
call eax
test al, al
je 0x4d9884
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x88]
call eax
test al, al
je 0x4d9884
movups xmm0, xmmword [ebp - 0x20]
push 1
push 1
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d98a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4d98b4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x78]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4