Function at 0x4459c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, edx
lea edx, [ebp - 0x2c]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
xor ecx, ecx
push esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [eax + 0xf56]
push edi
call fcn.004457fc
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push dword [0x4ab220]
push str.Keyboard_Layout
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x445e57
and dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push dword [0x4ab220]
push str.SoftwareMicrosoftCTF
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x445e4f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x2001f
push dword [0x4ab220]
mov dword [ebp - 8], ecx
push ecx
push ecx
push str.Preload
push dword [ebp - 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 8]
call fcn.0044d020
mov eax, dword [ebp - 0x18]
push dword [eax]
lea eax, [ebp - 0xc]
push str._.8X
push eax
call fcn.00449eea
mov ecx, dword [ebp - 8]
mov edx, 0x48e394
push dword [eax]
call fcn.0044cd7d
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [ebp - 8]
call fcn.0043a910
lea eax, [ebp - 8]
mov esi, 0x2001f
push eax
push esi
push dword [0x4ab220]
push str.Substitutes
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x445ada
mov ecx, dword [ebp - 8]
call fcn.0044d020
lea ecx, [ebp - 8]
call fcn.0043a910
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push esi
push dword [0x4ab220]
push ecx
push ecx
push 0x49ab08
push dword [ebp - 0x10]
call ebx
mov esi, eax
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 8]
call fcn.0044d020
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x445b82
add edi, 4
mov ecx, eax
cmp dword [edi - 4], 2
jne 0x445b76
push dword [edi + 0xc]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
push dword [edi]
push dword [edi + 8]
push str._sLanguageProfile0x_.8X_s
push eax
call fcn.00449eea
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
push 4
push str.Enable
call fcn.0044ce32
mov ecx, dword [ebp - 0x20]
add esp, 0x24
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push 0x14
pop eax
add edi, eax
lea eax, [edi - 4]
cmp eax, ecx
jne 0x445b1d
lea ecx, [ebp - 8]
call fcn.0043a910
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0x2001f
push dword [0x4ab220]
push ecx
push ecx
push str.Assemblies
push dword [ebp - 0x10]
call ebx
mov esi, eax
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 8]
call fcn.0044d020
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0xc], esi
push dword [edi]
push str.0x_.8X34745C63_B2F0_4784_8B67_5E12C8701A31
push eax
call fcn.00449eea
add esp, 0xc
lea ecx, [ebp - 0xc]
xor edx, edx
push edx
push ecx
push edx
push 0x20006
push dword [0x4ab220]
push edx
push edx
push dword [eax]
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp - 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
test esi, esi
je 0x445c0e
lea ecx, [ebp - 0xc]
call fcn.0043a910
jmp 0x445e47
lea ecx, [ebp - 8]
call fcn.0043a910
mov eax, dword [edi]
shl eax, 0x10
or eax, dword [edi]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.KeyboardLayout
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebp - 1], 0
mov esi, str.00000000_0000_0000_0000_000000000000
mov eax, str.Default
je 0x445c56
mov ecx, dword [ebp - 0xc]
mov edx, eax
push esi
call fcn.0044cd7d
push esi
jmp 0x445c7f
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x28]
je 0x445c8e
push 0x14
pop ecx
cmp dword [esi], 2
je 0x445c6f
add esi, ecx
cmp esi, dword [ebp - 0x28]
jne 0x445c61
jmp 0x445c8e
push dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.0044cd7d
push dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, str.Profile
call fcn.0044cd7d
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0043a910
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0x2001f
push dword [0x4ab220]
push ecx
push ecx
push str.HiddenDummyLayouts
push dword [ebp - 0x10]
call ebx
mov esi, eax
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 8]
call fcn.0044d020
lea ecx, [ebp - 8]
call fcn.0043a910
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0x2001f
push dword [0x4ab220]
push ecx
push ecx
push str.SortOrder
push dword [ebp - 0x10]
call ebx
mov esi, eax
test esi, esi
jne 0x445e47
mov ecx, dword [ebp - 8]
call fcn.0044d020
cmp byte [ebp - 1], 0
je 0x445d8b
push dword [edi]
and dword [ebp - 0xc], esi
lea eax, [ebp - 0x20]
push str.AssemblyItem0x_.8X34745C63_B2F0_4784_8B67_5E12C8701A3100000000
push eax
call fcn.00449eea
add esp, 0xc
lea ecx, [ebp - 0xc]
xor edx, edx
push edx
push ecx
push edx
push 0x20006
push dword [0x4ab220]
push edx
push edx
push dword [eax]
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp - 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
test esi, esi
jne 0x445c01
mov eax, dword [edi]
shl eax, 0x10
or eax, dword [edi]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push esi
push str.KeyboardLayout
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
mov esi, str.00000000_0000_0000_0000_000000000000
push esi
mov edx, str.Default
call fcn.0044cd7d
push esi
jmp 0x445e2e
mov edi, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x28]
je 0x445e45
push 0x14
pop eax
cmp dword [edi], 2
je 0x445dab
add edi, eax
cmp edi, dword [ebp - 0x28]
jne 0x445d9a
jmp 0x445e45
mov eax, dword [ebp - 0x18]
and dword [ebp - 0xc], 0
push 0
push dword [eax]
lea eax, [ebp - 0x20]
push str.AssemblyItem0x_.8X34745C63_B2F0_4784_8B67_5E12C8701A31_.8X
push eax
call fcn.00449eea
add esp, 0x10
lea ecx, [ebp - 0xc]
xor edx, edx
push edx
push ecx
push edx
push 0x20006
push dword [0x4ab220]
push edx
push edx
push dword [eax]
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp - 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
test esi, esi
jne 0x445c01
mov eax, dword [edi + 4]
shl eax, 0x10
or eax, dword [edi + 4]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push esi
push str.KeyboardLayout
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [edi + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, str.Default
call fcn.0044cd7d
push dword [edi + 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, str.Profile
call fcn.0044cd7d
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0043a910
xor esi, esi
lea ecx, [ebp - 8]
call fcn.0043a910
lea ecx, [ebp - 0x10]
call fcn.0043a910
lea ecx, [ebp - 0x14]
call fcn.0043a910
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x445e86
mov edx, dword [ebp - 0x28]
push ecx
call fcn.00446539
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
push 0x14
cdq
pop edi
idiv edi
imul edx, eax, 0x14
call fcn.0043a508
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret