Function at 0x476f10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
lea edi, [ebp - 0x80]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, esp
call fcn.00486698
test eax, eax
je 0x476fa8
cmp dword [ebp - 0x20], 0x12
jne 0x476f80
mov ecx, dword [0x56c574]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x476f7e
mov edx, dword [ebp - 0x30]
push edx
call fcn.00473110
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
jmp 0x476f62
jmp 0x476fa6
mov esi, esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.00486698
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.00486698
jmp 0x476f34
mov esi, esp
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4770c4
mov esi, esp
push str.GLFW
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetPropW]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4770c4
mov dword [ebp - 0x58], 0xa0
mov dword [ebp - 0x54], 0x154
mov dword [ebp - 0x50], 0xa1
mov dword [ebp - 0x4c], 0x158
mov dword [ebp - 0x48], 0x5b
mov dword [ebp - 0x44], 0x157
mov dword [ebp - 0x40], 0x5c
mov dword [ebp - 0x3c], 0x15b
mov dword [ebp - 0x34], 0
jmp 0x477033
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 4
jge 0x4770c4
mov eax, dword [ebp - 0x34]
lea ecx, [ebp + eax*8 - 0x58]
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x34]
lea eax, [ebp + edx*8 - 0x58]
mov ecx, 4
shl ecx, 0
mov edx, dword [eax + ecx]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax*2 + 0x56d0cc]
mov dword [ebp - 0x68], ecx
mov esi, esp
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
cwde
and eax, 0x8000
je 0x477092
jmp 0x47702a
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 0x74]
cmp edx, 1
je 0x4770a3
jmp 0x47702a
call fcn.00478580
push eax
push 0
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0046f540
add esp, 0x14
jmp 0x47702a
mov eax, dword [0x56da68]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x477140
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00475d30
add esp, 0xc
mov eax, dword [ebp - 0x70]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x2dc], eax
jne 0x47710c
mov eax, dword [ebp - 0x7c]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x2e0], eax
je 0x477140
mov eax, dword [ebp - 0x7c]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
sub esp, 8
movsd qword [esp], xmm0
mov eax, dword [ebp - 0x70]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
sub esp, 8
movsd qword [esp], xmm0
mov eax, dword [ebp - 0x30]
push eax
call fcn.00475070
add esp, 0x14
push edx
mov ecx, ebp
push eax
lea edx, [0x477170]
call fcn.00486644
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485c99
add esp, 0x80
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret