Function at 0x49f2bc
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 0x49f59d
cmp dword [ebx + 0x428], 0
je 0x49f59d
mov dword [ebx + 0x3fc], 1
push 0
call fcn.004c92e8
pop ecx
mov dword [ebx + 0x438], eax
cmp dword [ebx + 0x428], 1
jne 0x49f385
mov dword [ebx + 0x428], 2
lea eax, [ebx + 0x230]
push eax
mov edx, dword [ebx + 0x418]
push edx
mov ecx, dword [0x4d17b0]
shl ecx, 2
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
add ecx, 0x4d16e8
push ecx
push str.120__s__lu__s_n
push 0x4eb8f1
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
push 0x4eb8f1
call fcn.004bceac
pop ecx
push eax
push 0x4eb8f1
mov eax, dword [ebx + 0x43c]
push eax
call sub.WSOCK32.dll_send
push 0x21
push 0x414
mov edx, dword [0x4d429c]
push edx
mov ecx, dword [ebx + 0x43c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x49f5ba
mov eax, dword [ebx + 0x428]
cmp eax, 2
je 0x49f399
cmp eax, 3
jne 0x49f59d
push 0
push 0
mov edx, dword [0x4d429c]
push edx
mov ecx, dword [ebx + 0x43c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
push 0
push 0x1000
push 0x4eb8f1
mov eax, dword [ebx + 0x43c]
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x49f59d
mov byte [eax + 0x4eb8f1], 0
push 0x4eb8f1
call fcn.0047cf3c
test eax, eax
je 0x49f59d
mov edi, 0x4eb8f1
jmp 0x49f3f1
inc edi
cmp byte [edi], 0x20
je 0x49f3f0
cmp byte [edi], 0
je 0x49f59d
push 0x20
push edi
call fcn.004bce0c
add esp, 8
mov esi, eax
test esi, esi
je 0x49f59d
mov byte [esi], 0
inc esi
jmp 0x49f41b
inc esi
cmp byte [esi], 0x20
je 0x49f41a
cmp byte [esi], 0
je 0x49f59d
push 0x20
push esi
call fcn.004bce0c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49f473
mov eax, dword [ebp - 4]
mov byte [eax], 0
inc dword [ebp - 4]
jmp 0x49f44b
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp byte [edx], 0x20
je 0x49f448
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x49f473
push 0xa
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004c61dc
add esp, 0xc
mov dword [ebx + 0x41c], eax
push esi
call fcn.0047cf98
test eax, eax
je 0x49f59d
push edi
call fcn.004c4ccc
pop ecx
mov dword [ebx + 0x42c], eax
cmp dword [ebx + 0x428], 3
jne 0x49f4fc
cmp dword [ebx + 0x42c], 0x84
jne 0x49f59d
lea ecx, [ebx + 0x230]
push ecx
lea eax, [ebx + 4]
push eax
push 0x4d2d80
push 0x4eb8f1
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov edx, dword [0x4d2d10]
mov dword [0x4d4374], edx
push 1
push 1
push 3
push 0x4eb8f1
call fcn.004baa48
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x49f59d
push ebx
call fcn.0049f960
mov eax, 1
jmp 0x49f5ba
cmp dword [ebx + 0x42c], 0x79
jne 0x49f59d
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.004b7934
mov esi, eax
test esi, esi
je 0x49f55a
lea eax, [ebx + 0x230]
push eax
push edi
push 0x4d2d8c
lea edx, [esi + 4]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea ecx, [ebx + 0x230]
push ecx
push edi
push str.Send__s__s
push 0x4eb8f1
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x4eb8f1
mov eax, dword [ebx]
push eax
call sub.USER32.dll_SetWindowTextA
cmp dword [0x4d3774], 0
je 0x49f590
push esi
call fcn.004a78e4
push ebx
call fcn.0049f960
mov eax, 1
jmp 0x49f5ba
cmp dword [ebx + 0x428], 3
jne 0x49f5b2
push 0
push ebx
call fcn.0049e694
xor eax, eax
jmp 0x49f5ba
push ebx
call fcn.004a01e4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4