Function at 0x4991d6
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp eax, edi
je 0x4991f5
mov dword [eax], 1
mov eax, dword [0x5f067c]
cmp eax, edi
je 0x4992fd
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4992fd
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00457553
mov ecx, dword [0x5f067c]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0x1dc]
test eax, eax
je 0x499283
cmp esi, edi
je 0x49926c
cmp dword [esi + 0x20], edi
je 0x49926c
mov ecx, dword [0x5f067c]
push esi
call fcn.00498e02
test eax, eax
jne 0x499473
mov eax, dword [0x5f067c]
mov esi, dword [esi + 0x20]
cmp eax, edi
jne 0x499260
xor ecx, ecx
jmp 0x499263
mov ecx, dword [eax + 0x20]
cmp esi, ecx
jne 0x499271
jmp 0x499473
mov eax, dword [0x5f067c]
push edi
push edi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x499473
cmp esi, edi
je 0x4992a0
cmp dword [esi + 0x20], edi
je 0x4992a0
mov ecx, dword [0x5f067c]
push esi
call fcn.00498e02
test eax, eax
jne 0x499473
mov ecx, dword [0x5f067c]
mov eax, dword [ecx]
call dword [eax + 0x19c]
mov esi, dword [eax + 0xc44]
mov eax, dword [0x5f067c]
push edi
push dword [ebp + 8]
push pe_nt_image_headers32
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, edi
jne 0x4992d7
xor eax, eax
inc eax
jmp 0x499475
push dword [0x5f067c]
push 0x59eb14
call fcn.00462383
pop ecx
pop ecx
cmp eax, edi
je 0x4992cf
mov ecx, eax
call fcn.00498e1f
test eax, eax
je 0x4992cf
jmp 0x499473
mov eax, dword [ebx + 0xb0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4992cf
cmp dword [0x5efd7c], edi
jne 0x499473
mov eax, dword [0x5efde4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], edi
je 0x49938d
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x5efde0
call fcn.004f4b3c
mov esi, dword [eax]
cmp esi, edi
je 0x49944a
push dword [esi + 0x20]
call fcn.0045757f
test eax, eax
je 0x499388
mov ecx, esi
call fcn.00479eda
test eax, eax
jle 0x499386
push edi
mov ecx, esi
call fcn.004797ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa4]
test eax, eax
jne 0x49937f
mov ecx, esi
inc edi
call fcn.00479eda
cmp edi, eax
jl 0x49935b
jmp 0x499386
mov dword [ebp - 8], 1
xor edi, edi
cmp dword [ebp - 8], edi
je 0x499327
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
mov byte [ebp - 1], 0
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
je 0x4993ab
mov byte [ebp - 1], 8
push 0x12
call esi
mov ecx, edi
test cx, ax
je 0x4993ba
or byte [ebp - 1], 0x10
push 0x10
call esi
test di, ax
je 0x4993c7
or byte [ebp - 1], 4
cmp dword [ebp - 8], 0
mov edi, dword [ebp + 8]
jne 0x49940e
movzx ebx, byte [ebp - 1]
mov esi, dword [ebp - 0x10]
push 1
push dword [esi + 0xb0]
or ebx, 1
push ebx
push edi
call fcn.004e1e9d
test eax, eax
jne 0x499473
mov ecx, dword [esi + 0xb0]
push eax
mov eax, dword [ecx]
call dword [eax + 0x148]
push eax
push ebx
push edi
call fcn.004e1e9d
test eax, eax
jne 0x499473
mov ebx, esi
mov eax, dword [ebx + 0xfc]
xor esi, esi
cmp eax, esi
je 0x49944f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49944f
cmp byte [ebp - 1], 8
jne 0x49944f
cmp edi, 0x70
jne 0x499465
mov ecx, dword [ebx + 0xfc]
cmp dword [ecx + 0x6a4], esi
je 0x499465
call fcn.0050a0d4
jmp 0x4992cf
call fcn.00453d3c
cmp byte [ebp - 1], 0x10
jne 0x499465
push edi
mov ecx, ebx
call fcn.00498ac1
test eax, eax
jne 0x4992cf
cmp dword [ebp - 8], esi
je 0x499473
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x499473
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8