Function at 0x404669
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, 0x408250
mov edi, 0x408248
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.00405f80
lea eax, [ebp - 0x44]
mov esi, 0x408244
push 1
push eax
mov dword [ebp - 0x28], esi
call fcn.004048fc
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406356
lea ecx, [ebp - 0x44]
call fcn.00406293
cmp dword [ebp - 0x18], 0
je 0x4046d3
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4047af
lea eax, [ebp - 4]
push 0x28a
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 8]
push eax
call fcn.00405c2a
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004048fc
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406356
lea ecx, [ebp - 0x44]
call fcn.00406293
cmp dword [ebp - 0x18], 0
je 0x4047dd
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4047dd
push str.Common_Files
lea ecx, [ebp - 0x28]
call fcn.00404b1c
cmp dword [ebp - 0x18], 0
jne 0x404747
and dword [ebp - 8], 0
jmp 0x404753
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00406203
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.004065cb
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.0040660c
push eax
push 1
push 0
push str.CommonFilesDir
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.004065e5
lea ecx, [ebp - 0x44]
call fcn.00406293
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406203
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.00406293
lea ecx, [ebp - 4]
call fcn.00406962
jmp 0x4048f3
push 0
push str.Program_FilesCommon_Files
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00406194
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebp - 0xa4]
push 0
push eax
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00404a2c
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f43
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004044df
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00406356
lea ecx, [ebp - 0x60]
call fcn.00406293
lea ecx, [ebp - 0xa4]
call fcn.00406293
lea ecx, [ebp - 0x7c]
call fcn.00406293
lea ecx, [ebp - 0x44]
call fcn.00406293
cmp dword [ebp - 0x18], 0
jne 0x40485b
and dword [ebp - 8], 0
jmp 0x404867
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00406203
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.004065cb
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.0040660c
push eax
push 1
push 0
push str.CommonFilesDir
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.004065e5
lea ecx, [ebp - 0x44]
call fcn.00406293
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406203
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.00406293
cmp dword [ebp - 4], 0
je 0x4048f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4