Function at 0x10015b34
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 8
call fcn.1002748d
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x1002c201
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.1002748d
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.1002748d
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.10001000
pop edx
test edx, edx
je 0x10015bc8
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 4]
call fcn.10027487
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000646c
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 0x10015c14
push 0x53
push 0x40113df
push 6
call fcn.10027499
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 0x10015d87
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
call fcn.10001000
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10015c58
push 0x76
push 0x40113df
push 4
call fcn.10027499
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10015c75
push 0x76
push 0x40113df
push 1
call fcn.10027499
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.10015de1
test eax, eax
je 0x10015d7f
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.10027ca0
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.10001000
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 0x10015cfd
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.100274ab
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.1002748d
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 0x10015d59
push eax
mov ebx, eax
call fcn.10004c15
inc eax
push eax
call fcn.1002748d
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 0x10015d78
push eax
mov ebx, eax
call fcn.10004c15
inc eax
push eax
call fcn.1002748d
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 0x10015c1d
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.10001b6d
jmp 0x10015d99
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10027487
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10015dbd
push ebx
call fcn.10027487
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10015dd1
push ebx
call fcn.10027487
add esp, 4
pop ebx
call fcn.10027487
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4