Function at 0x48a210
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
push esi
push edi
mov dword [esp + 0x18], ecx
jne 0x48a244
mov esi, dword [ecx]
xor edx, edx
xor eax, eax
push edx
push eax
call dword [esi + 0x34]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x27
jne 0x48a2ab
mov edx, dword [ecx + 0x48]
mov edi, dword [edx]
mov eax, edi
cmp eax, edx
je 0x48a408
mov esi, dword [ecx + 0x74]
jmp 0x48a260
cmp esi, dword [eax + 8]
mov eax, dword [eax]
je 0x48a279
cmp eax, edx
jne 0x48a260
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, edx
je 0x48a294
mov eax, dword [eax + 8]
push eax
call fcn.00489ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 8]
push edx
call fcn.00489ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x25
jne 0x48a319
mov edi, dword [ecx + 0x48]
mov esi, dword [edi]
mov eax, edi
cmp eax, esi
je 0x48a408
mov ebx, dword [ecx + 0x74]
mov edx, dword [eax + 4]
cmp ebx, dword [edx + 8]
je 0x48a2de
mov eax, edx
cmp eax, esi
jne 0x48a2c2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 4]
cmp eax, esi
je 0x48a2ff
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
push edx
call fcn.00489ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
mov edx, dword [eax + 8]
push edx
call fcn.00489ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 0x74]
test eax, eax
jne 0x48a32d
mov ecx, dword [ecx + 0x48]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x48a340
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [eax + 8]
push 0
push 0
mov dword [esp + 0x24], eax
mov edi, ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
lea ecx, [esi*4]
push ecx
call sub.MFC71U.DLL_SerializeElements
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
test esi, esi
je 0x48a3c5
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
push 0x14
rep stosd dword es:[edi], eax
call sub.MFC71U.DLL_SerializeElements
add esp, 4
push esi
push 0
push 0xa
mov edi, eax
mov eax, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x30]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_ToUnicodeEx]
movzx edi, word [edi]
lea ecx, [edi - 0x20]
jmp 0x48a3c9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x70]
cmp eax, edi
je 0x48a3d8
cmp eax, ecx
jne 0x48a3dc
test eax, eax
jne 0x48a3fe
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
cmp eax, dword [edx + 0x48]
mov dword [esp + 0x14], eax
jne 0x48a338
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x18]
push edx
call fcn.00489ac0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4