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

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x1001a144]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x24
mov eax, 0x1001456d
call fcn.1000a808
mov esi, ecx
cmp dword [esi + 0x54], 0x10
jb 0x10002512
mov eax, dword [esi + 0x40]
jmp 0x10002515
lea eax, [esi + 0x40]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100026f9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, 0x103
jmp 0x100026e8
cmp eax, ebx
jne 0x100026c6
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100026d0
push edi
lea eax, [ebp + 0x241]
push ebx
push eax
mov byte [ebp + 0x240], bl
call fcn.1000aae0
add esp, 0xc
cmp dword [esi + 0x8c], 0x10
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x24], ebx
jb 0x100025b5
mov eax, dword [esi + 0x78]
jmp 0x100025b8
lea eax, [esi + 0x78]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 0x240]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp]
call fcn.10001b27
push edi
lea eax, [ebp + 0x13d]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x13c], bl
call fcn.1000aae0
add esp, 0xc
cmp dword [esi + 0x70], 0x10
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x24], ebx
jb 0x10002610
mov eax, dword [esi + 0x5c]
jmp 0x10002613
lea eax, [esi + 0x5c]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 0x13c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100026ae
lea eax, [ebp + 0x13c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.10001b27
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x30], ebx
jbe 0x10002685
push dword [ebp - 0x10]
lea ecx, [ebp + 0x1c]
call fcn.10001385
push dword [ebp - 0x10]
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
call fcn.10001385
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
movsx eax, byte [eax]
push eax
call fcn.1000aaae
inc dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x30]
jb 0x1000264c
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esi + 0xc0]
call fcn.10002292
lea eax, [ebp]
push eax
lea ecx, [esi + 0xd8]
call fcn.10002292
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.100014fc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.100014fc
inc dword [ebp - 0x18]
mov dword [ebp - 0x20], 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
jne 0x1000255f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.1000a7f9
add ebp, 0x348
leave
ret