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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x44], ebx
je 0x409772
xor esi, esi
inc esi
jmp 0x409a87
mov eax, dword [edi + 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x409a78
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [edi + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4097bf
push ecx
push ebx
jmp 0x409a69
mov eax, dword [edi + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4099a9
xor esi, esi
cmp word [eax], si
je 0x4099a9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [edi + 0x18]
push 1
push esi
push str.RelativeCachePath
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4099c4
xor esi, esi
cmp word [eax], si
je 0x4099c4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [edi + 0x1c]
push 1
push esi
push str.RelativeSourcePath
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
push 4
lea eax, [edi + 0x20]
push eax
push 4
xor eax, eax
push eax
push str.Priority
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
push 4
lea eax, [edi + 0x24]
push eax
push 4
xor eax, eax
push eax
push str.Signed
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
lea eax, [edi + 0x28]
xor ecx, ecx
cmp dword [eax], ecx
je 0x4099df
push 4
push eax
push 4
push ecx
push str.HashType
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
push dword [edi + 0x2c]
lea eax, [edi + 0x30]
push eax
push 3
xor eax, eax
push eax
push str.Hash
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
push dword [ebp - 4]
mov ecx, edi
call fcn.0040a23a
mov esi, eax
test esi, esi
js 0x409a65
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x409a22
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push str.PreferredSource
push dword [ebp - 4]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x409a3d
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push str.ContainerResource
push dword [ebp - 4]
call ebx
jmp 0x409a53
push str.RelativeCachePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x4097fa
push str.RelativeSourcePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409845
push str.HashType
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409a65
push str.Hash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x4098fa
push str.PreferredSource
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409959
push str.ContainerResource
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x409a78
push ecx
xor eax, eax
push eax
push dword [edi + 0x14]
mov edx, 0xc0000013
mov ecx, esi
call fcn.00402289
cmp dword [ebp - 4], 0
je 0x409a87
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8