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

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x49de77
cmp edx, 0xffffffff
je 0x49dfda
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x78], 0
jle 0x49dfd9
xor ecx, ecx
push esi
mov dword [esp + 0xc], ecx
push edi
mov esi, dword [ebp + 0x74]
add esi, ecx
mov ecx, dword [esi + 0x20]
cmp ecx, 0xffffffff
je 0x49e089
cmp dword [esi + 0x54], 0
jne 0x49e089
test ebx, ebx
je 0x49df0d
push ebx
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49e085
mov edi, dword [ebx]
xor eax, eax
mov edx, dword [esi + 0x20]
test edi, edi
je 0x49df08
lea ecx, [ebx + 4]
cmp dword [ecx], edx
je 0x49dee3
inc eax
add ecx, 4
cmp eax, edi
jb 0x49ded2
mov ecx, dword [esi + 0x20]
jmp 0x49df15
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x49df03
lea edx, [ebx + 4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov edi, dword [ebx]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x49def0
lea eax, [edi - 1]
mov dword [ebx], eax
mov ecx, dword [esi + 0x20]
jmp 0x49df15
cmp ecx, edx
jne 0x49e089
mov edx, dword [esi + 0x28]
cmp edx, 2
je 0x49dfdd
mov edi, dword [ebp + 0x91b8]
mov eax, 2
sub eax, edx
add edx, 0x24
add edx, esi
test edi, edi
je 0x49df50
push dword [ebp + 0x91bc]
push 0
push 0
push 0
push eax
mov eax, dword [edi + 0xc]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x49df5b
push 0
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x49df94
cmp eax, 0xffffffff
jne 0x49df7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x49e085
cmp eax, 0x2733
je 0x49e085
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.0049d340
add esp, 0xc
jmp 0x49e085
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x49e085
movzx ecx, byte [esi + 0x24]
movzx eax, byte [esi + 0x25]
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x2c], ecx
call dword [0x6127b4]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
jne 0x49e07e
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.0049d340
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
sub edx, dword [esi + 0x34]
add edi, dword [esi + 0x34]
mov eax, dword [ebp + 0x91b8]
test eax, eax
je 0x49e00c
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push edx
push edi
push ecx
call eax
add esp, 0x1c
jmp 0x49e017
push 0
push edx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x49e045
cmp eax, 0xffffffff
jne 0x49e032
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x49e085
cmp eax, 0x2733
je 0x49e085
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.0049d340
add esp, 0xc
jmp 0x49e085
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x34], eax
jne 0x49e085
push dword [esp + 0x24]
push 1
push dword [esp + 0x24]
push eax
push dword [esi + 0x30]
push ebp
call fcn.0049db20
push dword [esi + 0x30]
call dword [0x6127bc]
add esp, 0x1c
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 0x58
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [ebp + 0x78]
jl 0x49de96
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret