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

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x30
mov rsi, qword [rdx + 0x78]
mov r15, rdx
mov r12d, 1
mov ecx, dword [rsi + 0x1038]
cmp ecx, 2
je 0x140018ebb
sub ecx, r12d
je 0x140018e8f
cmp ecx, r12d
jne 0x140018e9d
mov edx, r12d
mov rcx, rsi
call fcn.140017cb0
test eax, eax
jne 0x140018e9d
mov dword [r15 + 0x10], reloc.WS2_32.dll_inet_addr
xor eax, eax
add rsp, 0x30
pop r15
pop r12
pop rsi
ret
mov eax, dword [rsi + 0x1030]
cmp dword [rsi + 0x1034], eax
jne 0x140018e7b
mov dword [rsi + 0x1038], 2
mov dword [rsi + 0x1030], 0
mov dword [rsi + 0x1034], 0
movsxd rax, dword [r15 + 0x68]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
xor ebp, ebp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x58], rax
mov r14d, 0x1000
test rax, rax
jle 0x140018ff6
nop
mov rax, qword [r15 + 0x58]
mov r13, qword [rax + rbp*8]
test r13, r13
je 0x140018fe8
mov rdx, qword [r13]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov r9d, r12d
repne scasb al, byte [rdi]
mov rdi, qword [r13 + 8]
not rcx
lea rbx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov r8d, ebx
not rcx
lea rdi, [rcx - 1]
mov rcx, rsi
call fcn.140017d10
cmp ebx, eax
jne 0x1400190fc
cmp dword [rsi + 0x1038], r12d
je 0x1400190fc
mov eax, r14d
sub eax, dword [rsi + 0x1030]
cmp eax, 2
jge 0x140018f6c
mov edx, r12d
mov rcx, rsi
call fcn.140017cb0
test eax, eax
je 0x1400190fc
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x14029e064]
mov r9d, r12d
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
mov rdx, qword [r13 + 8]
mov r8d, edi
mov rcx, rsi
call fcn.140017d10
cmp edi, eax
jne 0x1400190fc
cmp dword [rsi + 0x1038], r12d
je 0x1400190fc
mov eax, r14d
sub eax, dword [rsi + 0x1030]
cmp eax, 2
jge 0x140018fce
mov edx, r12d
mov rcx, rsi
call fcn.140017cb0
test eax, eax
je 0x1400190fc
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x14029d050]
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
inc rbp
cmp rbp, qword [rsp + 0x58]
jl 0x140018ef0
mov eax, dword [rsi + 0x1038]
cmp eax, r12d
je 0x1400190a2
mov r8d, dword [rsi + 0x1030]
sub r14d, r8d
cmp r14d, 2
jge 0x140019049
test r8d, r8d
jle 0x140019049
cmp eax, 2
jne 0x140019049
mov rcx, qword [rsi + 0x28]
lea rdx, [rsi + 0x30]
mov r9d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
xor ecx, ecx
cmp dword [rsi + 0x1030], eax
mov dword [rsi + 0x1030], 0
sete cl
test ecx, ecx
je 0x1400190a2
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x14029d050]
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
mov r8d, dword [rsi + 0x1030]
test r8d, r8d
jle 0x1400190c0
cmp dword [rsi + 0x1038], 2
jne 0x1400190c0
mov rcx, qword [rsi + 0x28]
lea rdx, [rsi + 0x30]
mov r9d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
xor ecx, ecx
cmp dword [rsi + 0x1030], eax
mov dword [rsi + 0x1030], 0
sete cl
test ecx, ecx
jne 0x1400190c0
xor r12d, r12d
cmp dword [rsi + 8], r12d
je 0x1400190b8
mov dword [rsi + 8], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x10], eax
mov dword [r15 + 0x10], 2
cmp dword [rsi + 8], 4
je 0x1400190d6
mov dword [rsi + 8], 4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x10], eax
mov eax, r12d
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r12
pop rsi
ret
xor eax, eax
jmp 0x1400190d9