Function at 0x76fc90a2
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], eax
inc ecx
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x18], edi
mov ebx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], ecx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x76fc950d
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmLockImeDpi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x76fc950d
mov esi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
and eax, 0x80000
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x18], edx
je 0x76fc91b4
test eax, eax
je 0x76fc91bc
mov esi, dword [ebp - 4]
mov dword [ebp - 0x2c], 1
cmp esi, 9
je 0x76fc9278
cmp esi, 0x12
je 0x76fc921b
cmp esi, 0x24
je 0x76fc91c7
cmp esi, 0x10000
je 0x76fc9169
cmp esi, 0x20000
jne 0x76fc93c7
test edi, edi
je 0x76fc9193
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.76fca7f5
mov dword [ebp - 0x20], eax
test eax, eax
je 0x76fc93c7
mov ecx, dword [ebp + 0x10]
mov edx, ebx
test ecx, ecx
je 0x76fc92c7
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push ecx
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.76fca7f5
jmp 0x76fc92ba
test eax, eax
je 0x76fc9134
and dword [ebp - 0x2c], edx
mov esi, dword [ebp - 4]
jmp 0x76fc92eb
test edi, edi
je 0x76fc91f6
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
mov edx, edi
push eax
push 8
push dword [ebp + 0xc]
call fcn.76fca6ca
mov dword [ebp - 0x20], eax
test eax, eax
je 0x76fc93c7
mov ecx, dword [ebp + 0x10]
mov edx, ebx
test ecx, ecx
je 0x76fc92ca
push ecx
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp + 0x14]
call fcn.76fca6ca
jmp 0x76fc9269
test edi, edi
je 0x76fc924a
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
mov edx, edi
push eax
push 8
push dword [ebp + 0xc]
call fcn.76fca532
mov dword [ebp - 0x20], eax
test eax, eax
je 0x76fc93c7
mov ecx, dword [ebp + 0x10]
mov edx, ebx
test ecx, ecx
je 0x76fc92ca
push ecx
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp + 0x14]
call fcn.76fca532
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x76fc93c7
jmp 0x76fc92ca
test edi, edi
je 0x76fc92a2
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.76fca89a
mov dword [ebp - 0x20], eax
test eax, eax
je 0x76fc93c7
mov ecx, dword [ebp + 0x10]
mov edx, ebx
test ecx, ecx
je 0x76fc92c7
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push ecx
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.76fca89a
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x76fc93c7
and dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x76fc92db
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], eax
test edx, edx
je 0x76fc92eb
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x38]
call fcn.76fc807e
test eax, eax
jle 0x76fc93bd
cmp esi, 9
je 0x76fc9461
cmp esi, 0x12
je 0x76fc9410
cmp esi, 0x24
je 0x76fc933a
cmp esi, 0x10000
je 0x76fc932c
cmp esi, 0x20000
jne 0x76fc937a
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx + 0x20]
shr ebx, 2
and ebx, 1
jmp 0x76fc937a
mov esi, dword [ebp - 0x24]
test edi, edi
je 0x76fc9358
push dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov ecx, edi
mov edx, dword [ebp + 0xc]
add eax, esi
push eax
call fcn.76fc8004
test eax, eax
je 0x76fc9377
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x76fc9374
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 0x14]
add eax, esi
push eax
call fcn.76fc8004
test eax, eax
je 0x76fc9377
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x118]
test eax, eax
je 0x76fc938e
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 0x14]
call sym.IMM32.dll_ImmUnlockIMC
test ebx, ebx
je 0x76fc93bd
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push esi
mov esi, dword [eax + 0x8c]
mov ecx, esi
push dword [ebp - 0x14]
call dword [0x76fdb2cc]
call esi
mov ebx, eax
cmp dword [ebp - 0x2c], 0
je 0x76fc94d5
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], 0x20000
jne 0x76fc94d5
cmp dword [ebp - 0x30], esi
je 0x76fc947a
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 0x18], eax
push ecx
mov ecx, dword [ebp + 8]
sete al
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.76fca7f5
mov edi, eax
test edi, edi
je 0x76fc947a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xc]
jae 0x76fc9469
xor ebx, ebx
jmp 0x76fc947a
mov esi, dword [ebp - 0x24]
test edi, edi
je 0x76fc9439
mov eax, dword [esi + 0x28]
mov edx, dword [ebp + 0xc]
add eax, esi
push ecx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov ecx, edi
add eax, esi
push eax
call fcn.76fc7fb9
test eax, eax
je 0x76fc9377
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x76fc9374
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 0x14]
add eax, esi
push ecx
push eax
push dword [esi + 4]
mov eax, dword [esi + 8]
add eax, esi
push eax
call fcn.76fc7fb9
jmp 0x76fc9370
xor ebx, ebx
inc ebx
jmp 0x76fc937a
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x34], esi
je 0x76fc94bf
mov edx, dword [ebp + 0x14]
xor eax, eax
cmp dword [ebp + 0x18], eax
push ecx
mov ecx, dword [ebp + 0x10]
sete al
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.76fca7f5
mov esi, eax
test esi, esi
je 0x76fc94bf
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x10]
jae 0x76fc94ae
xor ebx, ebx
jmp 0x76fc94bf
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call sub.ntdll.dll_memcpy
add esp, 0xc
test edi, edi
je 0x76fc94ca
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x76fc94d5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x76fc94eb
push eax
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
test eax, eax
je 0x76fc9501
push eax
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x28]
call sym.IMM32.dll_ImmUnlockImeDpi
mov eax, ebx
jmp 0x76fc950f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14