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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x7c]
mov dword [ebp - 4], 0
cmp dword [eax + 0x24], 2
jne 0x4d5f9d
cmp dword [esi + 0x5c], 0x10
je 0x4d5f9d
mov eax, dword [esi + 0x3060]
test eax, eax
je 0x4d5e04
mov ecx, dword [esi + 0x3064]
push ecx
push 0xa
push eax
call fcn.0051d590
add esp, 0xc
test eax, eax
jne 0x4d5e74
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
xor edi, edi
cmp eax, 0x2733
jne 0x4d5e6c
cmp edi, 5
jge 0x4d6133
mov eax, dword [esi + 0x2e74]
push 0x3c
push eax
mov ecx, esi
call fcn.004c7940
mov ecx, dword [esi + 0x2e7c]
test ecx, ecx
je 0x4d5e5b
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x4d5e5b
add ecx, 0x48
call fcn.004c5fb0
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 0x4d6133
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
inc edi
jmp 0x4d5e0c
test eax, eax
jne 0x4d6133
mov eax, dword [esi + 0x3064]
test eax, eax
jne 0x4d5e94
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 [esi + 0x2ea8]
mov ecx, dword [esi + 0x2ea4]
push eax
push 0
push ecx
call fcn.0051d590
mov ecx, dword [esi + 0x2ea4]
mov edx, dword [esi + 0x3060]
add esp, 0xc
sub eax, ecx
mov edi, eax
mov al, byte [edx]
mov dword [ebp - 0x14], edx
mov ebx, 1
mov byte [ecx + edi], al
mov eax, dword [esi + 0x2ea4]
cmp byte [eax + edi], 0xa
je 0x4d5f5d
inc edi
mov byte [eax + edi], 0
mov ecx, dword [esi + 0x2ea8]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x4d5f2d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 0x2ea4]
push eax
push ecx
mov dword [esi + 0x2ea8], eax
call fcn.0051ded3
add esp, 8
mov dword [esi + 0x2ea4], eax
test eax, eax
jne 0x4d5f2a
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 - 0x14]
cmp ebx, dword [esi + 0x3064]
jne 0x4d5f4b
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 [esi + 0x2ea4]
mov cl, byte [edx + ebx]
inc ebx
mov byte [eax + edi], cl
jmp 0x4d5ec9
mov edx, dword [esi + 0x2ea4]
mov byte [edx + edi + 1], 0
mov eax, dword [esi + 0x3064]
sub eax, ebx
mov dword [esi + 0x3064], eax
mov esi, dword [esi + 0x3060]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.0051d640
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 [esi + 0x2ea8]
mov edx, dword [esi + 0x2ea4]
push ecx
push 0
push edx
call fcn.0051d590
mov ecx, dword [esi + 0x2ea4]
add esp, 0xc
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x2e74]
push str.recv___next_byte
push 0
add ecx, edi
push 1
push ecx
push eax
call sub.WSOCK32.dll_recv
push eax
mov ecx, esi
call fcn.004c7530
mov ebx, eax
cmp ebx, 0x2733
jne 0x4d60e4
mov ecx, dword [esi + 0x2ea4]
mov edx, dword [esi + 0x2e74]
push str.recv___next_byte
push 0
add ecx, edi
push 1
push ecx
push edx
jmp 0x4d5fd2
mov eax, dword [esi + 0x2ea4]
cmp byte [eax + edi], 0xa
je 0x4d60ff
inc edi
mov byte [eax + edi], 0
mov ecx, dword [esi + 0x2ea8]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x4d6069
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 0x2ea4]
push eax
push ecx
mov dword [esi + 0x2ea8], eax
call fcn.0051ded3
add esp, 8
mov dword [esi + 0x2ea4], eax
test eax, eax
jne 0x4d6069
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 [esi + 0x2e74]
push 0
push edx
mov ecx, esi
call fcn.004c7940
test eax, eax
je 0x4d6093
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
push str.recv___next_byte
cmp ebx, 0x2733
push 0
push 1
jne 0x4d60c5
mov eax, dword [esi + 0x2ea4]
mov ecx, dword [esi + 0x2e74]
add eax, edi
push eax
push ecx
call sub.WSOCK32.dll_recv
push eax
mov ecx, esi
call fcn.004c7530
mov ebx, eax
jmp 0x4d6093
mov edx, dword [esi + 0x2ea4]
mov eax, dword [esi + 0x2e74]
add edx, edi
push edx
push eax
call sub.WSOCK32.dll_recv
push eax
mov ecx, esi
call fcn.004c7530
mov ebx, eax
test ebx, ebx
je 0x4d6008
mov eax, ebx
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 [esi + 0x2ea4]
xor eax, eax
mov byte [ecx + edi + 1], 0
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 [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret