Function at 0x1400057e0
Capabilities:
Check for time delay via gettickcount
Get socket status
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push rbx
push r12
lea rbp, [rax - 0x5e8]
sub rsp, 0x6d0
mov rbx, qword [0x140058060]
xor r12d, r12d
mov dword [rbp + 0x5f8], r12d
mov dword [rbp + 0x5fc], 0x64
test rbx, rbx
je 0x140005d88
mov qword [rax + 0x18], rsi
lea rsi, [0x140007a40]
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r13
lea r13, [fcn.1400079a0]
mov qword [rax - 0x30], r14
lea r14, [0x140007bf0]
mov qword [rax - 0x38], r15
lea r15, [0x140007b00]
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x140005b98
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x3a0], r12d
lea r9, [rbp + 0x190]
mov dword [rbp + 0x5f0], eax
lea r8, [rbp + 0x3a0]
mov dword [rbp + 0x190], r12d
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], r12d
xor ecx, ecx
mov rax, qword [rbx + 0x1c]
mov qword [rbp + 0x3a8], rax
mov dword [rbp + 0x3a0], 1
mov rax, qword [rbx + 0x1c]
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x190], 1
mov rax, qword [rbx + 0x1c]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x5f8]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_select]
mov eax, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x1c]
cmp eax, 2
jne 0x140005a8a
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140005b98
mov rcx, qword [rbx + 0x1c]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x5f0], 1
call qword [sym.imp.WS2_32.dll_accept]
lea r8, [rbp + 0x5f0]
mov edx, 0x8004667e
mov rcx, rax
mov r15, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140005d57
mov ecx, dword [0x14005804c]
mov esi, ecx
inc ecx
and esi, 0x3ffffff
mov dword [0x14005804c], ecx
add esi, 0x4000000
mov ecx, 0x2c
call fcn.140028a64
mov rdi, qword [0x140058060]
mov r14, rax
mov qword [rax + 0x24], rdi
mov dword [rax], esi
mov qword [rax + 0x1c], r15
mov dword [rax + 4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov qword [r14 + 8], 0x2bf20
mov dword [r14 + 0x18], eax
mov qword [r14 + 0x10], r12
test rdi, rdi
je 0x1400059a2
cmp dword [rdi], esi
jne 0x140005999
mov dword [rdi + 4], r12d
mov rdi, qword [rdi + 0x24]
test rdi, rdi
jne 0x140005991
mov ecx, 0x80
mov qword [0x140058060], r14
call fcn.140028a64
xorps xmm0, xmm0
mov ecx, esi
mov rdi, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rdi], eax
mov ecx, dword [rbx + 0x14]
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [0x14005c344], 1
mov dword [rdi + 4], eax
jne 0x140005a32
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005a32
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x140005a32
mov r8d, 0x17
cmp ecx, 8
jb 0x140005a23
lea r9d, [r8 - 0x16]
jmp 0x140005a39
mov rdx, rdi
mov ecx, 8
call fcn.140009a20
jmp 0x140005a46
xor r9d, r9d
lea r8d, [r9 + 0x17]
mov edx, 8
mov rcx, rdi
call fcn.140009930
xorps xmm0, xmm0
mov rcx, rdi
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x70], xmm0
call fcn.140028a50
lea rsi, [0x140007a40]
lea r14, [0x140007bf0]
lea r15, [0x140007b00]
jmp 0x140005b98
cmp eax, 3
jne 0x140005b24
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140005b98
mov rcx, qword [rbx + 0x1c]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
lea r8, [rbp + 0x5f0]
mov qword [rsp + 0x40], r12
mov rcx, rax
mov dword [rbp + 0x5f0], r12d
mov edx, 0x8004667e
mov rdi, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [rbx + 0x14]
lea rax, [0x140007bc0]
or ecx, 0x110000
mov qword [rsp + 0x68], r13
mov r9, rsi
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x38], r14
call fcn.140007cd0
jmp 0x140005b98
lea rdx, [rbp + 0x190]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140005baa
cmp dword [0x14005c344], 1
mov dword [rbx + 4], r12d
jne 0x140005b81
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005b81
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x140005b81
cmp ecx, 4
jb 0x140005b6a
mov r9d, 1
jmp 0x140005b84
mov r8d, 4
lea rdx, [rbp + 0x5f0]
mov ecx, r8d
call fcn.140009a20
jmp 0x140005b98
xor r9d, r9d
mov edx, 4
mov r8d, edx
lea rcx, [rbp + 0x5f0]
call fcn.140009930
mov rbx, qword [rbx + 0x24]
test rbx, rbx
jne 0x140005850
jmp 0x140005d60
mov rcx, qword [rbx + 0x1c]
lea rdx, [rbp + 0x3a0]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140005c22
cmp dword [0x14005c344], 1
mov dword [rbx + 4], 1
jne 0x140005c12
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005c12
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x140005c12
mov r8d, 6
cmp ecx, 4
jb 0x140005bff
lea r9d, [r8 - 5]
lea edx, [r8 - 2]
jmp 0x140005b8c
lea rdx, [rbp + 0x5f0]
mov ecx, 4
call fcn.140009a20
jmp 0x140005b98
xor r9d, r9d
lea r8d, [r9 + 6]
lea edx, [r9 + 4]
jmp 0x140005b8c
mov rcx, qword [rbx + 0x1c]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140005c4b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, dword [rbx + 8]
jbe 0x140005b98
jmp 0x140005b35
mov rcx, qword [rbx + 0x1c]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x1c], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005cd2
cmp dword [0x14005c344], 1
mov dword [rbx + 4], r12d
jne 0x140005cc8
mov rcx, qword [0x14005c350]
cmp word [rcx + 0x1c0], 2
jne 0x140005cc8
mov edx, dword [rcx + 0x1c8]
test edx, edx
je 0x140005cc8
cmp edx, 4
jb 0x140005ca5
mov edx, 4
lea r9d, [rax + 2]
mov r8d, edx
jmp 0x140005d3d
mov r8d, 4
lea rdx, [rbp + 0x5f0]
mov ecx, r8d
call fcn.140009a20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005b98
mov edx, 4
mov r8d, edx
jmp 0x140005d3a
cmp dword [0x14005c344], 1
mov dword [rbx + 4], 1
jne 0x140005d31
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140005d31
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x140005d31
mov r8d, 6
cmp ecx, 4
jb 0x140005d12
lea edx, [r8 - 2]
lea r9d, [r8 - 5]
jmp 0x140005d3d
lea rdx, [rbp + 0x5f0]
mov ecx, 4
call fcn.140009a20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005b98
mov edx, 4
lea r8d, [rdx + 2]
xor r9d, r9d
lea rcx, [rbp + 0x5f0]
call fcn.140009930
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005b98
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov r14, qword [rsp + 0x6b8]
mov r13, qword [rsp + 0x6c0]
mov rdi, qword [rsp + 0x6c8]
mov rsi, qword [rsp + 0x700]
mov r15, qword [rsp + 0x6b0]
add rsp, 0x6d0
pop r12
pop rbx
pop rbp
ret