Function at 0x42a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov al, byte [esp + 0xf]
push esi
push edi
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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 esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
call esi
add esp, 4
mov edi, eax
lea ecx, [esp + 0x18]
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a252
mov ecx, dword [esp + 0x1c]
push edi
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
push ecx
call fcn.0040a5a0
add esp, 0xc
lea ecx, [esp + 0x18]
push edi
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__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x140]
mov dword [esp + 0x134], 0
push edi
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x42a283
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]
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42a2cf
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x138], 0xffffffff
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_]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
push ebx
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.IPAddress
push eax
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [esp + 0x144]
test eax, eax
jne 0x42a33e
lea ecx, [esp + 0x34]
lea edi, [ebp + 0x20]
push ecx
call esi
add esp, 4
mov ebx, eax
mov ecx, edi
push 1
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a33e
mov eax, dword [edi + 4]
lea edx, [esp + 0x34]
push ebx
push edx
push eax
call fcn.0040a5a0
add esp, 0xc
mov ecx, edi
push ebx
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__::_Eos_unsigned_int_]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.SubnetMask
push ecx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a3a4
lea edx, [esp + 0x34]
lea edi, [ebp + 0x30]
push edx
call esi
add esp, 4
mov ebx, eax
mov ecx, edi
push 1
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a3a4
mov ecx, dword [edi + 4]
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
call fcn.0040a5a0
add esp, 0xc
mov ecx, edi
push ebx
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__::_Eos_unsigned_int_]
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.DefaultGateway
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a40a
lea eax, [esp + 0x34]
lea edi, [ebp + 0x40]
push eax
call esi
add esp, 4
mov ebx, eax
mov ecx, edi
push 1
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a40a
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
push ebx
push ecx
push edx
call fcn.0040a5a0
add esp, 0xc
mov ecx, edi
push ebx
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__::_Eos_unsigned_int_]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.NameServer
push eax
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a470
lea ecx, [esp + 0x34]
lea edi, [ebp + 0x50]
push ecx
call esi
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a470
mov eax, dword [edi + 4]
lea edx, [esp + 0x34]
push esi
push edx
push eax
call fcn.0040a5a0
add esp, 0xc
mov ecx, edi
push esi
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__::_Eos_unsigned_int_]
mov ebx, dword [esp + 0x150]
xor edi, edi
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x42a4dc
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
add ebx, 8
lea ecx, [esp + 0x30]
push edi
push ecx
mov ecx, ebx
call fcn.00401460
mov edx, dword [esp + 0x148]
mov eax, dword [eax]
push edx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x30]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x42a4cf
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x34]
push ecx
mov eax, dword [edx + 0x84]
lea ecx, [eax + edi*4]
call fcn.004b0454
mov ecx, dword [esp + 0x150]
inc edi
cmp edi, dword [ecx + 0x10]
jl 0x42a489
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
pop ebp
test ecx, ecx
pop ebx
je 0x42a50f
mov al, byte [ecx - 1]
test al, al
je 0x42a503
cmp al, 0xff
je 0x42a503
dec al
mov byte [ecx - 1], al
jmp 0x42a50f
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x130
ret