Function at 0x4dd2c4
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.004dd0c1
pop eax
pop ecx
mov edx, dword [esp + 0x30]
cmp edx, 2
je 0x4dd488
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test edx, edx
jne 0x4dd490
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
cmp edx, dword [esp + 4]
jb 0x4dd4d5
mov ecx, ebp
mov edx, 0x54809c
call fcn.00433692
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 0x4dd386
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x274a
jne 0x4dd3de
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 0x4dd49a
lea ecx, [esp + 0x1c]
call fcn.0046cad4
cmp al, 0xd
jne 0x4dd4c5
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x48]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call fcn.004dd04a
lea edi, [esp + 0x30]
push edi
call fcn.004d8de1
pop eax
jmp 0x4dd30c
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.004245d0
cmp al, 0xd
jne 0x4dd38f
mov eax, dword [ebp]
mov byte [esp + 0x30], 4
test eax, eax
je 0x4dd449
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
lock inc dword [edi]
jle 0x4dd4ea
add edx, 8
lea ecx, [esp + 0x14]
push dword [eax + 0xc]
push dword [eax]
push edi
call fcn.0043c9bb
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004bf244
mov al, byte [esp + 0x14]
jmp 0x4dd459
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp al, 4
je 0x4dd38f
mov ebx, dword [esp + 0x14]
cmp bl, 4
je 0x4dd38f
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.004bf244
jmp 0x4dd3a8
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x4dd4cd
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4dd4cd
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 4]
mov ecx, dword [edx + 0xc]
add eax, edi
cmp eax, ecx
jbe 0x4dd4b0
mov ecx, eax
mov dword [edx + 0xc], eax
add dword [esp + 4], edi
jb 0x4dd4ee
cmp ecx, eax
jb 0x4dd502
mov ecx, dword [esp]
mov dword [edx + 8], eax
mov byte [ecx], 4
jmp 0x4dd4cd
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 0x547e94
call fcn.0050af20
pop eax
ud2
ud2
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x5480ac
call fcn.0050b170
jmp 0x4dd4e7
lea ecx, [esp + 0x30]
mov edx, 0x5480ac
mov dword [ecx + 8], 0x547ee4
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.0050ae80
ud2