Function at 0x1002ccf
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x1002f2b
inc dword [ebp - 0x10]
push esi
push edi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x1002d1a
push 8
pop eax
jmp 0x1002f29
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x1002d50
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.01002b07
mov esi, eax
inc dword [ebp - 0xc]
cmp esi, ebx
je 0x1002d1d
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp esi, 0x103
pop ecx
jne 0x1002d69
xor esi, esi
cmp dword [ebp + 0x1c], ebx
je 0x1002f27
cmp esi, ebx
jne 0x1002f27
inc dword [ebp - 0x14]
push 2
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x1002d12
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002eeb
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002eeb
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002eeb
push 2
push dword [ebp - 8]
call esi
push dword [ebp + 0xc]
mov ebx, eax
call esi
pop ecx
pop ecx
lea eax, [ebx + eax + 3]
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
je 0x1002f03
push dword [ebp + 0xc]
call esi
test eax, eax
pop ecx
jbe 0x1002e5a
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x100124c
push ebx
call edi
add esp, 0x10
push dword [ebp - 8]
push ebx
call edi
pop ecx
pop ecx
push 2
push dword [ebp - 8]
call esi
push dword [ebp + 0x14]
mov ebx, eax
call esi
pop ecx
pop ecx
lea eax, [ebx + eax + 3]
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x28], ebx
je 0x1002ef9
push dword [ebp + 0x14]
call esi
test eax, eax
pop ecx
jbe 0x1002ea7
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x100124c
push ebx
call edi
add esp, 0x10
push dword [ebp - 8]
push ebx
call edi
pop ecx
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.01002ccf
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 0x24]
call ebx
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
push dword [ebp - 0x28]
call ebx
pop ecx
pop ecx
xor ebx, ebx
inc dword [ebp - 0xc]
cmp dword [ebp - 4], ebx
je 0x1002da0
jmp 0x1002f0c
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 4], 8
xor ebx, ebx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 4], 0x103
pop ecx
jne 0x1002f22
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
jmp 0x1002f29
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x18