Function at 0x4d9130
Capabilities:
Set registry value

Disassembly:
mov ax, word [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esi + 0x38], ax
mov dword [esi + 0x3c], 0
call fcn.004d94a0
mov cx, word [esi + 0x38]
cmp cx, 9
je 0x4d92a9
mov edi, dword [esi + 0x68]
xor eax, eax
test edi, edi
jle 0x4d92a9
mov ebx, dword [esi + 0x64]
mov edx, ecx
and edx, 0xffff
lea ecx, [ebx + 8]
cmp dword [ecx], edx
je 0x4d9185
inc eax
add ecx, 0x20
cmp eax, edi
jl 0x4d9174
jmp 0x4d92a9
shl eax, 5
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
mov dword [esi + 0x3c], 1
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + edi]
je 0x4d91be
test eax, eax
je 0x4d91aa
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx + edi]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [ebx + edi]
push eax
push edx
call ebp
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi + 0xc]
lea ebx, [eax + edi + 0xc]
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x4d91ed
test eax, eax
je 0x4d91db
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [ebx]
push eax
push edx
call ebp
mov dword [esi + 4], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi + 0x10]
lea ebx, [eax + edi + 0x10]
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x4d921c
test eax, eax
je 0x4d920a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [ebx]
push eax
push edx
call ebp
mov dword [esi + 8], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi + 0x14]
lea ebx, [eax + edi + 0x14]
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x4d924b
test eax, eax
je 0x4d9239
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [ebx]
push eax
push edx
call ebp
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi + 0x18]
lea ebx, [eax + edi + 0x18]
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x4d927a
test eax, eax
je 0x4d9268
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [ebx]
push eax
push edx
call ebp
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi + 0x1c]
lea edi, [eax + edi + 0x1c]
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x4d92a9
test eax, eax
je 0x4d9297
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [edi]
push eax
push edx
call ebp
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d9337
mov edx, dword [0x6d2354]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
push 4
push ecx
xor eax, eax
mov ax, word [esi + 0x38]
push 4
push 0
push str.LanguageID
push edx
mov dword [esp + 0x2c], eax
call edi
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0xfde9
jne 0x4d92f4
mov eax, dword [0x6d2334]
test eax, eax
jne 0x4d9344
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
mov ecx, esi
push eax
call fcn.004dd540
mov ecx, dword [0x6d2354]
and eax, 0xffff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.SysLngID
push ecx
call edi
mov ecx, esi
call fcn.004dd8c0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4d9344
mov word [esi + 0x38], 9
mov ecx, esi
call fcn.004dd8c0
pop edi
pop esi
pop ebp
pop ebx
ret 8