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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x559ab8
push eax
mov dword fs:[0], esp
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x2f00]
test al, al
je 0x4ee2b4
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
call fcn.004ee150
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
mov edi, dword [esp + 0x1c]
mov ecx, 8
push 0
mov byte [edi], 0
movsx eax, word [esi + 0x2ec8]
sub ecx, eax
lea edx, [eax + esi + 0x2ec0]
mov eax, dword [esi + 0x2eb8]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov cx, word [esi + 0x2ec8]
mov ebp, 8
movsx edx, cx
sub ebp, edx
cmp eax, ebp
je 0x4ee383
test eax, eax
jge 0x4ee35f
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x1c], ecx
push eax
lea edx, [esp + 0x20]
push str.RecvStartOfDataPacket_failed__step1__res___ld_n
push edx
mov dword [esp + 0x20], 0
call fcn.0053091a
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004c7490
lea ecx, [esp + 0x1c]
mov word [esi + 0x2ec8], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.00537b04
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
jle 0x4ee36a
add ecx, eax
mov word [esi + 0x2ec8], cx
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
lea edx, [esi + 0x2ec4]
lea ecx, [esp + 0x1c]
mov word [esi + 0x2ec8], 0
mov byte [esp + 0x1c], 0xce
mov eax, dword [edx]
mov byte [esp + 0x1d], 0xfa
mov byte [esp + 0x1e], 0xb
mov byte [esp + 0x1f], 0xb0
cmp eax, dword [ecx]
jne 0x4ee3eb
cmp byte [esi + 0x2ec0], 1
jne 0x4ee3eb
mov al, byte [esi + 0x2ec1]
test al, al
jne 0x4ee3eb
mov al, byte [esi + 0x2ec2]
test al, al
jne 0x4ee3eb
mov ecx, esi
mov byte [edi], 1
call fcn.004ee150
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
lea ecx, [esi + 0x2ec0]
push ecx
call fcn.004ed730
mov ecx, dword [esi + 0x2e98]
mov edi, eax
add esp, 4
lea edx, [ecx + 1]
cmp edx, edi
je 0x4ee4e7
test ecx, ecx
jne 0x4ee419
test edi, edi
je 0x4ee4e7
cmp edi, ecx
ja 0x4ee434
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
mov ebp, dword [esi + 0x50]
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x2ebc]
dec eax
add ebp, eax
test ecx, ecx
mov dword [esi + 0x50], ebp
je 0x4ee451
add dword [ecx + 0x8bc], eax
mov ecx, dword [esi + 0x2e7c]
add ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x2e7c], ecx
mov ecx, dword [esi + 0x60]
push eax
call fcn.004c6f80
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x2e7c]
inc ecx
cmp eax, ecx
jb 0x4ee4e7
push str.Last_packet_of_this_connection_is_skipped._Complete._n
mov ecx, esi
call fcn.004c7490
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x2e7c]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x4ee4ca
mov edi, dword [esi + 0x50]
sub eax, ecx
mov ecx, dword [esi + 0x2ebc]
dec eax
sub edi, eax
test ecx, ecx
mov dword [esi + 0x50], edi
je 0x4ee4b0
sub dword [ecx + 0x8bc], eax
mov edx, dword [esi + 0x2e7c]
mov ecx, dword [esi + 0x60]
sub edx, eax
mov eax, dword [esi + 0x50]
push eax
mov dword [esi + 0x2e7c], edx
call fcn.004c6f80
mov ecx, esi
call fcn.004efdb0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x2ec7]
mov dl, byte [esi + 0x2ec6]
shl ecx, 8
mov dword [esi + 0x2e98], edi
pop edi
lea eax, [ecx + edx - 8]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 8]
mov dword [esi + 0x2e9c], eax
pop esi
sbb eax, eax
mov dword fs:[0], ecx
neg eax
dec eax
pop ebp
add esp, 0xc
ret 4