Function at 0xd290660
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa60
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov eax, 4
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa48], eax
lea eax, [ebp - 0xa34]
push eax
push 0x2001f
xor edi, edi
push edi
push 0xd2732e4
push 0x80000002
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa38], edi
call fcn.0d2a7e10
test eax, eax
jne 0xd290908
lea ecx, [ebp - 0xa40]
push ecx
push 0x2001f
push eax
push 0xd273208
push 0x80000002
call fcn.0d2a7e10
test eax, eax
je 0xd2906f9
mov edx, dword [ebp - 0xa34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xa48]
push eax
mov eax, dword [ebp - 0xa40]
lea ecx, [ebp - 0xa3c]
push ecx
lea edx, [ebp - 0xa50]
push edx
push 0
push 0xd2731d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0xd2908b6
lea ecx, [ebp - 0xa5c]
push ecx
mov ecx, dword [ebp - 0xa34]
push 0
push 0
push 0
lea edx, [ebp - 0xa44]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0xa44], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xd2908b6
lea ecx, [ecx]
push 0x104
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0xa60]
push eax
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0xa4c]
push edx
lea eax, [ebp - 0x210]
push 0xd273258
push eax
inc edi
call sub.msvcrt.dll_swscanf_s
add esp, 0x1c
cmp eax, 4
jne 0xd29087b
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
test eax, eax
jne 0xd290875
push 0xd273468
lea edx, [ebp - 0x210]
push edx
push 0xd271a6c
lea eax, [ebp - 0x828]
push 0x104
push eax
call sub.msvcrt.dll_swprintf_s
lea ecx, [ebp - 0x828]
push ecx
push 0xd273300
lea edx, [ebp - 0x418]
push 0x104
push edx
call sub.msvcrt.dll_swprintf_s
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0xd271a6c
lea edx, [ebp - 0x620]
push 0x104
push edx
call sub.msvcrt.dll_swprintf_s
add esp, 0x38
lea eax, [ebp - 0x620]
push eax
push 0x80000002
call esi
lea ecx, [ebp - 0x418]
push ecx
push 0x80000002
call esi
lea edx, [ebp - 0x210]
push edx
push 0x80000002
call esi
mov ecx, dword [ebp - 0xa34]
lea eax, [ebp - 0x210]
push eax
push ecx
call esi
cmp dword [ebp - 0xa3c], 0
jbe 0xd29087b
dec dword [ebp - 0xa3c]
jmp 0xd29087b
inc dword [ebp - 0xa38]
lea edx, [ebp - 0xa5c]
push edx
mov edx, dword [ebp - 0xa34]
push 0
push 0
push 0
lea eax, [ebp - 0xa44]
push eax
lea ecx, [ebp - 0x210]
push ecx
push edi
push edx
mov dword [ebp - 0xa44], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0xd290770
mov eax, dword [ebp - 0xa48]
mov edx, dword [ebp - 0xa40]
push eax
lea ecx, [ebp - 0xa38]
push ecx
push 4
push 0
push 0xd2731d0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xa40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
cmp dword [ebp - 0xa38], 0
jne 0xd2908fe
push 0xd273208
push 0x80000002
call esi
mov ecx, dword [ebp - 0xa34]
push ecx
call edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret