Function at 0x413210
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ce8c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
push eax
call fcn.00413ac0
add esp, 4
test al, al
je 0x4133c4
mov edi, 0x424178
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x140]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41328c
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x424178
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov al, byte [esp + 0x17]
xor esi, esi
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [esp + 0x13c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x13c], esi
call fcn.004135d0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, esi
jne 0x4132ca
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x41330a
mov ecx, dword [0x4255bc]
xor eax, eax
cmp ecx, esi
je 0x4132fc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, esi
mov dword [0x4255bc], ecx
je 0x413328
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x4133c4
mov eax, dword [0x42559c]
mov dword [esp + 0x18], 0x100
cmp eax, esi
jne 0x41333e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], esi
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41339e
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41339e
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
xor esi, esi
mov byte [ecx + ebx], 0
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x4133c2
mov al, byte [ecx - 1]
test al, al
je 0x4133b8
cmp al, 0xff
je 0x4133b8
dec al
mov byte [ecx - 1], al
jmp 0x4133c2
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret