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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004e27f0
mov ebx, eax
test ebx, ebx
je 0x487a41
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x4879fc
cmp esi, 0x20
je 0x4879fc
mov edx, dword [0x59ba30]
push eax
push 0x7f
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x487620
cmp eax, 1
jg 0x487635
mov ecx, 1
call fcn.00487390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
cmp eax, 0x78
jle 0x48763f
mov eax, 0x78
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push 0xd
push eax
call fcn.00570260
add esp, 8
test eax, eax
je 0x48765a
mov byte [eax], 0
lea ecx, [esp + 0x10]
push 0xa
push ecx
call fcn.00570260
add esp, 8
test eax, eax
je 0x487670
mov byte [eax], 0
mov al, byte [esp + 0x10]
test al, al
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x48769f
mov edx, dword [str._default_]
mov eax, dword [0x5879bc]
mov cx, word [0x5879c0]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
jmp 0x4876c4
lea edx, [esp + 0x10]
push edx
push 0x583bdc
push 0x5a8630
call ebp
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x5a8630]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x4876b5
mov eax, dword [0x5b4314]
mov ecx, dword [0x59ba30]
push 0
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea edx, [esp + 0x10]
push edx
xor edx, edx
mov ecx, 0x917
call fcn.0041d620
push eax
push 0x5a8630
call ebp
mov al, byte [0x5a85c8]
add esp, 0xc
test al, al
je 0x487751
mov edi, 0x5a8630
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x487706
mov ax, word [0x5879b4]
mov cl, byte [0x5879b6]
mov word [edi], ax
mov eax, 0x5a8630
mov byte [edi + 2], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487728
sub eax, edx
push 0x5a85c8
xor edx, edx
mov ecx, 0x918
mov esi, eax
call fcn.0041d620
push eax
lea edx, [esi + 0x5a8630]
push edx
call ebp
add esp, 0xc
push 0x40
push 0x583b6c
push 0x5a84c0
call fcn.00570ad0
xor edi, edi
add esp, 0xc
cmp eax, edi
mov dword [0x5a85c4], eax
jne 0x487802
mov eax, 0x5a8630
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487780
sub eax, edx
push 0x5a84c0
xor edx, edx
mov ecx, 0x919
mov esi, eax
call fcn.0041d620
push eax
lea eax, [esi + 0x5a8630]
push eax
call ebp
mov ecx, dword [0x5a5514]
add esp, 0xc
mov dword [0x59bcec], edi
mov dword [0x5ae23c], 1
push ecx
mov ecx, dword [ebx]
mov edx, 0x5a8630
call fcn.00503ad0
lea edx, [esp + 0x10]
mov ecx, 0x91a
call fcn.0041d620
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4877e1
sub eax, edx
push edi
push eax
mov eax, dword [0x59ba30]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x487a41
cmp dword [0x5a84bc], edi
je 0x487830
mov ecx, dword [0x5a5514]
mov dword [0x59bcec], edi
mov dword [0x5ae23c], 1
push ecx
mov ecx, dword [ebx]
mov edx, 0x5a8630
call fcn.00503ad0
lea ecx, [ecx]
mov edx, dword [0x5a85c4]
push edx
push 0x3e7
push 0x5a8630
call fcn.00570a4a
add esp, 0xc
test eax, eax
je 0x487898
lea ecx, [ecx]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487857
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
push 0x5a8630
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x487917
mov ecx, dword [0x5a85c4]
push ecx
push 0x3e7
push 0x5a8630
call fcn.00570a4a
add esp, 0xc
test eax, eax
jne 0x487850
lea edx, [esp + 0x10]
push str._default_
push edx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x4878e0
mov eax, dword [0x5a85c4]
push eax
call fcn.005730d6
mov ecx, dword [str._default_]
mov edx, dword [0x5879bc]
mov ax, word [0x5879c0]
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
jmp 0x487830
lea edx, [esp + 0x10]
mov ecx, 0x91b
call fcn.0041d620
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4878f5
push edi
sub eax, edx
mov edx, dword [0x59ba30]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x487a41
mov eax, dword [0x5b4314]
mov ecx, dword [0x59ba30]
push 0x22
push 0x8030
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [0x5a85c4]
push edx
push 0x3e7
push 0x5a8630
call fcn.00570a4a
add esp, 0xc
test eax, eax
je 0x487a41
mov ecx, 0x5a8630
call fcn.004b21c0
test eax, eax
jne 0x487a41
mov ecx, 0x5a8630
call fcn.00487550
test eax, eax
je 0x4879e2
push 0xa
push 0x5a8630
call fcn.00570260
add esp, 8
test eax, eax
jne 0x4879a1
mov edi, 0x5a8630
dec edi
jmp 0x487990
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x487990
mov ax, word [0x58445c]
mov word [edi], ax
mov eax, 0x5a8630
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4879b0
mov ecx, dword [0x59ba30]
push 0
sub eax, edx
push eax
push 0x5a8630
push ecx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x4879e2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x487a4b
jmp 0x487a41
mov edx, 0x3e7
mov ecx, 0x5a8630
call fcn.0041ef30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [0x5a84bc]
test eax, eax
je 0x487a41
mov al, byte [0x5a85c8]
test al, al
je 0x487a41
push 0x5a85c8
xor edx, edx
mov ecx, 0x916
call fcn.0041d620
push eax
push 0x5a8630
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x5a5514]
mov ecx, dword [ebx]
add esp, 0xc
push edx
mov edx, 0x5a8630
call fcn.00503ad0
mov ecx, 2
call fcn.00487390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret