Function at 0x40ec50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 4]
mov eax, dword [0x425304]
push edi
xor edi, edi
push ecx
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x85
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], 0x42099c
mov dword [ebp - 0x10], eax
call fcn.0041bb40
cmp eax, 1
jne 0x40eea8
mov edx, dword [0x425304]
mov eax, dword [ebp - 0x10]
xor edx, eax
test dl, 0x10
je 0x40ecb5
push 3
push edi
push edi
push edi
shr eax, 4
push edi
or eax, 0xfffffffe
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x40ee01
push eax
call dword [sym.imp.Ngs3.dll_ngsEnumUILocales]
movzx edi, ax
add esp, 4
cmp di, word [0x4257ec]
je 0x40ee01
push 0x1065
push edi
call fcn.0041d450
add esp, 8
test al, al
je 0x40ed00
movzx ecx, word [0x4257ec]
push ecx
push 4
call dword [sym.imp.Ngs3.dll_ngsSetGlobalValue]
add esp, 8
mov edx, dword [0x425618]
mov eax, dword [edx]
test eax, eax
je 0x40ed2a
mov ebx, edi
mov edi, edi
mov edi, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
push 0
push ebx
push 3
call edx
mov eax, edi
test edi, edi
jne 0x40ed10
mov eax, dword [esi + 0x40]
push 0
push 0
push 0x229
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xf
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push esi
xor eax, eax
call fcn.0040e280
push 0x80
lea edi, [ebp - 8]
call fcn.0041d6c0
mov ecx, dword [eax]
mov edx, dword [esi + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
push 4
mov eax, esi
call fcn.004119b0
mov eax, dword [esi + 0x40]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x40ee01
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
call fcn.00402620
cmp dword [edi + 0x18], 0
jne 0x40edf2
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
mov dword [ebp - 8], 0
mov edi, 0x20
mov edi, edi
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
test eax, eax
je 0x40edd1
inc dword [ebp - 8]
inc edi
cmp edi, 0x26
jl 0x40edc0
cmp dword [ebp - 8], 0
je 0x40edf2
push 0x400
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x40ed91
mov edx, dword [str.Settings]
mov ecx, dword [ebp - 0x10]
push edx
lea edi, [ebp - 8]
mov dword [0x425304], ecx
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ee45
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
mov ecx, dword [0x425304]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.Behavior
push eax
mov dword [ebp - 8], ecx
call esi
movzx ecx, word [0x4257ec]
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.Language
push eax
mov dword [ebp - 8], ecx
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x40eea8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret