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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov esi, 0x7fffffff
mov edi, dword [ebp + 0xc]
pxor xmm0, xmm0
lea eax, [esp + 0x40]
movdqa xmmword [eax + 0x70], xmm0
movdqa xmmword [eax + 0x60], xmm0
movdqa xmmword [eax + 0x50], xmm0
movdqa xmmword [eax + 0x40], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
cmp ecx, esi
cmovb esi, ecx
lea ecx, [esp + 4]
mov dword [ecx], pe_nt_image_headers32
push ecx
push eax
push 0
push esi
push edi
push edx
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [esp], ebx
je 0x5167e3
movzx edx, word [esp + 0x40]
mov ecx, dword [esp + 4]
cmp edx, 0x17
je 0x516860
cmp edx, 2
jne 0x51683e
cmp ecx, 0xf
jbe 0x516990
movzx edx, word [esp + 0x42]
mov ecx, dword [esp + 0x44]
rol dx, 8
mov dword [esp + 0x2c], ecx
movd xmm1, ecx
mov word [esp + 0x30], dx
pslld xmm1, 0x10
movdqu xmm0, xmmword [esp + 0x2e]
jmp 0x516887
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x51688d
movzx ecx, word [esp + 0x40]
mov eax, dword [esp + 4]
cmp ecx, 0x17
je 0x5168a3
cmp ecx, 2
jne 0x51683e
cmp eax, 0xf
jbe 0x516990
movzx ecx, word [esp + 0x42]
mov eax, dword [esp + 0x44]
rol cx, 8
mov dword [esp + 0x2c], eax
movd xmm1, eax
mov word [esp + 0x30], cx
pslld xmm1, 0x10
movdqu xmm0, xmmword [esp + 0x2e]
jmp 0x5168ca
mov byte [esp + 0x2e], 2
mov esi, 0x786da4
mov ebx, dword [esp + 0x2e]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov word [esp + 0xc], 2
jmp 0x5168ff
cmp ecx, 0x1b
jbe 0x5169a2
movzx ecx, word [esp + 0x42]
movdqu xmm0, xmmword [esp + 0x48]
mov edx, dword [esp + 0x44]
rol cx, 8
xor esi, esi
inc esi
movd xmm1, esi
mov esi, dword [esp + 0x58]
mov dword [esp + 8], eax
jmp 0x5168cf
mov byte [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov esi, eax
mov word [esp + 0xc], 2
xor ebx, ebx
jmp 0x5168ff
cmp eax, 0x1b
jbe 0x5169a2
movzx ecx, word [esp + 0x42]
movdqu xmm0, xmmword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
rol cx, 8
xor eax, eax
inc eax
movd xmm1, eax
and dword [esp + 8], 0
movd eax, xmm1
movd dword [esp + 0xc], xmm1
movdqu xmmword [esp + 0x10], xmm0
movd ebx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov word [esp + 0x28], cx
movd esi, xmm0
cmp ax, 2
jne 0x51697c
lea ecx, [esp + 0x10]
call fcn.00412758
cmp al, 0xd
jne 0x51697c
mov eax, dword [ebp + 8]
test eax, eax
je 0x51696f
mov edi, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [edi]
jle 0x5169b4
add edx, 8
lea ecx, [esp + 0x40]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
call fcn.00515b68
add esp, 0xc
push 4
pop ecx
call fcn.00514b36
lea eax, [esp + 0x40]
cmp byte [eax], 4
je 0x51697c
mov eax, dword [esp + 0x40]
cmp al, 4
je 0x51697c
mov edx, dword [esp]
mov ecx, dword [esp + 0x44]
mov dword [edx + 0xc], ecx
mov dword [edx + 8], eax
mov word [edx + 4], 2
movzx ecx, bl
mov edx, esi
call fcn.00514289
jmp 0x516988
and dword [esp + 0x44], 0
mov dword [esp + 0x40], 4
push 9
pop ecx
mov edi, dword [esp]
lea esi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42
pop edx
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
push 0x786d30
call fcn.0062d4b0
push 0x43
pop edx
mov ecx, 0x786d40
push 0x786d84
call fcn.0062d4b0
ud2