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

Disassembly:
mov eax, 0x1007c91
call fcn.01007328
sub esp, 0x240
mov eax, dword [0x10091ec]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], ecx
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x230], eax
call sub.MFC42.dll_CString::CString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x1002334
mov edi, 0x80000002
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], 0x100
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
call esi
cmp eax, ebx
jne 0x1005ed7
lea eax, [ebp - 0x24c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
jmp 0x1005e96
push 0x1002140
lea ecx, [ebp - 0x21c]
call sub.MFC42.dll_CString::CString_1
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call sub.MFC42.dll_CString::operator
lea eax, [ebp - 0x224]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x21c]
push edi
call esi
cmp eax, ebx
jne 0x1005f01
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x100232c
push dword [ebp - 0x224]
mov dword [ebp - 0x244], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1005e4e
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x240]
push dword [eax]
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1005e4e
inc dword [ebp - 0x228]
push 0x2c
call sub.MFC42.dll_operatornew
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x1005e0a
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.01006323
mov dword [ebp - 0x214], eax
jmp 0x1005e10
mov dword [ebp - 0x214], ebx
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 1
call fcn.010060b2
test eax, eax
jne 0x1005e3d
push dword [ebp - 0x214]
mov ecx, dword [ebp - 0x230]
call fcn.01003910
jmp 0x1005e4e
mov ecx, dword [ebp - 0x214]
cmp ecx, ebx
je 0x1005e4e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [ebp - 0x224]
inc dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x100
mov byte [ebp - 4], bl
call fcn.01006c22
lea eax, [ebp - 0x24c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
je 0x1005d46
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], ebx
je 0x1005ed7
push dword [ebp - 0x230]
mov ecx, dword [ebp - 0x23c]
push dword [ebp - 0x238]
call fcn.01005161
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.01006c22
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.010067fd
leave
ret 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], bl
call fcn.01006c22
jmp 0x1005ed7