Function at 0x1800179b9
Capabilities:
Get socket status

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x30]
mov qword [rsp], rax
mov rax, 0x2cc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x1800179a8
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x2b0], rcx
mov dword [rbp + 0x2b8], edx
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x298], rax
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x1c], 0
mov eax, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x88]
cmp eax, edx
jae 0x180017a41
lea rax, [rbp + 0x90]
mov edx, dword [rbp + 0x1c]
imul rdx, rdx, 8
add rax, rdx
mov rax, qword [rax]
mov rdx, qword [rbp + 0x2b0]
cmp rax, rdx
je 0x180017a41
mov eax, 1
add eax, dword [rbp + 0x1c]
mov dword [rbp + 0x1c], eax
jmp 0x180017a07
mov eax, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x88]
cmp eax, edx
jne 0x180017a85
mov eax, dword [rbp + 0x88]
cmp eax, 0x40
jae 0x180017a85
mov rax, qword [rbp + 0x2b0]
lea rdx, [rbp + 0x90]
mov ecx, dword [rbp + 0x1c]
imul rcx, rcx, 8
add rdx, rcx
mov qword [rdx], rax
mov eax, 1
add eax, dword [rbp + 0x88]
mov dword [rbp + 0x88], eax
mov eax, 0
test eax, eax
jne 0x180017a00
mov eax, dword [rbp + 0x2b8]
cmp eax, 0xffffffff
jne 0x180017be5
mov eax, 0
cmp eax, 1
je 0x180017d74
mov dword [rbp + 8], 0xe10
mov dword [rbp + 0xc], 0
mov eax, dword [rbp + 0x2b0]
inc eax
lea rdx, [rbp + 0x88]
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 8]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.WS2_32.dll_select]
mov qword [rbp + 0x50], rcx
mov ecx, eax
mov rax, qword [rbp + 0x50]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x24], eax
mov byte [rbp + 0x18], 1
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x28], eax
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180017b1c
lea rax, [0x180101fb8]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jge 0x180017b83
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
cmp eax, 0x2734
je 0x180017aa1
mov eax, 0xffffffff
mov dword [rbp + 0x3c], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x3c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180017b9a
lea rax, [0x180101fb8]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jle 0x180017aa1
mov eax, 1
mov dword [rbp + 0x40], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x40]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
mov eax, dword [rbp + 0x2b8]
mov edx, 0x3e8
mov dword [rbp + 0x58], edx
cdq
mov ecx, dword [rbp + 0x58]
idiv ecx
mov dword [rbp + 8], eax
mov eax, dword [rbp + 0x2b8]
mov edx, 0x3e8
mov dword [rbp + 0x60], edx
cdq
mov ecx, dword [rbp + 0x60]
idiv ecx
imul eax, edx, 0x3e8
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0x2b0]
inc eax
lea rdx, [rbp + 0x88]
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 8]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.WS2_32.dll_select]
mov qword [rbp + 0x68], rcx
mov ecx, eax
mov rax, qword [rbp + 0x68]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov byte [rbp + 0x18], 1
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x28], eax
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180017c78
lea rax, [0x180101fb8]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jge 0x180017d1f
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
cmp eax, 0x2734
jne 0x180017cdf
mov eax, 0
mov dword [rbp + 0x44], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x44]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
mov eax, 0xffffffff
mov dword [rbp + 0x48], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x48]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180017d36
lea rax, [0x180101fb8]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x4c], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x4c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret