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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d026
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10063068]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
mov dword [esp + 0x27c], esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1002f8ad
xor eax, eax
mov word [esp + 0x30], ax
mov edi, 7
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002f810
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.1000a770
mov ecx, esi
lea ebx, [esp + 0x20]
mov byte [esp + 0x260], 1
call fcn.10026b00
mov byte [esp + 0x260], 0
cmp dword [esp + 0x44], 8
jb 0x1002f85d
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edx, edx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x44], dx
inc eax
lea edx, [esp + 0x60]
push edx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x1002f7ea
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp ebx, 0x103
jne 0x1002f93a
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x1002f8e6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esi + 0x14], 8
jb 0x1002f8d1
mov eax, dword [esi]
jmp 0x1002f8d3
mov eax, esi
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
add esi, 0x1c
cmp esi, edi
jne 0x1002f8c7
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x260], 0xffffffff
cmp eax, ebx
je 0x1002f936
mov esi, eax
cmp eax, edi
je 0x1002f92c
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x1002f916
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x24]
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 0x1002f900
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x1002f98c
mov dword [esp + 0x260], 0xffffffff
test esi, esi
je 0x1002f98a
cmp dword [esp + 0x20], edi
je 0x1002f97c
nop
cmp dword [esi + 0x14], 8
jb 0x1002f962
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 0x1002f950
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4