Function at 0x4c8e80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004d1720
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1038], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x102c], edi
test ecx, ecx
jne 0x4c8ec3
cmp edx, 0xffffffff
je 0x4c9109
push esi
xor esi, esi
mov dword [ebp - 0x1028], esi
cmp dword [edi + 0x78], esi
jle 0x4c9108
push ebx
xor ebx, ebx
mov dword [ebp - 0x103c], ebx
nop
add ebx, dword [edi + 0x74]
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x4c90e8
cmp dword [ebx + 0x54], 0
jne 0x4c90e8
test ecx, ecx
je 0x4c8f73
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c90df
mov eax, dword [ebp - 0x1030]
xor ecx, ecx
mov edx, dword [ebx + 0x1c]
mov esi, dword [eax]
test esi, esi
je 0x4c8f6b
add eax, 4
cmp dword [eax], edx
je 0x4c8f34
inc ecx
add eax, 4
cmp ecx, esi
jb 0x4c8f20
mov esi, dword [ebp - 0x1028]
jmp 0x4c8f80
lea eax, [esi - 1]
cmp ecx, eax
jae 0x4c8f60
mov edi, dword [ebp - 0x1030]
lea edx, [edi + 4]
lea edx, [edx + ecx*4]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [edi]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x4c8f47
mov edi, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
lea eax, [esi - 1]
mov dword [ecx], eax
mov esi, dword [ebp - 0x1028]
jmp 0x4c8f80
cmp eax, edx
jne 0x4c90e8
nop dword [eax + eax]
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x4c8fa2
push dword [ebp - 0x1038]
xor edi, edi
push esi
push dword [ebp - 0x102c]
call fcn.004c82d0
add esp, 0xc
jmp 0x4c90c5
cmp dword [ebx], 2
mov ecx, 0x1c
mov esi, dword [edi + 0x91b8]
mov eax, 0x10
cmovne eax, ecx
lea ecx, [ebp - 0x1034]
mov dword [ebp - 0x1034], eax
mov eax, dword [ebx + 0x1c]
test esi, esi
je 0x4c8ffa
push dword [edi + 0x91bc]
mov esi, dword [esi + 0xc]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
push 0
push 0x1001
lea ecx, [ebp - 0x1008]
push ecx
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 0x1c
jmp 0x4c9017
push ecx
lea ecx, [ebp - 0x1024]
push ecx
push 0
push 0x1001
lea ecx, [ebp - 0x1008]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c903a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4c90d3
cmp eax, 0x2733
je 0x4c90d3
jmp 0x4c903e
test edi, edi
jg 0x4c905b
push dword [ebp - 0x1038]
mov esi, dword [ebp - 0x1028]
push esi
push dword [ebp - 0x102c]
call fcn.004c82d0
add esp, 0xc
jmp 0x4c90c5
movzx eax, word [ebp - 0x1024]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x4c90d3
sub ecx, 2
je 0x4c9093
sub ecx, 0x15
jne 0x4c90d3
lea edx, [ebx + 4]
lea eax, [ebp - 0x101c]
lea esi, [ecx + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4c90d3
add edx, 4
add eax, 4
sub esi, 4
jae 0x4c9080
jmp 0x4c90a0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1020]
cmp eax, dword [ecx]
jne 0x4c90d3
push dword [ebp - 0x1038]
mov esi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1008]
push 0
push esi
push edi
push eax
push dword [ebp - 0x102c]
call fcn.004c88d0
add esp, 0x18
test edi, edi
mov edi, dword [ebp - 0x102c]
jg 0x4c8f80
mov edi, dword [ebp - 0x102c]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1030]
mov ebx, dword [ebp - 0x103c]
inc esi
add ebx, 0x58
mov dword [ebp - 0x1028], esi
mov dword [ebp - 0x103c], ebx
cmp esi, dword [edi + 0x78]
jl 0x4c8ee0
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004d0675
mov esp, ebp
pop ebp
ret