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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d80
call fcn.01004230
push ebx
push esi
push edi
push 7
pop ecx
lea eax, [ebp - 4]
push eax
mov esi, 0x10012d0
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0xf003f
xor esi, esi
push esi
push 0x1001170
push 0x80000001
mov dword [ebp - 0xc], esi
xor ebx, ebx
call edi
test eax, eax
jne 0x1002cd5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x460]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1002ad2
mov word [ebp - 0x460], si
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002b14
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push esi
push 0x100119c
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1002ccc
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
push 0x10011b0
push 0x80000002
call edi
test eax, eax
jne 0x1002cc3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20f0]
push eax
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x254]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0x105
mov dword [ebp - 0x1c], 0x1c8e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1002cba
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3d80]
push eax
push esi
push esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x1c8e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c4b
lea eax, [ebp - 0x3d80]
push eax
lea eax, [ebp - 0x20f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002c4b
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002c0b
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 8
push esi
call edi
cmp ebx, esi
jne 0x1002c23
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
je 0x1002cba
jmp 0x1002c2c
mov dword [ebx + 4], eax
mov ebx, eax
cmp ebx, esi
je 0x1002c85
push 0x20a
push esi
mov dword [ebx + 4], esi
call edi
cmp eax, esi
mov dword [ebx], eax
je 0x1002c85
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20f0]
push eax
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x105
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x1c8e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002b8f
mov edi, dword [ebp - 0xc]
cmp edi, esi
je 0x1002cba
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002c97
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
cmp eax, esi
je 0x1002cab
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [edi]
call ebx
mov eax, edi
mov edi, dword [edi + 4]
push eax
mov dword [ebp - 0xc], edi
call ebx
cmp edi, esi
jne 0x1002c94
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret