Function at 0x10091894
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x10186e10
call fcn.10145d80
mov dword [ebp - 0x34], ecx
call fcn.10090967
test eax, eax
jbe 0x100918b4
mov ecx, dword [ebp - 0x34]
call fcn.10090f61
xor esi, esi
inc esi
mov dword [ebp - 0x14], esi
call fcn.1011be11
test eax, eax
mov eax, dword [0x101f3028]
jne 0x10091aa3
mov dword [ebp - 0x1c], eax
push esi
mov edi, 0x101a2ce4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
call fcn.10004662
mov eax, dword [0x101f3028]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push str.Keyboard_LayoutPreload
push SysReAllocString
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10091a82
jmp 0x10091a59
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.100041f7
mov esi, dword [ebp - 0x24]
cmp dword [esi - 8], ebx
jne 0x10091951
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10004662
add esp, 0xc
jmp 0x10091a59
mov eax, dword [0x101f3028]
mov dword [ebp - 0x18], eax
push str.SystemCurrentControlSetControlKeyboard_Layouts_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.1000425b
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x18]
call fcn.1000e791
mov eax, dword [ebp - 0x18]
mov esi, dword [eax - 8]
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x20]
call fcn.1000401e
push eax
push str.Layout_text
push esi
lea ecx, [ebp - 0x18]
call fcn.1000401e
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1011f7a5
or esi, 0xffffffff
add esp, 0x14
cmp eax, esi
jne 0x100919d6
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10004662
add esp, 0xc
push esi
lea ecx, [ebp - 0x18]
call fcn.100041f7
push esi
lea ecx, [ebp - 0x20]
call fcn.100041f7
jmp 0x10091a4d
push esi
lea ecx, [ebp - 0x18]
call fcn.100041f7
push esi
lea ecx, [ebp - 0x20]
call fcn.100041f7
push 8
call fcn.10146645
cmp eax, ebx
pop ecx
je 0x10091a09
mov ecx, dword [0x101f3028]
mov dword [eax], ecx
mov ecx, dword [0x101f3028]
mov dword [eax + 4], ecx
mov esi, eax
jmp 0x10091a0b
xor esi, esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x38], esi
call fcn.10007845
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.10007845
cmp esi, ebx
jne 0x10091a2e
mov dword [ebp - 0x14], ebx
jmp 0x10091a3a
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.1009183f
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10004662
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10003b75
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.1000401e
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10091927
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.10003b75
lea ecx, [ebp - 0x24]
call fcn.10003b75
lea ecx, [ebp - 0x1c]
jmp 0x10091da4
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 4], 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x50]
push eax
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem0X0000080434745C63_B2F0_4784_8B67_5E12C8701A31
mov edi, SysReAllocString
push edi
mov byte [ebp - 4], 5
call fcn.101207c1
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], ebx
jle 0x10091d99
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
call fcn.10024269
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x10091d8a
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem0X0000080434745C63_B2F0_4784_8B67_5E12C8701A31_
lea ecx, [ebp - 0x10]
call fcn.10007b11
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.10024269
push eax
lea ecx, [ebp - 0x10]
call fcn.1000e81a
push ebx
push str.KeyboardLayout
push dword [ebp - 0x10]
push edi
call fcn.1011fdff
add esp, 0x10
cmp eax, ebx
je 0x10091bda
mov ecx, eax
shr ecx, 0x10
cmp cx, ax
jne 0x10091b46
movzx eax, ax
mov ecx, dword [0x101f3028]
mov dword [ebp - 0x18], ecx
push eax
lea eax, [ebp - 0x18]
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts_08X
push eax
mov byte [ebp - 4], 7
call fcn.10004662
lea eax, [ebp - 0x24]
push eax
push str.Layout_Text
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.10120490
add esp, 0x20
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], ebx
mov byte [ebp - 4], 8
jne 0x10091b96
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
jmp 0x10091d71
push 8
call fcn.10146645
cmp eax, ebx
pop ecx
je 0x10091bb7
mov ecx, dword [0x101f3028]
mov dword [eax], ecx
mov ecx, dword [0x101f3028]
mov dword [eax + 4], ecx
mov esi, eax
jmp 0x10091bb9
xor esi, esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x38], esi
call fcn.10007845
cmp esi, ebx
je 0x10091b8b
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.1009183f
jmp 0x10091b8e
mov eax, dword [0x101f3028]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push str.CLSID
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push edi
push eax
mov byte [ebp - 4], 9
call fcn.10120490
add esp, 0x14
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
mov byte [ebp - 4], 0xa
jne 0x10091c13
mov dword [ebp - 0x14], ebx
jmp 0x10091d6e
lea eax, [ebp - 0x24]
push eax
push str.Profile
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10120490
add esp, 0x14
mov eax, dword [ebp - 0x28]
cmp dword [eax - 8], ebx
mov byte [ebp - 4], 0xb
jne 0x10091c40
mov dword [ebp - 0x14], ebx
jmp 0x10091d66
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push str.SOFTWAREMicrosoftCTFTIP_sLanguageProfile0x00000804_s
push eax
call fcn.10004662
lea eax, [ebp - 0x24]
push eax
push str.Description
push dword [ebp - 0x18]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.10120490
add esp, 0x24
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
mov byte [ebp - 4], 0xc
jne 0x10091d0f
lea eax, [ebp - 0x24]
push eax
push str.SubstituteLayout
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10120490
add esp, 0x14
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 8], ebx
jne 0x10091cb1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
call fcn.10003b75
jmp 0x10091d5e
mov ecx, dword [0x101f3028]
mov dword [ebp - 0x38], ecx
push eax
lea eax, [ebp - 0x38]
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts_s
push eax
mov byte [ebp - 4], 0xe
call fcn.10004662
lea eax, [ebp - 0x24]
push eax
push str.Layout_Text
push dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.10120490
add esp, 0x20
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call fcn.10007845
lea ecx, [ebp - 0x40]
call fcn.10003b75
lea ecx, [ebp - 0x38]
call fcn.10003b75
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.10003b75
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x10091d4d
push 8
call fcn.10146645
cmp eax, ebx
pop ecx
je 0x10091d38
mov ecx, dword [0x101f3028]
mov dword [eax], ecx
mov ecx, dword [0x101f3028]
mov dword [eax + 4], ecx
mov esi, eax
jmp 0x10091d3a
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x38], esi
call fcn.10007845
cmp esi, ebx
jne 0x10091d52
mov dword [ebp - 0x14], ebx
jmp 0x10091d5e
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.1009183f
lea ecx, [ebp - 0x1c]
call fcn.10003b75
lea ecx, [ebp - 0x28]
call fcn.10003b75
lea ecx, [ebp - 0x20]
call fcn.10003b75
lea ecx, [ebp - 0x18]
call fcn.10003b75
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.10003b75
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jl 0x10091ae4
lea ecx, [ebp - 0x50]
call fcn.10024521
lea ecx, [ebp - 0x24]
call fcn.10003b75
mov eax, dword [ebp - 0x14]
call fcn.10145e58
ret