Function at 0x406bc6
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40e6e1
call fcn.0040d790
sub esp, 0x258
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.004046e3
push 0x7f
xor ebx, ebx
and byte [ebp - 0x264], bl
pop ecx
xor eax, eax
lea edi, [ebp - 0x263]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x416b40
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
cmp dword [ebp + 0x14], ebx
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 4
jne 0x406c77
mov eax, dword [edi]
mov ecx, dword [esi + 0x2b0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x406c77
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x2b8]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x2bc]
mov dword [ecx], eax
push 1
pop esi
jmp 0x406f1b
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x406c8d
push str.default
lea ecx, [ebp - 0x10]
call fcn.0040d3e0
jmp 0x406ca6
push dword [edi]
lea eax, [ebp - 0x10]
push dword [0x416d30]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [esi + 0x324]
lea eax, [ebp - 0x264]
mov edi, 0x415a0c
push 0x200
push eax
push edi
push str.socksvrname
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x264]
mov ebx, 0x415164
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MFC42.DLL_CString::Format
push edi
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x14
test eax, eax
jne 0x406dd3
push dword [0x416d30]
lea eax, [ebp - 0x1c]
push dword [esi + 0x330]
push str._s_s.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], 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_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 5
call fcn.00401c3f
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
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 [ebp - 0x5c]
test eax, eax
jne 0x406d6e
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]
push eax
push ebx
push dword [ebp + 0xc]
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov byte [ebp - 4], 4
mov dword [eax], ecx
lea ecx, [ebp - 0x64]
call fcn.00401fe4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d3c8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403d8a
push 1
pop eax
jmp 0x406f59
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push dword [0x416d30]
push dword [esi + 0x330]
push str._s_s_s.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x264]
push dword [ebp - 0x14]
push 0x200
push eax
push edi
push 0x4152d0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x264]
push eax
push ebx
push dword [ebp + 0xc]
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x14]
push 0xffffffffffffffff
push str.port
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x406ec5
mov edi, dword [ebp + 0x10]
cmp dword [edi], 0xffffffff
je 0x406ec5
cmp dword [ebp + 0x14], 0
jne 0x406c6f
push dword [ebp + 0xc]
lea ecx, [esi + 0x2b8]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [edi]
push dword [ebp + 8]
lea ecx, [esi + 0x2b0]
mov dword [esi + 0x2bc], eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp - 0x14]
lea eax, [ebp - 0x264]
push 0x200
push eax
push dword [ebp - 0x10]
push str.sysname
push str.systerm
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x264]
add esi, 0x2b4
push eax
push ebx
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x406c6f
push dword [ebp - 0x14]
lea eax, [ebp - 0x264]
push 0x200
push eax
push dword [ebp - 0x10]
push str.sysname
push str.systerm
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x264]
push eax
lea eax, [esi + 0x2ac]
push 0x4159cc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
test esi, esi
je 0x406f09
mov esi, dword [esi + 0x20]
push 0
push 0
push 0x591
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d3c8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403d8a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10