Function at 0x426750
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get file attributes
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x238]
push ebx
sub esp, 0x29c
mov ebx, dword [ebp + 8]
mov dword [esp], 0x426550
mov dword [esp + 4], 0x42655d
lea edi, [ebx + 0x268]
mov dword [esp + 8], 0x29
call sym._updatecontext_f
mov eax, dword [0x431304]
mov dword [esp], esi
mov dword [esp + 4], 0x1ff
mov dword [esp + 8], 0x42656c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
call sym._snprintf
mov dword [esp], esi
mov dword [esp + 4], 0x10a01
mov dword [esp + 8], 0x180
call sym._open
mov dword [ebx + 4], eax
test eax, eax
js 0x426a30
mov eax, dword [ebx + 4]
test eax, eax
js 0x426a20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], 2
mov dword [esp + 4], 1
mov dword [esp + 8], 0
call sym._socket
mov dword [ebx], eax
test eax, eax
js 0x426a0e
mov word [ebp - 0x28], 2
mov esi, dword [0x43123c]
mov eax, dword [ebx + 0x24]
movzx edx, word [ebx + 0x1e]
xchg ah, al
ror eax, 0x10
xchg ah, al
xchg dh, dl
mov word [ebp - 0x26], dx
test esi, esi
mov dword [ebp - 0x24], eax
je 0x4268b3
mov eax, dword [0x431240]
test eax, eax
je 0x4269f0
mov dword [ebp - 0x38], 0
lea esi, [ebp - 0x38]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x38], 2
mov word [ebp - 0x36], 0
mov dword [esp], eax
call sym._gethostbyname
test eax, eax
je 0x4269e0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._bind
test eax, eax
js 0x4269d3
mov eax, dword [ebx]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._set_socket_nonblocking
test eax, eax
js 0x4269ba
mov dword [esp], 0xa
lea esi, [ebp - 0x28]
call sym._alarm
mov eax, dword [ebx]
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._connect
test eax, eax
js 0x426980
mov dword [esp], 0
lea edi, [ebp - 0x27c]
call sym._alarm
mov eax, dword [ebx]
mov ecx, 0x10
mov dword [esp + 8], edi
mov dword [ebp - 0x27c], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._getsockname
test eax, eax
js 0x426960
call sym._highestsock
mov eax, 1
lea esi, [ebx + 0x2c]
mov dword [ebx + 0x468], eax
mov dword [esp], esi
mov dword [esp + 4], 0x426590
call sym._notice
add esp, 0x29c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [esp + 4], 0x4265b1
call sym._l_closeconn
jmp 0x426950
call sym.___errno
cmp dword [eax], 0x77
je 0x4268fa
call sym.___errno
cmp dword [eax], 0xb
je 0x4268fa
mov dword [esp], ebx
mov dword [esp + 4], 0x4265c8
call sym._l_closeconn
mov dword [esp], 0
call sym._alarm
jmp 0x426950
mov dword [esp], 2
mov dword [esp + 4], 0x4265d9
call sym._outerror
jmp 0x4268cd
mov dword [esp], ebx
mov dword [esp + 4], 0x426610
jmp 0x42696b
mov dword [esp], ebx
mov dword [esp + 4], 0x426650
jmp 0x42696b
mov dword [esp], 0
mov dword [esp + 4], 0x426690
call sym._outerror
mov eax, dword [0x431240]
jmp 0x426850
mov dword [esp], ebx
mov dword [esp + 4], 0x4266b4
jmp 0x42696b
mov dword [esp], ebx
mov dword [esp + 4], 0x4266d0
jmp 0x42696b
call sym.___errno
cmp dword [eax], 0x11
jne 0x4267cf
mov dword [esp], esi
lea edx, [ebp - 0x278]
mov dword [esp + 4], edx
call sym._stat
mov eax, dword [ebx + 0xc]
cmp dword [ebp - 0x264], eax
jb 0x426a6b
mov dword [esp], ebx
mov dword [esp + 4], 0x426710
jmp 0x42696b
mov dword [esp], esi
mov dword [esp + 4], 0x10009
mov dword [esp + 8], 0x180
call sym._open
mov dword [ebx + 4], eax
test eax, eax
mov edx, eax
js 0x426a20
mov eax, dword [ebp - 0x264]
mov dword [ebx + 8], eax
mov dword [ebx + 0x470], eax
mov eax, dword [ebx + 0x46c]
test eax, eax
jg 0x4267cf
mov dword [esp], edx
call sym._close
mov eax, dword [ebp - 0x264]
lea ecx, [ebx + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], 0x426739
mov dword [esp + 8], edi
movzx edx, word [ebx + 0x1e]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
call sym._privmsg
jmp 0x426950