Function at 0x10019200
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100224a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x10019255
mov eax, dword [esi]
push esi
mov edi, dword [eax + 4]
cmp edi, fcn.10019870
jne 0x10019556
call fcn.10019870
sub dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x10019498
mov byte [esi + 0x48], 0
push dword [esi + 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x3c], 0
push dword [esi + 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x40], 0
push dword [esi + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x44], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xfc]
mov dword [ebp - 0x30], 0
test ecx, ecx
jne 0x1001950b
cmp dword [esi + 0x4c], 0
lea ecx, [esi + 0x4c]
jne 0x1002707a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100194e1
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
push ecx
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x10066528]
call edi
mov ecx, dword [ebp - 0x24]
call fcn.10019ac0
test al, al
jne 0x100193d4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001931c
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
mov edi, dword [ecx + 0x24]
mov ecx, edi
call dword [0x10066528]
call edi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10019337
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
mov edi, dword [ecx + 0x18]
mov ecx, edi
call dword [0x10066528]
call edi
push 0
push ecx
mov ecx, esi
call fcn.100189a6
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x10019574
cmp byte [esi + 0xe0], 0
jne 0x10027086
xor eax, eax
lea edx, [esi + 0xd0]
mov edi, edx
lea ecx, [esi + 0xc0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100195cc
cmp dword [esi + 0x5c], eax
jne 0x10019585
push 0
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x100084ec
push dword [esi + 0x5c]
mov edi, eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x100270a1
xor al, al
push 0
push 1
push dword [ebp - 0x24]
mov ecx, esi
mov byte [esi + 0x70], al
call fcn.100189e2
push ecx
push dword [ebp - 0x24]
mov ecx, esi
call fcn.10018dda
push dword [ebp - 0x24]
mov ecx, esi
call fcn.10018e0e
cmp dword [esi + 0xfc], 0
jne 0x10019462
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10019447
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
push ecx
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x10066528]
call edi
test eax, eax
js 0x10019447
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jne 0x10019447
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
push edx
push eax
lea eax, [esi + 0x100]
lea ecx, [esi + 0x14]
push eax
lea edx, [esi + 0xfc]
call fcn.10019bf6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x10019658
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10019462
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x10066528]
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001947d
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x10066528]
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10019498
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x10066528]
call edi
mov dword [ebp - 4], 5
test esi, esi
je 0x100194ba
mov eax, dword [esi]
push esi
mov edi, dword [eax + 8]
cmp edi, fcn.10019a10
jne 0x10019565
call fcn.10019a10
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0xe0], 0
jne 0x100195ae
xor eax, eax
lea edi, [esi + 0xc0]
mov ecx, 8
rep stosd dword es:[edi], eax
push eax
push ecx
mov ecx, esi
call fcn.100189a6
jmp 0x10019462
mov eax, dword [ecx]
push dword [esi + 0x100]
push ecx
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x10066528]
call edi
mov edx, dword [esi + 0xfc]
mov ebx, eax
test edx, edx
je 0x10019547
mov dword [esi + 0xfc], 0
mov ecx, dword [edx]
push edx
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x10066528]
call edi
mov dword [esi + 0x100], 0
jmp 0x100192c5
mov ecx, edi
call dword [0x10066528]
call edi
jmp 0x10019255
mov ecx, edi
call dword [0x10066528]
call edi
jmp 0x100194ba
lea ecx, [esi + 0xc0]
lea edx, [esi + 0xd0]
jmp 0x10019375
xor eax, eax
mov edi, ecx
push 0
push 0
push 0
stosd dword es:[edi], eax
mov cl, 1
push 3
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, edx
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10013c20
mov eax, dword [ebp - 0x30]
jmp 0x10019389
mov edx, dword [esi + 0x5c]
mov cl, 1
push 0
push 0
push 0
push 0
call fcn.10013c20
mov byte [esi + 0xe0], 0
jmp 0x100194ee
mov dword [esi + 0x5c], 0
xor eax, eax
mov byte [esi + 0x70], 0
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10013913
test al, al
jne 0x100195f9
call fcn.10012c10
test al, al
je 0x1001960f
push 0
push 0
push 0
push 3
xor edx, edx
mov cl, 1
call fcn.10013c20
jmp 0x100193d4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [0x10064ac0]
test eax, eax
je 0x10019628
cmp dword [eax + 0x58], 0
jne 0x1001966d
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
xor dl, dl
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
xor cl, cl
call fcn.1001e57b
push ecx
mov ecx, esi
call fcn.1001e4f0
jmp 0x100195f9
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x10066528]
call edi
jmp 0x10019447
mov byte [ebp - 0x28], 1
jmp 0x1001962c
xor edx, edx
call fcn.1001dc5f
jmp 0x100192d2
push 0
push 0
push 0
push 0
mov cl, 1
call fcn.10013c20
mov byte [esi + 0xe0], 0
jmp 0x10019359
mov eax, 0x804
cmp di, ax
je 0x100193ac
mov al, 1
jmp 0x100193ae