Function at 0x18006e4c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rbp, rcx
cmp dword [rcx + 8], 1
jne 0x18006e7ab
mov eax, dword [rcx + 0x18]
shr eax, 0x19
xor edi, edi
test al, 1
je 0x18006e51a
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x3c], rax
mov dword [rsp + 0x28], 0x19
mov dword [rsp + 0x34], edi
lea rcx, [r11 - 0x40]
call fcn.18006eef0
lea rax, vtable.nfapi::AutoLock.0
mov qword [rsp + 0x28], rax
lea r15, [0x1802c7458]
mov qword [rsp + 0x30], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r9, qword [rbp + 0x10]
mov r8, qword [0x1802c7c78]
mov ecx, dword [r8]
xor edx, edx
mov rax, r9
div rcx
mov rsi, qword [r8 + rdx*8 + 4]
jmp 0x18006e562
cmp qword [rsi], r9
je 0x18006e56a
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x18006e559
mov rsi, rdi
test rsi, rsi
jne 0x18006e574
jmp 0x18006e97a
mov eax, dword [rbp + 0x18]
shr eax, 4
test al, 1
je 0x18006e66e
mov r13d, dword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x80], eax
lea r12, [rsi + 0x40]
jmp 0x18006e630
test r13d, r13d
jne 0x18006e5aa
cmp dword [r14 + 0x1c], edi
ja 0x18006e652
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
cmp byte [rsi + 0xd0], dil
je 0x18006e5cb
mov rcx, r14
call fcn.18006d5c0
jmp 0x18006e630
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [r14 + 0x10]
call fcn.18006eef0
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x18006e63f
cmp dword [r14 + 0x1c], edi
jne 0x18006e603
mov byte [rsi + 0xd0], 1
mov dword [rsi + 0xd4], 0xea60
mov eax, dword [rsi + 0x50]
cmp eax, dword [r14 + 0x1c]
jb 0x18006e615
sub eax, dword [r14 + 0x1c]
mov dword [rsi + 0x50], eax
jmp 0x18006e618
mov dword [rsi + 0x50], edi
mov ebx, dword [r14 + 0x1c]
mov rcx, r14
call fcn.18006d5c0
mov eax, r13d
sub r13d, ebx
cmp eax, ebx
cmovb r13d, edi
mov r14, qword [r12]
cmp r14, r12
jne 0x18006e59b
jmp 0x18006e652
mov rax, qword [r12]
mov qword [r14], rax
mov qword [r14 + 8], r12
mov qword [rax + 8], r14
mov qword [r12], r14
cmp byte [rsi + 0xca], dil
jne 0x18006e66e
cmp r14, r12
jne 0x18006e66e
mov edx, 4
mov rcx, qword [rbp + 0x10]
call fcn.18006e9a4
mov eax, dword [rbp + 0x18]
shr eax, 5
test al, 1
je 0x18006e75e
mov r13d, dword [rsi + 0x68]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x80], eax
lea r12, [rsi + 0x58]
jmp 0x18006e720
test r13d, r13d
jne 0x18006e6a4
cmp dword [r14 + 0x1c], edi
ja 0x18006e742
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
cmp byte [rsi + 0xd1], dil
je 0x18006e6c5
mov rcx, r14
call fcn.18006d5c0
jmp 0x18006e720
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [r14 + 0x10]
call fcn.18006eef0
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x18006e72f
cmp dword [r14 + 0x1c], edi
jne 0x18006e6f3
mov byte [rsi + 0xd1], 1
mov eax, dword [rsi + 0x68]
cmp eax, dword [r14 + 0x1c]
jb 0x18006e705
sub eax, dword [r14 + 0x1c]
mov dword [rsi + 0x68], eax
jmp 0x18006e708
mov dword [rsi + 0x68], edi
mov ebx, dword [r14 + 0x1c]
mov rcx, r14
call fcn.18006d5c0
mov eax, r13d
sub r13d, ebx
cmp eax, ebx
cmovb r13d, edi
mov r14, qword [r12]
cmp r14, r12
jne 0x18006e695
jmp 0x18006e742
mov rax, qword [r12]
mov qword [r14], rax
mov qword [r14 + 8], r12
mov qword [rax + 8], r14
mov qword [r12], r14
cmp byte [rsi + 0xca], dil
jne 0x18006e75e
cmp r14, r12
jne 0x18006e75e
mov edx, 5
mov rcx, qword [rbp + 0x10]
call fcn.18006e9a4
mov eax, 0x100000
cmp dword [rsi + 0x68], eax
ja 0x18006e790
cmp dword [rsi + 0x50], eax
ja 0x18006e790
cmp dword [rsi + 0x38], 0x40000
ja 0x18006e790
mov eax, 0x800000
cmp dword [rsi + 0x20], eax
ja 0x18006e790
movzx edx, byte [rsi + 0xc8]
lea rcx, [rsi - 0x10]
call fcn.180070078
mov eax, dword [rbp + 0x18]
shr eax, 1
test al, 1
je 0x18006e56f
lea rcx, [rsi - 0x10]
call fcn.18006eb54
jmp 0x18006e56f
cmp dword [rcx + 8], 2
jne 0x18006e983
lea rax, vtable.nfapi::AutoLock.0
mov qword [rsp + 0x28], rax
lea r15, [0x1802c7458]
mov qword [rsp + 0x30], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r9, qword [rbp + 0x10]
mov r8, qword [0x1802c7c98]
mov ecx, dword [r8]
xor edx, edx
mov rax, r9
div rcx
mov rsi, qword [r8 + rdx*8 + 4]
xor edi, edi
jmp 0x18006e7ff
cmp qword [rsi], r9
je 0x18006e807
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x18006e7f6
mov rsi, rdi
test rsi, rsi
je 0x18006e97a
mov eax, dword [rbp + 0x18]
shr eax, 0xc
test al, 1
je 0x18006e89e
lea r12, [rsi + 0x40]
mov r14, qword [r12]
cmp r14, r12
je 0x18006e884
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [r14 + 0x10]
call fcn.18006eef0
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x18006e87e
mov eax, dword [rsi + 0x50]
cmp eax, dword [r14 + 0x1c]
jb 0x18006e85e
sub eax, dword [r14 + 0x1c]
mov dword [rsi + 0x50], eax
jmp 0x18006e861
mov dword [rsi + 0x50], edi
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov rcx, r14
call fcn.18006d5c0
mov byte [rsi + 0xe3], 1
mov r14, qword [rsi + 0x40]
jmp 0x18006e88b
mov byte [rsi + 0xe3], dil
cmp r14, r12
jne 0x18006e89e
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rbp + 0x10]
call fcn.18006e9a4
mov eax, dword [rbp + 0x18]
shr eax, 0xd
test al, 1
je 0x18006e938
mov r13d, dword [rsi + 0x68]
lea r14, [rsi + 0x58]
jmp 0x18006e91d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [r12 + 0x10]
call fcn.18006eef0
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x18006e925
mov eax, dword [rsi + 0x68]
cmp eax, dword [r12 + 0x1c]
jb 0x18006e8ec
sub eax, dword [r12 + 0x1c]
mov dword [rsi + 0x68], eax
jmp 0x18006e8ef
mov dword [rsi + 0x68], edi
mov eax, r13d
sub r13d, dword [r12 + 0x1c]
cmp eax, dword [r12 + 0x1c]
cmovb r13d, edi
mov rdx, qword [r12]
mov rax, qword [r12 + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov rcx, r12
call fcn.18006d5c0
test r13d, r13d
je 0x18006e925
mov r12, qword [r14]
cmp r12, r14
jne 0x18006e8b6
cmp qword [r14], r14
jne 0x18006e938
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 0x10]
call fcn.18006e9a4
mov eax, 0x100000
cmp dword [rsi + 0x68], eax
ja 0x18006e966
cmp dword [rsi + 0x50], eax
ja 0x18006e966
mov eax, 0x800000
cmp dword [rsi + 0x38], eax
ja 0x18006e966
cmp dword [rsi + 0x20], eax
ja 0x18006e966
movzx edx, byte [rsi + 0xe1]
lea rcx, [rsi - 0x10]
call fcn.180070408
mov eax, dword [rbp + 0x18]
shr eax, 9
test al, 1
je 0x18006e97a
lea rcx, [rsi - 0x10]
call fcn.18006ed4c
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret