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

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x120]
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x44], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x140046efa
mov ecx, dword [rsp + 0x44]
movzx edx, word [rsp + 0x60]
cmp edx, 0x17
je 0x140046f54
cmp edx, 2
jne 0x140046f48
cmp ecx, 0xf
jbe 0x140047093
movzx ecx, word [rsp + 0x62]
rol cx, 8
mov edx, dword [rsp + 0x64]
mov word [rsp + 0x4c], cx
mov dword [rsp + 0x48], edx
xor r11d, r11d
jmp 0x140046f9e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140046fe2
mov eax, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x60]
cmp ecx, 0x17
je 0x140046ff8
cmp ecx, 2
jne 0x140046f48
cmp eax, 0xf
jbe 0x140047093
movzx eax, word [rsp + 0x62]
rol ax, 8
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x4c], ax
mov dword [rsp + 0x48], ecx
xor r10d, r10d
jmp 0x140047041
lea rax, str.invalid_argument
jmp 0x140046fea
cmp ecx, 0x1b
jbe 0x1400470ab
movzx ecx, word [rsp + 0x62]
rol cx, 8
movdqu xmm0, xmmword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
mov edx, dword [rsp + 0x78]
movq r10, xmm0
pshufd xmm1, xmm0, 0xee
movq r9, xmm1
shld r9, r10, 0x20
movdqu xmmword [rsp + 0x4a], xmm0
pshufd xmm0, xmm0, 0xff
movd r10d, xmm0
mov r11w, 1
cdqe
movzx edi, word [rsp + 0x4c]
mov word [rsp + 0x40], di
mov edi, dword [rsp + 0x48]
mov dword [rsp + 0x3c], edi
mov qword [rsi], rax
mov word [rsi + 8], r11w
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0xa], eax
movzx eax, word [rsp + 0x40]
mov word [rsi + 0xe], ax
mov qword [rsi + 0x10], r9
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], cx
jmp 0x140047089
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x140047089
cmp eax, 0x1b
jbe 0x1400470ab
movzx eax, word [rsp + 0x62]
rol ax, 8
movdqu xmm0, xmmword [rsp + 0x68]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x78]
movq r9, xmm0
pshufd xmm1, xmm0, 0xee
movq r8, xmm1
shld r8, r9, 0x20
movdqu xmmword [rsp + 0x4a], xmm0
pshufd xmm0, xmm0, 0xff
movd r9d, xmm0
mov r10w, 1
movzx r11d, word [rsp + 0x4c]
mov word [rsp + 0x40], r11w
mov r11d, dword [rsp + 0x48]
mov dword [rsp + 0x3c], r11d
mov qword [rsi], 0
mov word [rsi + 8], r10w
mov r10d, dword [rsp + 0x3c]
mov dword [rsi + 0xa], r10d
movzx r10d, word [rsp + 0x40]
mov word [rsi + 0xe], r10w
mov qword [rsi + 0x10], r8
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x20], ecx
mov word [rsi + 0x24], ax
add rsp, 0xe8
pop rdi
pop rsi
ret
lea rcx, [0x1400a6a51]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x42
call dbg.panic
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.0j_n_
mov edx, 0x43
call dbg.panic
int3