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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov dword [rsp + 0x3c], r9d
mov r12, r8
mov qword [rsp + 0x48], r8
mov r13, rdx
mov rsi, rcx
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x40], rax
mov rdi, qword [rbp + 0x168]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
lea r8, str.listenOnPort
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180105b50
nop
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.1801550e0
test al, al
je 0x1801575d4
lea rcx, [r13 + 0xf40]
call fcn.1800d9ae0
xor r14d, r14d
mov r15d, r14d
lea rcx, [r13 + 0xf40]
call fcn.1800d6d70
test eax, eax
je 0x180157417
lea rcx, [r13 + 0xf40]
call fcn.1800d6d80
mov r15, rax
movzx r12d, word [r12]
mov eax, dword [r13 + 0xfd4]
lea ecx, [rax - 1]
mov edx, 0x7d0
cmp ecx, 0x7cf
cmova eax, edx
mov dword [rsp + 0x38], eax
call sub.KERNEL32.dll_GetTickCount
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x30], 1
test r14d, r14d
jne 0x18015747c
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8, r15
movzx edx, r12w
mov rcx, rsi
cmp byte [r13 + 0xfd8], r14b
je 0x180157472
call fcn.1801536f0
movzx ebx, al
jmp 0x1801574d5
call fcn.1801535c0
movzx ebx, al
jmp 0x1801574d5
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x70]
call fcn.180211600
lea rcx, [rsp + 0x70]
call fcn.1800deb00
nop
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov r8, r15
movzx edx, r12w
mov rcx, rsi
mov qword [rsp + 0x20], rax
cmp byte [r13 + 0xfd8], 0
je 0x1801574c3
call fcn.1801536f0
jmp 0x1801574c8
call fcn.1801535c0
movzx ebx, al
lea rcx, [rsp + 0x70]
call fcn.1800deb30
test bl, bl
jne 0x18015751d
cmp byte [rsp + 0x30], bl
je 0x1801575d4
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.180175cc0
test al, al
jne 0x1801575d4
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x38]
jae 0x1801575d4
mov ecx, 0x64
call fcn.180104b90
inc r14d
jmp 0x180157446
mov r14, qword [rsp + 0x48]
cmp dword [r14], 0
jne 0x1801575a1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rcx, [rsp + 0x70]
call fcn.1800d27d0
nop
mov r9, rdi
mov r8, r14
lea rdx, [rsp + 0x70]
mov rcx, rsi
cmp byte [r13 + 0xfd8], 0
je 0x18015757a
call fcn.180153b80
jmp 0x18015757f
call fcn.180153a70
movzx ebx, al
test al, al
jne 0x180157597
mov rax, qword [rdi]
lea rdx, str.Failed_to_get_allocated_port_for_listening.
mov rcx, rdi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x70]
call fcn.1800d28c0
test bl, bl
je 0x1801575d6
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsi + 0x298]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x180157606
mov rax, qword [rdi]
lea rdx, str.listen_failed.
mov rcx, rdi
call qword [rax + 0x28]
mov rdx, rdi
xor ecx, ecx
call fcn.180158450
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.180105c80
movzx eax, bl
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x1f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov byte [rsi + 0x291], 1
jmp 0x1801575d6