Function at 0x577ef7
Capabilities:
Set registry value

Disassembly:
push 0x144
mov eax, 0x58c4b6
call fcn.00531c83
mov edi, ecx
push str.Software_
lea ecx, [ebp - 0x148]
call fcn.004036c4
xor ebx, ebx
lea ecx, [edi + 8]
push str.package
mov dword [ebp - 4], ebx
call fcn.00409398
mov esi, eax
test dword [esi + 0x10], 0x400000
jne 0x577f37
mov esi, dword [esi]
push esi
call fcn.004036a7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x148]
call fcn.00404ee2
cmp dword [ebp - 0x134], 0x10
lea ecx, [ebp - 0x14c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x577fce
push str.lang
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], ebx
push eax
lea ecx, [edi + 8]
call fcn.00413130
imul eax, dword [edi + 0xc], 0x30
mov ecx, dword [ebp - 0x118]
add eax, dword [edi + 8]
cmp ecx, eax
je 0x577fce
add ecx, 0x18
mov edx, ecx
test dword [ecx + 0x10], 0x400000
jne 0x577fb3
mov edx, dword [ecx]
call fcn.00409a16
push eax
push edx
push 1
push ebx
push str.lang
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, str.InitPrefs
push ebx
call fcn.004036a7
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x148]
call fcn.00404ee2
cmp dword [ebp - 0x134], 0x10
lea ecx, [ebp - 0x14c]
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
push SysReAllocString
call esi
mov dword [ebp - 0x150], eax
test eax, eax
jne 0x578193
imul ecx, dword [edi + 0xc], 0x30
mov esi, dword [edi + 8]
add ecx, esi
cmp esi, ecx
je 0x578193
lea ebx, [esi + 0x18]
test dword [ebx - 8], 0x400000
mov eax, esi
jne 0x578045
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x130]
call fcn.004036c4
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
movsx eax, byte [eax]
push eax
call fcn.00555140
mov edx, dword [ebp - 0x130]
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x130]
je 0x578093
cmp ecx, 0x10
cmovae eax, edx
movsx eax, byte [eax]
sub eax, 0x20
jmp 0x57809c
cmp ecx, 0x10
cmovae eax, edx
movsx eax, byte [eax]
mov dword [ebp - 0x118], eax
cmp ecx, 0x10
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x130]
cmovae eax, edx
mov byte [eax], cl
mov eax, dword [ebx + 0x10]
shr eax, 0x14
test al, 1
je 0x578102
test dword [ebx + 0x10], 0x400000
je 0x5780d1
mov dword [ebp - 0x118], ebx
jmp 0x5780d9
mov eax, dword [ebx]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x11c], 0x10
lea edx, [ebp - 0x130]
mov ecx, ebx
cmovae edx, dword [ebp - 0x130]
call fcn.00409a16
push eax
push dword [ebp - 0x118]
push 1
push 0
push edx
jmp 0x578163
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0054ae60
push dword [ebx]
lea eax, [ebp - 0x114]
push 0x5c5a9c
push 0x104
push eax
call fcn.004131f5
lea ecx, [ebp - 0x114]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x578139
sub ecx, edx
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
push ecx
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x114]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.00403ac2
imul eax, dword [edi + 0xc], 0x30
add esi, 0x30
add ebx, 0x30
add eax, dword [edi + 8]
cmp esi, eax
jne 0x578038
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.00403ac2
mov eax, dword [ebp - 0x150]
call fcn.00531c2d
ret