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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100185fd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c4], edi
mov dword [ebp - 0x5b0], edi
cmp byte [0x10023091], 0
mov dword [ebp - 0x5b0], edi
jne 0x10005145
mov dword [edi], 0
jmp 0x10005550
lea eax, [ebp - 0x5bc]
mov dword [ebp - 0x5bc], 0x10
push eax
lea eax, [ebp - 0x598]
xorps xmm0, xmm0
push eax
push 0
push 0x578
lea eax, [ebp - 0x588]
push eax
push dword [0x10023094]
movups xmmword [ebp - 0x598], xmm0
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0x18
jl 0x1000513a
push ecx
lea ecx, [ebp - 0x584]
call fcn.10016cf0
add esp, 4
cmp dword [ebp - 0x588], eax
jne 0x1000513a
movzx eax, word [ebp - 0x576]
add eax, 0x18
mov dword [ebp - 0x5b0], eax
cmp esi, eax
jne 0x1000513a
mov eax, dword [ebp - 0x594]
xor esi, esi
or esi, dword [ebp - 0x584]
push 0x10024868
mov dword [ebp - 0x59c], eax
mov dword [ebp - 0x5b8], esi
mov dword [ebp - 0x5b4], eax
call fcn.10016db5
add esp, 4
lea eax, [ebp - 0x5b8]
push eax
lea eax, [ebp - 0x5d4]
push eax
call fcn.10007d60
mov eax, dword [ebp - 0x5cc]
cmp byte [eax + 0xd], 0
jne 0x1000553d
mov ecx, dword [ebp - 0x59c]
cmp ecx, dword [eax + 0x14]
jb 0x1000553d
ja 0x1000521d
cmp esi, dword [eax + 0x10]
jb 0x1000553d
cmp eax, dword [0x1002486c]
je 0x1000553d
movzx esi, word [eax + 0x18]
push 0x10024868
mov dword [ebp - 0x5a0], esi
call fcn.10016dd1
movzx esi, si
add esp, 4
mov dword [ebp - 0x5a4], esi
mov al, byte [esi + 0x1002309a]
test al, al
je 0x1000513a
call dword [sym.imp.MSVCP140.dll__Lock_shared_ptr_spin_lock]
lea eax, [esi*8 + 0x100258f0]
mov esi, dword [eax + 4]
test esi, esi
je 0x10005272
lock inc dword [esi + 4]
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x59c], eax
call dword [sym.imp.MSVCP140.dll__Unlock_shared_ptr_spin_lock]
test esi, esi
je 0x100052a5
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100052a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x100052a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x59c], 0
jne 0x100054dc
push 0x1c
call fcn.10016df0
mov esi, eax
xorps xmm0, xmm0
lea eax, [esi + 8]
mov dword [ebp - 0x5c8], esi
lea edx, [esi + 4]
mov dword [ebp - 0x59c], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 0x5cc], esi
movq qword [esi], xmm0
add esp, 4
mov dword [esi + 8], 0
mov dword [edx], 1
mov dword [eax], 1
mov dword [esi], vtable.std::_Ref_count_obj2_struct_sockaddr_in_.0
movups xmm0, xmmword [ebp - 0x598]
mov dword [ebp - 0x5d0], ecx
movups xmmword [ecx], xmm0
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x10005349
mov dword [edi], ecx
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10005550
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x59c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x10005550
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x10005550
mov dword [ebp - 0x5b8], 0
mov dword [ebp - 0x5b4], 0
sub esp, 8
mov byte [ebp - 4], 1
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [edx]
mov dword [eax], ecx
lea edx, [ebp - 0x5b8]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x5a4]
lea ecx, [eax*8 + 0x100258f0]
call fcn.10006f40
add esp, 8
test al, al
je 0x1000547f
push dword [ebp - 0x596]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x5a0]
movzx eax, ax
push eax
call fcn.10006fb0
add esp, 4
mov eax, 0xc
call fcn.10017f10
mov edx, esp
lea eax, [edx + 4]
mov dword [ebp - 0x5ac], edx
mov dword [eax], 0x5dc0
mov dword [ebp - 0x5c0], eax
mov dword [edx], 0x50001
mov byte [edx + 8], 0
mov eax, dword [0x10024874]
mov ecx, dword [0x10024878]
mov dword [ebp - 0x5a4], eax
cmp eax, ecx
je 0x1000544b
mov edi, dword [ebp - 0x5a0]
mov esi, ecx
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000542c
push dword [ebp - 0x5c0]
movzx eax, di
lea edx, [ebp - 0x5a8]
mov dword [ebp - 0x5a8], eax
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x5a4]
add eax, 0x28
mov dword [ebp - 0x5a4], eax
cmp eax, esi
jne 0x10005404
mov edi, dword [ebp - 0x5c4]
mov esi, dword [ebp - 0x5c8]
mov edx, dword [ebp - 0x5ac]
cmp byte [0x10023090], 0
je 0x1000546f
movzx eax, word [edx + 2]
add eax, 4
push eax
push edx
mov edx, dword [ebp - 0x5a0]
call fcn.10010890
add esp, 8
test al, al
jne 0x1000547f
mov edx, dword [ebp - 0x5a0]
mov ecx, str._sv:err:network:receive__:_failed_to_send_player___hu__plugin_init_packet
call fcn.10006dd0
mov ecx, dword [ebp - 0x5b4]
test ecx, ecx
je 0x100054ac
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x100054ac
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5b4]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x100054ac
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x100054dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x59c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x100054dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x580], 0
je 0x1000513a
push 0xc
call fcn.10016df0
mov esi, eax
mov dword [ebp - 0x5ac], esi
push dword [ebp - 0x5b0]
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.10001fa0
mov edx, dword [esi]
lea eax, [ebp - 0x588]
mov ecx, dword [esi + 4]
sub ecx, edx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [ebp - 0x5a0]
mov word [eax + 0x10], cx
mov eax, dword [esi]
mov dword [eax + 4], 0
mov dword [edi], esi
jmp 0x10005550
push 0x10024868
mov dword [edi], 0
call fcn.10016dd1
add esp, 4
mov eax, edi
lea esp, [ebp - 0x5e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016ddf
mov esp, ebp
pop ebp
ret