Function at 0x406830
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45d25c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12c]
push 0xff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x130]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftInternet_ExplorerMain
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2c]
push 0
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x1b]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0x100
mov byte [esp + 0x1c], 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 eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push str.Start_Page
push eax
mov dword [esp + 0x24c], 0
call ebp
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
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 0x40692b
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov byte [eax + ebx], 0
mov edi, dword [esp + 0x1c]
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]
test edi, edi
je 0x40693a
mov eax, edi
lea esi, [esp + 0x12c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x406969
test cl, cl
je 0x406965
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x406969
add eax, 2
add esi, 2
test cl, cl
jne 0x406941
xor eax, eax
jmp 0x40696e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4069a4
test edi, edi
je 0x40699a
mov al, byte [edi - 1]
test al, al
je 0x406990
cmp al, 0xff
je 0x406990
dec al
mov byte [edi - 1], al
mov eax, 2
jmp 0x406aa9
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 2
jmp 0x406aa9
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x12c]
push eax
push ecx
push 1
push 0
push str.Start_Page
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.Start_Page
push edx
call ebp
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
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 0x406a2e
mov edi, dword [esp + 0x1c]
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 [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x406a3b
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 esi, [esp + 0x12c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x406a6a
test cl, cl
je 0x406a66
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x406a6a
add eax, 2
add esi, 2
test cl, cl
jne 0x406a42
xor eax, eax
jmp 0x406a6f
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
sete cl
push edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x406aa7
mov al, byte [ecx - 1]
test al, al
je 0x406a9d
cmp al, 0xff
je 0x406a9d
dec al
mov byte [ecx - 1], al
jmp 0x406aa7
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret