Function at 0x100baa42
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 8
call fcn.10101428
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x1010b24e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
push 0xc
call fcn.10101428
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, 0x40
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.10101428
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
mov dword [edi], 0x40
add edi, 4
mov ebx, dword [ebp - 4]
call fcn.10001069
pop edx
test edx, edx
je 0x100baad6
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 4]
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000e56a
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100bab22
push 0x53
push 0x4242fec
push 6
call fcn.1010142e
add esp, 0xc
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x100bac95
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x100bab66
push 0x76
push 0x4242fec
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100bab83
push 0x76
push 0x4242fec
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x18], ebx
push 1
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.100bacef
test eax, eax
je 0x100bac8d
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.10102320
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
call fcn.10001069
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp - 0x14]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x100bac0b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x14]
call fcn.10101434
add esp, 8
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x18]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x10]
push edi
push eax
push 0xc
call fcn.10101428
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x100bac67
push eax
mov ebx, eax
call fcn.100026e7
inc eax
push eax
call fcn.10101428
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x100bac86
push eax
mov ebx, eax
call fcn.100026e7
inc eax
push eax
call fcn.10101428
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
pop eax
pop ebx
pop ecx
jmp 0x100bab2b
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.10001089
jmp 0x100baca7
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x100baccb
push ebx
call fcn.10101422
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x100bacdf
push ebx
call fcn.10101422
add esp, 4
pop ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4