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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0xef0], 0x10
push ebx
mov ebx, dword [ecx + 0xeec]
push esi
lea esi, [ecx + 0xedc]
push edi
jb 0x10024aff
mov ecx, dword [esi]
jmp 0x10024b01
mov ecx, esi
mov eax, 0xe
mov edx, 0x100bd370
cmp ebx, eax
cmovb eax, ebx
push eax
call fcn.10004f40
mov edi, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x10024b88
cmp ebx, 0xe
jb 0x10024b88
xor eax, eax
cmp ebx, 0xe
setne al
test eax, eax
jne 0x10024b88
cmp edi, 0x30
jl 0x10024b3b
cmp edi, 0x39
jle 0x10024b65
cmp edi, 0x41
jl 0x10024b45
cmp edi, 0x5a
jle 0x10024b65
cmp edi, 0x60
jl 0x10024b4f
cmp edi, 0x69
jle 0x10024b65
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10024b60
cmp eax, 0x30
jl 0x10024b60
cmp eax, 0x39
jle 0x10024b65
cmp edi, 8
jne 0x10024b88
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
pop edi
not eax
pop esi
and eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x14], 0x10
jb 0x10024b92
mov eax, dword [esi]
jmp 0x10024b94
mov eax, esi
mov ebx, dword [sym.imp.MSVCR120.dll_strncmp]
push 0x1c
push str.com.miHoYo.enterprise.NGHSoD
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x10024bc4
cmp dword [esi + 0x14], 0x10
jb 0x10024bb3
mov esi, dword [esi]
push 0xf
push str.com.miHoYo.bh3.
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x10024bc9
cmp edi, 8
je 0x10024b65
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx esi, ax
mov ax, si
mov ebx, esi
shr ax, 0xa
and ebx, 0x3ff
movzx eax, ax
mov dword [ebp - 0x80], eax
cmp bx, 0x12
jne 0x10024c28
cmp edi, 0x20
je 0x10024c13
cmp edi, 0x30
jl 0x10024bfe
cmp edi, 0x39
jle 0x10024c13
cmp edi, 0x60
jl 0x10024c08
cmp edi, 0x69
jle 0x10024c13
mov eax, dword [ebp + 0x10]
add eax, 0xffffffd0
cmp eax, 9
ja 0x10024c52
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 0xc
cmp bx, 4
je 0x10024f73
cmp bx, 0x11
jne 0x10024c52
cmp edi, 0xe2
jne 0x10024c52
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x10024c13
push 0x14
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [sym.imp.IMM32.dll_ImmGetProperty]
test al, 4
je 0x10024c77
cmp bx, 0x12
je 0x10024c77
cmp bx, 0x11
jne 0x10024f73
cmp edi, 0x60
jl 0x10024c85
cmp edi, 0x69
jle 0x10024f73
cmp edi, 0x6e
je 0x10024f73
cmp edi, 0x90
je 0x10024f73
cmp edi, 0xc
je 0x10024f73
lea eax, [edi - 0x70]
cmp eax, 0xb
jbe 0x10024f73
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x10024ee2
mov eax, 0x15
mov dword [ebp - 0x24], 0x2a001f
xor cl, cl
mov word [ebp - 8], ax
mov dword [ebp - 0x20], 0xc000a
xor eax, eax
mov dword [ebp - 0x1c], 0x100007
mov dword [ebp - 0x18], 0x22001b
mov dword [ebp - 0x14], 0x13001d
mov dword [ebp - 0x10], 0x8000b
mov dword [ebp - 0xc], 0xe0039
cmp word [ebp + eax*2 - 0x24], bx
je 0x10024d12
inc eax
cmp eax, 0xf
jb 0x10024d03
jmp 0x10024d14
mov cl, 1
cmp bx, 0x16
jne 0x10024d25
cmp word [ebp - 0x80], 2
je 0x10024eab
mov eax, 0x1809
cmp si, ax
je 0x10024eab
mov eax, 0x414
cmp si, ax
je 0x10024eab
mov eax, 0x2801
cmp si, ax
je 0x10024eab
mov eax, 0x809
cmp si, ax
je 0x10024eab
mov eax, 0x4009
cmp si, ax
je 0x10024eab
mov eax, 0x81d
cmp si, ax
je 0x10024eab
mov eax, 0x41d
cmp si, ax
je 0x10024eab
cmp esi, 0x39
je 0x10024eab
cmp esi, 8
je 0x10024eab
mov eax, 0x413
cmp si, ax
je 0x10024eab
mov eax, 0x813
cmp si, ax
je 0x10024eab
mov eax, 0x861
cmp si, ax
je 0x10024eab
mov eax, 0x461
cmp si, ax
je 0x10024eab
cmp esi, 6
je 0x10024eab
cmp esi, 5
je 0x10024eab
cmp esi, 0xb
je 0x10024eab
cmp esi, 0xe
je 0x10024eab
cmp esi, 0x3c
je 0x10024eab
cmp esi, 0x4b
je 0x10024eab
cmp esi, 0x53
je 0x10024eab
cmp esi, 0x57
je 0x10024eab
cmp esi, 0x40
je 0x10024eab
cmp esi, 0x26
je 0x10024eab
cmp esi, 0x27
je 0x10024eab
mov eax, 0x7c2e
cmp si, ax
je 0x10024eab
cmp esi, 0x6e
je 0x10024eab
cmp esi, 0x2f
je 0x10024eab
cmp esi, 0x4c
je 0x10024eab
cmp esi, 0x3a
je 0x10024eab
cmp esi, 0x7a
je 0x10024eab
cmp esi, 0x4e
je 0x10024eab
mov eax, 0xc3b
cmp si, ax
je 0x10024eab
mov eax, 0x43b
cmp si, ax
je 0x10024eab
mov eax, 0x83b
cmp si, ax
je 0x10024eab
mov eax, 0x1000
cmp si, ax
je 0x10024eab
mov eax, 0x7814
cmp si, ax
je 0x10024eab
mov eax, 0x82
cmp si, ax
je 0x10024eab
cmp esi, 0x48
je 0x10024eab
cmp esi, 0x63
je 0x10024eab
cmp esi, 0x15
je 0x10024eab
test cl, cl
je 0x10024f73
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa5
call ebx
mov esi, 0x8000
test si, ax
jne 0x10024ee2
push 0xa2
call ebx
test si, ax
je 0x10024f73
push 0xa4
call ebx
test si, ax
je 0x10024f73
movdqa xmm0, xmmword [0x100d12c0]
xor eax, eax
movdqu xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x4c], 0x2e
movdqa xmm0, xmmword [0x100d12a0]
movdqu xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x48], 0x23
movdqa xmm0, xmmword [0x100d12f0]
movdqu xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x44], 0x22
movdqa xmm0, xmmword [0x100d1250]
paddd xmm0, xmmword [0x100d11b0]
paddd xmm0, xmmword [0x100d1300]
movdqu xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x2a
mov dword [ebp - 0x2c], 0x91
mov dword [ebp - 0x28], 0x13
cmp edi, dword [ebp + eax*4 - 0x7c]
je 0x10024f73
inc eax
cmp eax, 0x16
jb 0x10024f52
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad688
mov esp, ebp
pop ebp
ret 0xc