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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d8
mov edx, dword [ebp + 0x14]
mov eax, dword [0x1046064]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x4d4], edx
lea edx, [ebp - 0x4c0]
push edx
push 0x2000000
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x4cc], ecx
mov dword [ebp - 0x4c4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10102e7
cmp dword [0x10466a0], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b8], ebx
jne 0x10102bc
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x4c8]
push eax
push ebx
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x4b8]
mov dword [ebp - 0x4d8], 0x50
push dword [ebp - 0x4c0]
mov dword [ebp - 0x4d0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x101029a
cmp eax, ebx
jne 0x10102ef
cmp dword [ebp - 0x4c8], 1
jne 0x10231bb
cmp dword [ebp - 0x4c8], 2
je 0x10231cd
cmp dword [0x10466a4], ebx
jne 0x102320b
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x101029a
push dword [ebp - 0x4cc]
push esi
push edi
call fcn.01004cfc
test eax, eax
jl 0x101029a
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, [edi + 0x208]
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [edi + 0x410]
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
cmp dword [ebp - 0x4bc], ebx
je 0x1010402
push edi
push 0x7fffffff
push dword [ebp - 0x4bc]
call dword [fcn.01004da8]
cmp eax, 0xffffffff
je 0x1010426
inc dword [ebp - 0x4b8]
cmp dword [0x10466a0], ebx
je 0x101019c
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
jne 0x101043f
pop edi
pop esi
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10466a0], ebx
jne 0x1023265
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c4]
pop ebx
call fcn.01001b01
leave
ret 0x14
mov dword [ebp - 0x4c4], ebx
jmp 0x10102c8
cmp eax, 0x103
jne 0x102321e
jmp 0x10102ac
push dword [ebp - 0x4b8]
push dword [ebp - 0x4bc]
call dword [fcn.01004e80]
test edi, edi
mov esi, eax
jne 0x1023229
push dword [ebp + 0x18]
lea eax, [esi + 0x410]
push dword [ebp + 0x10]
push eax
push esi
call dword [ebp - 0x4d4]
test edi, edi
jne 0x1023247
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4b8]
cmp eax, dword [ebp - 0x4cc]
jl 0x1010364
xor ebx, ebx
push dword [ebp - 0x4bc]
call dword [0x10103cc]
jmp 0x10102ba
push 5
call dword [fcn.01020318]
cmp eax, ebx
mov dword [ebp - 0x4bc], eax
je 0x1010426
jmp 0x101027f
cmp eax, esi
ja 0x101029a
jmp 0x1010213
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x101029a
test eax, eax
jne 0x101039c
jmp 0x1010380
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4b8], ebx
jle 0x10103b9
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
and edi, 1
jmp 0x1010364
cmp dword [ebp - 0x4c8], 2
jne 0x101029a
jmp 0x1010206
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
push esi
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
cmp eax, ebx
je 0x101029a
jmp 0x1010419
cmp word [ebp - 0xa4], 0x2a
jne 0x101029a
jmp 0x101021f
mov dword [ebp - 0x4c4], ebx
jmp 0x10102ac
lea eax, [esi + 0x208]
cmp word [eax], 0x21
je 0x1010380
push eax
push dword [ebp - 0x4c0]
call ebx
jmp 0x1010432
lea eax, [esi + 0x208]
cmp word [eax], 0x21
jne 0x101039c
push eax
push dword [ebp - 0x4c0]
call ebx
jmp 0x101039c
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]