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

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140077020]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ecx, 0x18
call fcn.14001ef04
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x128], 0
je 0x14001215e
mov rcx, qword [rsp + 0x128]
call fcn.140014440
mov qword [rsp + 0x130], rax
jmp 0x14001216a
mov qword [rsp + 0x130], 0
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x40], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140012c91
mov dword [rsp + 0x44], 0
mov eax, dword [0x140077da0]
mov qword [rsp + 0x138], rax
mov eax, 0x38
mul qword [rsp + 0x138]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001f190
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
je 0x140012227
lea r9, [0x140012cc0]
mov r8, qword [rsp + 0x138]
mov edx, 0x38
mov rcx, qword [rsp + 0xf8]
call fcn.140012cf0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x140], rax
jmp 0x140012233
mov qword [rsp + 0x140], 0
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x1c0]
call fcn.140011470
jmp 0x140012282
xor r8d, r8d
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x100]
call fcn.140011370
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x1c0]
call fcn.140011420
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.1400113e0
movzx eax, al
test eax, eax
je 0x1400129da
lea rcx, [rsp + 0x100]
call fcn.1400113c0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
shr eax, 0x18
and eax, 0xff
mov dword [rsp + 0xd8], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
shr eax, 0x10
and eax, 0xff
mov dword [rsp + 0xcc], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
shr eax, 8
and eax, 0xff
mov dword [rsp + 0xe4], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
and eax, 0xff
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
shr eax, 0x18
and eax, 0xff
mov dword [rsp + 0xdc], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
shr eax, 0x10
and eax, 0xff
mov dword [rsp + 0xe0], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
shr eax, 8
and eax, 0xff
mov dword [rsp + 0xec], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
and eax, 0xff
mov dword [rsp + 0xf4], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x58], eax
jmp 0x1400123a4
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xdc]
cmp dword [rsp + 0x58], eax
ja 0x1400129d5
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400129d5
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x5c], eax
jmp 0x1400123d9
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x5c], eax
ja 0x1400129d0
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400129d0
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x60], eax
jmp 0x14001240e
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xec]
cmp dword [rsp + 0x60], eax
ja 0x1400129cb
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400129cb
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x64], eax
jmp 0x140012443
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0xf4]
cmp dword [rsp + 0x64], eax
ja 0x1400129c6
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400129c6
mov dword [rsp + 0x68], 0
jmp 0x140012475
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 5
jae 0x1400129c1
mov eax, dword [rsp + 0x58]
shl eax, 0x18
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [rsp + 0x60]
shl ecx, 8
or eax, ecx
or eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0x1c8]
call fcn.140012070
movzx eax, al
test eax, eax
je 0x1400124b5
jmp 0x14001246b
mov eax, dword [0x140077da0]
cmp dword [rsp + 0x44], eax
je 0x1400124d7
cmp dword [rsp + 0x68], 0
je 0x140012758
cmp dword [rsp + 0x44], 0
je 0x140012758
mov dword [rsp + 0x88], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xe8], eax
mov byte [rsp + 0x49], 1
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x20], 0xa
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
je 0x14001254f
mov byte [rsp + 0x48], 1
jmp 0x140012554
mov byte [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x4c], al
cmp dword [rsp + 0xa0], 2
jne 0x1400125d8
cmp qword [rsp + 0xa8], 0
je 0x1400125d8
cmp dword [rsp + 0x44], 0
je 0x1400125d3
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
movzx eax, byte [rsp + 0x4c]
test eax, eax
je 0x1400125c7
mov rax, qword [rsp + 0xa8]
movzx r8d, word [rax + 0x24]
mov rax, qword [rsp + 0xa8]
mov edx, dword [rax + 0x20]
lea rcx, [rsp + 0x170]
call fcn.140011f00
mov rdx, rax
mov rcx, qword [rsp + 0x120]
call fcn.140014410
mov rax, qword [rsp + 0xa8]
mov byte [rax + 0x30], 1
jmp 0x140012696
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x140012694
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x88], eax
jne 0x140012600
jmp 0x14001269b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xe8]
cmp eax, dword [0x140077d98]
jb 0x140012692
movzx eax, byte [rsp + 0x49]
test eax, eax
je 0x140012692
mov dword [rsp + 0x6c], 0
jmp 0x140012632
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x6c], eax
jae 0x14001268d
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
cmp qword [rax + 0x28], 0xffffffffffffffff
je 0x14001268b
mov rax, qword [rsp + 0x108]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x14001268b
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x140012628
mov byte [rsp + 0x49], 0
jmp 0x140012696
jmp 0x14001269b
jmp 0x1400124f4
mov dword [rsp + 0x70], 0
jmp 0x1400126af
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x70], eax
jae 0x140012750
mov eax, dword [rsp + 0x70]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0xffffffffffffffff
je 0x14001274b
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x7010
mov edx, 0xffff
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x28], 0xffffffffffffffff
jmp 0x1400126a5
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x30], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 0xffffffffffffffff
mov eax, dword [rsp + 0x58]
shl eax, 0x18
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [rsp + 0x60]
shl ecx, 8
or eax, ecx
or eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x50]
movzx ecx, word [rsp + 0x1d0]
mov word [rax + 0x24], cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 0xffffffffffffffff
je 0x1400129a1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x110]
mov qword [rax + 0x28], rcx
xor r9d, r9d
mov r8d, 2
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp rax, qword [rsp + 0x98]
jne 0x140012959
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x180], ax
mov dword [rsp + 0x184], 0
xor eax, eax
mov word [rsp + 0x182], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x180]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140012959
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x180], ax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
bswap eax
mov dword [rsp + 0x184], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x24]
ror ax, 8
mov word [rsp + 0x182], ax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x180]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [0x140079ce8]
test eax, eax
jne 0x14001294d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x140012959
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x1400129c1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x7010
mov edx, 0xffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x68]
inc eax
cmp eax, 5
jne 0x1400129b1
mov byte [rsp + 0x40], 1
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001246b
jmp 0x140012439
jmp 0x140012404
jmp 0x1400123cf
jmp 0x14001239a
jmp 0x14001226a
cmp dword [rsp + 0x44], 0
je 0x140012c61
mov dword [rsp + 0x8c], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xd4], eax
mov byte [rsp + 0x4b], 1
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xd0], 0
mov qword [rsp + 0x148], 0
mov dword [rsp + 0x20], 0xa
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x148]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
je 0x140012a5e
mov byte [rsp + 0x4a], 1
jmp 0x140012a63
mov byte [rsp + 0x4a], 0
movzx eax, byte [rsp + 0x4a]
mov byte [rsp + 0x4d], al
cmp qword [rsp + 0x148], 2
jne 0x140012ae1
cmp qword [rsp + 0xb8], 0
je 0x140012ae1
mov eax, dword [rsp + 0x8c]
inc eax
mov dword [rsp + 0x8c], eax
movzx eax, byte [rsp + 0x4d]
test eax, eax
je 0x140012ad0
mov rax, qword [rsp + 0xb8]
movzx r8d, word [rax + 0x24]
mov rax, qword [rsp + 0xb8]
mov edx, dword [rax + 0x20]
lea rcx, [rsp + 0x178]
call fcn.140011f00
mov rdx, rax
mov rcx, qword [rsp + 0x120]
call fcn.140014410
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0x30], 1
jmp 0x140012b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x140012b9d
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x8c], eax
jne 0x140012b09
jmp 0x140012ba4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xd4]
cmp eax, dword [0x140077d98]
jb 0x140012b9b
movzx eax, byte [rsp + 0x4b]
test eax, eax
je 0x140012b9b
mov dword [rsp + 0x74], 0
jmp 0x140012b3b
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x74], eax
jae 0x140012b96
mov eax, dword [rsp + 0x74]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
cmp qword [rax + 0x28], 0xffffffffffffffff
je 0x140012b94
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x140012b94
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x140012b31
mov byte [rsp + 0x4b], 0
jmp 0x140012b9f
jmp 0x140012ba4
jmp 0x140012a02
mov dword [rsp + 0x78], 0
jmp 0x140012bb8
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x78], eax
jae 0x140012c59
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x28], 0xffffffffffffffff
je 0x140012c54
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x7010
mov edx, 0xffff
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0xc0]
mov qword [rax + 0x28], 0xffffffffffffffff
jmp 0x140012bae
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x158], rax
mov edx, 0x38
mov rcx, qword [rsp + 0x158]
call fcn.14001ec60
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001ec40
add rsp, 0x1b0
pop rdi
ret