Function at 0x48bbb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
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 0x544680
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
call fcn.004010f0
add esp, 0x20
cmp dword [0x50fb84], 0
je 0x48bd25
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x48bc5f
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Connect_Recv__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 0x48bca1
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
push str.Client_Process_Recv__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 0x48bce3
mov eax, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Request_Recv__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 0x48bd25
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Disconnect_Recv__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 [0x50fb98]
add ecx, dword [0x50fb9c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6fc0], ecx
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 - 8], 0
jmp 0x48bd72
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6fc8]
jae 0x48bd9c
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x6fcc]
cmp edx, dword [ecx + 0x70cc]
jne 0x48bd9a
jmp 0x48bd9c
jmp 0x48bd69
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6fc8]
jne 0x48bde1
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6fc8], 0x40
jae 0x48bde1
mov eax, dword [ebp - 8]
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 0x48bd60
mov ecx, dword [ebp + 8]
add ecx, 0x70e0
push ecx
call fcn.0048d4b0
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x6fc0
push edx
push 0
push 0
mov eax, dword [ebp + 8]
add eax, 0x6fc8
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x48c4ab
mov ecx, dword [ebp + 8]
add ecx, 0x70e0
push ecx
call fcn.0048d4b0
add esp, 4
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70d4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70d0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70cc]
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [ebp + 8]
mov dword [edx + 0x70d8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70d8], 0
jg 0x48bf8e
cmp dword [0x50fb80], 0
je 0x48bf84
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48bea2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x70d8], 0
jne 0x48bea2
mov dword [ebp - 4], 0x2af2
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_Receive_Data_One___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_Receive_Data_One__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 - 4]
push eax
push 0x2c2
push str.Client_Receive_Data_One
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, 0x2c2
jmp 0x48c751
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x70d4]
sub edx, dword [ecx + 0x70d8]
je 0x48c4a6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70d0]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x70d8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x70d0], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x70d4]
sub eax, dword [edx + 0x70d8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70d4], 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 esi, dword [eax + 0x70e8]
sub esi, dword [ecx + 0x70e0]
mov edi, dword [eax + 0x70ec]
sbb edi, dword [ecx + 0x70e4]
mov eax, dword [0x50fb98]
cdq
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jl 0x48c138
jg 0x48c038
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jb 0x48c138
cmp dword [0x50fb80], 0
je 0x48c12c
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x70e8
push ecx
call fcn.0048d4b0
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x70e8]
sub ecx, dword [eax + 0x70e0]
mov edx, dword [edx + 0x70ec]
sbb edx, dword [eax + 0x70e4]
push edx
push ecx
push str.Client_Receive_Data_Two___lld_
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
call fcn.004010f0
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, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Receive_Data_Two__s
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0xc
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, 0x4867
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x2c2
push str.Client_Receive_Data_Two
call fcn.004a14b0
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 eax, 0x2c2
jmp 0x48c751
mov edx, dword [ebp + 8]
mov eax, dword [0x50fb98]
mov dword [edx + 0x6fc0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x70e8]
sub eax, dword [edx + 0x70e0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6fc0]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x6fc0], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6fc4], 0
push 0x104
push 0
mov edx, dword [ebp + 8]
add edx, 0x6fc8
push edx
call fcn.00402610
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x48c1a4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x6fc8]
jae 0x48c1ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x6fcc]
cmp eax, dword [edx + 0x70cc]
jne 0x48c1cc
jmp 0x48c1ce
jmp 0x48c19b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x6fc8]
jne 0x48c213
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6fc8], 0x40
jae 0x48c213
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70cc]
mov dword [edx + ecx*4 + 0x6fcc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6fc8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6fc8], edx
xor ecx, ecx
jne 0x48c192
mov edx, dword [ebp + 8]
add edx, 0x6fc0
push edx
push 0
push 0
mov eax, dword [ebp + 8]
add eax, 0x6fc8
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x48c39f
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70d4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70d0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70cc]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70d8], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x70d8], 0
jg 0x48c39a
cmp dword [0x50fb80], 0
je 0x48c390
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48c2b0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70d8], 0
jne 0x48c2b0
mov dword [ebp - 4], 0x2af2
mov ecx, dword [ebp + 8]
add ecx, 0x70e8
push ecx
call fcn.0048d4b0
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x70e8]
sub ecx, dword [eax + 0x70e0]
mov edx, dword [edx + 0x70ec]
sbb edx, dword [eax + 0x70e4]
push edx
push ecx
push str.Client_Receive_Data_Three___lld_
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
call fcn.004010f0
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, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Receive_Data_Three__s
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0xc
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, 0x4867
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x2c2
push str.Client_Receive_Data_Three
call fcn.004a14b0
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 eax, 0x2c2
jmp 0x48c751
jmp 0x48c4a1
cmp dword [0x50fb80], 0
je 0x48c497
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], 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_Receive_Select_Two___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_Receive_Select_Two__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 - 4]
push eax
push 0x2c2
push str.Client_Receive_Select_Two
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, 0x2c2
jmp 0x48c751
jmp 0x48bf8e
jmp 0x48c5aa
cmp dword [0x50fb80], 0
je 0x48c5a0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], 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_Receive_Select_One___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_Receive_Select_One__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 - 4]
push ecx
push 0x2c2
push str.Client_Receive_Select_One
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, 0x2c2
jmp 0x48c751
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70d0]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x70d8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70d0], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70d0]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70d0]
movsx eax, byte [edx - 1]
cmp eax, 3
je 0x48c63a
cmp dword [0x50fb80], 0
je 0x48c630
mov dword [ebp - 4], 0x2af7
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x2c2
push str.Client_Receive_Invalid_Data
call fcn.004a14b0
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 eax, 0x2c2
jmp 0x48c751
cmp dword [0x50fb84], 0
je 0x48c74f
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 1
jne 0x48c689
mov eax, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Connect_Fini__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], 2
jne 0x48c6cb
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Process_Fini__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], 3
jne 0x48c70d
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
push str.Client_Request_Fini__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], 4
jne 0x48c74f
mov eax, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Disconnect_Fini__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
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret