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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564800
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 0x4de693
cmp dword [esi + 0x5c], 0x10
je 0x4de693
mov eax, dword [esi + 0x3060]
test eax, eax
je 0x4de4f4
mov ecx, dword [esi + 0x3064]
push ecx
push 0xa
push eax
call fcn.00527bb0
add esp, 0xc
test eax, eax
jne 0x4de56a
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
xor edi, edi
cmp eax, 0x2733
je 0x4de50d
mov cl, byte [esi + 0x8b]
test cl, cl
je 0x4de562
cmp edi, 5
jge 0x4de562
mov eax, dword [esi + 0x2e74]
push 0x3c
push eax
mov ecx, esi
call fcn.004cff00
mov ecx, dword [esi + 0x2e7c]
test ecx, ecx
je 0x4de551
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x4de551
add ecx, 0x48
call fcn.004ce550
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 0x4de829
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
inc edi
jmp 0x4de4fc
test eax, eax
jne 0x4de829
mov eax, dword [esi + 0x3064]
test eax, eax
jne 0x4de58a
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.00527bb0
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 0x4de653
inc edi
mov byte [eax + edi], 0
mov ecx, dword [esi + 0x2ea8]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x4de623
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.00528510
add esp, 8
mov dword [esi + 0x2ea4], eax
test eax, eax
jne 0x4de620
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 0x4de641
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 0x4de5bf
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.00527c60
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.00527bb0
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.004cfaf0
mov ebx, eax
cmp ebx, 0x2733
jne 0x4de7da
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 0x4de6c8
mov eax, dword [esi + 0x2ea4]
cmp byte [eax + edi], 0xa
je 0x4de7f5
inc edi
mov byte [eax + edi], 0
mov ecx, dword [esi + 0x2ea8]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x4de75f
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.00528510
add esp, 8
mov dword [esi + 0x2ea4], eax
test eax, eax
jne 0x4de75f
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.004cff00
test eax, eax
je 0x4de789
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 0x4de7bb
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.004cfaf0
mov ebx, eax
jmp 0x4de789
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.004cfaf0
mov ebx, eax
test ebx, ebx
je 0x4de6fe
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