Function at 0x4ded29
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call sub.MFC42.DLL_CAsyncSocket::CAsyncSocket
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x48], 0
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x49], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x450], ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx], 0x5b76a8
mov eax, dword [ebp - 0x2c]
mov byte [eax + 8], 0
push 0x400
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x50
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5f52a8
push 0
push str.FapiCorbaWriteLogFile
push 0x5f52cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4dee7e
lea edx, [ebp - 0x28]
push edx
push str.c:FidiaProgram_
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov byte [ebp - 4], 1
push str.LogIorConnections.txt
lea ecx, [ebp - 0x20]
call dword [0x5adf3c]
cmp dword [0x600718], 0
jne 0x4dee0e
push 0x5f5300
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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.MSVCRT.dll_fopen]
add esp, 8
mov dword [0x600718], eax
cmp dword [0x600718], 0
je 0x4dee71
mov eax, dword [0x600718]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x4c], edx
cmp dword [ebp - 0x24], 0x3200000
jle 0x4dee71
mov eax, dword [0x600718]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [0x600718], 0
push 0x5f5304
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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.MSVCRT.dll_fopen]
add esp, 8
mov dword [0x600718], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp + 8], 0
je 0x4deed9
push 0
push 0x3f
push 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2c]
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x4deeaf
push str.IorServer:_Unable_to_create_socket
push 2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004df6a3
add esp, 0xc
jmp 0x4deed9
push 5
mov ecx, dword [ebp - 0x2c]
call fcn.004df7b0
test eax, eax
jne 0x4deed2
push str.IorServer:_Unable_to_listen_socket
push 2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004df6a3
add esp, 0xc
jmp 0x4deed9
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8