Function at 0x461376
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x46162e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x830]
push eax
xor ecx, ecx
push 0xf003f
push ecx
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x828], ecx
call ebx
test eax, eax
jne 0x46162d
lea eax, [ebp - 0x82c]
push eax
push 0xf003f
push 0
push str.CommmonSoft
push dword [ebp - 0x830]
call ebx
test eax, eax
je 0x461420
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push str.CommmonSoft
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46162d
lea eax, [ebp - 0x828]
push eax
push 0xf003f
push 0
push str.SoftInfo
push dword [ebp - 0x82c]
call ebx
xor ebx, ebx
test eax, eax
je 0x46146b
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftInfo
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46162d
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.005991a0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x461488
mov esi, dword [esi]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0043de2c
push 0x104
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.005991a0
add esp, 0x14
mov dword [ebp - 0x834], 0xbb8
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0059cb70
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0043a85e
call fcn.0043bc24
push 0x208
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.005991a0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0043adbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x838]
add esp, 0x24
push 4
push eax
push 4
push ebx
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x828]
call esi
test edi, edi
je 0x4615fd
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005991a0
push 0x208
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.005991a0
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005991a0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059ca70
lea eax, [ebp - 0x20c]
push str._ctn
push eax
call fcn.0059ca80
add esp, 0x34
mov dword [ebp - 0x834], 0xbb8
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059cb70
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043a85e
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0043adbe
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x4615e5
mov edi, dword [edi]
push 0x104
push edi
push 1
push ebx
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x828]
call esi
cmp dword [ebp - 0x828], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x461614
push dword [ebp - 0x828]
call esi
cmp dword [ebp - 0x82c], 0
je 0x461625
push dword [ebp - 0x82c]
call esi
push dword [ebp - 0x830]
call esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret 8