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

Disassembly:
sub esp, 0x80
push ebp
push esi
push edi
mov esi, ecx
call fcn.004f0b80
mov ebp, eax
test ebp, ebp
je 0x488196
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x488150
cmp esi, 0x20
je 0x488150
mov edx, dword [0x5bfa8c]
push eax
push 0x7f
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x487d2f
cmp eax, 1
jg 0x487d43
mov ecx, 1
call fcn.00487aa0
pop edi
pop esi
pop ebp
add esp, 0x80
ret
cmp eax, 0x78
jle 0x487d4d
mov eax, 0x78
mov byte [esp + eax + 0xc], 0
lea eax, [esp + 0xc]
push 0xd
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x487d68
mov byte [eax], 0
lea ecx, [esp + 0xc]
push 0xa
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x487d7e
mov byte [eax], 0
mov al, byte [esp + 0xc]
test al, al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x487dad
mov edx, dword [str._default_]
mov eax, dword [0x5a827c]
mov cx, word [0x5a8280]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
jmp 0x487dd2
lea edx, [esp + 0xc]
push edx
push 0x5a4c54
push 0x5cceb0
call edi
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x5cceb0]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x487dc3
mov eax, dword [0x5f92ec]
mov ecx, dword [0x5bfa8c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea edx, [esp + 0xc]
push edx
xor edx, edx
mov ecx, 0x917
call fcn.0041f1a0
push eax
push 0x5cceb0
call edi
mov al, byte [0x5cce48]
add esp, 0xc
test al, al
je 0x487e69
mov eax, 0x5cceb0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487e16
sub eax, edx
push 0xf
lea eax, [eax + 0x5cceb0]
push 0x5a8270
push eax
call edi
mov eax, 0x5cceb0
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487e40
sub eax, edx
push 0x5cce48
xor edx, edx
mov ecx, 0x918
mov esi, eax
call fcn.0041f1a0
push eax
lea ecx, [esi + 0x5cceb0]
push ecx
call edi
add esp, 0xc
push 0x40
push 0x5a4be4
push 0x5ccd40
call fcn.00591d20
add esp, 0xc
test eax, eax
mov dword [0x5cce44], eax
jne 0x487f29
mov eax, 0x5cceb0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487e92
sub eax, edx
push 0x5ccd40
xor edx, edx
mov ecx, 0x919
mov esi, eax
call fcn.0041f1a0
push eax
lea edx, [esi + 0x5cceb0]
push edx
call edi
mov eax, dword [0x5c9d54]
add esp, 0xc
mov dword [0x5bfd5c], 0
mov dword [0x5f31fc], 1
mov ecx, dword [ebp]
push eax
mov edx, 0x5cceb0
call fcn.00514ad0
lea edx, [esp + 0xc]
mov ecx, 0x91a
call fcn.0041f1a0
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487ef7
push 0
sub eax, edx
mov edx, dword [0x5bfa8c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, 2
call fcn.00487aa0
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov eax, dword [0x5ccd3c]
test eax, eax
je 0x487f60
mov eax, dword [0x5c9d54]
mov dword [0x5bfd5c], 0
mov dword [0x5f31fc], 1
mov ecx, dword [ebp]
push eax
mov edx, 0x5cceb0
call fcn.00514ad0
lea esp, [esp]
mov ecx, dword [0x5cce44]
push ecx
push 0x3e7
push 0x5cceb0
call fcn.00591c9a
add esp, 0xc
test eax, eax
je 0x487fc7
lea ecx, [ecx]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487f87
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
push 0x5cceb0
call fcn.005a2a05
add esp, 0xc
test eax, eax
je 0x488057
mov eax, dword [0x5cce44]
push eax
push 0x3e7
push 0x5cceb0
call fcn.00591c9a
add esp, 0xc
test eax, eax
jne 0x487f80
lea ecx, [esp + 0xc]
push str._default_
push ecx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x488010
mov edx, dword [0x5cce44]
push edx
call fcn.005949e6
mov eax, dword [str._default_]
mov ecx, dword [0x5a827c]
mov dx, word [0x5a8280]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
jmp 0x487f60
lea edx, [esp + 0xc]
mov ecx, 0x91b
call fcn.0041f1a0
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488025
mov ecx, dword [0x5bfa8c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, 2
call fcn.00487aa0
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov edx, dword [0x5f92ec]
mov eax, dword [0x5bfa8c]
push 0x22
push 0x8030
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov ecx, dword [0x5cce44]
push ecx
push 0x3e7
push 0x5cceb0
call fcn.00591c9a
add esp, 0xc
test eax, eax
je 0x488196
mov ecx, 0x5cceb0
call fcn.004bcf90
test eax, eax
jne 0x488196
mov ecx, 0x5cceb0
call fcn.00487c60
test eax, eax
je 0x488137
push 0xa
push 0x5cceb0
call fcn.005912e0
add esp, 8
test eax, eax
jne 0x4880e2
mov edi, 0x5cceb0
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4880d0
mov dx, word [0x5a551c]
mov word [edi], dx
mov eax, 0x5cceb0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4880f0
push 0
sub eax, edx
push eax
mov eax, dword [0x5bfa8c]
push 0x5cceb0
push eax
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x488137
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4881a0
mov ecx, 2
call fcn.00487aa0
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov edx, 0x3e7
mov ecx, 0x5cceb0
call fcn.00420e60
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov eax, dword [0x5ccd3c]
test eax, eax
je 0x488196
mov al, byte [0x5cce48]
test al, al
je 0x488196
push 0x5cce48
xor edx, edx
mov ecx, 0x916
call fcn.0041f1a0
push eax
push 0x5cceb0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x5c9d54]
add esp, 0xc
push ecx
mov ecx, dword [ebp]
mov edx, 0x5cceb0
call fcn.00514ad0
mov ecx, 2
call fcn.00487aa0
pop edi
pop esi
pop ebp
add esp, 0x80
ret