Function at 0x180057bc0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x670
xor edi, edi
mov esi, r9d
mov r13, r8
mov rbp, rdx
mov r12, rcx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
mov r14d, edi
cmp rcx, 0xffffffffffffffff
jne 0x180057c31
cmp rdx, rcx
jne 0x180057c31
cmp r8, rcx
jne 0x180057c31
test r9d, r9d
je 0x180057c2a
test r9d, r9d
jns 0x180057c21
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, r12d
mov eax, edi
jmp 0x180057f2a
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x180057f2a
mov qword [rsp + 0x6a8], rbx
mov qword [rsp + 0x6b0], r15
test r9d, r9d
jle 0x180057c53
mov r14d, r9d
call fcn.1800636f0
mov rbx, rax
jmp 0x180057c58
mov rbx, qword [rsp + 0x30]
or r8, 0xffffffffffffffff
mov ecx, edi
mov r9d, edi
lea eax, [r8 + 2]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x250], edi
cmp r12, r8
je 0x180057c95
mov qword [rsp + 0x258], r12
mov r9d, eax
mov dword [rsp + 0x250], eax
mov qword [rsp + 0x48], r12
mov ecx, eax
mov dword [rsp + 0x40], eax
mov r8, r12
cmp rbp, 0xffffffffffffffff
je 0x180057d24
mov eax, edi
test r9d, r9d
je 0x180057cc0
lea rdx, [rsp + 0x258]
nop
cmp qword [rdx], rbp
je 0x180057cc0
inc eax
add rdx, 8
cmp eax, r9d
jb 0x180057cb0
cmp eax, r9d
jne 0x180057ce6
cmp r9d, 0x40
jae 0x180057ce6
mov qword [rsp + rax*8 + 0x258], rbp
mov r9d, dword [rsp + 0x250]
inc r9d
mov dword [rsp + 0x250], r9d
mov eax, edi
test ecx, ecx
je 0x180057d00
lea rdx, [rsp + 0x48]
cmp qword [rdx], rbp
je 0x180057d00
inc eax
add rdx, 8
cmp eax, ecx
jb 0x180057cf1
cmp eax, ecx
jne 0x180057d18
cmp ecx, 0x40
jae 0x180057d18
mov qword [rsp + rax*8 + 0x48], rbp
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp rbp, r8
mov eax, 1
cmova r8, rbp
mov dword [rsp + 0x460], edi
cmp r13, 0xffffffffffffffff
je 0x180057d78
mov dword [rsp + 0x460], eax
mov qword [rsp + 0x468], r13
mov eax, edi
test ecx, ecx
je 0x180057d5f
lea rdx, [rsp + 0x48]
nop dword [rax + rax]
cmp qword [rdx], r13
je 0x180057d5f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x180057d50
cmp eax, ecx
jne 0x180057d71
cmp ecx, 0x40
jae 0x180057d71
mov qword [rsp + rax*8 + 0x48], r13
inc dword [rsp + 0x40]
cmp r13, r8
cmova r8, r13
lea r15, [rsp + 0x30]
lea ecx, [r8 + 1]
test esi, esi
cmovs r15, rdi
mov dword [rsp + 0x38], ecx
nop dword [rax + rax]
test esi, esi
jle 0x180057dc1
mov eax, 0x10624dd3
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r14d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x180057dcd
test esi, esi
jne 0x180057dcd
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
cmp dword [rsp + 0x460], edi
lea r8, [rsp + 0x460]
lea rdx, [rsp + 0x250]
cmove r8, rdi
test r9d, r9d
lea r9, [rsp + 0x40]
cmove rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
cmp eax, 0xffffffff
jne 0x180057e61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x180057e20
cmp dword [0x1800c6d08], edi
jne 0x180057e61
cmp eax, 0x2714
jne 0x180057e61
test esi, esi
jg 0x180057e35
mov r9d, dword [rsp + 0x250]
mov ecx, dword [rsp + 0x38]
jmp 0x180057d90
call fcn.1800636f0
mov rdx, rbx
mov rcx, rax
call fcn.180063730
mov r14d, esi
sub r14d, eax
test r14d, r14d
jle 0x180057e73
mov r9d, dword [rsp + 0x250]
mov ecx, dword [rsp + 0x38]
jmp 0x180057d90
test r12d, r12d
jns 0x180057e6e
or eax, 0xffffffff
jmp 0x180057f1a
test r12d, r12d
jne 0x180057e7a
xor eax, eax
jmp 0x180057f1a
mov rbx, qword [rsp + 0x6a0]
cmp rbx, 0xffffffffffffffff
je 0x180057eb6
lea rdx, [rsp + 0x250]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rsp + 0x40]
mov rcx, rbx
test eax, eax
mov eax, 1
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180057eb6
or edi, 4
cmp rbp, 0xffffffffffffffff
je 0x180057ee7
lea rdx, [rsp + 0x250]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180057ed3
or edi, 8
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180057ee7
or edi, 4
cmp r13, 0xffffffffffffffff
je 0x180057f18
lea rdx, [rsp + 0x460]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180057f04
or edi, 2
lea rdx, [rsp + 0x40]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180057f18
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x6a8]
mov r15, qword [rsp + 0x6b0]
mov rbp, qword [rsp + 0x6b8]
add rsp, 0x670
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret