Function at 0x40fcf3
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4203c0
call fcn.0041f700
sub esp, 0xb4
mov al, byte [ebp - 0xd]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0040f10a
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ecx
je 0x40fdde
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xbe]
mov word [ebp - 0xc0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x40fd6a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403085
pop ecx
pop ecx
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
je 0x40fdcf
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40fd8b
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, [ebp - 0xc0]
push 0x3f
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00402fc7
add esp, 0x10
test eax, eax
je 0x40fdcf
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0xc0]
push eax
push 1
push 0x42851c
push 0x42799c
push SysReAllocString
call esi
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f994
cmp dword [ebp - 0x28], ebx
pop ecx
je 0x40fe87
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xbe]
mov word [ebp - 0xc0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40fe13
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403085
pop ecx
pop ecx
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
je 0x40fe78
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40fe34
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, [ebp - 0xc0]
push 0x3f
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00402fc7
add esp, 0x10
test eax, eax
je 0x40fe78
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0xc0]
push eax
push 1
push 0x42a2b0
push 0x42799c
push SysReAllocString
call esi
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret