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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6a44b0]
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
push ecx
cmp dword [0x1a82068], ebx
jne 0x47b7ef
mov edx, dword [0x1a7d8b4]
push edx
call fcn.0047b080
add esp, 0xc
jmp 0x47b804
mov edx, dword [0x631f94]
mov eax, dword [0x1a7d8b4]
push edx
push eax
call fcn.0047b130
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x6444a8
mov esi, eax
call edi
mov ecx, dword [ebp - 4]
mov edx, dword [0x5f3d58]
push ebx
push esi
push ecx
push edx
call sub.WS2_32.dll_send
push 0x6444a8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x631f6c]
mov dword [0x6423b0], eax
cmp esi, 0xffffffff
jne 0x47b98f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47bacb
cmp dword [0x6a4154], 0xe10
jle 0x47bacb
cmp dword [0x5269fc], 1
jne 0x47b894
mov edx, dword [0x5ec27c]
add edx, dword [0x1a3ba10]
push edx
push 0x6a3898
call fcn.004cce8a
push 7
push 0x6a3898
call fcn.0040d780
add esp, 0x10
mov eax, dword [0x5f3d58]
push 0x539de8
push eax
mov dword [0x6a44b0], ebx
call sub.WS2_32.dll___WSAFDIsSet
mov edx, dword [0x5f3d58]
cmp eax, 1
jne 0x47b903
mov ecx, dword [0x539de8]
xor eax, eax
cmp ecx, ebx
jbe 0x47b903
cmp dword [eax*4 + 0x539dec], edx
je 0x47b8d1
inc eax
cmp eax, ecx
jb 0x47b8c1
jmp 0x47b903
lea esi, [ecx - 1]
cmp eax, esi
jae 0x47b8fc
jmp 0x47b8e0
mov ecx, dword [eax*4 + 0x539df0]
mov dword [eax*4 + 0x539dec], ecx
mov ecx, dword [0x539de8]
inc eax
lea esi, [ecx - 1]
cmp eax, esi
jb 0x47b8e0
dec ecx
mov dword [0x539de8], ecx
push 1
push edx
call sub.WS2_32.dll_shutdown
mov edx, dword [0x5256e8]
mov eax, dword [0x5f3d58]
push ebx
push ebx
push edx
push eax
call sub.WS2_32.dll_WSAAsyncSelect
push 0x6444a8
call edi
mov ecx, dword [0x53b0ac]
mov edx, dword [0x5f3d58]
push ebx
push 0xffff
push ecx
push edx
call sub.WS2_32.dll_recv
cmp eax, ebx
je 0x47b964
cmp eax, 0xffffffff
je 0x47b964
mov eax, dword [0x53b0ac]
mov ecx, dword [0x5f3d58]
push ebx
push 0xffff
push eax
push ecx
call sub.WS2_32.dll_recv
cmp eax, ebx
jne 0x47b943
push 0x6444a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x5f3d58]
push 2
push edx
call sub.WS2_32.dll_shutdown
mov eax, dword [0x5f3d58]
push eax
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ebx
jne 0x47babf
cmp dword [0x5269fc], 1
jne 0x47b9c6
mov edx, dword [0x5ec280]
add edx, dword [0x1a3ba10]
push edx
push 0x6a3898
call fcn.004cce8a
push 7
push 0x6a3898
call fcn.0040d780
add esp, 0x10
mov eax, dword [0x5f3d58]
push 0x539de8
push eax
call sub.WS2_32.dll___WSAFDIsSet
mov edx, dword [0x5f3d58]
cmp eax, 1
jne 0x47ba33
mov ecx, dword [0x539de8]
xor eax, eax
cmp ecx, ebx
jbe 0x47ba33
lea ecx, [ecx]
cmp dword [eax*4 + 0x539dec], edx
je 0x47ba00
inc eax
cmp eax, ecx
jb 0x47b9f0
jmp 0x47ba33
lea esi, [ecx - 1]
cmp eax, esi
jae 0x47ba2c
jmp 0x47ba10
mov ecx, dword [eax*4 + 0x539df0]
mov dword [eax*4 + 0x539dec], ecx
mov ecx, dword [0x539de8]
inc eax
lea esi, [ecx - 1]
cmp eax, esi
jb 0x47ba10
dec ecx
mov dword [0x539de8], ecx
push 1
push edx
call sub.WS2_32.dll_shutdown
mov edx, dword [0x5256e8]
mov eax, dword [0x5f3d58]
push ebx
push ebx
push edx
push eax
call sub.WS2_32.dll_WSAAsyncSelect
push 0x6444a8
call edi
mov ecx, dword [0x53b0ac]
mov edx, dword [0x5f3d58]
push ebx
push 0xffff
push ecx
push edx
call sub.WS2_32.dll_recv
cmp eax, ebx
je 0x47ba94
cmp eax, 0xffffffff
je 0x47ba94
mov eax, dword [0x53b0ac]
mov ecx, dword [0x5f3d58]
push ebx
push 0xffff
push eax
push ecx
call sub.WS2_32.dll_recv
cmp eax, ebx
jne 0x47ba73
push 0x6444a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x5f3d58]
push 2
push edx
call sub.WS2_32.dll_shutdown
mov eax, dword [0x5f3d58]
push eax
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x6a4394], ebx
mov dword [0x6a44b0], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret