Function at 0x542a4f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x55cd02
call fcn.005493c0
sub esp, 0x64
mov eax, dword [0x5c58d0]
push ebx
mov dword [ebp - 0x10], eax
push esi
xor ebx, ebx
cmp byte [ebp + 0x28], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x30]
je 0x542b28
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x542b5b
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_void_]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [0x5c5860]
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x542b3f
cmp dword [ebp - 0x34], 1
jne 0x542b3f
mov eax, dword [ebp - 0x38]
inc eax
push edi
push eax
call sub.MFC71.DLL_operator_new
pop ecx
mov edi, eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [0x5c5860]
push dword [ebp - 0x30]
call esi
push edi
lea ecx, [ebp - 0x2c]
call dword [0x575208]
push edi
call sub.MFC71.DLL_operator_delete
pop ecx
pop edi
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x542b84
cmp eax, ebx
jne 0x542b74
mov eax, dword [ebp + 0x20]
cmp dword [ebp - 0x18], eax
jne 0x542b6f
push ecx
jmp 0x542b71
push eax
push 3
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x542a90
cmp byte [ebp + 0x28], bl
jne 0x542aff
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
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_]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x542c29
inc eax
push eax
push ebx
jmp 0x542b7b
mov ecx, dword [ebp + 0x20]
inc ecx
push ecx
dec eax
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__::erase_unsigned_int__unsigned_int_]
cmp dword [ebp - 0x18], ebx
lea eax, [ebp + 0xc]
jne 0x542b98
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x542be1
push 0x2c
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004188f0
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.004186f0
add esp, 0x18
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
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 ecx, [ebp - 0x70]
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__::destructor_void_]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x542bed
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
push 1
push ebx
push dword [0x5c5860]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
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 + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0054939e
leave
ret