Function at 0x14017e1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rbp
push rsi
push r14
push r15
sub rsp, 0x48
mov rsi, qword [rcx + 0x90]
mov r14, rcx
mov r15, qword [rcx]
mov rbp, qword [rcx + 0x10]
test rsi, rsi
je 0x14017e560
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
xor r12d, r12d
mov qword [rax - 0x28], r13
nop word [rax + rax]
movsxd rdx, dword [rsi + 0x10]
mov rax, qword [r15 + 0x20]
mov rcx, rdx
mov edi, dword [rsi + 0x14]
mov r10, qword [r14 + 0x10]
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
mov rbx, qword [rcx + 0x68]
test byte [rbx + 0x30], 0x80
jne 0x14017e278
movsxd rcx, dword [r10 + 0x90]
movsx r8d, word [rbx + 0x38]
mov r9d, dword [rbx + 0x28]
cmp dword [r10 + 0x94], ecx
jg 0x14017e24b
mov dword [rsp + 0x28], r8d
mov rcx, r10
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea edx, [r8 + 0x70]
call fcn.140139580
jmp 0x14017e2f5
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov qword [rax + rcx*8], 0xfd70
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8 + 0x10], r8d
jmp 0x14017e2f5
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x14017e293
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x14017e293
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14017e281
movsxd rcx, dword [r10 + 0x90]
mov r8d, dword [rbx + 0x58]
cmp dword [r10 + 0x94], ecx
jg 0x14017e2bf
mov r9d, r8d
mov dword [rsp + 0x20], edx
xor r8d, r8d
mov rcx, r10
lea edx, [r8 + 0x70]
call fcn.140139520
jmp 0x14017e2ea
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov qword [rax + rcx*8], reloc.WS2_32.dll_WSASetLastError
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r12
mov rdx, rbx
mov rcx, r14
call fcn.14013acf0
mov rax, qword [rsi + 8]
lea ebx, [rdi - 1]
xor r8d, r8d
mov dword [rsp + 0x30], r12d
mov r9d, ebx
mov rcx, rbp
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea edx, [r8 + 0x75]
mov dword [rsp + 0x20], r12d
call fcn.140139ae0
mov eax, dword [rbp + 0x90]
add eax, 0xc
cmp eax, dword [rbp + 0x94]
jle 0x14017e341
mov rcx, rbp
call fcn.1401393e0
test eax, eax
jne 0x14017e549
movsxd rax, dword [rbp + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x88]
mov qword [rax + rcx*8], 0x4b
mov qword [rax + rcx*8 + 8], r12
mov qword [rax + rcx*8 + 0x10], r12
lea rdx, [rax + rcx*8]
mov byte [rdx + 0x18], 0x24
mov dword [rdx + 0x1c], r12d
mov dword [rdx + 0x20], 0xa
mov eax, dword [rbp + 0x90]
add eax, 0xa
mov dword [rdx + 0x20], eax
mov dword [rdx + 0x24], r12d
mov byte [rdx + 0x19], r12b
mov qword [rdx + 0x28], r12
mov word [rdx + 0x1a], r12w
mov qword [rdx + 0x30], 0x5e
mov qword [rdx + 0x38], r12
mov qword [rdx + 0x40], r12
mov byte [rdx + 0x48], 0x34
mov dword [rdx + 0x4c], r12d
mov dword [rdx + 0x50], 9
mov eax, dword [rbp + 0x90]
add eax, 9
mov dword [rdx + 0x50], eax
mov dword [rdx + 0x54], r12d
mov byte [rdx + 0x49], r12b
mov qword [rdx + 0x58], r12
mov word [rdx + 0x4a], r12w
mov qword [rdx + 0x60], 0x87
mov qword [rdx + 0x68], r12
mov qword [rdx + 0x70], r12
mov qword [rdx + 0x78], 0x5e
mov qword [rdx + 0x80], 1
mov qword [rdx + 0x88], r12
mov qword [rdx + 0x90], 0x56
mov qword [rdx + 0x98], r12
mov qword [rdx + 0xa0], r12
mov qword [rdx + 0xa8], 0x50
mov qword [rdx + 0xb0], r12
mov qword [rdx + 0xb8], r12
mov byte [rdx + 0xc0], 9
mov dword [rdx + 0xc4], r12d
mov dword [rdx + 0xc8], listen
mov eax, dword [rbp + 0x90]
add eax, 0xb
mov dword [rdx + 0xc8], eax
mov dword [rdx + 0xcc], r12d
mov byte [rdx + 0xc1], r12b
mov qword [rdx + 0xd0], r12
mov word [rdx + 0xc2], r12w
mov byte [rdx + 0xd8], 0x27
mov dword [rdx + 0xdc], r12d
mov dword [rdx + 0xe0], 2
mov eax, dword [rbp + 0x90]
add eax, 2
mov dword [rdx + 0xe0], eax
mov dword [rdx + 0xe4], r12d
mov byte [rdx + 0xd9], r12b
mov qword [rdx + 0xe8], r12
mov word [rdx + 0xda], r12w
mov qword [rdx + 0xf0], 0x47
mov qword [rdx + 0xf8], r12
mov qword [rdx + 0x100], r12
mov qword [rdx + 0x108], 0x7a
mov qword [rdx + 0x110], r12
mov qword [rdx + 0x118], r12
add dword [rbp + 0x90], 0xc
test rdx, rdx
je 0x14017e549
lea ecx, [rdi + 2]
mov dword [rdx + 8], edi
lea eax, [rdi + 1]
mov dword [rdx + 0xc], ecx
mov dword [rdx + 0x68], eax
mov dword [rdx + 0xb0], ecx
mov dword [rdx + 0x3c], edi
mov dword [rdx + 0x4c], ebx
mov dword [rdx + 0x54], edi
mov word [rdx + 0x4a], reloc.WS2_32.dll_recv
mov dword [rdx + 0x84], edi
mov dword [rdx + 0x94], edi
mov dword [rdx + 0xac], edi
mov dword [rdx + 0xf8], edi
cmp dword [r14 + 0x34], r12d
jne 0x14017e53d
mov dword [r14 + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14017e1f0
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r14
pop rsi
pop rbp
ret