Function at 0x40c175
Capabilities:
Set registry value

Disassembly:
mov eax, 0x41bb80
call fcn.0041b220
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.0040b58c
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ecx
je 0x40c260
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 0x40c1ec
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.00402f96
pop ecx
pop ecx
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
je 0x40c251
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40c20d
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.00402ed8
add esp, 0x10
test eax, eax
je 0x40c251
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 0x42305c
push 0x422bc0
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.0040be16
cmp dword [ebp - 0x28], ebx
pop ecx
je 0x40c309
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 0x40c295
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.00402f96
pop ecx
pop ecx
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
je 0x40c2fa
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40c2b6
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.00402ed8
add esp, 0x10
test eax, eax
je 0x40c2fa
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 0x42483c
push 0x422bc0
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