Function at 0x55ba00
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x55ba13
add esp, 0xfffffff0
call fcn.00404ab4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov ecx, esi
xor edx, edx
mov eax, ebx
call fcn.00453434
mov byte [ebx + 0x1b4], 0
mov byte [ebx + 0x1b5], 1
mov byte [ebx + 0x447], 0
xor eax, eax
mov dword [ebx + 0x958], eax
xor eax, eax
mov dword [ebx + 0x95c], eax
xor eax, eax
mov dword [ebx + 0x1d0], eax
mov byte [ebx + 0x2e9], 0
mov byte [ebx + 0x2f6], 0
mov byte [ebx + 0x2eb], 1
mov byte [ebx + 0x43c], 1
mov byte [ebx + 0x2ec], 0
mov byte [ebx + 0x331], 0
mov dword [ebx + 0x434], 0xffffffff
mov byte [ebx + 0x2f4], 0
mov byte [ebx + 0x2ea], 1
mov eax, dword [0x65a970]
mov eax, dword [eax]
mov eax, dword [eax + 0x540]
mov dword [ebx + 0x440], eax
mov byte [ebx + 0x444], 0
mov byte [ebx + 0x953], 0
mov byte [ebx + 0x954], 0
mov byte [ebx + 0x955], 0
mov byte [ebx + 0xa90], 0
mov byte [ebx + 0xa91], 0
mov byte [ebx + 0x2f5], 1
xor eax, eax
mov dword [ebx + 0x32c], eax
mov byte [ebx + 0x330], 0
mov word [ebx + 0xa92], 0
mov ecx, esi
mov dl, 1
mov eax, dword [0x451618]
call fcn.00453434
mov edi, eax
mov dword [ebx + 0x960], edi
mov eax, edi
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 1
mov eax, dword [0x435a48]
call fcn.0043cdbc
mov dword [ebx + 0x964], eax
mov dl, 1
mov eax, dword [0x435a48]
call fcn.0043cdbc
mov dword [ebx + 0x2f0], eax
mov eax, esi
mov dword [ebx + 0x1b0], eax
mov eax, dword [eax + 0x190]
mov dword [eax + 0x20], 0xcc0020
mov byte [ebx + 0x445], 0
mov byte [ebx + 0x446], 0
xor eax, eax
mov dword [ebx + 0x1bc], eax
mov word [ebx + 0x1c0], 0
mov word [ebx + 0x1c2], 0
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
push eax
call sub.user32.dll_GetKeyboardLayout
mov edx, eax
mov eax, ebx
call fcn.0055fc6c
mov eax, dword [ebx + 0x1b0]
mov edx, dword [eax + 0x48]
mov eax, ebx
call fcn.0046ad40
mov eax, dword [ebx + 0x1b0]
mov edx, dword [eax + 0x4c]
mov eax, ebx
call fcn.0046ad74
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x2f8], eax
xor eax, eax
mov dword [ebx + 0x300], eax
mov dword [ebx + 0x304], 0x80000000
mov word [ebx + 0x308], 0x3fff
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x2fc], eax
xor eax, eax
mov dword [ebx + 0x310], eax
mov dword [ebx + 0x314], 0x80000000
mov word [ebx + 0x318], 0x3fff
xor eax, eax
mov dword [ebx + 0x320], eax
mov dword [ebx + 0x324], 0x80000000
mov word [ebx + 0x328], 0x3fff
xor edx, edx
mov eax, ebx
call fcn.0046b7a4
mov eax, ebx
call fcn.00453924
or dword [eax + 0x54], 2
xor eax, eax
mov dword [ebx + 0x1c8], eax
call fcn.00639aa0
test al, al
je 0x55bc52
mov eax, dword [0x659e08]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x55bd0c
call fcn.0063dd80
mov dword [ebx + 0x1cc], eax
jmp 0x55bcd7
call fcn.00639a98
test al, al
je 0x55bc76
mov eax, dword [0x659e08]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x55bd1c
call fcn.0063dd80
mov dword [ebx + 0x1cc], eax
jmp 0x55bcd7
call fcn.00639a90
test al, al
je 0x55bc9a
mov eax, dword [0x659e08]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x55bd2c
call fcn.0063dd80
mov dword [ebx + 0x1cc], eax
jmp 0x55bcd7
call fcn.00639aa8
test al, al
je 0x55bcbe
mov eax, dword [0x659e08]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x55bd40
call fcn.0063dd80
mov dword [ebx + 0x1cc], eax
jmp 0x55bcd7
mov eax, dword [0x659e08]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x55bd50
call fcn.0063dd80
mov dword [ebx + 0x1cc], eax
mov eax, ebx
call fcn.00560f10
mov eax, ebx
call fcn.0055e91c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x55bcfc
call fcn.00404b0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret