Function at 0x1001c420
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cca7d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1010e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call edi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001c645
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009f4bb
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push ebx
push esi
call edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 1
xor esi, esi
mov edi, ebx
xor eax, eax
test esi, esi
jle 0x1001c4cb
movzx ecx, word [edi]
nop dword [eax + eax]
cmp word [ebx + eax*4], cx
je 0x1001c4d8
inc eax
cmp eax, esi
jl 0x1001c4c0
push edi
push edx
lea ecx, [ebp - 0x30]
call fcn.1001d160
mov edx, dword [ebp - 0x24]
inc esi
add edi, 4
cmp esi, dword [ebp - 0x14]
jb 0x1001c4b2
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
test edi, edi
je 0x1001c5be
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x10], ecx
movzx eax, ax
cmovl ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x1001c5be
mov ebx, dword [ebp - 0x30]
nop word [eax + eax]
mov edx, dword [ebx + eax*4]
xor ecx, ecx
mov dword [ebp - 0x14], edx
xor eax, eax
movzx edx, dx
nop dword [eax]
cmp word [eax + 0x1010eb40], dx
je 0x1001c548
add eax, 0x14
inc ecx
cmp eax, 0xd20
jb 0x1001c530
xor esi, esi
jmp 0x1001c552
lea eax, [ecx + ecx*4]
lea esi, [eax*4 + 0x1010eb40]
push pe_nt_image_headers32
push 0
push edi
call fcn.100a2620
push 4
push dword [esi + 8]
push edi
call fcn.100a5922
xor eax, eax
mov word [edi + 6], ax
lea eax, [edi + 8]
push 0x80
push dword [esi + 0xc]
push eax
call fcn.100a5922
xor eax, eax
add esp, 0x24
mov word [edi + 0x106], ax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x108], eax
mov eax, dword [ebp - 0x18]
cmp word [esi], ax
sete al
mov byte [edi + 0x10c], al
add edi, 0x110
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0xc]
jl 0x1001c520
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.1009f1a9
add esp, 4
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0
test esi, esi
js 0x1001c5fd
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1001c5f6
push eax
mov eax, dword [0x101101c8]
mov ecx, 0x101101c8
call dword [eax + 0x14]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
js 0x1001c62e
test eax, eax
je 0x1001c627
push eax
mov eax, dword [0x101101c8]
mov ecx, 0x101101c8
call dword [eax + 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8