Function at 0x40977e
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 0x40979e
xor esi, esi
inc esi
jmp 0x409ab3
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 0x409aa4
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 0x4097eb
push ecx
push ebx
jmp 0x409a95
mov eax, dword [edi + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4099d5
xor esi, esi
cmp word [eax], si
je 0x4099d5
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 0x409a91
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4099f0
xor esi, esi
cmp word [eax], si
je 0x4099f0
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 0x409a91
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 0x409a91
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 0x409a91
lea eax, [edi + 0x28]
xor ecx, ecx
cmp dword [eax], ecx
je 0x409a0b
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 0x409a91
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 0x409a91
push dword [ebp - 4]
mov ecx, edi
call fcn.0040a269
mov esi, eax
test esi, esi
js 0x409a91
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x409a4e
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 0x409a91
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x409a69
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 0x409a7f
push str.RelativeCachePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409826
push str.RelativeSourcePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409871
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 0x409a91
push str.Hash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409926
push str.PreferredSource
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
jmp 0x409985
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 0x409aa4
push ecx
xor eax, eax
push eax
push dword [edi + 0x14]
mov edx, 0xc0000013
mov ecx, esi
call fcn.00402297
cmp dword [ebp - 4], 0
je 0x409ab3
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