Function at 0x460b00
Capabilities:
Create tcp socket
Create udp socket
Read .ini file
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x49c9d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [0x4bc410]
xor eax, esp
mov dword [esp + 8], ecx
push edi
mov ecx, 0x4bd340
mov dword [esp + 0x58], eax
call fcn.0047cf30
mov eax, dword [0x4bd2c0]
mov cl, byte [eax + 0x689]
test cl, cl
jne 0x460b49
mov cl, byte [esp + 0x6c]
test cl, cl
je 0x460ba9
mov ecx, dword [0x4bb384]
cmp ecx, 0xffffffff
je 0x460bca
mov dl, byte [esp + 0x6c]
test dl, dl
jne 0x460b6c
mov dx, word [0x4bd318]
cmp dx, word [eax + 0x68a]
je 0x460baf
push ecx
call fcn.0045eab0
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
test al, al
jne 0x460b87
mov eax, dword [0x4bb384]
push eax
call edi
mov ecx, dword [0x4bd2bc]
mov dword [0x4bb384], 0xffffffff
call fcn.00457fd0
mov eax, dword [0x4bd2c0]
mov ecx, dword [0x4bb384]
jmp 0x460bb5
mov ecx, dword [0x4bb384]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
cmp ecx, 0xffffffff
je 0x460bd0
push 0x21
push ecx
call fcn.0045eb20
add esp, 8
jmp 0x461127
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [eax + 0x2ec]
push ebx
push ebp
push esi
push ecx
lea edx, [esp + 0x40]
push 0x4a2538
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
call fcn.00460030
mov ebp, eax
mov eax, dword [0x4bd2c0]
mov cl, byte [eax + 0x689]
test cl, cl
je 0x460c0f
mov bx, word [eax + 0x68a]
jmp 0x460cb3
add eax, 0x18
push str.MachineInfo.cfg
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.lastbindtime
lea ecx, [esp + 0x48]
push ecx
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
call dword [sym.imp.MSVCR71.dll__time64]
mov edx, dword [0x4bd2c0]
push str.MachineInfo.cfg
add edx, 0x18
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401050
add esp, 0x10
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push str.lastbindport
lea ecx, [esp + 0x48]
push ecx
call esi
lea ecx, [esp + 0x10]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp bx, 0xfa0
jae 0x460cae
push 0x4e20
push 0xfa0
call fcn.004793f0
add esp, 8
mov ebx, eax
mov eax, dword [0x4bd2c0]
test ebp, ebp
je 0x460cd7
cmp bx, 0x1388
jb 0x460cd7
push 0x1387
push 0xdac
call fcn.004793f0
mov ebx, eax
mov eax, dword [0x4bd2c0]
add esp, 8
test eax, eax
je 0x460d0a
lea edx, [eax + 0x1f4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460ce6
sub eax, esi
mov dword [esp + 0x14], eax
je 0x460d0a
push edx
call fcn.0045fb20
add esp, 4
test eax, eax
mov dword [esp + 0x10], 1
jne 0x460d12
mov dword [esp + 0x10], 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x461124
lea esp, [esp]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x460ea8
mov eax, dword [0x4bd2c0]
test eax, eax
mov word [esp + 0x2c], 2
mov dword [esp + 0x30], 0xffffffff
je 0x460d9d
lea edx, [eax + 0x1f4]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460d70
sub eax, edi
mov dword [esp + 0x14], eax
je 0x460d97
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460d97
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x460dab
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
jmp 0x460db1
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [esp + 0x78]
test al, al
je 0x460dbf
lea edx, [ebx + 2]
push edx
jmp 0x460dc0
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
push 0x10
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x460e65
mov eax, dword [0x4bd2c0]
test eax, eax
mov word [esp + 0x2c], 2
mov dword [esp + 0x30], 0xffffffff
je 0x460e32
lea edx, [eax + 0x1f4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460e05
sub eax, edi
mov dword [esp + 0x14], eax
je 0x460e2c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460e2c
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x460e40
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
jmp 0x460e46
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x30]
push ecx
push esi
mov word [esp + 0x3a], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x460eba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
push ebp
jne 0x460eb0
call edi
push esi
call edi
push 0x4e20
push 0xfa0
call fcn.004793f0
add esp, 8
push 0
push 2
push 2
mov ebx, eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x460d30
jmp 0x461124
push ebp
call edi
jmp 0x461124
call edi
push esi
call edi
jmp 0x461124
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x38], 1
call edi
mov eax, dword [esp + 0x18]
push eax
push ebp
mov dword [0x4bb384], ebp
call fcn.0045ee70
push esi
push 4
call fcn.0045edc0
mov ecx, dword [0x4bd2bc]
add esp, 0x10
push 0xa
lea eax, [esp + 0x54]
mov dword [ecx + 4], esi
mov edx, dword [0x4bd2bc]
push eax
push 0
mov word [edx + 8], bx
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCR71.dll__ultoa]
mov ecx, dword [0x4bd2c0]
push str.MachineInfo.cfg
add ecx, 0x18
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00401050
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
lea eax, [esp + 0x54]
push eax
push str.lastbindtime
lea ecx, [esp + 0x48]
push ecx
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0xa
lea edx, [esp + 0x54]
movzx eax, bx
push edx
push eax
call dword [sym.imp.MSVCR71.dll__itoa]
mov ecx, dword [0x4bd2c0]
push str.MachineInfo.cfg
add ecx, 0x18
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401050
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x54]
push eax
push str.lastbindport
lea ecx, [esp + 0x48]
push ecx
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebx, 1
push 4
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x3e8000
mov dword [esp + 0x2c], ebx
push edx
mov eax, dword [0x4bb384]
push 0x1002
push 0xffff
push eax
call edi
mov edx, dword [0x4bb384]
lea ecx, [esp + 0x28]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004601c0
mov ecx, esi
call fcn.0045fe90
mov ecx, dword [0x4bd31c]
test ecx, ecx
je 0x461032
call fcn.0045da60
mov ecx, dword [0x4bd31c]
test ecx, ecx
je 0x46102a
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
xor ecx, ecx
mov dword [0x4bd31c], ecx
mov al, byte [esp + 0x7c]
test al, al
je 0x4610d9
mov edi, dword [0x4bd2c0]
mov edx, dword [edi + 0x4d0]
add edi, 0x4cc
shr edx, 0xb
and dl, 1
mov byte [esp + 0x1f], dl
je 0x4610d9
mov al, byte [edi + 0x200]
test al, al
jne 0x4610d9
test ecx, ecx
jne 0x4610b1
push 0x58
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x70], 0
je 0x46108e
push ebx
mov ecx, eax
call fcn.0045df90
jmp 0x461090
xor eax, eax
test esi, esi
mov dword [esp + 0x70], 0xffffffff
mov dword [0x4bd31c], eax
je 0x4610a6
lea ecx, [esi + 0xc]
jmp 0x4610a8
xor ecx, ecx
mov dword [eax + 0x54], ecx
mov ecx, dword [0x4bd31c]
call fcn.0045da60
mov ecx, dword [0x4bd31c]
xor eax, eax
mov ax, word [0x4bd318]
add edi, 0x204
push eax
push 0
push edi
call fcn.0045da90
mov ecx, dword [0x4bd31c]
test ecx, ecx
jne 0x461124
mov eax, dword [0x4bd320]
test eax, eax
jne 0x461124
mov ecx, dword [0x4bb384]
push ecx
call fcn.0045ea50
mov eax, dword [0x4bdafc]
add esp, 4
test eax, eax
jne 0x461124
push 0x70
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x70], ebx
je 0x46111d
mov ecx, eax
call fcn.00478d30
jmp 0x46111f
xor eax, eax
mov dword [0x4bdafc], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
pop edi
xor ecx, esp
call fcn.00496ace
add esp, 0x64
ret 8