Function at 0x1002ac4e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x1005b328]
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 0x1002b145
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 [0x1005bab0]
test cx, cx
je 0x1002aca5
mov ax, word [0x1005bcc0]
test ax, ax
jne 0x1002acb9
xor cl, cl
call fcn.1002b15b
mov cx, word [0x1005bab0]
mov ax, word [0x1005bcc0]
test cx, cx
je 0x1002acd6
test ax, ax
je 0x1002acd6
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp word [ebp - 0x414], 0
je 0x1002b144
push 0x20019
xor edi, edi
lea ecx, [ebp - 0x854]
push 0x1000d3f0
push 0x80000002
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x84c], edi
call fcn.10027327
mov ebx, dword [ebp - 0x854]
test eax, eax
jne 0x1002b0cb
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 0x1005bcc0
call fcn.1002b864
test eax, eax
je 0x1002ad88
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], esi
push eax
lea eax, [ebp - 0x824]
push eax
push 0x1005bab0
lea ecx, [ebp - 0x854]
call fcn.1002b864
test eax, eax
jne 0x1002b0cb
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.10027327
test eax, eax
jne 0x1002b0b6
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 0x1002ae9d
inc esi
lea ecx, [ebp - 0x20c]
mov eax, 0x1005c260
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002ae1d
test dx, dx
je 0x1002ae19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002ae1d
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002adf7
mov eax, edi
jmp 0x1002ae22
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1002ae81
cmp word [ebp - 0x61c], di
je 0x1002ae6a
lea ecx, [ebp - 0x61c]
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002ae61
test dx, dx
je 0x1002ae5d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002ae61
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002ae3b
mov eax, edi
jmp 0x1002ae66
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1002ae81
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x61c]
call fcn.10029899
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 0x1002adeb
cmp word [ebp - 0x61c], di
je 0x1002afe2
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.10027327
mov ebx, dword [ebp - 0x860]
test eax, eax
jne 0x1002afd1
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.10027327
test eax, eax
jne 0x1002af76
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002af69
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10004808]
lea ecx, [ebp - 0x83c]
call fcn.1002b823
test eax, eax
jne 0x1002af69
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002af39
xor edi, edi
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002afaf
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10004808]
lea ecx, [ebp - 0x860]
call fcn.1002b823
test eax, eax
jne 0x1002afaf
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002af7f
cmp dword [ebp - 0x83c], 0
je 0x1002afcf
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 0x1002afdc
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.10027327
test eax, eax
jne 0x1002b05b
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002b04e
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10004808]
lea ecx, [ebp - 0x83c]
call fcn.1002b823
test eax, eax
jne 0x1002b04e
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002b01e
xor edi, edi
mov esi, dword [ebp - 0x82c]
add esi, 4
cmp dword [esi], 0xffffffff
jne 0x1002b094
and dword [ebp - 0x828], 0
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x10004808]
lea ecx, [ebp - 0x848]
call fcn.1002b823
test eax, eax
jne 0x1002b094
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
add edi, 4
add esi, 4
cmp edi, 0x28
jb 0x1002b064
cmp dword [ebp - 0x83c], 0
je 0x1002b0b4
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 0x1002b0cb
push dword [ebp - 0x848]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1002b0d8
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.1002b7be
test al, al
je 0x1002b0f6
mov eax, dword [ebp - 0x82c]
mov dword [eax + 0xc], 1
jmp 0x1002b139
mov ecx, 0x1000d484
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002b127
test dx, dx
je 0x1002b123
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002b127
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002b101
mov eax, edi
jmp 0x1002b12c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002b139
mov ecx, dword [ebp - 0x82c]
mov dword [ecx + 4], edi
test ebx, ebx
je 0x1002b144
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.1001a260
leave
ret