Function at 0x1002a310
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006cb36
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
push 0x103
lea edx, [esp + 0x99]
push ebx
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0xa0], bl
call fcn.10041500
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edi]
push ebx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xbc]
push eax
push ecx
mov dword [esp + 0x70], 0x104
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
cmp esi, ebx
je 0x1002a3da
mov dword [edi + 4], esi
cmp esi, 5
jne 0x1002a3e6
mov al, 1
jmp 0x1002a63b
cmp esi, ebx
je 0x1002a3f4
mov dword [edi + 4], esi
xor al, al
jmp 0x1002a63b
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 1
add eax, 1
push eax
mov dword [esp + 0x2c], eax
call fcn.1004109b
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x44], eax
call fcn.1004109b
add esp, 8
cmp dword [esp + 0x18], ebx
mov edi, eax
je 0x1002a503
mov ecx, dword [esp + 0x30]
call fcn.1000ce60
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push edx
call fcn.1002a6d0
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jbe 0x1002a503
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x1002a4ee
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1002a4a0
mov ecx, dword [esp + 0x24]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.10003ca0
lea edx, [esp + 0x54]
mov dword [esp + 0x1b0], ebx
mov ecx, dword [esp + 0x30]
push edx
call fcn.1000cdb0
mov dword [esp + 0x1b0], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x1002a4ee
mov eax, dword [esp + 0x58]
push eax
call fcn.10040f62
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jb 0x1002a450
cmp dword [esp + 0x1c], ebx
je 0x1002a616
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x1002a522
call fcn.10041d26
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x30], eax
jbe 0x1002a537
call fcn.10041d26
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push ecx
push esi
push eax
push esi
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.1000d120
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.1002a6d0
xor esi, esi
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
jbe 0x1002a616
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x40]
push edi
mov byte [edi], bl
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
cmp esi, ebx
jne 0x1002a601
mov eax, edi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1002a5b0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x7c]
call fcn.10003ca0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x1b4], 1
call fcn.1000cdb0
mov dword [esp + 0x1b0], 0xffffffff
cmp dword [esp + 0x8c], 0x10
jb 0x1002a601
mov ecx, dword [esp + 0x78]
push ecx
call fcn.10040f62
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jb 0x1002a567
mov edx, dword [esp + 0x24]
push edx
call fcn.10041096
push edi
call fcn.10041096
add esp, 8
cmp esi, ebx
je 0x1002a634
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], esi
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10040be4
mov esp, ebp
pop ebp
ret 4