Function at 0x404fb9
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, 0x409280
mov edi, 0x409278
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.00401b09
lea eax, [ebp - 0x44]
mov esi, 0x409274
push 1
push eax
mov dword [ebp - 0x28], esi
call fcn.0040524c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b8b
lea ecx, [ebp - 0x44]
call fcn.00401b92
cmp dword [ebp - 0x18], 0
je 0x405023
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4050ff
lea eax, [ebp - 4]
push 0x28b
push eax
push 0x40b468
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 8]
push eax
call fcn.0040657a
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0040524c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b8b
lea ecx, [ebp - 0x44]
call fcn.00401b92
cmp dword [ebp - 0x18], 0
je 0x40512d
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40512d
push 0x40b458
lea ecx, [ebp - 0x28]
call fcn.0040546c
cmp dword [ebp - 0x18], 0
jne 0x405097
and dword [ebp - 8], 0
jmp 0x4050a3
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.00406aca
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.00406e00
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.00401e5c
push eax
push 1
push 0
push 0x40b1e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.00401c24
lea ecx, [ebp - 0x44]
call fcn.00401b92
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.00406aca
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.00401b92
lea ecx, [ebp - 4]
call fcn.00407052
jmp 0x405243
push 0
push 0x40b43c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00406a5b
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.0040537c
pop ecx
pop ecx
mov ecx, eax
call fcn.00404877
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404e2f
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00406b8b
lea ecx, [ebp - 0x60]
call fcn.00401b92
lea ecx, [ebp - 0xa4]
call fcn.00401b92
lea ecx, [ebp - 0x7c]
call fcn.00401b92
lea ecx, [ebp - 0x44]
call fcn.00401b92
cmp dword [ebp - 0x18], 0
jne 0x4051ab
and dword [ebp - 8], 0
jmp 0x4051b7
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.00406aca
lea eax, [ebp - 0x44]
push 0x104
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], esi
call fcn.00406e00
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc], eax
call fcn.00401e5c
push eax
push 1
push 0
push 0x40b1e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
call fcn.00401c24
lea ecx, [ebp - 0x44]
call fcn.00401b92
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.00406aca
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [edi], esi
call fcn.00401b92
cmp dword [ebp - 4], 0
je 0x405243
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4