Function at 0x4f011f30
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 0x4f0121ae
cmp eax, 0x101
jbe 0x4f011f65
add eax, 0xfffffefc
cmp eax, 1
ja 0x4f0121ae
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetContext
xor edx, edx
mov dword [ebp - 0x10], eax
inc edx
mov ecx, eax
call fcn.4f002e80
mov edi, eax
test edi, edi
je 0x4f0121ae
cmp dword [edi + 0x144], ebx
jne 0x4f011fdc
mov esi, dword [edi + 0x128]
test esi, esi
je 0x4f0121a7
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x4f011fd2
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
test eax, eax
je 0x4f011fd2
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.4f011bd4
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x4f011fcd
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
xor esi, esi
inc esi
jmp 0x4f011fd4
mov esi, ebx
mov dword [edi + 0x128], ebx
jmp 0x4f012033
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 0x4f012030
mov edx, esi
xor ecx, ecx
call fcn.4f002470
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4f012030
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4f012048
push esi
push eax
push dword [0x4f01a9dc]
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 0x4f0121b0
mov eax, dword [ebp - 0xc]
mov ebx, dword [edi + 0x140]
mov ecx, dword [eax + 0x10]
test cl, 2
je 0x4f0120ba
mov eax, dword [ebp + 0x14]
shr eax, 0x10
test ecx, 0x80000
je 0x4f01208b
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 0x4f0120ba
movzx ecx, word [ebp - 4]
shl ecx, 0x10
movzx ebx, bl
or ebx, ecx
jmp 0x4f0120ba
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 0x4f0120ba
movzx ecx, word [ebp - 4]
shl ecx, 8
movzx ebx, bl
or ebx, ecx
cmp bl, 0xe7
je 0x4f0120ba
movzx ebx, bx
mov edx, 0xc04
xor ecx, ecx
call fcn.4f002470
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f0120e3
push esi
push eax
push dword [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0xc]
jmp 0x4f012030
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 [0x4f01b2cc]
call esi
mov esi, eax
test esi, esi
jle 0x4f012122
push 0
movzx eax, bl
push eax
push 0xf0001
call dword [sym.imp.MSCTF.dll_TF_Notify]
cmp esi, 0x100
jle 0x4f01218b
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x4f01215d
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
test eax, eax
je 0x4f01215d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.4f011bd4
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x4f01215d
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 [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0xc]
jmp 0x4f012033
test esi, esi
jle 0x4f01215d
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.4f011bd4
xor esi, esi
inc esi
jmp 0x4f012163
mov esi, ebx
jmp 0x4f012033
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10