Function at 0x542c3f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x55cd1e
call fcn.005493c0
sub esp, 0xa4
mov eax, dword [0x5c58d0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x9c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREAhead
push SysReAllocString
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x542c8b
cmp dword [ebp - 0x9c], ebx
jne 0x542c92
xor al, al
jmp 0x542db3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0xb0]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], 0x50
call esi
mov edi, 0x103
jmp 0x542da9
inc dword [ebp - 0xa0]
cmp eax, ebx
jne 0x542d79
push str.SOFTWAREAhead
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x57e6f4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push dword [0x5c5864]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [ebp + 8]
call fcn.00541b20
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x542d57
lea eax, [ebp - 0x28]
push eax
call fcn.00542a4f
add esp, 0x24
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0xb0]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xa0]
mov dword [ebp - 0xa4], 0x50
push dword [ebp - 0x9c]
call esi
cmp eax, edi
jne 0x542cd3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0054939e
pop edi
pop esi
pop ebx
leave
ret