Function at 0x4d1880
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xfc]
mov dword [ebp - 4], edi
test eax, eax
je 0x4d18d6
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4d18d6
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi + 0xfc]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [edi + 0xfc]
push eax
call fcn.00412f2c
mov ebx, 0x201
cmp dword [ebp + 8], ebx
jne 0x4d19c5
cmp dword [0x57fd5c], 0
jne 0x4d1903
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4d19c5
mov eax, dword [0x57fdc4]
mov dword [ebp - 8], eax
test eax, eax
je 0x4d19c5
lea eax, [ebp - 8]
push eax
mov ecx, 0x57fdc0
call fcn.0042960e
mov esi, dword [eax]
test esi, esi
je 0x4d1968
push dword [esi + 0x20]
call fcn.004973bf
test eax, eax
je 0x4d1960
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax + 0x36c]
test eax, eax
jge 0x4d196d
cmp dword [ebp - 8], 0
jne 0x4d1913
jmp 0x4d19c5
call fcn.00497382
push eax
mov ecx, esi
call fcn.00444752
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
je 0x4d19c2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
cmp eax, dword [ebp + 0x14]
jne 0x4d19c2
push dword [ebp - 0x10]
lea ecx, [edi + 0x54]
push dword [ebp - 0x14]
call fcn.004da621
test eax, eax
je 0x4d19c2
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x14]
shl eax, 0x10
or eax, ecx
push eax
push 0
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
jmp 0x4d1c57
mov edi, dword [ebp - 4]
xor ebx, ebx
cmp dword [0x57fd5c], ebx
jne 0x4d1c55
mov eax, dword [0x5815bc]
cmp eax, ebx
je 0x4d1c55
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1c55
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5815bc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004d6da9
cmp eax, 4
jne 0x4d1c80
call fcn.004e3370
mov esi, eax
test esi, esi
je 0x4d1a90
push dword [esi + 0xf94]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1a90
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0xf94]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d1a90
push dword [esi + 0xf94]
call fcn.004973bf
push eax
push 0x579e5c
call fcn.004544e7
pop ecx
pop ecx
mov edi, eax
xor eax, eax
push eax
push eax
push 0x10
push dword [esi + 0x20]
mov dword [esi + 0xf94], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x5815bc], edi
xor eax, eax
jmp 0x4d1c57
mov ecx, dword [0x5815bc]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 0x1a8]
mov edi, eax
test edi, edi
je 0x4d1bc5
push edi
push 0x579304
call fcn.004544e7
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d1b4b
xor edi, edi
cmp esi, edi
je 0x4d1afc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x424]
test eax, eax
je 0x4d1b1f
mov ecx, dword [0x5815bc]
mov eax, dword [ecx]
call dword [eax + 0x1a0]
test eax, eax
jne 0x4d1b1f
mov eax, dword [0x5815bc]
push edi
push edi
push 0x10
push dword [eax + 0x20]
jmp 0x4d19b4
cmp dword [ebp + 8], 0x204
je 0x4d1b35
cmp dword [ebp + 8], 0x205
jne 0x4d19ba
mov eax, dword [0x5815bc]
cmp dword [eax + 0xf90], edi
je 0x4d19ba
jmp 0x4d1a89
test esi, esi
je 0x4d1bc5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x424]
test eax, eax
jne 0x4d1bc5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x418]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00405b2b
push eax
push 0x579e5c
call fcn.004544e7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d1bc5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004d6da9
test eax, eax
je 0x4d1a89
jle 0x4d1bc5
cmp eax, 2
jle 0x4d1c5e
cmp eax, 3
je 0x4d1a89
cmp eax, 5
je 0x4d1a89
mov ecx, dword [0x5815bc]
mov eax, dword [ecx]
call dword [eax + 0x1a0]
test eax, eax
jne 0x4d1c55
mov ecx, dword [0x5815bc]
mov eax, dword [ecx]
call dword [eax + 0x1b0]
mov ebx, eax
mov eax, dword [0x5815bc]
neg ebx
sbb ebx, ebx
xor esi, esi
push esi
push esi
push 0x10
push dword [eax + 0x20]
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00405b2b
cmp eax, esi
je 0x4d1c2e
push 0x579048
mov ecx, eax
call fcn.00479ccf
test eax, eax
je 0x4d1c2e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
call fcn.0047a1af
cmp ebx, esi
je 0x4d1c55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0047f13d
push eax
push 0x53f3dc
call fcn.004544e7
pop ecx
pop ecx
cmp eax, esi
je 0x4d1c53
cmp dword [eax + 0x20], esi
jne 0x4d1c55
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0
push 0
push 0x10
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
call fcn.0047a1af
jmp 0x4d19ba
cmp eax, 1
je 0x4d1c8a
cmp eax, 2
jne 0x4d1c55
mov eax, dword [0x5815bc]
push ebx
push ebx
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0xb0]
jmp 0x4d1c76