Function at 0x409653
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 0x409673
xor esi, esi
inc esi
jmp 0x409988
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 8]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, eax
test esi, esi
js 0x409979
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 0x4096c0
push ecx
push ebx
jmp 0x40996a
mov eax, dword [edi + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4098aa
xor esi, esi
cmp word [eax], si
je 0x4098aa
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 0x409966
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4098c5
xor esi, esi
cmp word [eax], si
je 0x4098c5
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 0x409966
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 0x409966
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 0x409966
lea eax, [edi + 0x28]
xor ecx, ecx
cmp dword [eax], ecx
je 0x4098e0
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 0x409966
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 0x409966
push dword [ebp - 4]
mov ecx, edi
call fcn.0040a0fb
mov esi, eax
test esi, esi
js 0x409966
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x409923
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 0x409966
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x40993e
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 0x409954
push str.RelativeCachePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x4096fb
push str.RelativeSourcePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409746
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 0x409966
push str.Hash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x4097fb
push str.PreferredSource
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x40985a
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 0x409979
push ecx
xor eax, eax
push eax
push dword [edi + 0x14]
mov edx, 0xc0000013
mov ecx, esi
call fcn.00402258
cmp dword [ebp - 4], 0
je 0x409988
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8