Function at 0x404460
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, 0x408248
mov edi, 0x408240
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.00405da0
lea eax, [ebp - 0x44]
mov esi, 0x40823c
push 1
push eax
mov dword [ebp - 0x28], esi
call fcn.004046f3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406176
lea ecx, [ebp - 0x44]
call fcn.004060b3
cmp dword [ebp - 0x18], 0
je 0x4044ca
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4045a6
lea eax, [ebp - 4]
push 0x262
push eax
push 0x40a3ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 8]
push eax
call fcn.00405a4a
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004046f3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406176
lea ecx, [ebp - 0x44]
call fcn.004060b3
cmp dword [ebp - 0x18], 0
je 0x4045d4
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4045d4
push 0x40a3dc
lea ecx, [ebp - 0x28]
call fcn.00404913
cmp dword [ebp - 0x18], 0
jne 0x40453e
and dword [ebp - 8], 0
jmp 0x40454a
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.00406023
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.004063eb
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.0040642c
push eax
push 1
push 0
push 0x40a170
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.00406405
lea ecx, [ebp - 0x44]
call fcn.004060b3
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.00406023
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.004060b3
lea ecx, [ebp - 4]
call fcn.0040676c
jmp 0x4046ea
push 0
push 0x40a3c0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00405fb4
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.00404823
pop ecx
pop ecx
mov ecx, eax
call fcn.00403d63
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004042ff
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00406176
lea ecx, [ebp - 0x60]
call fcn.004060b3
lea ecx, [ebp - 0xa4]
call fcn.004060b3
lea ecx, [ebp - 0x7c]
call fcn.004060b3
lea ecx, [ebp - 0x44]
call fcn.004060b3
cmp dword [ebp - 0x18], 0
jne 0x404652
and dword [ebp - 8], 0
jmp 0x40465e
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.00406023
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.004063eb
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.0040642c
push eax
push 1
push 0
push 0x40a170
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.00406405
lea ecx, [ebp - 0x44]
call fcn.004060b3
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.00406023
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.004060b3
cmp dword [ebp - 4], 0
je 0x4046ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4