Function at 0x4cfc88
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4cff69
cmp dword [ebx + 0x428], 0
je 0x4cff69
mov dword [ebx + 0x3fc], 1
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x438], eax
cmp dword [ebx + 0x428], 1
jne 0x4cfd51
mov dword [ebx + 0x428], 2
lea eax, [ebx + 0x230]
push eax
mov edx, dword [ebx + 0x418]
push edx
mov ecx, dword [0x4fac34]
shl ecx, 2
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
add ecx, 0x4fab6c
push ecx
push 0x4fc21d
push 0x51e0b3
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
push 0x51e0b3
call fcn.00401318
pop ecx
push eax
push 0x51e0b3
mov eax, dword [ebx + 0x44c]
push eax
call sub.WSOCK32.dll_send
push 0x21
push 0x414
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [ebx + 0x44c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x4cff86
mov eax, dword [ebx + 0x428]
cmp eax, 2
je 0x4cfd65
cmp eax, 3
jne 0x4cff69
push 0
push 0
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [ebx + 0x44c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
push 0
push 0x1000
push 0x51e0b3
mov eax, dword [ebx + 0x44c]
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x4cff69
mov byte [eax + 0x51e0b3], 0
push 0x51e0b3
call fcn.004a9028
test eax, eax
je 0x4cff69
mov edi, 0x51e0b3
jmp 0x4cfdbd
inc edi
cmp byte [edi], 0x20
je 0x4cfdbc
cmp byte [edi], 0
je 0x4cff69
push 0x20
push edi
call fcn.00401278
add esp, 8
mov esi, eax
test esi, esi
je 0x4cff69
mov byte [esi], 0
inc esi
jmp 0x4cfde7
inc esi
cmp byte [esi], 0x20
je 0x4cfde6
cmp byte [esi], 0
je 0x4cff69
push 0x20
push esi
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4cfe3f
mov eax, dword [ebp - 4]
mov byte [eax], 0
inc dword [ebp - 4]
jmp 0x4cfe17
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp byte [edx], 0x20
je 0x4cfe14
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x4cfe3f
push 0xa
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0040af3c
add esp, 0xc
mov dword [ebx + 0x41c], eax
push esi
call fcn.004a9084
test eax, eax
je 0x4cff69
push edi
call fcn.00409a14
pop ecx
mov dword [ebx + 0x42c], eax
cmp dword [ebx + 0x428], 3
jne 0x4cfec8
cmp dword [ebx + 0x42c], 0x84
jne 0x4cff69
lea ecx, [ebx + 0x230]
push ecx
lea eax, [ebx + 4]
push eax
push 0x4fc22d
push 0x51e0b3
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov edx, dword [0x4fc1b4]
mov dword [0x4fdb80], edx
push 1
push 1
push 3
push 0x51e0b3
call fcn.004ee374
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x4cff69
push ebx
call fcn.004d032c
mov eax, 1
jmp 0x4cff86
cmp dword [ebx + 0x42c], 0x79
jne 0x4cff69
lea edi, [ebx + 4]
push esi
push edi
mov eax, edi
mov edi, esi
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebx]
push eax
call fcn.004eae80
mov esi, eax
test esi, esi
je 0x4cff26
lea eax, [ebx + 0x230]
push eax
push edi
push 0x4fc239
lea edx, [esi + 4]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea ecx, [ebx + 0x230]
push ecx
push edi
push 0x4fc245
push 0x51e0b3
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x51e0b3
mov eax, dword [ebx]
push eax
call sub.USER32.dll_SetWindowTextA
cmp dword [0x4fccb4], 0
je 0x4cff5c
push esi
call fcn.004d9d04
push ebx
call fcn.004d032c
mov eax, 1
jmp 0x4cff86
cmp dword [ebx + 0x428], 3
jne 0x4cff7e
push 0
push ebx
call fcn.004ced48
xor eax, eax
jmp 0x4cff86
push ebx
call fcn.004d0cec
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4