Function at 0x76fd1f30
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 esi
xor ebx, ebx
mov esi, 0x100
mov dword [ebp - 8], ebx
push edi
cmp eax, esi
jb 0x76fd21ae
cmp eax, 0x101
jbe 0x76fd1f65
add eax, 0xfffffefc
cmp eax, 1
ja 0x76fd21ae
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetContext
xor edx, edx
mov dword [ebp - 0x10], eax
inc edx
mov ecx, eax
call fcn.76fc2e80
mov edi, eax
test edi, edi
je 0x76fd21ae
cmp dword [edi + 0x144], ebx
jne 0x76fd1fdc
mov esi, dword [edi + 0x128]
test esi, esi
je 0x76fd21a7
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x76fd1fd2
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
test eax, eax
je 0x76fd1fd2
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.76fd1bd4
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x76fd1fcd
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
xor esi, esi
inc esi
jmp 0x76fd1fd4
mov esi, ebx
mov dword [edi + 0x128], ebx
jmp 0x76fd2033
push ebx
push dword [ebp + 8]
mov dword [edi + 0x144], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov dword [ebp - 0x14], eax
call sym.IMM32.dll_ImmLockImeDpi
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x76fd2030
mov edx, esi
xor ecx, ecx
call fcn.76fc2470
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x76fd2030
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x76fd2048
push esi
push eax
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 8]
push ebx
call sym.IMM32.dll_ImmUnlockImeDpi
push dword [ebp - 0x10]
call sym.IMM32.dll_ImmUnlockIMC
mov eax, esi
jmp 0x76fd21b0
mov eax, dword [ebp - 0xc]
mov ebx, dword [edi + 0x140]
mov ecx, dword [eax + 0x10]
test cl, 2
je 0x76fd20ba
mov eax, dword [ebp + 0x14]
shr eax, 0x10
test ecx, 0x80000
je 0x76fd208b
push 0
push 1
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jne 0x76fd20ba
movzx ecx, word [ebp - 4]
shl ecx, 0x10
movzx ebx, bl
or ebx, ecx
jmp 0x76fd20ba
push dword [ebp - 0x14]
xor ecx, ecx
push ecx
mov word [ebp - 4], cx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_ToAsciiEx]
test eax, eax
jle 0x76fd20ba
movzx ecx, word [ebp - 4]
shl ecx, 8
movzx ebx, bl
or ebx, ecx
cmp bl, 0xe7
je 0x76fd20ba
movzx ebx, bx
mov edx, 0xc04
xor ecx, ecx
call fcn.76fc2470
mov dword [ebp - 4], eax
test eax, eax
jne 0x76fd20e3
push esi
push eax
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0xc]
jmp 0x76fd2030
push dword [ebp - 0x10]
mov dword [eax], 0x100
push 0
push eax
mov eax, dword [ebp + 0x14]
push esi
shr eax, 0x10
push eax
mov eax, dword [ebp - 0xc]
push ebx
mov esi, dword [eax + 0x84]
mov ecx, esi
call dword [0x76fdb2cc]
call esi
mov esi, eax
test esi, esi
jle 0x76fd2122
push 0
movzx eax, bl
push eax
push 0xf0001
call dword [sym.imp.MSCTF.dll_TF_Notify]
cmp esi, 0x100
jle 0x76fd218b
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x76fd215d
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
test eax, eax
je 0x76fd215d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.76fd1bd4
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x76fd215d
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
push dword [ebp - 0x18]
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0xc]
jmp 0x76fd2033
test esi, esi
jle 0x76fd215d
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea eax, [edi + 4]
push eax
push esi
call fcn.76fd1bd4
xor esi, esi
inc esi
jmp 0x76fd2163
mov esi, ebx
jmp 0x76fd2033
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10