Function at 0x401a10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x4250e0]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
mov esi, dword [0x42cc58]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SOFTWAREMicrosoftCTFSortOrderAssemblyItem0x0000080434745C63_B2F0_4784_8B67_5E12C8701A31
add esi, 0x96
push 0x42c480
mov dword [esp + 0x18], esi
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x42c480
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a81
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0040a10d
add esp, 0x1b0
ret
push ebx
push ebp
push str.65653599_5030_4C0F_8871_83F6AFDE5098
push 0x43cb20
call edi
xor ebp, ebp
xor ebx, ebx
add esi, 0x5c
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
push ebx
lea ecx, [esp + 0xf8]
push str._08d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x100]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bbe
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push str.CLSID
push ecx
mov dword [esp + 0x38], 0x2e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d09
lea edx, [esp + 0x2c]
push edx
lea eax, [esi - 0x5c]
push eax
call edi
xor eax, eax
jmp 0x401b20
mov cl, byte [eax + 0x43cb20]
cmp cl, byte [esp + eax + 0x2c]
jne 0x401b43
mov dl, byte [eax + 0x43cb21]
cmp dl, byte [esp + eax + 0x2d]
jne 0x401b42
add eax, 2
cmp eax, 0x26
jl 0x401b20
jmp 0x401b43
inc eax
cmp eax, 0x26
jne 0x401b51
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi - 0x2e]
push edx
push 0
push 0
push str.profile
push eax
mov dword [esp + 0x38], 0x2e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d09
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.KeyboardLayout
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d09
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jg 0x401bbe
inc ebx
add esi, 0x60
cmp ebx, 0x64
jl 0x401aa2
cmp ebp, 2
jl 0x401d15
cmp byte [esp + 0x1c4], 1
jne 0x401d15
sub ebp, 1
mov dword [esp + 0x10], ebp
mov ebx, ebp
js 0x401c12
mov eax, dword [esp + 0x18]
lea edx, [ebp + ebp*2]
shl edx, 5
lea esi, [edx + eax + 0x2e]
nop
lea ecx, [esi - 0x2e]
push ecx
lea edx, [esi + 0x32]
push edx
call edi
push esi
lea eax, [esi + 0x60]
push eax
call edi
mov ecx, dword [esi + 0x2e]
mov dword [esi + 0x8e], ecx
dec ebx
sub esi, 0x60
test ebx, ebx
jge 0x401bf0
mov esi, dword [esp + 0x18]
lea edx, [ebp + ebp*2]
shl edx, 5
lea ebx, [edx + esi]
lea eax, [ebx + 0x60]
push eax
push esi
call edi
lea ecx, [ebx + 0x8e]
push ecx
add esi, 0x2e
push esi
call edi
mov edx, dword [ebx + 0xbc]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edx
mov dword [esp + 0x18], edi
test ebp, ebp
jl 0x401d02
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx]
push edi
lea ecx, [esp + 0xf8]
push str._08d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x100]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401cec
lea edi, [esi - 0x2e]
push edi
call ebx
mov edx, dword [esp + 0x14]
push eax
push edi
push 1
push 0
push str.CLSID
push edx
call ebp
push esi
call ebx
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push 0
push str.profile
push eax
call ebp
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esi + 0x2e]
push ecx
push 1
push 0
push str.KeyboardLayout
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
inc edi
add esi, 0x60
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x18], edi
jle 0x401c60
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x401d1a
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1bc]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0040a10d
add esp, 0x1b0
ret