Function at 0x476dd0
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.00486562
test eax, eax
je 0x476e68
cmp dword [ebp - 0x20], 0x12
jne 0x476e40
mov ecx, dword [0x56c574]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x476e3e
mov edx, dword [ebp - 0x30]
push edx
call fcn.00472fd0
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
jmp 0x476e22
jmp 0x476e66
mov esi, esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.00486562
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.00486562
jmp 0x476df4
mov esi, esp
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x476f84
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.00486562
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x476f84
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 0x476ef3
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 4
jge 0x476f84
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.00486562
cwde
and eax, 0x8000
je 0x476f52
jmp 0x476eea
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 0x74]
cmp edx, 1
je 0x476f63
jmp 0x476eea
call fcn.00478440
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.0046f400
add esp, 0x14
jmp 0x476eea
mov eax, dword [0x56da68]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x477000
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00475bf0
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 0x476fcc
mov eax, dword [ebp - 0x7c]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x2e0], eax
je 0x477000
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.00474f30
add esp, 0x14
push edx
mov ecx, ebp
push eax
lea edx, [0x477030]
call fcn.0048650e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
add esp, 0x80
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret