Function at 0x406290
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x20]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sym._RegCreateKeyW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4062e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + 0x54]
mov eax, dword [ebp - 0x20]
mov edx, str.DisplayName
call sym._reg_set_string_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x40]
mov eax, dword [ebp - 0x20]
mov edx, str.ImagePath
call sym._reg_set_string_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x44]
mov eax, dword [ebp - 0x20]
mov edx, str.Group
call sym._reg_set_string_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x50]
mov eax, dword [ebp - 0x20]
mov edx, str.ObjectName
call sym._reg_set_string_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x5c]
mov eax, dword [ebp - 0x20]
mov edx, str.Description
call sym._reg_set_string_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x60]
mov eax, dword [ebp - 0x20]
mov edx, str.DependOnService
call sym._reg_set_multisz_value
mov ebx, eax
test eax, eax
jne 0x4062c7
mov ecx, dword [esi + 0x64]
mov eax, dword [ebp - 0x20]
mov edx, str.DependOnGroup
call sym._reg_set_multisz_value
mov ebx, eax
test eax, eax
jne 0x4062c7
lea eax, [esi + 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Start
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
lea eax, [esi + 0x3c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ErrorControl
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
lea eax, [esi + 0x34]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.Type
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
xor eax, eax
lea edi, [esi + 0x58]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.PreshutdownTimeout
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], edi
mov dword [esp + 4], str.PreshutdownTimeout
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
cmp dword [esi + 0x78], 0
mov eax, dword [ebp - 0x20]
jne 0x40651f
cmp dword [esi + 0x48], 0
je 0x406509
xor ecx, ecx
add esi, 0x48
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41b5c0
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
xor eax, eax
test ebx, 0xfffffffd
cmove ebx, eax
jmp 0x4062c7
mov dword [esp + 4], 0x41b5c0
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov ebx, eax
push edx
push edx
jmp 0x4064f9
lea edx, [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x1c], 1
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 4], str.WOW64
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4062c7
mov eax, dword [ebp - 0x20]
jmp 0x4064c1