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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9d, dword [rdx + 0x58]
mov rdi, r8
mov eax, r9d
mov rbx, rdx
btr eax, 0x11
mov rsi, rcx
mov dword [rdx + 0x58], eax
mov r10d, dword [r8 + 0x40]
test r10d, r10d
jns 0x140048a73
mov ecx, r10d
call fcn.14004c4c0
mov r11d, eax
cmp eax, 0x2738
je 0x140048a73
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x140048a68
bt r9d, 8
jae 0x140048be6
cmp dword [rbx + 0x10], 0xf
jne 0x140048a32
mov rax, qword [rbx + 8]
and r9d, 0xfffdfeff
mov dword [rbx + 0x58], r9d
dec dword [rax + 0xac]
sub dword [rbx + 0x7c], 1
jne 0x140048a32
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x140048a32
test al, 0x40
je 0x140048a32
and eax, 0xffffffbf
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x140048a32
mov rax, qword [rbx + 8]
dec dword [rax + 8]
xor edi, edi
test dword [rbx + 0x58], 0x80000
je 0x140048a4a
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov dword [rbp - 0x69], edi
jmp 0x140048a51
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, r11d
movaps xmmword [rbp - 0x69], xmm0
call fcn.140049560
movsxd rdx, eax
jmp 0x140048bd2
bt r9d, 0x13
jae 0x140048be6
bt r9d, 0x13
jb 0x140048a9e
mov rdx, qword [rdi + 0x48]
lea r9, [rbx + 0x100]
sar r10d, 0x1f
lea r8, [rbx + 0xf0]
and r10d, 2
mov dword [rsp + 0x20], r10d
jmp 0x140048bdd
bt r9d, 8
jae 0x140048be6
xor edi, edi
lea r8, [rbp - 0x69]
mov qword [rbp - 0x61], rdi
mov edx, 0x10000
mov dword [rbp - 0x69], edi
mov rcx, rbx
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
call qword [rbx + 0x190]
cmp qword [rbp - 0x61], rdi
je 0x140048bcb
cmp dword [rbp - 0x69], edi
je 0x140048bcb
xor edx, edx
lea rcx, [rbp - 0x49]
mov r8d, 0x80
call fcn.14005be70
mov rcx, qword [rbx + 0x70]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rdi
lea r9, [rbp - 0x59]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x55], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x140048b47
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
jmp 0x140048bd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2738
jne 0x140048b67
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x20], 2
jmp 0x140048bd9
cmp ecx, 0x2733
jne 0x140048b73
xor edx, edx
jmp 0x140048bd2
add eax, 0xffffd8bc
test eax, 0xfffffffd
je 0x140048b6f
cmp dword [rbx + 0x10], 0xf
jne 0x140048bc1
mov eax, dword [rbx + 0x58]
bt eax, 8
jae 0x140048bc1
btr eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rbx + 8]
dec dword [rax + 0xac]
sub dword [rbx + 0x7c], 1
jne 0x140048bc1
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x140048bc1
test al, 0x40
je 0x140048bc1
and eax, 0xffffffbf
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x140048bc1
mov rax, qword [rbx + 8]
dec dword [rax + 8]
call fcn.140049560
movsxd rdx, eax
jmp 0x140048bd2
mov rdx, 0xfffffffffffff024
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x69]
mov rcx, rbx
call qword [rbx + 0x188]
mov ecx, dword [rbx + 0x58]
mov eax, ecx
and eax, 0x20100
cmp eax, 0x100
jne 0x140048c05
mov rdx, rbx
mov rcx, rsi
call fcn.140048830
mov ecx, dword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
dec eax
mov dword [rbx + 0x78], eax
test cl, 1
je 0x140048c2d
test eax, eax
jne 0x140048c2d
test cl, 8
jne 0x140048c2d
or ecx, 8
mov dword [rbx + 0x58], ecx
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140059450
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret