Function at 0x180009090
Capabilities:
Check for time delay via gettickcount
Create tcp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x17], rcx
mov rsi, rdx
mov ecx, 0x18
mov qword [rbp - 0x49], rdx
call fcn.18000eb84
xor ebx, ebx
mov qword [rbp - 0x21], rax
xor r15b, r15b
xor r9d, r9d
xor r8d, r8d
mov byte [rbp - 0x69], r15b
xor edx, edx
mov qword [rax], rbx
lea rcx, [rbx - 1]
mov qword [rax + 8], rbx
mov r12, rax
mov qword [rax + 0x10], rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [rbp - 0x41], rax
test rax, rax
je 0x180009729
mov qword [rsp + 0x110], r13
mov ecx, 0x1b580
mov qword [rsp + 0x118], r14
mov r14d, ebx
call fcn.18000ef40
mov rdx, qword [rbp + 0x17]
mov r13, rax
mov qword [rbp - 0x29], rax
mov rbx, qword [rdx]
mov qword [rbp - 0x39], rbx
cmp rbx, qword [rdx + 8]
je 0x180009702
nop
movzx r12d, byte [rbx + 7]
movzx r8d, byte [rbx + 3]
movzx eax, byte [rbx + 2]
movzx r11d, byte [rbx + 1]
movzx r9d, byte [rbx]
movzx edi, byte [rbx + 6]
movzx r10d, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
mov dword [rbp - 1], eax
mov dword [rbp - 9], r11d
mov dword [rbp - 0x11], r9d
mov dword [rbp - 0x51], r12d
mov dword [rbp - 5], edi
mov dword [rbp - 0xd], r10d
mov dword [rbp - 0x15], ecx
mov dword [rbp - 0x61], r8d
cmp r8d, r12d
ja 0x180009575
nop word [rax + rax]
test r15b, r15b
jne 0x18000956d
mov dword [rbp - 0x65], eax
mov edx, eax
cmp eax, edi
ja 0x18000955d
test r15b, r15b
jne 0x180009556
mov eax, r11d
mov dword [rbp - 0x2d], eax
cmp r11d, r10d
ja 0x180009549
nop
test r15b, r15b
jne 0x180009542
mov ebx, r9d
cmp r9d, ecx
ja 0x180009534
test r15b, r15b
jne 0x18000952c
mov rcx, qword [rsi + 8]
mov r12d, r8d
shl r12d, 8
or r12d, edx
shl r12d, 8
or r12d, eax
mov rax, qword [rsi]
shl r12d, 8
or r12d, ebx
cmp rax, rcx
je 0x18000921a
cmp dword [rax], r12d
ja 0x180009211
cmp r12d, dword [rax + 4]
jbe 0x18000951c
add rax, 8
cmp rax, rcx
jne 0x180009202
xor esi, esi
mov dword [rbp - 0x31], esi
nop
cmp r14d, 0x7d0
je 0x18000923a
test esi, esi
je 0x1800093af
test r14d, r14d
je 0x1800093af
xor esi, esi
mov r15d, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov dil, 1
nop dword [rax + rax]
mov rcx, qword [rbp - 0x41]
lea r9, [rbp - 0x59]
lea r8, [rbp + 0xf]
mov qword [rbp - 0x59], rsi
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x19], esi
mov qword [rbp + 0xf], rsi
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp + 0xf], 2
jne 0x1800092dd
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800092dd
test r14d, r14d
je 0x180009250
inc r15d
test eax, eax
je 0x1800092d4
mov eax, dword [rcx + 0x20]
mov dword [rbp + 3], eax
movzx eax, word [rcx + 0x24]
mov rcx, qword [rbp - 0x21]
mov word [rbp + 7], ax
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1800092c7
mov rax, qword [rbp + 3]
mov qword [rdx], rax
add qword [rcx + 8], 8
mov rcx, qword [rbp - 0x59]
mov byte [rcx + 0x30], 1
jmp 0x180009250
lea r8, [rbp + 3]
call fcn.180007f00
mov rcx, qword [rbp - 0x59]
mov byte [rcx + 0x30], 1
jmp 0x180009250
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x180009347
cmp r15d, r14d
je 0x180009347
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp eax, 0x1388
jb 0x180009250
test dil, dil
je 0x180009250
test r14d, r14d
je 0x18000933f
mov rdi, qword [rbp - 0x29]
add rdi, 0x28
mov esi, r14d
nop dword [rax]
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x180009335
cmp byte [rdi + 8], 0
jne 0x180009335
call qword [sym.imp.KERNEL32.dll_CancelIo]
add rdi, 0x38
sub rsi, 1
jne 0x180009320
xor dil, dil
jmp 0x180009250
mov r13, qword [rbp - 0x29]
test r14d, r14d
je 0x1800093a4
lea rdi, [r13 + 0x28]
mov esi, r14d
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x18000939a
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi], 0xffffffffffffffff
add rdi, 0x38
sub rsi, 1
jne 0x180009357
movzx r15d, byte [rbp - 0x69]
mov r14d, esi
mov esi, dword [rbp - 0x31]
xorps xmm0, xmm0
mov eax, r14d
imul rdi, rax, 0x38
xor eax, eax
mov dword [rsp + 0x28], 1
add rdi, r13
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea edx, [rax + 1]
movups xmmword [rdi], xmm0
lea ecx, [rax + 2]
movups xmmword [rdi + 0x10], xmm0
lea r8d, [rax + 6]
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x28], 0xffffffffffffffff
mov dword [rdi + 0x20], r12d
mov word [rdi + 0x24], 0x87
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1800094d8
mov rdx, qword [rbp - 0x41]
xor r9d, r9d
mov rcx, rax
mov qword [rdi + 0x28], rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp rax, qword [rbp - 0x41]
jne 0x1800094a1
mov rcx, qword [rdi + 0x28]
lea rdx, [rbp + 0x1f]
xor eax, eax
mov qword [rbp + 0x1f], 2
mov qword [rbp + 0x27], rax
lea r8d, [rax + 0x10]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1800094a1
xor ecx, ecx
mov qword [rsp + 0x30], rdi
mov eax, 2
mov qword [rsp + 0x28], rcx
mov word [rbp + 0x1f], ax
lea rdx, [rbp + 0x1f]
mov eax, dword [rdi + 0x20]
xor r9d, r9d
bswap eax
mov dword [rbp + 0x23], eax
lea r8d, [rcx + 0x10]
movzx eax, word [rdi + 0x24]
ror ax, 8
mov qword [rbp + 0x27], rcx
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x28]
mov word [rbp + 0x21], ax
call qword [0x1800509e0]
test eax, eax
jne 0x1800094ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1800094ff
mov rcx, qword [rdi + 0x28]
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x28]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
lea eax, [rsi + 1]
mov ecx, 0x1388
mov dword [rbp - 0x31], eax
mov esi, eax
cmp eax, 5
je 0x180009504
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rbp - 0x69], r15b
cmp esi, 5
jb 0x180009220
jmp 0x180009511
inc r14d
jmp 0x180009511
mov r15b, 1
mov byte [rbp - 0x69], r15b
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rbp - 0x49]
mov edx, dword [rbp - 0x65]
mov r8d, dword [rbp - 0x61]
mov ecx, dword [rbp - 0x15]
inc ebx
mov eax, dword [rbp - 0x2d]
cmp ebx, ecx
jbe 0x1800091d5
mov r9d, dword [rbp - 0x11]
mov r10d, dword [rbp - 0xd]
inc eax
mov dword [rbp - 0x2d], eax
cmp eax, r10d
jbe 0x1800091c0
mov r11d, dword [rbp - 9]
mov edi, dword [rbp - 5]
inc edx
mov dword [rbp - 0x65], edx
cmp edx, edi
jbe 0x1800091a6
mov eax, dword [rbp - 1]
mov r12d, dword [rbp - 0x51]
inc r8d
mov dword [rbp - 0x61], r8d
cmp r8d, r12d
jbe 0x180009190
mov rbx, qword [rbp - 0x39]
mov rdx, qword [rbp + 0x17]
add rbx, 8
mov qword [rbp - 0x39], rbx
cmp rbx, qword [rdx + 8]
jne 0x180009140
test r14d, r14d
je 0x1800096fe
xor eax, eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, qword [rbp - 0x21]
mov bl, 1
mov rdi, qword [rbp - 0x41]
mov r15d, eax
nop word [rax + rax]
xor eax, eax
mov dword [rsp + 0x20], 0xa
lea r9, [rbp - 0x59]
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x39]
mov dword [rbp - 0x51], eax
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x39], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp - 0x39], 2
jne 0x18000963a
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x18000963a
inc esi
test eax, eax
je 0x180009631
mov eax, dword [rcx + 0x20]
mov rdx, qword [r12 + 8]
mov dword [rbp - 0x49], eax
movzx eax, word [rcx + 0x24]
mov word [rbp - 0x45], ax
cmp rdx, qword [r12 + 0x10]
je 0x180009621
mov rax, qword [rbp - 0x49]
mov qword [rdx], rax
mov rcx, qword [rbp - 0x59]
add qword [r12 + 8], 8
mov byte [rcx + 0x30], 1
jmp 0x1800095b0
lea r8, [rbp - 0x49]
mov rcx, r12
call fcn.180007f00
mov rcx, qword [rbp - 0x59]
mov byte [rcx + 0x30], 1
jmp 0x1800095b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x18000969e
cmp esi, r14d
je 0x18000969e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x1388
jb 0x1800095b0
test bl, bl
je 0x1800095b0
test r14d, r14d
je 0x180009697
lea rbx, [r13 + 0x28]
mov edi, r14d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180009689
cmp byte [rbx + 8], 0
jne 0x180009689
call qword [sym.imp.KERNEL32.dll_CancelIo]
add rbx, 0x38
sub rdi, 1
jne 0x180009674
mov rdi, qword [rbp - 0x41]
xor bl, bl
jmp 0x1800095b0
test r14d, r14d
je 0x180009702
xor r12d, r12d
mov edi, r14d
lea rbx, [r13 + 0x28]
lea r13d, [r12 + 2]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800096f0
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
mov edx, r13d
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
add rbx, 0x38
sub rdi, 1
jne 0x1800096b2
mov r13, qword [rbp - 0x29]
mov r12, qword [rbp - 0x21]
mov edx, 0x38
mov rcx, r13
call fcn.18000e8e0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x110]
mov rax, r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.18000e8c0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret