Function at 0x476140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5061ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
lea eax, [ebp - 0x54]
mov edi, ecx
push eax
call fcn.00473f80
cmp dword [edi + 0xe0], 0
xorps xmm0, xmm0
jle 0x47620b
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
movups xmmword [ebp - 0x24], xmm0
call dword [eax + 0x70]
mov eax, dword [edi + 0xe0]
add eax, dword [ebp - 0x20]
mov edx, dword [edi + 0xf8]
mov ebx, dword [edi + 0xfc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
cmp edx, 0xffffffff
jne 0x4761d9
cmp ebx, edx
jne 0x4761c4
mov ecx, dword [edi + 0xf4]
test ecx, ecx
je 0x4761c4
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push 0
push edx
call dword [eax + 0x38]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
jne 0x4761d9
cmp ebx, edx
jne 0x4761d9
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
jmp 0x476208
mov esi, dword [ebp - 0x1c]
sub eax, ebx
sub esi, dword [edi + 0xe4]
mov ecx, esi
mov dword [ebp - 0xc], esi
sub ecx, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add eax, ebx
add eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
movups xmm0, xmmword [eax]
push dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push dword [ebp + 0xc]
movups xmmword [ebp - 0x34], xmm0
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
test eax, eax
je 0x476240
push 1
call esi
test bx, ax
mov ebx, 0
setne bl
inc ebx
jmp 0x476242
xor ebx, ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x476272
push 1
call esi
mov ecx, 0x8000
test cx, ax
mov eax, 0
setne al
inc eax
mov dword [ebp - 8], eax
mov esi, eax
jmp 0x476274
xor esi, esi
cmp ebx, dword [edi + 0x100]
je 0x47628d
lea eax, [ebp - 0x54]
mov dword [edi + 0x100], ebx
push eax
mov ecx, edi
call fcn.00416750
cmp esi, dword [edi + 0x104]
je 0x4762a6
lea eax, [ebp - 0x34]
mov dword [edi + 0x104], esi
push eax
mov ecx, edi
call fcn.00416750
mov esi, dword [edi + 0x790]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00474210
mov dword [edi + 0x790], eax
cmp esi, eax
je 0x476306
cmp esi, 0xffffffff
je 0x4762d7
lea eax, [esi + 0xc]
mov ecx, edi
lea eax, [eax + eax*8]
lea eax, [edi + eax*4]
push eax
call fcn.00416750
mov eax, dword [edi + 0x790]
cmp eax, 0xffffffff
je 0x476306
cdq
mov ecx, 7
idiv ecx
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + 0xc]
add eax, ecx
mov ecx, edi
lea eax, [eax + eax*8]
lea eax, [edi + eax*4]
push eax
call fcn.00416750
cmp dword [edi + 0x170], 0
xorps xmm0, xmm0
jle 0x476331
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
movups xmmword [ebp - 0x24], xmm0
call dword [eax + 0x70]
mov eax, dword [ebp - 0x18]
sub eax, dword [edi + 0x170]
mov dword [ebp - 0x20], eax
movups xmm0, xmmword [ebp - 0x24]
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
movups xmmword [ebp - 0x44], xmm0
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x476364
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 0
setne al
inc eax
jmp 0x476366
xor eax, eax
cmp eax, dword [edi + 0x198]
je 0x47637f
mov dword [edi + 0x198], eax
mov ecx, edi
lea eax, [ebp - 0x44]
push eax
call fcn.00416750
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419f30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e386
mov esp, ebp
pop ebp
ret 0xc