Function at 0x180058090
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, qword [rbp + 0x260]
mov rsi, r9
mov qword [rsp + 0x40], r9
mov r13, r8
movzx r15d, dl
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180058102
lea rdi, [0x1800e6c50]
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rdi
xor eax, eax
mov byte [rsp + 0x44], 1
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x18005835d
cmp byte [rbp + 0x258], 0
mov qword [rsp + 0x338], r14
je 0x18005813c
test r15b, 0x10
je 0x18005813c
xor r14d, r14d
lea rdi, [0x1800e6c50]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
jmp 0x180058350
lea rdi, [0x1800e6c50]
xor r14d, r14d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea r9, [rbp - 0x40]
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, r13
mov dword [rbp - 0x40], r14d
mov rcx, r12
mov dword [rbp - 0x3c], r14d
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rdi
setne byte [rsp + 0x64]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x1800581bf
mov dword [rsp + 0x70], 0x2746
mov byte [rsp + 0x74], 1
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
jmp 0x1800581ef
cmp ecx, 0x4d2
jne 0x1800581df
mov dword [rbp - 0x80], 0x274d
mov byte [rbp - 0x7c], 1
mov qword [rbp - 0x78], rdi
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbx], xmm0
jmp 0x1800581ef
cmp ecx, 0x2738
je 0x1800581fa
cmp ecx, 0xea
je 0x1800581fa
test esi, esi
je 0x1800581fa
mov eax, 0xffffffff
jmp 0x180058219
movsxd rax, dword [rbp - 0x40]
mov dword [rbp - 0x70], r14d
mov byte [rbp - 0x6c], r14b
mov qword [rbp - 0x68], rdi
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
test eax, eax
jg 0x180058355
test r15b, 0x10
je 0x180058227
test eax, eax
je 0x1800582f8
test r15b, 1
jne 0x180058353
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x180058245
cmp eax, 0x4d5
jne 0x180058353
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
jne 0x180058353
xor ecx, ecx
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rdi
setne byte [rbp - 0x5c]
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1800582c7
mov rsi, qword [rsp + 0x40]
mov dword [rbp - 0x50], r14d
mov byte [rbp - 0x4c], r14b
mov qword [rbp - 0x48], rdi
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
jmp 0x180058146
jle 0x1800582ea
mov rsi, qword [rsp + 0x40]
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x180058146
test esi, esi
js 0x180058353
mov rsi, qword [rsp + 0x40]
jmp 0x180058146
mov rax, qword [0x1802b15e0]
lea rdi, [0x1802b15d8]
movabs rcx, 0x8fafd21e25c5e09b
mov dword [rsp + 0x50], 2
cmp rax, rcx
je 0x180058340
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x180058340
mov rax, qword [0x1802b15d8]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x180058342
mov al, 1
mov byte [rsp + 0x54], al
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
xor eax, eax
mov r14, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1800c52c0
add rsp, 0x2f0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret