Function at 0x140005fa0
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 [0x140032a30]
xor r12d, r12d
mov dword [rbp + 0x5f8], r12d
mov dword [rbp + 0x5fc], 0x64
test rbx, rbx
je 0x14000654b
mov qword [rax + 0x18], rsi
lea rsi, [0x140008310]
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r13
lea r13, [fcn.140008270]
mov qword [rax - 0x30], r14
lea r14, [0x1400084c0]
mov qword [rax - 0x38], r15
lea r15, [0x1400083d0]
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x14000635b
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 0x14000624d
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000635b
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 0x14000651a
mov ecx, dword [0x140032a1c]
mov esi, ecx
inc ecx
and esi, 0x3ffffff
mov dword [0x140032a1c], ecx
add esi, 0x4000000
mov ecx, 0x2c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [0x140032a30]
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 0x140006163
cmp dword [rdi], esi
jne 0x14000615a
mov dword [rdi + 4], r12d
mov rdi, qword [rdi + 0x24]
test rdi, rdi
jne 0x140006152
mov ecx, pe_nt_image_headers64
mov qword [0x140032a30], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
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 [0x140036d14], 1
mov dword [rdi + 4], eax
jne 0x1400061f4
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x1400061f4
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x1400061f4
mov r8d, 0x17
cmp ecx, 8
jb 0x1400061e5
lea r9d, [r8 - 0x16]
jmp 0x1400061fb
mov rdx, rdi
mov ecx, 8
call fcn.14000a2f0
jmp 0x140006208
xor r9d, r9d
lea r8d, [r9 + 0x17]
mov edx, 8
mov rcx, rdi
call fcn.14000a200
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 qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rsi, [0x140008310]
lea r14, [0x1400084c0]
lea r15, [0x1400083d0]
jmp 0x14000635b
cmp eax, 3
jne 0x1400062e7
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000635b
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, [0x140008490]
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.1400085a0
jmp 0x14000635b
lea rdx, [rbp + 0x190]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000636d
cmp dword [0x140036d14], 1
mov dword [rbx + 4], r12d
jne 0x140006344
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x140006344
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x140006344
cmp ecx, 4
jb 0x14000632d
mov r9d, 1
jmp 0x140006347
mov r8d, 4
lea rdx, [rbp + 0x5f0]
mov ecx, r8d
call fcn.14000a2f0
jmp 0x14000635b
xor r9d, r9d
mov edx, 4
mov r8d, edx
lea rcx, [rbp + 0x5f0]
call fcn.14000a200
mov rbx, qword [rbx + 0x24]
test rbx, rbx
jne 0x140006010
jmp 0x140006523
mov rcx, qword [rbx + 0x1c]
lea rdx, [rbp + 0x3a0]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400063e5
cmp dword [0x140036d14], 1
mov dword [rbx + 4], 1
jne 0x1400063d5
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x1400063d5
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x1400063d5
mov r8d, 6
cmp ecx, 4
jb 0x1400063c2
lea r9d, [r8 - 5]
lea edx, [r8 - 2]
jmp 0x14000634f
lea rdx, [rbp + 0x5f0]
mov ecx, 4
call fcn.14000a2f0
jmp 0x14000635b
xor r9d, r9d
lea r8d, [r9 + 6]
lea edx, [r9 + 4]
jmp 0x14000634f
mov rcx, qword [rbx + 0x1c]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14000640e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, dword [rbx + 8]
jbe 0x14000635b
jmp 0x1400062f8
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 0x140006495
cmp dword [0x140036d14], 1
mov dword [rbx + 4], r12d
jne 0x14000648b
mov rcx, qword [0x140036d20]
cmp word [rcx + 0x1c0], 2
jne 0x14000648b
mov edx, dword [rcx + 0x1c8]
test edx, edx
je 0x14000648b
cmp edx, 4
jb 0x140006468
mov edx, 4
lea r9d, [rax + 2]
mov r8d, edx
jmp 0x140006500
mov r8d, 4
lea rdx, [rbp + 0x5f0]
mov ecx, r8d
call fcn.14000a2f0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000635b
mov edx, 4
mov r8d, edx
jmp 0x1400064fd
cmp dword [0x140036d14], 1
mov dword [rbx + 4], 1
jne 0x1400064f4
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x1400064f4
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x1400064f4
mov r8d, 6
cmp ecx, 4
jb 0x1400064d5
lea edx, [r8 - 2]
lea r9d, [r8 - 5]
jmp 0x140006500
lea rdx, [rbp + 0x5f0]
mov ecx, 4
call fcn.14000a2f0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000635b
mov edx, 4
lea r8d, [rdx + 2]
xor r9d, r9d
lea rcx, [rbp + 0x5f0]
call fcn.14000a200
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000635b
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