Function at 0x401469
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb0
mov eax, dword [0x41f060]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp byte [0x420e08], bl
push esi
mov dword [ebp - 0x2c], eax
mov esi, ecx
je 0x401499
mov al, byte [0x420e09]
jmp 0x4014d3
push str.kernel32.dll
mov byte [0x420e08], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x4014ba
mov byte [0x420e09], bl
jmp 0x4016c3
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014af
mov byte [0x420e09], 1
mov al, 1
cmp al, bl
je 0x4016c3
push edi
push 0x62
lea eax, [ebp - 6]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 8], bx
call fcn.0040d0f0
xor eax, eax
mov word [ebp + 0x5c], bx
lea edi, [ebp + 0x5e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
mov edi, 0xf003f
push edi
push ebx
push str.SoftWareMicrosoftCTFSortOrderAssemblyItem0x00000804
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], ebx
call esi
test eax, eax
jne 0x4016c2
push 0x32
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x401698
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x401698
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401698
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 9], bl
mov dword [ebp - 0x20], ebx
jbe 0x40160f
push dword [ebp - 0x20]
lea eax, [ebp + 0x5c]
push str._08x
push eax
call fcn.004020d6
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x4015e9
push 4
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push str.KeyboardLayout
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015e9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jne 0x4015e9
mov byte [ebp - 9], 1
cmp dword [ebp - 0x1c], ebx
je 0x4015f7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 9], bl
jne 0x401698
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jb 0x401588
push dword [ebp - 0x24]
lea eax, [ebp + 0x5c]
push str._08x
push eax
call fcn.004020d6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401698
mov esi, str.00000000_0000_0000_0000_000000000000
push esi
call fcn.00404cf7
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
add eax, eax
push eax
push esi
push 1
push ebx
push str.CLSID
push dword [ebp - 0x10]
call edi
push esi
call fcn.00404cf7
pop ecx
add eax, eax
push eax
push esi
push 1
push ebx
push str.Profile
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0x2c]
push 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 4
push ebx
push str.KeyboardLayout
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x18], ebx
je 0x4016a6
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x4016b4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x4016c2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404331
add ebp, 0x74
leave
ret