Function at 0x180008720
Capabilities:
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x738
mov qword [rsp + 0x48], 0xffffffffffffffff
mov rax, qword [0x18001c320]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0x64
cmp qword [rsp + 0x30], 0
je 0x180008c84
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 2
je 0x180008782
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x18000875b
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x4e0], 0
mov dword [rsp + 0x2d0], 0
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0x3c], 0
jmp 0x1800087c8
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x4e0]
cmp dword [rsp + 0x3c], eax
jae 0x1800087f0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x4e8], rcx
jne 0x1800087ee
jmp 0x1800087f0
jmp 0x1800087be
mov eax, dword [rsp + 0x4e0]
cmp dword [rsp + 0x3c], eax
jne 0x18000882c
cmp dword [rsp + 0x4e0], 0x40
jae 0x18000882c
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x4e8], rcx
mov eax, dword [rsp + 0x4e0]
inc eax
mov dword [rsp + 0x4e0], eax
xor eax, eax
test eax, eax
jne 0x1800087b4
mov dword [rsp + 0x40], 0
jmp 0x180008846
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2d0]
cmp dword [rsp + 0x40], eax
jae 0x18000886e
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x2d8], rcx
jne 0x18000886c
jmp 0x18000886e
jmp 0x18000883c
mov eax, dword [rsp + 0x2d0]
cmp dword [rsp + 0x40], eax
jne 0x1800088aa
cmp dword [rsp + 0x2d0], 0x40
jae 0x1800088aa
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x2d8], rcx
mov eax, dword [rsp + 0x2d0]
inc eax
mov dword [rsp + 0x2d0], eax
xor eax, eax
test eax, eax
jne 0x180008832
mov dword [rsp + 0x44], 0
jmp 0x1800088c4
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x44], eax
jae 0x1800088ec
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0xc8], rcx
jne 0x1800088ea
jmp 0x1800088ec
jmp 0x1800088ba
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x44], eax
jne 0x180008928
cmp dword [rsp + 0xc0], 0x40
jae 0x180008928
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0xc8], rcx
mov eax, dword [rsp + 0xc0]
inc eax
mov dword [rsp + 0xc0], eax
xor eax, eax
test eax, eax
jne 0x1800088b0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2d0]
lea r8, [rsp + 0x4e0]
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 2
jne 0x180008a72
lea rdx, [rsp + 0xc0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180008a6d
mov dword [rsp + 0x50], 1
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x180008a5d
call fcn.180008680
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2bf20
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call fcn.180008590
mov edx, 0x80
lea rcx, [rsp + 0x68]
call fcn.180003470
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.1800034b0
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
lea rcx, [rsp + 0x68]
call fcn.1800034b0
lea rcx, [rsp + 0x68]
call fcn.1800034f0
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.18000bae0
mov r8d, 0x17
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x750]
lea rcx, [rsp + 0x68]
call fcn.180003430
jmp 0x180008a6d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180008c84
jmp 0x180008c71
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 3
jne 0x180008b0c
lea rdx, [rsp + 0xc0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180008b07
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
or eax, 0x110000
mov dword [rsp + 0x58], eax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x6f0]
call fcn.180007b20
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x750]
mov eax, dword [rsp + 0x58]
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.180007720
jmp 0x180008c71
lea rdx, [rsp + 0x2d0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180008b4e
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x750]
jmp 0x180008c71
lea rdx, [rsp + 0x4e0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180008b90
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 1
mov r8d, 6
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x750]
jmp 0x180008c71
lea rdx, [rsp + 0xc0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180008c36
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x48], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_accept]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0xffffffffffffffff
jne 0x180008c06
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x750]
jmp 0x180008c29
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 1
mov r8d, 6
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x750]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180008c71
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x30]
sub eax, dword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 8]
jbe 0x180008c71
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x750]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x18000875b
add rsp, 0x738
pop rdi
pop rsi
ret