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

Disassembly:
mov r11, rsp
push rbp
push rbx
push r15
lea rbp, [r11 - 0x38]
sub rsp, 0x120
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rbp], rax
and dword [rdx + 0x58], 0xfffeffff
mov r15, rcx
mov ecx, dword [r8 + 0x40]
mov rbx, rdx
mov qword [r11 + 0x20], rsi
mov rsi, r8
mov qword [r11 - 0x20], rdi
test ecx, ecx
jns 0x18005a011
call fcn.1800611f0
mov edi, eax
cmp eax, 0x2738
je 0x18005a011
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x18005a004
test dword [rbx + 0x58], 0x1000
je 0x18005a1ff
mov rcx, rbx
call fcn.180057450
test dword [rbx + 0x58], 0x40000
je 0x180059fcf
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.180057210
jmp 0x180059fd6
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, edi
movups xmmword [rsp + 0x50], xmm0
call fcn.18005c920
xor esi, esi
movsxd rdx, eax
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x50]
mov rcx, rbx
call qword [rbx + 0x188]
jmp 0x18005a1ff
test dword [rbx + 0x58], 0x40000
je 0x18005a1ff
mov eax, dword [rbx + 0x58]
bt eax, 0x12
jb 0x18005a047
mov eax, dword [rsi + 0x40]
lea r9, [rbx + 0x100]
mov rdx, qword [rsi + 0x48]
lea r8, [rbx + 0xf0]
sar eax, 0x1f
mov rcx, rbx
and eax, 2
mov dword [rsp + 0x20], eax
call qword [rbx + 0x188]
jmp 0x18005a1ff
bt eax, 0xc
jae 0x18005a1ff
xor esi, esi
mov qword [rsp + 0x110], r14
lea r14d, [rsi + 0x20]
nop
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.180057210
lea r8, [rsp + 0x50]
mov edx, 0x10000
mov rcx, rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x190]
cmp qword [rsp + 0x58], rsi
je 0x18005a1db
cmp dword [rsp + 0x50], esi
je 0x18005a1db
mov rcx, qword [rbx + 0x70]
lea rax, [rsp + 0x64]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x50]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x64], 0x80
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x18005a130
mov edx, dword [rsp + 0x60]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], esi
mov rcx, rbx
call qword [rbx + 0x188]
jmp 0x18005a183
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2738
je 0x18005a1bb
cmp eax, 0x2733
je 0x18005a1a2
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
mov rcx, rbx
je 0x18005a16b
call fcn.180057450
mov ecx, edi
call fcn.18005c920
movsxd rdx, eax
mov rcx, rbx
jmp 0x18005a16d
xor edx, edx
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x50]
call qword [rbx + 0x188]
test edi, edi
jne 0x18005a1f7
mov eax, r14d
dec r14d
test eax, eax
jle 0x18005a1f7
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
je 0x18005a060
jmp 0x18005a1f7
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x188]
jmp 0x18005a1f7
mov edx, dword [rsp + 0x60]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [rbx + 0x188]
jmp 0x18005a1f7
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x50]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x188]
mov r14, qword [rsp + 0x110]
mov eax, dword [rbx + 0x58]
mov rdi, qword [rsp + 0x118]
and eax, 0x11000
mov rsi, qword [rsp + 0x158]
cmp eax, 0x1000
jne 0x18005a229
mov rdx, rbx
mov rcx, r15
call fcn.18005a3d0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x18005a252
test ecx, ecx
jne 0x18005a252
test al, 0x20
jne 0x18005a252
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [r15 + 0x50]
mov qword [rbx + 0x50], rax
mov qword [r15 + 0x50], rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180062330
add rsp, 0x120
pop r15
pop rbx
pop rbp
ret