Function at 0x1001ab8
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 [0x100413c]
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 0x1001d70
cmp dword [0x100414c], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b8], ebx
jne 0x1001d62
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 0x1001c88
cmp eax, ebx
jne 0x1001c9c
cmp dword [ebp - 0x4c8], 1
je 0x1001b9c
cmp dword [ebp - 0x4c8], 2
jne 0x1001c88
cmp dword [ebp - 0x4c8], 2
jne 0x1001be6
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.01001495
test eax, eax
jl 0x1001c88
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 0x1001c88
cmp eax, esi
ja 0x1001c88
cmp dword [0x1004148], ebx
je 0x1001bfc
cmp word [ebp - 0xa4], 0x2a
jne 0x1001c88
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x1001c88
push dword [ebp - 0x4cc]
push esi
push edi
call fcn.01001495
test eax, eax
jl 0x1001c88
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, [edi + 0x208]
push eax
call fcn.01001495
test eax, eax
jl 0x1001c88
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [edi + 0x410]
push eax
call fcn.01001495
test eax, eax
jl 0x1001c88
cmp dword [ebp - 0x4bc], ebx
jne 0x1001c6a
push 5
call dword [sym.imp.COMCTL32.dll_DPA_Create]
cmp eax, ebx
mov dword [ebp - 0x4bc], eax
je 0x1001c81
push edi
push 0x7fffffff
push dword [ebp - 0x4bc]
call dword [sym.imp.COMCTL32.dll_DPA_InsertPtr]
cmp eax, 0xffffffff
jne 0x1001c88
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x4b8]
cmp dword [0x100414c], ebx
je 0x1001b29
jmp 0x1001ca9
cmp eax, 0x103
je 0x1001ca9
mov dword [ebp - 0x4c4], ebx
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
je 0x1001d60
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4b8], ebx
jle 0x1001d54
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
and edi, 1
push dword [ebp - 0x4b8]
push dword [ebp - 0x4bc]
call dword [sym.imp.COMCTL32.dll_DPA_GetPtr]
test edi, edi
mov esi, eax
je 0x1001d0a
lea eax, [esi + 0x208]
cmp word [eax], 0x21
je 0x1001d0a
push eax
push dword [ebp - 0x4c0]
call ebx
test eax, eax
jne 0x1001d37
push dword [ebp + 0x18]
lea eax, [esi + 0x410]
push dword [ebp + 0x10]
push eax
push esi
call dword [ebp - 0x4d4]
test edi, edi
je 0x1001d37
lea eax, [esi + 0x208]
cmp word [eax], 0x21
jne 0x1001d37
push eax
push dword [ebp - 0x4c0]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4b8]
cmp eax, dword [ebp - 0x4cc]
jl 0x1001cd9
xor ebx, ebx
push dword [ebp - 0x4bc]
call dword [sym.imp.COMCTL32.dll_DPA_Destroy]
pop edi
pop esi
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001d76
mov dword [ebp - 0x4c4], ebx
cmp dword [0x100414c], ebx
je 0x1001d85
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c4]
pop ebx
call fcn.01002aac
leave
ret 0x14