Function at 0x46ad10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x495c68
push 0x48603e
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4bf380]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x46a930
call fcn.004747e0
add esp, 4
call fcn.004744f0
test eax, eax
je 0x46ada1
push 0
push 0x20003
call fcn.004706d0
push 1
push 0x2000a
call fcn.004706d0
push 0
push 0
push dword [0x56ba40]
push 0x320
push 0x320
call fcn.00470d80
add esp, 0x24
mov dword [0x56ba3c], eax
test eax, eax
jne 0x46adbf
call fcn.00474630
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00485c99
mov esp, ebp
pop ebp
ret
push 0
push 0x20005
push eax
call fcn.004724f0
add esp, 0xc
push 1
push 0x20007
push dword [0x56ba3c]
call fcn.004724f0
add esp, 0xc
push dword [0x56ba3c]
call fcn.0047a690
add esp, 4
push dword [0x56ba3c]
call fcn.00471ed0
add esp, 4
push 0
call fcn.0047a850
add esp, 4
call fcn.0046a970
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0x4bf400
mov dword [ebp - 0x3c], 0x4bf400
mov dword [ebp - 0x30], 0x4bf946
mov dword [ebp - 0x38], 0x4bf946
sub esp, 8
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0xe8]
call fcn.0045a680
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x46af10
lea eax, [ebp - 0x28]
push eax
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
push dword [ebp - 0x28]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
push 0x2601
push 0x2801
push 0xde1
mov esi, dword [sym.imp.OPENGL32.dll_glTexParameteri]
call esi
push 0x2601
push 0x2800
push 0xde1
call esi
push 0
push 0xcf2
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
push ebx
push 0x1401
push 0x1908
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x1908
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [0x56b9d8], eax
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
nop dword [eax]
cmp dword [0x56ba48], 0
je 0x46b043
push dword [0x56ba3c]
call fcn.00471250
add esp, 4
test eax, eax
jne 0x46b043
call fcn.00472ca0
push dword [0x56ba50]
push dword [0x56ba4c]
push dword [0x56ba3c]
call fcn.00471540
add esp, 0xc
push dword [0x56ba58]
push dword [0x56ba54]
push dword [0x56ba3c]
call fcn.004718d0
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.0046b070
jmp 0x46af83
mov dword [ebp - 4], 0xfffffffe
cmp byte [0x56ba64], 0
jne 0x46af9c
cmp byte [0x56b9f1], 0
je 0x46afb6
push 0x2d
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x46afb6
cmp byte [0x56b9f0], 0
sete byte [0x56b9f0]
mov esi, dword [0x56ba3c]
cmp byte [0x56ba64], 0
jne 0x46aff0
push 0x20001
push esi
call fcn.00472280
add esp, 8
test eax, eax
jne 0x46aff0
push 0x20007
push esi
call fcn.00472280
add esp, 8
test eax, eax
mov byte [0x56b9f1], 0
je 0x46aff7
mov byte [0x56b9f1], 1
movzx eax, byte [0x56ba64]
push eax
push 0x20007
push esi
call fcn.004724f0
add esp, 0xc
cmp byte [0x56b9f1], 0
jne 0x46b026
push 1
push 0x2000d
push esi
call fcn.004724f0
add esp, 0xc
push dword [0x56ba3c]
call fcn.0047a7b0
add esp, 4
mov ecx, 0x56ba48
call fcn.0046b960
jmp 0x46af10
call fcn.0046b390
push dword [0x56ba3c]
call fcn.00471180
add esp, 4
call fcn.00474630
mov al, 1
jmp 0x46ada3