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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
mov ebx, 0x57f0ac
lea edi, [ebp - 0x80]
push dword [0x56cf00]
call fcn.0041286b
mov esi, eax
test esi, esi
jne 0x487ec2
push 2
call fcn.00487c5c
jmp 0x488231
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, 0xffff
jne 0x487ed4
cmp dword [ebp + 8], 0x20
jne 0x487f1b
cmp dword [0x563cf8], 0
je 0x487f0f
cmp byte [0x57f048], 0
je 0x487f0f
push 0x57f048
push 0
push 0x92f
call fcn.0042c564
push eax
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x55f8ac]
push ebx
push dword [esi]
call fcn.004ef100
push 2
call fcn.00487c5c
jmp 0x488231
push 0
push 0x7f
push edi
push dword [0x563d04]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x487f3c
push 1
call fcn.00487c5c
jmp 0x488231
cmp eax, 1
jg 0x487f4d
push 1
call fcn.00487c5c
jmp 0x488231
cmp eax, 0x78
jle 0x487f57
mov eax, 0x78
mov byte [edi + eax], 0
push 0xd
push edi
call fcn.0054c230
add esp, 8
test eax, eax
je 0x487f6d
mov byte [eax], 0
push 0xa
push edi
call fcn.0054c230
add esp, 8
test eax, eax
je 0x487f7f
mov byte [eax], 0
cmp byte [edi], 0
jne 0x487f95
push esi
push edi
mov esi, 0x563d1c
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
jmp 0x487fc9
push edi
push 0x563d27
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push esi
push edi
mov esi, edi
mov edi, ebx
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
push 0
push 0
push dword [0x56cee8]
push dword [0x563d04]
call sub.WSOCK32.dll_WSAAsyncSelect
push edi
push 0
push 0x930
call fcn.0042c564
push eax
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [0x57f048], 0
je 0x488030
push 0x563d2d
push ebx
call fcn.0054c1f4
add esp, 8
push 0x57f048
push 0
push 0x931
call fcn.0042c564
push eax
push ebx
call fcn.0054c2d0
pop ecx
add eax, ebx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x40
push 0x563d31
push 0x57ef44
call fcn.00552238
add esp, 0xc
mov dword [0x563cfc], eax
cmp dword [0x563cfc], 0
jne 0x4880c2
push 0x57ef44
push 0
push 0x932
call fcn.0042c564
push eax
push ebx
call fcn.0054c2d0
pop ecx
add eax, ebx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
mov dword [0x56ac00], eax
mov dword [0x56ac10], 1
push dword [0x55f8ac]
push ebx
push dword [esi]
call fcn.004ef100
push edi
push 0x933
call fcn.0042c564
push 0
push edi
call fcn.0054c2d0
pop ecx
push eax
push edi
push dword [0x563d04]
call sub.WSOCK32.dll_send
push 2
call fcn.00487c5c
jmp 0x488231
cmp dword [0x563cf8], 0
je 0x4880eb
xor edx, edx
mov dword [0x56ac00], edx
mov dword [0x56ac10], 1
push dword [0x55f8ac]
push ebx
push dword [esi]
call fcn.004ef100
xor esi, esi
jmp 0x48810c
push edi
call fcn.0054c2d0
pop ecx
push eax
push edi
push ebx
call fcn.0054c52c
add esp, 0xc
test eax, eax
jne 0x48810c
mov esi, 1
jmp 0x488124
push dword [0x563cfc]
push 0x3e7
push ebx
call fcn.0054f860
add esp, 0xc
test eax, eax
jne 0x4880ef
test esi, esi
jne 0x488185
push 0x563d34
push edi
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x488167
push edi
push 0x934
call fcn.0042c564
push 0
push edi
call fcn.0054c2d0
pop ecx
push eax
push edi
push dword [0x563d04]
call sub.WSOCK32.dll_send
push 2
call fcn.00487c5c
jmp 0x488231
push dword [0x563cfc]
call fcn.005503d4
pop ecx
push edi
mov esi, str._default_
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
jmp 0x4880eb
push 0x22
push 0x8030
push dword [0x56cee8]
push dword [0x563d04]
call sub.WSOCK32.dll_WSAAsyncSelect
push dword [0x563cfc]
push 0x3e7
push ebx
call fcn.0054f860
add esp, 0xc
test eax, eax
jne 0x4881be
push 2
call fcn.00487c5c
jmp 0x488231
push ebx
call fcn.004acccf
test eax, eax
je 0x4881d1
push 2
call fcn.00487c5c
jmp 0x488231
push ebx
call fcn.00487e12
test eax, eax
je 0x488226
push 0xa
push ebx
call fcn.0054c230
add esp, 8
test eax, eax
jne 0x4881f8
push 0x563d4a
push ebx
call fcn.0054c1f4
add esp, 8
push 0
push ebx
call fcn.0054c2d0
pop ecx
push eax
push ebx
push dword [0x563d04]
call sub.WSOCK32.dll_send
inc eax
jne 0x488226
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x488231
push 2
call fcn.00487c5c
jmp 0x488231
push 0x3e7
push ebx
call fcn.0042e3f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4