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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 9
push str.asdfjkl_
push eax
mov dword [ebp - 0x28], ebx
call fcn.00455e60
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp edi, 0xf
cmova ecx, edx
cmova esi, edx
add eax, ecx
mov dword [ebp - 0x20], eax
cmp esi, eax
je 0x456cc7
mov ecx, dword [0x48ea9c]
mov eax, dword fs:[0x2c]
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [eax + ecx*4]
mov al, byte [esi]
mov byte [ebp - 0x24], al
mov eax, dword [0x48e9e0]
cmp eax, dword [ebx + 4]
jg 0x456e89
push dword [0x48e9dc]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov ecx, 0xff
mov dword [0x48e9e4], 1
push 0x1c
and ax, cx
mov dword [0x48e9f0], 0
xor ecx, ecx
movzx eax, ax
push 0x48e9e4
push 1
mov word [0x48e9ea], cx
mov dword [0x48e9f4], ecx
mov dword [0x48e9ec], 2
mov word [0x48e9e8], ax
call dword [sym.imp.USER32.dll_SendInput]
inc esi
cmp esi, dword [ebp - 0x20]
jne 0x456c46
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
cmp edi, 0xf
jbe 0x456cf9
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x456cef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x456cef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00458ca2
add esp, 8
mov eax, dword [ebx]
xor edi, edi
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [ebp - 0x38], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 0x24], ebx
je 0x456e5d
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x48e908]
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push ecx
push dword [eax + 0x10]
push dword [eax]
call esi
test eax, eax
je 0x456e6e
cmp dword [ebp - 0x20], 0
je 0x456e6e
cmp dword [ebp - 0x28], 2
jne 0x456e5d
mov eax, dword [0x48e908]
lea ecx, [ebp - 0x2c]
push ecx
push 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0xffffffff
push ecx
push dword [eax + 8]
mov dword [ebp - 0x2c], 0
push dword [eax]
call esi
cmp edi, ebx
jae 0x456e01
mov esi, dword [ebp - 0x38]
lea eax, [edi + edi*2]
mov ebx, dword [ebp - 0x20]
inc esi
lea esi, [esi + eax*4]
cmp dword [esi + 3], ebx
jg 0x456df8
mov cl, byte [esi]
xor eax, eax
movzx edx, word [esi + 7]
test cl, cl
mov word [0x48e9ea], ax
mov dword [0x48e9f4], eax
mov eax, 2
push 0x1c
push 0x48e9e4
mov dword [ebp - 0x2c], 0
cmovne eax, dword [ebp - 0x2c]
push 1
mov dword [0x48e9e4], 1
mov dword [0x48e9f0], 0
mov dword [0x48e9ec], eax
mov word [0x48e9e8], dx
call dword [sym.imp.USER32.dll_SendInput]
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0x24]
jb 0x456d96
mov ebx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x40]
push eax
call fcn.0040fed0
mov ecx, dword [ebp - 0x40]
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp ecx, 0xffffff9b
jne 0x456e1f
cmp eax, 0x7fffffff
je 0x456e3b
cmp eax, 0x7fffffff
jg 0x456e3b
jl 0x456e2d
cmp ecx, 0xffffff9b
jae 0x456e3b
add ecx, 0x64
mov dword [ebp - 0x34], ecx
adc eax, 0
mov dword [ebp - 0x30], eax
jmp 0x456e49
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0x7fffffff
lea eax, [ebp - 0x34]
push eax
call fcn.00408cd0
add esp, 4
cmp edi, ebx
jb 0x456d24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458f01
mov esp, ebp
pop ebp
ret
push str.failed_reading_memory
lea ecx, [ebp - 0x44]
call fcn.0040a230
push 0x48a5d8
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x48e9e0
call fcn.004592f0
add esp, 4
cmp dword [0x48e9e0], 0xffffffff
jne 0x456c5c
push 0
call edi
push 0x48e9e0
mov dword [0x48e9dc], eax
call fcn.0045929f
add esp, 4
jmp 0x456c5c