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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
mov edi, 0x7fffffff
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
add ecx, edx
mov dword [esp + 0xc], esi
sub esi, edx
mov dword [esp], edx
mov edx, dword [eax + 4]
cmp esi, edi
mov dword [esp + 0x24], ecx
cmovae esi, edi
mov dword [esp + 0x20], esi
lea eax, [edx + 0x40]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push 0
push dword [esp + 0x6c]
call fcn.004b95be
add esp, 8
mov edx, dword [esp + 0x34]
cmp edx, 2
je 0x4b6ddd
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
test edx, edx
jne 0x4b6de6
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
cmp eax, dword [esp]
jb 0x4b6e29
cmp ebx, 0xffffffff
je 0x4b6e3a
push 0
push dword [esp + 0x24]
push dword [esp + 0x2c]
mov edi, ebx
push ebx
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4b6d13
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x274a
jne 0x4b6d64
mov dword [esp + 8], eax
mov byte [esp + 4], 4
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
cmp bl, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
je 0x4b6dee
lea ecx, [esp + 0x10]
call fcn.0040b924
cmp al, 0xd
jne 0x4b6e18
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
call fcn.004b4877
movzx ecx, bl
mov edx, esi
call fcn.004373a1
mov ebx, edi
jmp 0x4b6c98
lea ecx, [esp + 4]
mov byte [esp + 4], 0
mov dword [esp + 8], esi
call fcn.0040b924
cmp al, 0xd
jne 0x4b6d1c
test ebp, ebp
mov dword [esp + 0x18], esi
je 0x4b6d1c
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov esi, ebp
lock inc dword [eax]
jle 0x4b6e4e
add edx, 8
lea ecx, [esp + 0x34]
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call fcn.00438e0c
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x4b6d1c
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
cmp bl, 4
je 0x4b6d1c
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.004373a1
jmp 0x4b6d35
mov eax, dword [esp + 0x60]
mov byte [eax], 5
jmp 0x4b6e21
mov eax, dword [esp + 0x60]
mov dword [eax], ecx
jmp 0x4b6e1e
mov edx, dword [esp + 0x6c]
mov eax, dword [esp]
mov ecx, dword [edx + 0xc]
add eax, esi
cmp eax, ecx
jbe 0x4b6e03
mov ecx, eax
mov dword [edx + 0xc], eax
add dword [esp], esi
jb 0x4b6e50
cmp ecx, eax
jb 0x4b6e64
mov dword [edx + 8], eax
mov eax, dword [esp + 0x60]
mov byte [eax], 4
jmp 0x4b6e21
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
push 0x52b2ac
call fcn.004e8910
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x52b3c4
call fcn.004e8a30
ud2
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
mov edx, 0xf
push 0x52b3d4
call fcn.004e8d40
lea ecx, [esp + 0x34]
mov edx, 0x52b3d4
xor eax, eax
mov dword [ecx], 0x52b2fc
mov dword [ecx + 4], 1
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs0
mov dword [ecx + 0xc], eax
call fcn.004e88e0