Function at 0x7630e021
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov ebx, 0x100
cmp eax, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jb 0x7630e0c6
cmp eax, 0x101
jbe 0x7630dea4
cmp eax, 0x103
jbe 0x7630e0c6
cmp eax, 0x105
ja 0x7630e0c6
push esi
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetContext
push eax
mov dword [ebp - 8], eax
call sym.IMM32.dll_ImmLockIMC
mov esi, eax
cmp esi, edi
jne 0x7630dec3
xor esi, esi
jmp 0x7630e0b6
cmp dword [esi + 0x144], edi
jne 0x7630df12
mov ebx, dword [esi + 0x128]
cmp ebx, edi
je 0x7630e0a3
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmLockIMCC
cmp eax, edi
je 0x7630df07
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7630dd6a
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmUnlockIMCC
mov dword [ebp - 0x14], 1
mov dword [esi + 0x128], edi
jmp 0x7630e0a3
push edi
push dword [ebp + 8]
mov dword [esi + 0x144], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov dword [ebp - 0x18], eax
call sym.IMM32.dll_ImmLockImeDpi
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x7630e0a3
push ebx
push edi
call fcn.76309949
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x7630e0a3
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x7630df62
push edi
jmp 0x7630e008
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test al, 2
mov ecx, dword [esi + 0x140]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
je 0x7630dff2
test eax, 0x80000
je 0x7630dfb3
push 0
push 1
lea eax, [ebp + 0xe]
push eax
push dword [ebp - 0xc]
mov eax, edi
shr eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jne 0x7630dff2
movzx eax, word [ebp + 0xe]
mov ecx, dword [ebp - 4]
shl eax, 0x10
and ecx, 0xff
or eax, ecx
mov dword [ebp - 4], eax
jmp 0x7630dff2
push dword [ebp - 0x18]
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc]
mov eax, edi
shr eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_ToAsciiEx]
test eax, eax
jle 0x7630dff2
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 4]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp al, 0xe7
mov dword [ebp - 4], eax
je 0x7630dff2
and word [ebp - 2], 0
push 0xc04
push 0
call fcn.76309949
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x7630e01b
push dword [ebp - 0xc]
push 0
push dword [0x76316888]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x7630e0a3
push dword [ebp - 8]
shr edi, 0x10
push 0
push eax
push dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call dword [eax + 0x84]
mov edi, eax
cmp edi, ebx
jle 0x7630e065
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmLockIMCC
test eax, eax
je 0x7630e083
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7630dd6a
push dword [esi + 0x12c]
call sym.IMM32.dll_ImmUnlockIMCC
jmp 0x7630e083
test edi, edi
jle 0x7630e083
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7630dd6a
mov dword [ebp - 0x14], 1
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x76316888]
call esi
push dword [ebp + 0xc]
push 0
push dword [0x76316888]
call esi
push dword [ebp - 0x10]
call sym.IMM32.dll_ImmUnlockImeDpi
push dword [ebp - 8]
call sym.IMM32.dll_ImmUnlockIMC
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp + 8]
call sym.IMM32.dll_ImmReleaseContext
mov eax, esi
pop esi
jmp 0x7630e0c8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10