Function at 0x42b930
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], 0x1a
mov dword [esp + 4], 0x42b79b
mov dword [esp], 0x42b73d
call sym._updatecontext_f
mov eax, dword [0x438b2c]
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], 0x1d
lea eax, [eax + edi + 2]
mov dword [esp + 8], 0x42b73d
mov dword [esp + 4], 0x42b79b
mov dword [esp], eax
call sym._mycalloc2
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx + 0x48]
mov dword [esp + 4], 0x42b7aa
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x438b2c]
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 0x42bbd5
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 0x42bbc1
mov word [ebp - 0x28], 2
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x30]
xchg ah, al
mov word [ebp - 0x26], ax
mov eax, dword [edx + 0x34]
mov edx, dword [0x438a34]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [ebp - 0x24], eax
test edx, edx
je 0x42ba94
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 0x42bbad
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 0x42bb94
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 0x42bb50
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 0x42bb2b
mov esi, dword [ebp + 8]
mov dword [esi + 0x4c], 1
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b7b0
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sym._l_closeconn
jmp 0x42bb20
call sym.___errno
cmp dword [eax], 0x77
je 0x42badd
call sym.___errno
cmp dword [eax], 0xb
je 0x42badd
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b7c5
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp], ecx
call sym._l_closeconn
mov dword [esp], 0
call sym._alarm
jmp 0x42bb20
mov dword [esp + 4], 0x42b7d6
mov dword [esp], 2
call sym._outerror
jmp 0x42bab1
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b7f0
jmp 0x42bb3a
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b812
jmp 0x42bb3a
call sym.___errno
cmp dword [eax], 0x11
je 0x42bc43
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
test edx, edx
jns 0x42b9e4
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], 0x42b830
mov dword [esp], 1
call sym._outerror
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b870
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp], edx
call sym._l_closeconn
mov dword [esp], ebx
call sym._mydelete2
jmp 0x42bb20
mov dword [esp], ebx
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
call sym._stat
test eax, eax
js 0x42bd1d
mov eax, dword [ebp - 0x88]
and eax, 0xf000
cmp eax, 0x8000
je 0x42bc87
mov dword [esp + 8], 0
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x42b8b0
mov dword [esp], esi
jmp 0x42bc31
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 0x42bc6f
jl 0x42bca0
cmp esi, eax
jae 0x42bc6f
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 0x42bbed
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 0x42bbdf
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], 0x42b8d9
mov dword [esp + 8], eax
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call sym._privmsg_fast
jmp 0x42bc36
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], 0x42b910
mov dword [esp], 1
call sym._outerror
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x42b870
mov dword [esp + 8], eax
jmp 0x42bc82