Function at 0x1012f56
Capabilities:
Delete registry value
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d4
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x1046080]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x4d0], ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0x2000000
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov dword [ebp - 0x4c8], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10131be
cmp dword [0x1046bf8], edi
mov dword [ebp - 0x4b8], edi
mov dword [ebp - 0x4bc], edi
jne 0x10130de
push esi
mov esi, 0x104
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x4c4]
push eax
push edi
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x4bc]
mov dword [ebp - 0x4d4], 0x50
push dword [ebp - 0x4c0]
mov dword [ebp - 0x4cc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x10130bd
cmp eax, edi
jne 0x10137a5
cmp dword [ebp - 0x4c4], 1
jne 0x101f5af
cmp dword [ebp - 0x4c4], 2
je 0x101f5c1
cmp dword [0x1046728], edi
jne 0x101f5ff
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10130bb
push ebx
push esi
push edi
call fcn.010047c4
test eax, eax
jl 0x10130bb
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, [edi + 0x208]
push eax
call fcn.010047c4
test eax, eax
jl 0x10130bb
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [edi + 0x410]
push eax
call fcn.010047c4
test eax, eax
jl 0x10130bb
cmp dword [ebp - 0x4b8], 0
je 0x1013bc4
push edi
push 0x7fffffff
push dword [ebp - 0x4b8]
call dword [fcn.01006f90]
cmp eax, 0xffffffff
je 0x10131d6
xor edi, edi
inc dword [ebp - 0x4bc]
cmp dword [0x1046bf8], edi
je 0x1012fc1
mov eax, dword [ebp - 0x4b8]
cmp eax, edi
jne 0x1013bdf
pop esi
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1046bf8], edi
jne 0x101f661
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c8]
pop edi
pop ebx
call fcn.01001b2f
leave
ret 0x14
test edi, edi
mov eax, dword [ebp - 0x4b8]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
jne 0x101f61d
push dword [ebp + 0x18]
lea eax, [esi + 0x410]
push dword [ebp + 0x10]
push eax
push esi
call dword [ebp - 0x4d0]
test edi, edi
jne 0x101f63f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc ebx
cmp ebx, dword [ebp - 0x4bc]
jl 0x101316b
xor edi, edi
push dword [ebp - 0x4b8]
call dword [0x1013234]
jmp 0x10130dd
mov dword [ebp - 0x4c8], edi
jmp 0x10130ea
cmp eax, esi
jbe 0x1013038
jmp 0x10130bd
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10130bb
test eax, eax
je 0x101317f
jmp 0x101319b
cmp eax, 0x103
je 0x10130cf
jmp 0x101f612
push 5
call dword [fcn.010073a4]
test eax, eax
mov dword [ebp - 0x4b8], eax
jne 0x10130a0
jmp 0x10131d6
mov eax, dword [eax]
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x4bc], eax
jle 0x10131ad
mov edi, dword [ebp + 0x10]
and edi, 1
jmp 0x101316b
cmp dword [ebp - 0x4c4], 2
je 0x101302b
jmp 0x10130bd
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.010047c4
test eax, eax
jl 0x10130bd
push esi
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
cmp eax, edi
jne 0x10131c9
jmp 0x10130bd
cmp word [ebp - 0xa4], 0x2a
je 0x1013044
jmp 0x10130bd
mov dword [ebp - 0x4c8], edi
jmp 0x10130cf
lea eax, [esi + 0x208]
cmp word [eax], 0x21
je 0x101317f
push eax
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10131e2
lea eax, [esi + 0x208]
cmp word [eax], 0x21
jne 0x101319b
push eax
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x101319b
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]