Function at 0x48c760
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add eax, 0x70e0
push eax
call fcn.0048d4b0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70e0]
mov edx, dword [edx + 0x70e4]
mov dword [ecx + 0x70e8], eax
mov dword [ecx + 0x70ec], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x70cc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x70d0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x70d4], edx
push 0
push 0x104
push 0x40
push 0x50fbaa
push 0x50fbbb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70cc]
push ecx
push str.__u___s:_s___d:_lld_
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
call fcn.004010f0
add esp, 0x20
cmp dword [0x50fb84], 0
je 0x48c902
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x48c83c
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Connect_Send__s
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
call fcn.004010f0
add esp, 0xc
push 1
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 2
jne 0x48c87e
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
push str.Client_Process_Send__s
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
call fcn.004010f0
add esp, 0xc
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 3
jne 0x48c8c0
mov eax, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Request_Send__s
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0xc
push 1
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 4
jne 0x48c902
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Disconnect_Send__s
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
call fcn.004010f0
add esp, 0xc
push 1
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70d0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70d4]
movsx edx, byte [edx + ecx - 1]
cmp edx, 3
je 0x48c974
cmp dword [0x50fb80], 0
je 0x48c96a
mov dword [ebp - 8], 0x2af7
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x2c3
push str.Client_Send_Invalid_Data
call fcn.004a14b0
add esp, 0x10
mov edx, dword [0x50fb80]
push edx
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, 0x2c3
jmp 0x48cca0
mov ecx, dword [ebp + 8]
mov edx, dword [0x50fb9c]
mov dword [ecx + 0x6fc0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x6fc4], 0
push 0x104
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x6fc8
push ecx
call fcn.00402610
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x48c9bb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x6fc8]
jae 0x48c9e5
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x6fcc]
cmp edx, dword [ecx + 0x70cc]
jne 0x48c9e3
jmp 0x48c9e5
jmp 0x48c9b2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x6fc8]
jne 0x48ca2a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6fc8], 0x40
jae 0x48ca2a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x70cc]
mov dword [ecx + eax*4 + 0x6fcc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6fc8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6fc8], ecx
xor eax, eax
jne 0x48c9a9
mov ecx, dword [ebp + 8]
add ecx, 0x6fc0
push ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x6fc8
push edx
push 0
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x48cba6
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70d4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70d0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70cc]
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70d8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x70d8]
cmp ecx, dword [eax + 0x70d4]
jne 0x48caa4
xor eax, eax
jmp 0x48cca0
cmp dword [0x50fb80], 0
je 0x48cb9c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
add edx, 0x70e8
push edx
call fcn.0048d4b0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x70e8]
sub edx, dword [ecx + 0x70e0]
mov eax, dword [eax + 0x70ec]
sbb eax, dword [ecx + 0x70e4]
push eax
push edx
push str.Client_Send_Data___lld_
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0x10
mov edx, dword [0x50fb80]
push edx
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Send_Data__s
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
call fcn.004010f0
add esp, 0xc
mov eax, dword [0x50fb80]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
mov eax, dword [ebp - 8]
push eax
push 0x2c3
push str.Client_Send_Data
call fcn.004a14b0
add esp, 0x10
mov ecx, dword [0x50fb80]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, 0x2c3
jmp 0x48cca0
cmp dword [0x50fb80], 0
je 0x48cc9b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x70e8
push eax
call fcn.0048d4b0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x70e8]
sub eax, dword [edx + 0x70e0]
mov ecx, dword [ecx + 0x70ec]
sbb ecx, dword [edx + 0x70e4]
push ecx
push eax
push str.Client_Send_Select___lld_
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
call fcn.004010f0
add esp, 0x10
mov eax, dword [0x50fb80]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
push str.Client_Send_Select__s
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
call fcn.004010f0
add esp, 0xc
mov ecx, dword [0x50fb80]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x2c3
push str.Client_Send_Select
call fcn.004a14b0
add esp, 0x10
mov edx, dword [0x50fb80]
push edx
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, 0x2c3
mov esp, ebp
pop ebp
ret