Function at 0x46b5d0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a83ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x174]
push edi
mov edi, dword [esp + 0x17c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x164], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x170], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebx, 1
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], bl
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
sub esp, 0x1c
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0049d530
add esp, 0x20
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x174], 2
call dword [0x4ab944]
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [0x4ccb50]
push str.configdnscache.dat
add edx, 0x18
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x170], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x100
lea ecx, [esp + 0x6c]
push ecx
push 0x4acbb2
push str.addr
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x64]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46b6f0
sub eax, edx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x48]
je 0x46b798
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
sub esp, 0x1c
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0049d5e0
add esp, 0x20
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], 4
call dword [0x4ab944]
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
lea ecx, [esp + 0x48]
mov dword [edi], eax
mov byte [esp + 0x170], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
jmp 0x46b7bd
mov byte [esp + 0x170], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x168]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x160]
pop esi
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x168
ret