Function at 0x1002ef21
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x10062338]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 0x82c], ebx
mov word [ebp - 0x414], ax
cmp dword [ebx], esi
je 0x1002f418
push edi
push 0xa
or eax, 0xffffffff
lea edi, [ebx + 4]
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebx], esi
mov cx, word [0x10062a38]
test cx, cx
je 0x1002ef78
mov ax, word [0x10062c48]
test ax, ax
jne 0x1002ef8c
xor cl, cl
call fcn.1002f428
mov cx, word [0x10062a38]
mov ax, word [0x10062c48]
test cx, cx
je 0x1002efa9
test ax, ax
je 0x1002efa9
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp word [ebp - 0x414], 0
je 0x1002f417
push 0x20019
xor edi, edi
lea ecx, [ebp - 0x854]
push 0x1000f688
push 0x80000002
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x84c], edi
call fcn.1002ae1d
mov ebx, dword [ebp - 0x854]
test eax, eax
jne 0x1002f39e
xor eax, eax
lea ecx, [ebp - 0x854]
mov word [ebp - 0x824], ax
mov esi, 0x104
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], esi
push eax
lea eax, [ebp - 0x824]
push eax
push 0x10062c48
call fcn.1002fabd
test eax, eax
je 0x1002f05b
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], esi
push eax
lea eax, [ebp - 0x824]
push eax
push 0x10062a38
lea ecx, [ebp - 0x854]
call fcn.1002fabd
test eax, eax
jne 0x1002f39e
xor eax, eax
mov dword [ebp - 0x848], edi
mov word [ebp - 0x61e], ax
lea ecx, [ebp - 0x848]
push 0x20019
lea eax, [ebp - 0x824]
mov dword [ebp - 0x844], edi
push eax
push ebx
mov dword [ebp - 0x840], edi
call fcn.1002ae1d
test eax, eax
jne 0x1002f389
push edi
push edi
push edi
mov word [ebp - 0x61c], ax
mov esi, edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x830]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
jmp 0x1002f170
inc esi
lea ecx, [ebp - 0x20c]
mov eax, 0x10063190
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f0f0
test dx, dx
je 0x1002f0ec
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f0f0
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f0ca
mov eax, edi
jmp 0x1002f0f5
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1002f154
cmp word [ebp - 0x61c], di
je 0x1002f13d
lea ecx, [ebp - 0x61c]
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f134
test dx, dx
je 0x1002f130
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f134
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f10e
mov eax, edi
jmp 0x1002f139
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1002f154
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x61c]
call fcn.1002d565
push edi
push edi
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x830]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x848]
mov dword [ebp - 0x830], 0x104
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x1002f0be
cmp word [ebp - 0x61c], di
je 0x1002f2b5
mov esi, 0x20019
mov dword [ebp - 0x860], edi
push esi
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x85c], edi
push eax
push dword [ebp - 0x848]
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x858], edi
call fcn.1002ae1d
mov ebx, dword [ebp - 0x860]
test eax, eax
jne 0x1002f2a4
push esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x83c], edi
push eax
push ebx
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
call fcn.1002ae1d
test eax, eax
jne 0x1002f249
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002f23c
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10005dc0]
lea ecx, [ebp - 0x83c]
call fcn.1002b006
test eax, eax
jne 0x1002f23c
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002f20c
xor edi, edi
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002f282
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10005dc0]
lea ecx, [ebp - 0x860]
call fcn.1002b006
test eax, eax
jne 0x1002f282
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002f252
cmp dword [ebp - 0x83c], 0
je 0x1002f2a2
push dword [ebp - 0x83c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edi, edi
test ebx, ebx
je 0x1002f2af
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, dword [ebp - 0x854]
push 0x20019
lea eax, [ebp - 0x414]
mov dword [ebp - 0x83c], edi
push eax
push dword [ebp - 0x848]
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
call fcn.1002ae1d
test eax, eax
jne 0x1002f32e
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002f321
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10005dc0]
lea ecx, [ebp - 0x83c]
call fcn.1002b006
test eax, eax
jne 0x1002f321
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002f2f1
xor edi, edi
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002f367
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10005dc0]
lea ecx, [ebp - 0x848]
call fcn.1002b006
test eax, eax
jne 0x1002f367
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002f337
cmp dword [ebp - 0x83c], 0
je 0x1002f387
push dword [ebp - 0x83c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edi, edi
cmp dword [ebp - 0x848], 0
je 0x1002f39e
push dword [ebp - 0x848]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1002f3ab
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, edi
lea ecx, [ebp - 0x414]
call fcn.1002fa57
test al, al
je 0x1002f3c9
mov eax, dword [ebp - 0x82c]
mov dword [eax + 0xc], 1
jmp 0x1002f40c
mov ecx, 0x1000f71c
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f3fa
test dx, dx
je 0x1002f3f6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f3fa
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f3d4
mov eax, edi
jmp 0x1002f3ff
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002f40c
mov ecx, dword [ebp - 0x82c]
mov dword [ecx + 4], edi
test ebx, ebx
je 0x1002f417
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001bb90
leave
ret