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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x80]
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 4], esi
cmp ecx, 2
jne 0x4f9094
cmp dword [ebx + 0x5c], 0x10
je 0x4f9094
mov eax, dword [ebx + 0x3278]
cmp eax, esi
je 0x4f8ef7
mov ecx, dword [ebx + 0x327c]
push ecx
push 0xa
push eax
call fcn.0054ede0
add esp, 0xc
test eax, eax
jne 0x4f8f6b
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
cmp eax, 0x2733
je 0x4f8f0e
mov cl, byte [ebx + 0x8f]
test cl, cl
je 0x4f8f63
cmp esi, 5
jge 0x4f8f63
mov eax, dword [ebx + 0x3084]
push 0x3c
push eax
mov ecx, ebx
call fcn.004ea360
mov ecx, dword [ebx + 0x308c]
test ecx, ecx
je 0x4f8f52
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x4f8f52
add ecx, 0x48
call fcn.004e8970
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4f9083
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
inc esi
jmp 0x4f8efd
test eax, eax
jne 0x4f9083
mov eax, dword [ebx + 0x327c]
test eax, eax
jne 0x4f8f8b
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x30bc]
mov ecx, dword [ebx + 0x30b8]
push eax
push 0
push ecx
call fcn.0054ede0
mov ecx, dword [ebx + 0x30b8]
mov edx, dword [ebx + 0x3278]
add esp, 0xc
sub eax, ecx
mov esi, eax
mov al, byte [edx]
mov dword [ebp - 0x1c], edx
mov edi, 1
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x30b8]
cmp byte [eax + esi], 0xa
je 0x4f9054
inc esi
mov byte [eax + esi], 0
mov ecx, dword [ebx + 0x30bc]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4f9024
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebx + 0x30b8]
push eax
push ecx
mov dword [ebx + 0x30bc], eax
call fcn.0054f87a
add esp, 8
mov dword [ebx + 0x30b8], eax
test eax, eax
jne 0x4f9021
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
cmp edi, dword [ebx + 0x327c]
jne 0x4f9042
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x30b8]
mov cl, byte [edx + edi]
inc edi
mov byte [eax + esi], cl
jmp 0x4f8fc0
mov edx, dword [ebx + 0x30b8]
mov byte [edx + esi + 1], 0
mov eax, dword [ebx + 0x327c]
sub eax, edi
mov dword [ebx + 0x327c], eax
mov ebx, dword [ebx + 0x3278]
push eax
lea eax, [ebx + edi]
push eax
push ebx
call fcn.0054ee90
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x30bc]
mov edx, dword [ebx + 0x30b8]
push ecx
push esi
push edx
call fcn.0054ede0
mov ecx, dword [ebx + 0x30b8]
add esp, 0xc
sub eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x2ac]
test edx, edx
jle 0x4f91ef
mov ecx, dword [ebx + 0x2a8]
mov eax, 0x200
sub eax, ecx
mov esi, edx
cmp edx, eax
jl 0x4f90dd
mov esi, eax
push esi
lea eax, [ecx + ebx + 0xa8]
push 0xa
push eax
call fcn.0054ede0
add esp, 0xc
test eax, eax
je 0x4f9108
sub eax, dword [ebx + 0x2a8]
sub eax, ebx
sub eax, 0xa7
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x4f910b
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x30bc]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, edx
dec ecx
cmp esi, ecx
jl 0x4f9157
mov edx, dword [ebx + 0x30b8]
lea eax, [eax + esi + 1]
push eax
push edx
mov dword [ebx + 0x30bc], eax
call fcn.0054f87a
add esp, 8
mov dword [ebx + 0x30b8], eax
test eax, eax
jne 0x4f9157
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x2a8]
mov edi, dword [ebx + 0x30b8]
mov ecx, esi
lea esi, [eax + ebx + 0xa8]
mov eax, dword [ebp - 0x1c]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebx + 0x2a8]
mov edx, dword [ebx + 0x2ac]
add eax, ecx
add esi, ecx
sub edx, ecx
mov ecx, dword [ebx + 0x30b8]
mov dword [ebx + 0x2a8], esi
mov dword [ebx + 0x2ac], edx
mov dword [ebp - 0x1c], eax
mov byte [ecx + eax], 0
mov edx, dword [ebx + 0x30b8]
cmp byte [edx + eax - 1], 0xa
je 0x4f9081
mov al, byte [ebp - 0x11]
test al, al
je 0x4f91ef
mov eax, dword [ebx + 0x3084]
push 0
push eax
mov ecx, ebx
call fcn.004ea360
test eax, eax
je 0x4f91ef
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3084]
lea edi, [ebx + 0xa8]
push 0
push 0x200
push edi
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
push str.recv_next_line
push esi
mov ecx, ebx
call fcn.004e9f20
cmp eax, 0x2733
jne 0x4f9230
mov edx, dword [ebx + 0x3084]
push 0
push 0x200
push edi
push edx
jmp 0x4f9204
test eax, eax
jne 0x4f9083
mov dword [ebx + 0x2a8], eax
mov dword [ebx + 0x2ac], esi
mov byte [ebp - 0x11], 1
jmp 0x4f90ba