Function at 0x417edc
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4e97fa
call fcn.004e6580
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x418080
cmp dword [ebp + 0xc], ebx
je 0x418080
cmp dword [ebp + 0x10], ebx
je 0x418080
mov esi, dword [sym.imp.MSVCR71.dll__stricmp]
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x417f26
mov esi, reloc.BugReportU.dll_Ordinal_1
jmp 0x417f7c
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x417f3b
mov esi, SysReAllocStringLen
jmp 0x417f7c
push str.HKEY_LOCAL_MACHINE
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x417f50
mov esi, reloc.BugReportU.dll_Ordinal_2
jmp 0x417f7c
push str.HKEY_USERS
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x417f65
mov esi, reloc.BugReportU.dll_Ordinal_3
jmp 0x417f7c
push str.HKEY_CURRENT_CONFIG
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x418080
mov esi, VariantClear
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00417303
add esp, 0xc
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0x10]
call fcn.00417303
add esp, 0xc
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x18]
mov byte [ebp - 4], 2
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0x18]
call fcn.00417303
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp dword [ebp - 0x48], 8
jae 0x417ff9
lea eax, [ebp - 0x5c]
lea ecx, [ebp + 8]
push ecx
push 0x20006
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418054
cmp dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x24]
jae 0x41801b
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x418027
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
add edx, edx
push edx
push ecx
push dword [ebp + 0x14]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push dword [ebp + 8]
jne 0x41804e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x418056
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x418082
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14