Function at 0x48036f
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4afa00
call fcn.0043cb10
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
push 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4803a8
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00481508
jmp 0x4803b3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
push dword [esi + 4]
xor ebx, ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4803c5
push 2
pop ebx
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
neg eax
add dword [ebp - 0x30], eax
push eax
movsd dword es:[edi], dword [esi]
neg ecx
add dword [ebp - 0x34], ecx
lea eax, [ebp - 0x54]
push ecx
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x14], eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
push 0xf
mov byte [ebp - 4], 2
call fcn.00451f7b
pop ecx
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBkColor]
xor eax, eax
lea ecx, [ebp - 0x54]
push eax
push eax
push eax
push ecx
push 2
push eax
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x48047b
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x38], eax
jmp 0x48048c
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x20], esi
je 0x4804ac
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov dword [ebp - 0x18], 1
jne 0x4804af
mov dword [ebp - 0x18], esi
cmp ebx, 2
je 0x4804d7
cmp dword [ebp - 0x18], esi
je 0x4804be
push 1
pop ebx
jmp 0x4804d7
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [ebp + 0x20], esi
mov eax, ebx
je 0x4804fb
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x148
mov ecx, dword [ecx + 0x70]
lea esi, [eax + ecx]
lea eax, [esi + 0x1690]
add esi, 0x1bb0
jmp 0x480516
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x148
mov ecx, dword [ecx + 0x70]
lea esi, [eax + ecx]
lea eax, [esi + 0x210]
add esi, 0x730
mov edi, 0xff00ff
push 1
push edi
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x1c]
call fcn.0046a63f
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4805a3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x114]
sub eax, dword [esi + 0x114]
sub ecx, dword [esi + 0x10c]
push 1
push edi
sub eax, dword [ebp - 0x44]
push esi
add eax, dword [esi + 0x10c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
add ecx, eax
mov eax, dword [esi + 0x110]
mov dword [ebp - 0x5c], ecx
sub eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x118]
sub ecx, dword [esi + 0x110]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
add ecx, eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], ecx
push eax
push dword [ebp + 0x1c]
call fcn.0046a63f
add esp, 0x14
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x4805b9
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
jmp 0x4805c6
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x20], eax
je 0x4805e9
cmp dword [ebp - 0x18], eax
jne 0x4805e9
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4805e9
push 1
pop eax
jmp 0x4805eb
xor eax, eax
cmp ebx, 2
je 0x480612
test eax, eax
je 0x4805f9
push 1
pop ebx
jmp 0x480612
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [ebp + 0x20], 0
je 0x480635
mov eax, dword [ebp - 0x10]
imul ebx, ebx, 0x148
mov eax, dword [eax + 0x70]
lea esi, [ebx + eax]
lea eax, [esi + 0x20d0]
add esi, 0x25f0
jmp 0x480650
mov eax, dword [ebp - 0x10]
imul ebx, ebx, 0x148
mov eax, dword [eax + 0x70]
lea esi, [ebx + eax]
lea eax, [esi + 0xc50]
add esi, 0x1170
mov ebx, dword [ebp + 0x1c]
push 1
push edi
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0046a63f
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4806d7
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x114]
sub eax, dword [esi + 0x114]
sub ecx, dword [esi + 0x10c]
push 1
push edi
sub eax, dword [ebp - 0x44]
push esi
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
add ecx, eax
mov eax, dword [esi + 0x110]
mov dword [ebp - 0x5c], ecx
sub eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x118]
sub ecx, dword [esi + 0x110]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
add ecx, eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], ecx
push eax
push ebx
call fcn.0046a63f
add esp, 0x14
push 0xffffffffffffffff
push 0xcc0020
push 0
push 0
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00469978
add esp, 0x28
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test ebx, ebx
je 0x48071c
push ebx
call edi
test eax, eax
je 0x48071c
and dword [ebp + 0x1c], 0
mov ebx, dword [ebp + 0x1c]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
test eax, eax
je 0x48072f
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
je 0x48073a
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x480745
push dword [ebp - 0x14]
call esi
test ebx, ebx
je 0x48074c
push ebx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c