Function at 0x1002be1
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd38
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0xa24]
mov dword [ebp - 0xd28], eax
mov eax, dword [ebp + 0x10]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0xd1c], esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
je 0x1002eba
cmp eax, edi
ja 0x1002eba
lea eax, [ebp - 0xd1c]
push eax
push 0x20119
push esi
push dword [0x1005004]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e87
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd34]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
push dword [ebp - 0xd1c]
mov dword [ebp - 0xd24], esi
mov dword [ebp - 0xd34], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1002e87
mov ebx, 0x206
mov ecx, dword [ebp - 0xd28]
lea eax, [ebp - 0x40c]
push eax
call fcn.010019ec
test al, al
je 0x1002e4b
push 0x100178c
lea eax, [ebp - 0x40c]
push eax
push 0x10017a0
lea eax, [ebp - 0xc2c]
push edi
push eax
mov dword [ebp - 0xd20], esi
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002e4b
lea eax, [ebp - 0xd20]
push eax
push 0x20119
push esi
lea eax, [ebp - 0xc2c]
push eax
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e4b
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0xd2c], esi
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81a]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x614], ax
lea eax, [ebp - 0x612]
push esi
push eax
mov dword [ebp - 0xd30], 0x208
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0xd30]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0x614]
push eax
push esi
jmp 0x1002e25
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa24]
push eax
push 0x10017a0
lea eax, [ebp - 0x81c]
push edi
push eax
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002df1
lea ecx, [ebp - 0xd18]
call fcn.010019c3
mov eax, dword [ebp - 0xd28]
cmp dword [eax + 0xc], esi
je 0x1002ea0
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xd18]
push eax
call fcn.01001e51
test al, al
je 0x1002df1
mov eax, dword [ebp - 0xd28]
push dword [eax + 0xc]
lea ecx, [ebp - 0xd18]
call fcn.01001a1a
test al, al
jne 0x1002ea0
inc dword [ebp - 0xd2c]
lea eax, [ebp - 0xd30]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0x614]
push eax
push dword [ebp - 0xd2c]
mov dword [ebp - 0xd30], 0x208
push dword [ebp - 0xd20]
mov dword [ebp - 0xd38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002d7d
push dword [ebp - 0xd20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xd24]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd34]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0xd24]
mov dword [ebp - 0xd34], 0xff
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1002c92
cmp dword [ebp - 0xd1c], esi
je 0x1002e9b
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1002ebf
push dword [ebp - 0xd20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xd1c]
call esi
xor eax, eax
jmp 0x1002ebf
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 0xc