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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov edi, 0x5e37c8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
not ecx
dec ecx
mov esi, ecx
mov ecx, edi
push esi
mov dword [ebp - 0x2c], esi
call fcn.004d95b0
test al, al
je 0x4d8b8a
mov edi, dword [edi + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x5e37c8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [eax + 4]
add eax, ecx
mov byte [eax], 0
mov al, byte [ebx + 0x14]
test al, al
jne 0x4d8c01
mov edi, 0x5a27d8
or ecx, 0xffffffff
xor eax, eax
add ebx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp + 8], esi
call fcn.004d95b0
test al, al
je 0x4d8bdb
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x5a27d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push 1
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004d7f10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x20]
xor esi, esi
mov edi, 0xfa000
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
call fcn.004f9ff7
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x5c]
add esp, 4
cmp eax, esi
je 0x4d8c42
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
push esi
push ecx
push edx
call eax
cmp eax, esi
je 0x4d8ff5
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.004d9280
test al, al
je 0x4d8e69
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x58]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov esi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
mov dword [ebp - 0x28], esi
je 0x4d8c87
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
push esi
push ecx
push edx
call eax
test eax, eax
je 0x4d8e69
test esi, esi
je 0x4d8e69
cmp esi, 0xffffffff
jne 0x4d8ca9
lea eax, [ebp - 0x30]
push 0x58e508
push eax
mov dword [ebp - 0x30], 1
call fcn.004fb84c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4d8cf3
mov ebx, dword [ebp - 0x20]
push 4
push str._ERR
push ebx
call fcn.004f8c30
add esp, 0xc
test eax, eax
jne 0x4d8ccf
mov byte [esi + ebx], al
jmp 0x4d8e6f
push edi
call fcn.004f9ff7
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x18], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4d8d48
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + esi + 1]
cmp edi, ecx
jg 0x4d8d48
add edi, 0xfa000
push edi
mov dword [ebp - 0x2c], edi
call fcn.004f9ff7
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov esi, dword [ebp - 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x1c]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004f9f0e
add esp, 8
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
lea ebx, [edx + eax]
mov edx, ecx
mov edi, ebx
mov al, byte [ebp + 0xb]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [ebp - 0x48]
push esi
mov byte [ebp - 0x48], al
call fcn.004d7f10
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, 0x14
jle 0x4d8dc7
lea edi, [ebx - 0xf]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x34], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [ebp - 0x48]
push ebx
call fcn.004d95b0
test al, al
je 0x4d8e0a
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
mov byte [eax + ebx], 0
jmp 0x4d8e08
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [ebp - 0x48]
push edi
mov dword [ebp - 0x34], edi
call fcn.004d95b0
test al, al
je 0x4d8e0a
mov ecx, edi
mov edi, dword [ebp - 0x44]
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ecx + eax], 0
xor esi, esi
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
add edi, edx
cmp eax, esi
mov dword [ebp - 0x1c], edi
jne 0x4d8e21
mov eax, 0x574454
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.004d9520
cmp eax, 0xffffffff
mov byte [ebp - 4], 1
je 0x4d8f0a
mov eax, dword [ebp - 0x44]
cmp eax, esi
je 0x4d8e60
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d8e57
cmp al, 0xff
je 0x4d8e57
dec al
mov byte [ecx], al
jmp 0x4d8e60
push ecx
call fcn.0050ae1a
add esp, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
xor al, al
test al, al
je 0x4d8eb2
mov esi, dword [ebp - 0x20]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 8]
push 1
not ecx
dec ecx
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.004d95b0
test al, al
je 0x4d8eb2
mov edi, dword [edi + 4]
mov ecx, ebx
mov edx, ecx
mov eax, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
add eax, ebx
mov byte [eax], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4d8ff5
mov eax, dword [ebp - 0x1c]
mov edi, esi
or ecx, 0xffffffff
push 1
mov byte [eax + esi], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push ebx
call fcn.004d95b0
test al, al
je 0x4d8ff5
mov eax, dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
mov byte [eax + ebx], 0
jmp 0x4d8ff5
mov ecx, dword [ebp - 0x44]
cmp ecx, esi
je 0x4d8f2d
mov al, byte [ecx - 1]
test al, al
je 0x4d8f23
cmp al, 0xff
je 0x4d8f23
dec al
mov byte [ecx - 1], al
jmp 0x4d8f2d
dec ecx
push ecx
call fcn.0050ae1a
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
jmp 0x4d8c42
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4d9005
push eax
call fcn.004f9f0e
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d9015
push eax
call fcn.004f9f0e
add esp, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d9038
mov al, byte [ecx - 1]
test al, al
je 0x4d902e
cmp al, 0xff
je 0x4d902e
dec al
mov byte [ecx - 1], al
jmp 0x4d9038
dec ecx
push ecx
call fcn.0050ae1a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c