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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x68]
mov dword [esp], ecx
xor ebp, ebp
cmp dword [edx + 4], 0xffffffff
mov edi, 0x7fffffff
mov dword [esp + 0x2c], edx
mov esi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
cmovne ebp, edx
mov dword [esp + 0x10], esi
sub esi, ecx
add eax, ecx
mov dword [esp + 4], ecx
lea ecx, [edx + 8]
cmp esi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
cmovae esi, edi
lea edi, [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [eax + 0x10]
push 0
push dword [esp + 0x68]
call fcn.004e0a31
pop eax
pop ecx
mov edx, dword [esp + 0x30]
cmp edx, 2
je 0x4e0e0c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test edx, edx
jne 0x4e0e14
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
cmp edx, dword [esp + 4]
jb 0x4e0e59
mov ecx, ebp
mov edx, 0x5597ec
call fcn.004349d9
push 0
push esi
push dword [esp + 0x30]
push dword [ebp + 4]
call sub.ws2_32.dll_recv
mov ecx, eax
cmp eax, 0xffffffff
jne 0x4e0d0a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x274a
jne 0x4e0d62
mov dword [esp + 0xc], ecx
mov byte [esp + 8], 4
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp bl, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
je 0x4e0e1e
lea ecx, [esp + 0x1c]
call fcn.004ddfd4
cmp al, 0xd
jne 0x4e0e49
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x48]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call fcn.004e09eb
lea edi, [esp + 0x30]
push edi
call fcn.004dc544
pop eax
jmp 0x4e0c90
mov ecx, eax
mov edx, eax
mov byte [esp + 8], 0
shr eax, 0x18
shr ecx, 8
shl edx, 0x18
mov byte [esp + 0xf], al
mov word [esp + 0xd], cx
lea ecx, [esp + 8]
mov dword [esp + 9], edx
call fcn.00425b14
cmp al, 0xd
jne 0x4e0d13
mov eax, dword [ebp]
mov byte [esp + 0x30], 4
test eax, eax
je 0x4e0dcd
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
lock inc dword [edi]
jle 0x4e0e6e
add edx, 8
lea ecx, [esp + 0x14]
push dword [eax + 0xc]
push dword [eax]
push edi
call fcn.0043dc13
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004c2e17
mov al, byte [esp + 0x14]
jmp 0x4e0ddd
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp al, 4
je 0x4e0d13
mov ebx, dword [esp + 0x14]
cmp bl, 4
je 0x4e0d13
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.004c2e17
jmp 0x4e0d2c
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x4e0e51
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4e0e51
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 4]
mov ecx, dword [edx + 0xc]
add eax, edi
cmp eax, ecx
jbe 0x4e0e34
mov ecx, eax
mov dword [edx + 0xc], eax
add dword [esp + 4], edi
jb 0x4e0e72
cmp ecx, eax
jb 0x4e0e86
mov ecx, dword [esp]
mov dword [edx + 8], eax
mov byte [ecx], 4
jmp 0x4e0e51
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], edi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
push 0x5595e4
call fcn.0050d570
pop eax
ud2
ud2
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x5597fc
call fcn.0050d7c0
jmp 0x4e0e6b
lea ecx, [esp + 0x30]
mov edx, 0x5597fc
mov dword [ecx + 8], 0x559634
mov dword [ecx + 0xc], 1
and dword [ecx], 0
mov dword [ecx + 0x10], str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
and dword [ecx + 0x14], 0
call fcn.0050d4d0
ud2