Function at 0x180008910
Capabilities:
Check for time delay via gettickcount
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x180068020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov qword [rbp + 0xf], rcx
mov ecx, 0x18
mov word [rbp - 0x61], r8w
mov qword [rbp + 7], rdx
call fcn.180010eb4
xor r14d, r14d
mov qword [rbp - 0x21], rax
xor edx, edx
xor r12b, r12b
xor r9d, r9d
mov dword [rbp - 0x3d], r12d
xor r8d, r8d
mov qword [rax], r14
mov r13, rax
mov qword [rax + 8], r14
lea rcx, [rdx - 1]
mov qword [rax + 0x10], r14
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x180008fb8
mov ecx, 0x1b580
mov qword [rsp + 0x110], rbx
call fcn.180011270
mov rbx, qword [r15]
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rbx
cmp rbx, qword [r15 + 8]
je 0x180008f98
mov qword [rsp + 0x118], rsi
nop dword [rax]
movzx esi, byte [rbx + 7]
movzx r8d, byte [rbx + 3]
movzx edi, byte [rbx + 2]
movzx eax, byte [rbx + 1]
movzx r9d, byte [rbx]
movzx r11d, byte [rbx + 6]
movzx r10d, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
mov dword [rbp - 1], edi
mov dword [rbp - 9], eax
mov dword [rbp - 0x11], r9d
mov dword [rbp - 0x5d], esi
mov dword [rbp - 5], r11d
mov dword [rbp - 0xd], r10d
mov dword [rbp - 0x15], ecx
mov dword [rbp - 0x2d], r8d
cmp r8d, esi
ja 0x180008e08
nop dword [rax + rax]
test r12b, r12b
jne 0x180008e00
mov edx, edi
mov dword [rbp - 0x31], edx
cmp edi, r11d
ja 0x180008df0
test r12b, r12b
jne 0x180008dea
mov ebx, eax
cmp eax, r10d
ja 0x180008ddc
nop dword [rax + rax]
test r12b, r12b
jne 0x180008dd5
mov eax, r9d
mov dword [rbp - 0x35], eax
cmp r9d, ecx
ja 0x180008dca
nop dword [rax + rax]
test r12b, r12b
jne 0x180008dc2
xor r13d, r13d
mov r15d, r8d
shl r15d, 8
mov esi, r13d
or r15d, edx
mov dword [rbp - 0x39], r13d
shl r15d, 8
or r15d, ebx
shl r15d, 8
or r15d, eax
nop dword [rax + rax]
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
cmp rax, rcx
je 0x180008ab8
cmp dword [rax], r15d
ja 0x180008aaf
cmp r15d, dword [rax + 4]
jbe 0x180008b58
add rax, 8
cmp rax, rcx
jne 0x180008aa0
cmp r14d, 0x7d0
je 0x180008ad2
test esi, esi
je 0x180008c48
test r14d, r14d
je 0x180008c48
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov dil, 1
mov rcx, qword [rbp - 0x29]
lea r9, [rbp - 0x69]
xor eax, eax
mov dword [rsp + 0x20], 0xa
lea r8, [rbp - 0x41]
mov qword [rbp - 0x69], rax
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x19], eax
mov dword [rbp - 0x41], eax
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [rbp - 0x41], 2
jne 0x180008b78
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x180008b78
test r14d, r14d
je 0x180008ae1
inc r12d
test eax, eax
je 0x180008b6f
mov eax, dword [rcx + 0x20]
mov dword [rbp - 0x59], eax
movzx eax, word [rcx + 0x24]
mov rcx, qword [rbp - 0x21]
mov word [rbp - 0x55], ax
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x180008b62
mov rax, qword [rbp - 0x59]
mov qword [rdx], rax
add qword [rcx + 8], 8
mov rcx, qword [rbp - 0x69]
mov byte [rcx + 0x30], 1
jmp 0x180008ae1
mov eax, 1
jmp 0x180008d95
lea r8, [rbp - 0x59]
call fcn.180008700
mov rcx, qword [rbp - 0x69]
mov byte [rcx + 0x30], 1
jmp 0x180008ae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x180008bde
cmp r12d, r14d
je 0x180008bde
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp eax, 0x1388
jb 0x180008ae1
test dil, dil
je 0x180008ae1
test r14d, r14d
je 0x180008bd6
mov rdi, qword [rbp - 0x51]
add rdi, 0x28
mov esi, r14d
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x180008bcc
cmp byte [rdi + 8], 0
jne 0x180008bcc
call qword [sym.imp.KERNEL32.dll_CancelIo]
add rdi, 0x38
sub rsi, 1
jne 0x180008bb7
xor dil, dil
jmp 0x180008ae1
test r14d, r14d
je 0x180008c3b
mov rdi, qword [rbp - 0x51]
add rdi, 0x28
mov esi, r14d
xor r14d, r14d
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x180008c31
xor r9d, r9d
mov dword [rsp + 0x20], r14d
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 0x180008bf1
mov esi, dword [rbp - 0x39]
xor r13d, r13d
mov r12d, dword [rbp - 0x3d]
mov r14d, r13d
xorps xmm0, xmm0
mov eax, r14d
imul rdi, rax, 0x38
xor eax, eax
xor r9d, r9d
add rdi, qword [rbp - 0x51]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
movzx eax, word [rbp - 0x61]
mov word [rdi + 0x24], ax
mov eax, 1
mov dword [rsp + 0x28], eax
mov edx, eax
mov qword [rdi + 0x28], 0xffffffffffffffff
mov dword [rdi + 0x20], r15d
lea r8d, [rax + 5]
mov dword [rsp + 0x20], r13d
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x180008d74
mov rdx, qword [rbp - 0x29]
xor r9d, r9d
mov rcx, rax
mov qword [rdi + 0x28], rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
xor r13d, r13d
cmp rax, qword [rbp - 0x29]
jne 0x180008d3e
mov rcx, qword [rdi + 0x28]
lea r8d, [r13 + 0x10]
lea rdx, [rbp + 0x17]
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x17], 2
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x180008d3e
mov rcx, qword [rdi + 0x28]
lea r8d, [r13 + 0x10]
mov eax, 2
mov qword [rsp + 0x30], rdi
mov word [rbp + 0x17], ax
lea rdx, [rbp + 0x17]
mov eax, dword [rdi + 0x20]
xor r9d, r9d
bswap eax
mov dword [rbp + 0x1b], eax
movzx eax, word [rdi + 0x24]
ror ax, 8
mov qword [rsp + 0x28], r13
mov word [rbp + 0x19], ax
mov qword [rbp + 0x1f], r13
mov dword [rsp + 0x20], r13d
call qword [0x18006abe8]
test eax, eax
jne 0x180008da5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x180008da5
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], r13d
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]
cmp esi, 4
movzx r12d, r12b
mov edi, 1
mov ecx, 0x1388
cmove r12d, edi
mov dword [rbp - 0x3d], r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
add esi, eax
mov dword [rbp - 0x39], esi
cmp esi, 5
jb 0x180008a90
jmp 0x180008da8
inc r14d
mov eax, dword [rbp - 0x35]
mov ecx, dword [rbp - 0x15]
inc eax
mov edx, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x2d]
mov dword [rbp - 0x35], eax
cmp eax, ecx
jbe 0x180008a60
mov r9d, dword [rbp - 0x11]
mov r10d, dword [rbp - 0xd]
inc ebx
cmp ebx, r10d
jbe 0x180008a40
mov eax, dword [rbp - 9]
mov r11d, dword [rbp - 5]
inc edx
mov dword [rbp - 0x31], edx
cmp edx, r11d
jbe 0x180008a27
mov edi, dword [rbp - 1]
mov esi, dword [rbp - 0x5d]
inc r8d
mov dword [rbp - 0x2d], r8d
cmp r8d, esi
jbe 0x180008a10
mov rbx, qword [rbp - 0x49]
mov r15, qword [rbp + 0xf]
add rbx, 8
mov qword [rbp - 0x49], rbx
cmp rbx, qword [r15 + 8]
jne 0x1800089c0
test r14d, r14d
je 0x180008f8c
xor r12d, r12d
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13, qword [rbp - 0x21]
mov bl, 1
mov rdi, qword [rbp - 0x29]
mov r15d, eax
nop dword [rax]
lea r9, [rbp - 0x69]
mov qword [rbp - 0x69], r12
lea r8, [rbp - 0x49]
mov dword [rbp - 0x5d], r12d
lea rdx, [rbp - 0x5d]
mov qword [rbp - 0x49], r12
mov rcx, rdi
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp - 0x49], 2
jne 0x180008ec6
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x180008ec6
inc esi
test eax, eax
je 0x180008ebd
mov eax, dword [rcx + 0x20]
mov rdx, qword [r13 + 8]
mov dword [rbp - 0x59], eax
movzx eax, word [rcx + 0x24]
mov word [rbp - 0x55], ax
cmp rdx, qword [r13 + 0x10]
je 0x180008ead
mov rax, qword [rbp - 0x59]
mov qword [rdx], rax
mov rcx, qword [rbp - 0x69]
add qword [r13 + 8], 8
mov byte [rcx + 0x30], 1
jmp 0x180008e40
lea r8, [rbp - 0x59]
mov rcx, r13
call fcn.180008700
mov rcx, qword [rbp - 0x69]
mov byte [rcx + 0x30], 1
jmp 0x180008e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x180008f2e
cmp esi, r14d
je 0x180008f2e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x1388
jb 0x180008e40
test bl, bl
je 0x180008e40
test r14d, r14d
je 0x180008f27
mov rbx, qword [rbp - 0x51]
add rbx, 0x28
mov edi, r14d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180008f19
cmp byte [rbx + 8], r12b
jne 0x180008f19
call qword [sym.imp.KERNEL32.dll_CancelIo]
add rbx, 0x38
sub rdi, 1
jne 0x180008f04
mov rdi, qword [rbp - 0x29]
xor bl, bl
jmp 0x180008e40
test r14d, r14d
je 0x180008f90
mov rbx, qword [rbp - 0x51]
mov r13d, 2
add rbx, 0x28
mov edi, r14d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180008f82
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 0x180008f44
mov r13, qword [rbp - 0x21]
mov rsi, qword [rsp + 0x118]
mov rcx, qword [rbp - 0x51]
mov edx, 0x38
call fcn.180010c10
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x110]
mov rax, r13
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180010bf0
mov rdi, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret