Function at 0x4133e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ceac
push eax
mov eax, dword [esp + 0x14]
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
jne 0x41342d
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x13c]
push ecx
push edx
call fcn.00413210
add esp, 8
jmp 0x4135b5
mov edi, 0x424178
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x144]
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 0x413475
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x424178
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
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 cl, byte [esp + 0x17]
xor esi, esi
mov byte [esp + 0x1c], cl
push esi
lea ecx, [esp + 0x20]
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 eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x134], esi
push edx
push eax
push ecx
call fcn.00413830
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, esi
jne 0x4134bb
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 + 0x10]
mov dword [esp + 0x10], esi
push edx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4134fb
mov ecx, dword [0x4255bc]
xor eax, eax
cmp ecx, esi
je 0x4134ed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, esi
mov dword [0x4255bc], ecx
je 0x413519
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 0x4135b5
mov eax, dword [0x42559c]
mov dword [esp + 0x18], 0x100
cmp eax, esi
jne 0x41352f
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 0x41358f
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 0x41358f
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 0x4135b3
mov al, byte [ecx - 1]
test al, al
je 0x4135a9
cmp al, 0xff
je 0x4135a9
dec al
mov byte [ecx - 1], al
jmp 0x4135b3
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