Function at 0x1001e412
Capabilities:
Get keyboard layout

Disassembly:
push 0x2c
mov eax, 0x10022935
call fcn.1001fdbd
mov ebx, ecx
mov dword [ebp - 0x38], ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
push ecx
push eax
mov edx, dword [eax]
mov esi, dword [edx + 0x24]
mov ecx, esi
call dword [0x10066528]
call esi
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
js 0x1001e4e9
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1001e4b6
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov eax, dword [ecx]
push edx
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x10066528]
call esi
mov esi, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jne 0x1001e49e
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x1001e49e
cmp byte [ebx + 0xe0], 0
jne 0x100288f5
push 8
pop ecx
xor eax, eax
lea edi, [ebx + 0xc0]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
push 0
mov dword [ebx + 0x5c], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebx + 0x5c]
mov edx, eax
call fcn.1001de47
mov byte [ebx + 0x70], al
test edi, edi
js 0x1001e4e9
cmp dword [ebx + 0x5c], 0
jne 0x10028911
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1001e4df
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
mov eax, edi
call fcn.1001fd6c
ret 0xc
xor eax, eax
mov byte [ebx + 0x48], al
jmp 0x1001e4c4
xor eax, eax
mov cl, 1
push eax
push eax
push eax
push eax
call fcn.10013c20
mov esi, dword [ebp - 0x14]
mov byte [ebx + 0xe0], 0
jmp 0x1001e48e
push 0x208
call fcn.1001ec41
mov edi, eax
pop ecx
test edi, edi
je 0x10028ac2
xor eax, eax
mov dword [ebp - 0x24], 0x104
xor edx, edx
mov word [edi], ax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 4], 1
mov esi, dword [eax]
push edx
push 1
push eax
mov ecx, dword [esi + 0x10]
call dword [0x10066528]
call dword [esi + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x10028a55
mov ebx, edi
test ecx, ecx
je 0x10028a52
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov esi, dword [eax]
push 1
push eax
mov ecx, dword [esi + 0x10]
call dword [0x10066528]
call dword [esi + 0x10]
cmp dword [ebp - 0x14], 1
mov dword [ebp - 0x34], eax
jne 0x10028a29
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x60]
mov ecx, esi
call dword [0x10066528]
call esi
mov edx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.1005ca64
cmp eax, 1
jne 0x10028a0e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x24]
xor edx, edx
dec ecx
mov dword [ebp - 0x20], edx
mov esi, dword [eax]
push ecx
push ebx
push edx
push dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
push eax
call dword [0x10066528]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x20]
lea ebx, [ebx + eax*2]
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10028a29
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10028a44
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
cmp dword [ebp - 0x34], 0
jne 0x10028a52
mov ecx, dword [ebp - 0x14]
jmp 0x10028965
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10028a70
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
xor eax, eax
cmp word [edi], ax
je 0x10028abb
lea esi, [ebx + 0x3c]
cmp byte [ebx + 0x48], al
jne 0x10028a8b
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov dword [esi], eax
mov ecx, edi
call fcn.10032536
push eax
push edi
mov ecx, esi
call fcn.10028dad
push dword [ebx + 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov dword [ebx + 0x40], eax
push dword [ebx + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 1
push edi
call fcn.1001ec6a
pop ecx
mov edi, dword [ebp - 0x1c]
jmp 0x1001e4c4