Function at 0x4242f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [esp + 8], 0x2a
mov dword [esp + 4], 0x42410b
mov dword [esp], 0x42409d
call sym._updatecontext_f
mov eax, dword [0x43130c]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edx + 0x48]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x2d
lea eax, [eax + edi + 2]
mov dword [esp + 8], 0x42409d
mov dword [esp + 4], 0x42410b
mov dword [esp], eax
call sym._mycalloc2
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx + 0x48]
mov dword [esp + 4], 0x42411a
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x43130c]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0x10a01
mov dword [esp], ebx
call sym._open
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi + 4], eax
js 0x4245b0
mov dword [esp], ebx
mov esi, 4
lea edi, [ebp - 0x28]
xor ebx, ebx
call sym._mydelete2
cld
mov eax, ebx
mov ecx, esi
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket
mov edx, dword [ebp + 8]
test eax, eax
mov dword [edx], eax
js 0x424594
mov word [ebp - 0x28], 2
mov ecx, dword [ebp + 8]
mov edx, dword [0x431260]
movzx eax, word [ecx + 0x30]
xchg ah, al
mov word [ebp - 0x26], ax
mov eax, dword [ecx + 0x34]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [ebp - 0x24], eax
test edx, edx
je 0x424454
cld
mov eax, ebx
lea edi, [ebp - 0x38]
mov ecx, esi
rep stosd dword es:[edi], eax
xchg dh, dl
ror edx, 0x10
xchg dh, dl
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 8]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov eax, dword [edx]
mov word [ebp - 0x38], 2
mov word [ebp - 0x36], 0
mov dword [esp], eax
call sym._bind
test eax, eax
js 0x424582
mov dword [esp + 4], 1
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esp], eax
call sym._set_socket_nonblocking
test eax, eax
js 0x424569
mov dword [esp], 5
call sym._alarm
mov dword [esp + 8], 0x10
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call sym._connect
test eax, eax
js 0x424524
mov dword [esp], 0
lea esi, [ebp - 0x28]
call sym._alarm
mov dword [esp + 4], esi
mov eax, 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp], eax
call sym._getsockname
test eax, eax
js 0x424507
call sym._highestsock
mov esi, dword [ebp + 8]
mov dword [esi + 0x4c], 1
mov dword [esp + 4], 0x424130
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call sym._notice
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x424151
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sym._l_closeconn
jmp 0x4244fc
call sym.___errno
cmp dword [eax], 0x77
je 0x4244a1
call sym.___errno
cmp dword [eax], 0xb
je 0x4244a1
mov dword [esp + 8], 1
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0x424166
mov dword [esp], ecx
call sym._l_closeconn
mov dword [esp], 0
call sym._alarm
jmp 0x4244fc
mov dword [esp + 4], 0x424177
mov dword [esp], 2
call sym._outerror
jmp 0x424471
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4241b0
jmp 0x424517
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4241d2
mov dword [esp], edx
jmp 0x42451d
call sym.___errno
cmp dword [eax], 0x11
je 0x42461b
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
test edx, edx
jns 0x4243a4
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4241f0
mov dword [esp], 1
call sym._outerror
mov dword [esp + 8], 1
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0x424230
mov dword [esp], edx
call sym._l_closeconn
mov dword [esp], ebx
call sym._mydelete2
jmp 0x4244fc
mov dword [esp], ebx
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
call sym._stat
test eax, eax
js 0x4246f5
mov eax, dword [ebp - 0x88]
and eax, 0xf000
cmp eax, 0x8000
je 0x42465f
mov dword [esp + 8], 0
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x424270
mov dword [esp], esi
jmp 0x424609
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
cmp edi, edx
jg 0x424647
jl 0x424678
cmp esi, eax
jae 0x424647
mov dword [esp + 4], 0x10009
mov dword [esp], ebx
call sym._open
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
mov dword [eax + 4], ecx
js 0x4245c8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov edi, dword [esi + 0x50]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test edi, edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
jg 0x4245ba
mov dword [esp], ecx
call sym._close
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movzx eax, word [esi + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 4], 0x424299
mov dword [esp + 8], eax
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call sym._privmsg_fast
jmp 0x42460e
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4242d0
mov dword [esp], 1
call sym._outerror
mov dword [esp + 8], 1
mov dword [esp + 4], 0x424230
jmp 0x42465a