Function at 0x762ede65
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov ebx, 0x100
cmp eax, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jb 0x762ee0c6
cmp eax, 0x101
jbe 0x762edea4
cmp eax, 0x103
jbe 0x762ee0c6
cmp eax, 0x105
ja 0x762ee0c6
push esi
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetContext
push eax
mov dword [ebp - 8], eax
call sym.IMM32.dll_ImmLockIMC
mov esi, eax
cmp esi, edi
jne 0x762edec3
xor esi, esi
jmp 0x762ee0b6
cmp dword [esi + 0x144], edi
jne 0x762edf12
mov ebx, dword [esi + 0x128]
cmp ebx, edi
je 0x762ee0a3
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmLockIMCC
cmp eax, edi
je 0x762edf07
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.762edd6a
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmUnlockIMCC
mov dword [ebp - 0x14], 1
mov dword [esi + 0x128], edi
jmp 0x762ee0a3
push edi
push dword [ebp + 8]
mov dword [esi + 0x144], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov dword [ebp - 0x18], eax
call sym.IMM32.dll_ImmLockImeDpi
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x762ee0a3
push ebx
push edi
call fcn.762e9949
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x762ee0a3
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x762edf62
push edi
jmp 0x762ee008
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test al, 2
mov ecx, dword [esi + 0x140]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
je 0x762edff2
test eax, 0x80000
je 0x762edfb3
push 0
push 1
lea eax, [ebp + 0xe]
push eax
push dword [ebp - 0xc]
mov eax, edi
shr eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jne 0x762edff2
movzx eax, word [ebp + 0xe]
mov ecx, dword [ebp - 4]
shl eax, 0x10
and ecx, 0xff
or eax, ecx
mov dword [ebp - 4], eax
jmp 0x762edff2
push dword [ebp - 0x18]
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc]
mov eax, edi
shr eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_ToAsciiEx]
test eax, eax
jle 0x762edff2
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 4]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp al, 0xe7
mov dword [ebp - 4], eax
je 0x762edff2
and word [ebp - 2], 0
push 0xc04
push 0
call fcn.762e9949
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x762ee01b
push dword [ebp - 0xc]
push 0
push dword [0x762f6888]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x762ee0a3
push dword [ebp - 8]
shr edi, 0x10
push 0
push eax
push dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call dword [eax + 0x84]
mov edi, eax
cmp edi, ebx
jle 0x762ee065
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmLockIMCC
test eax, eax
je 0x762ee083
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.762edd6a
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmUnlockIMCC
jmp 0x762ee083
test edi, edi
jle 0x762ee083
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.762edd6a
mov dword [ebp - 0x14], 1
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x762f6888]
call esi
push dword [ebp + 0xc]
push 0
push dword [0x762f6888]
call esi
push dword [ebp - 0x10]
call sym.IMM32.dll_ImmUnlockImeDpi
push dword [ebp - 8]
call sym.IMM32.dll_ImmUnlockIMC
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp + 8]
call sym.IMM32.dll_ImmReleaseContext
mov eax, esi
pop esi
jmp 0x762ee0c8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10