Function at 0x1002f490
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f926
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x214]
push edx
push esi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1002f5f5
xor eax, eax
mov word [ebp - 0x230], ax
mov edi, 7
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], 0
lea edx, [eax + 2]
jmp 0x1002f540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002f540
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x230]
call fcn.1000cf60
mov ecx, esi
lea ebx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.10028aa0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], 8
jb 0x1002f58f
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x23c]
xor edx, edx
push edx
push edx
push edx
push edx
lea ecx, [ebp - 0x234]
push ecx
mov word [ebp - 0x230], dx
inc eax
lea edx, [ebp - 0x214]
push edx
push eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x238]
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x1002f514
mov edi, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
cmp ebx, 0x103
jne 0x1002f683
mov eax, dword [ebp - 0x24c]
cmp eax, edi
je 0x1002f634
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esi + 0x14], 8
jb 0x1002f61b
mov eax, dword [esi]
jmp 0x1002f61d
mov eax, esi
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call ebx
add esi, 0x1c
cmp esi, edi
jne 0x1002f611
mov eax, dword [ebp - 0x24c]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1002f67f
mov esi, eax
cmp eax, edi
je 0x1002f675
cmp dword [esi + 0x14], 8
jb 0x1002f65f
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x24c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x1002f647
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x1002f6d4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002f6d2
cmp dword [ebp - 0x24c], edi
je 0x1002f6c2
cmp dword [esi + 0x14], 8
jb 0x1002f6a8
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x1002f696
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret 4