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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r10, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r14, r9d
mov r15, r8
mov r11, rcx
mov qword [rsp + 0x50], r10
movzx edx, byte [r10]
mov r12d, 0x400
mov r9d, 0x800
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x14016d0b9
cmp dl, 0x32
jne 0x14016c96b
mov ebp, dword [rsp + 0xe8]
lea edx, [rdi + 0x48]
mov r9d, ebp
xor r8d, r8d
mov rcx, rsi
call fcn.1401d12a0
jmp 0x14016ccf0
mov r12, qword [r8 + 0x50]
mov ebp, edi
mov dword [rsp + 0x3c], 5
mov r13, rdi
mov qword [rsp + 0x48], r12
test dword [r12 + 0x28], 0x400
jne 0x14016c9ae
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14016c9ae
mov rax, qword [rax + 0x38]
cmp byte [r14 + rax], dil
je 0x14016c9ae
cmp dword [rsp + 0xe0], edi
mov eax, edi
sete al
jmp 0x14016c9b5
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x34], eax
test r14d, r14d
jle 0x14016c9e0
mov r8, qword [r12 + 0x38]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x14016c9d8
cmp qword [rcx], r10
je 0x14016ca82
inc rax
cmp rax, r14
jl 0x14016c9c6
movzx r8d, word [r12 + 0x2c]
cmp r14d, r8d
jge 0x14016ca18
mov rax, qword [r12 + 0x38]
sub r8d, r14d
lea rdx, [rax + r14*8]
nop word [rax + rax]
mov rax, qword [rdx]
lea ecx, [rbp + 1]
lea rdx, [rdx + 8]
cmp qword [rax], r10
cmovne ecx, ebp
mov ebp, ecx
sub r8, 1
jne 0x14016ca00
mov eax, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
test dword [r10 + 4], r9d
je 0x14016cb26
mov rax, qword [r10 + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x14016cb26
mov r8, qword [rsp + 0x48]
mov r9, r10
mov r12, qword [r11]
mov edx, r14d
mov rcx, r11
call fcn.14018d550
mov r15, rax
cmp byte [r12 + 0x63], dil
jne 0x14016caf6
mov rcx, qword [rsp + 0xc0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x14016ca99
mov rdx, r14
call fcn.1401a2ff0
jmp 0x14016caa1
mov rdx, rbx
mov rcx, r15
call fcn.1401724f0
mov eax, dword [rsp + 0xe8]
jmp 0x14016d0fe
mov rcx, r14
call fcn.1401b8f80
mov r13, rax
test rax, rax
je 0x14016cab6
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.1402b60e0
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov qword [rsp + 0x20], r13
lea r8d, [r9 + 4]
call fcn.1401ac200
mov ecx, dword [rsp + 0x30]
mov r14d, dword [rsp + 0xd8]
mov dword [rsp + 0x3c], eax
mov rax, qword [rbx]
mov dword [rsp + 0x38], ecx
mov dword [rax + 0x2c], ecx
test r15, r15
je 0x14016cb06
mov rdx, r15
mov rcx, r12
call fcn.1401aa420
mov rax, qword [rbx]
mov r15, qword [rsp + 0xd0]
mov r8d, dword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
jmp 0x14016cb55
xor r9d, r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdx, r10
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.1401ac200
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], eax
cmp eax, 4
jne 0x14016cb69
cmp dword [rsp + 0x34], edi
mov eax, edi
sete al
mov dword [rsp + 0x34], eax
jmp 0x14016cb6d
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, 0x21
mov edx, 0x25
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14016cb9c
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.14017e5d0
jmp 0x14016cbcc
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], di
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
or dword [r12 + 0x28], 0x800
mov rcx, qword [rsp + 0xc0]
cmp dword [r15 + 0x40], edi
jne 0x14016cbed
dec dword [rcx + 0x44]
mov eax, dword [rcx + 0x44]
mov dword [r15 + 0x10], eax
test r14d, r14d
jle 0x14016cc06
mov eax, dword [r12 + 0x28]
bt eax, 0x14
jb 0x14016cc06
bts eax, 0x12
mov dword [r12 + 0x28], eax
movsxd r12, dword [r15 + 0x40]
lea eax, [r12 + rbp]
mov rbp, qword [r15 + 0x48]
mov dword [r15 + 0x40], eax
mov r15, qword [rcx]
cdqe
lea r8, [rax + rax*4]
shl r8, 2
test rbp, rbp
jne 0x14016cc35
mov rdx, r8
mov rcx, r15
call fcn.1401a2ff0
jmp 0x14016cc85
cmp rbp, qword [r15 + 0x1d0]
jae 0x14016cc7a
cmp rbp, qword [r15 + 0x1c0]
jb 0x14016cc50
cmp r8, 0x80
jmp 0x14016cc64
cmp rbp, qword [r15 + 0x1c8]
jb 0x14016cc7a
movzx eax, word [r15 + 0x186]
cmp r8, rax
ja 0x14016cc7a
mov r15, qword [rsp + 0xd0]
mov r14, rbp
mov qword [r15 + 0x48], rbp
jmp 0x14016cd78
mov rdx, rbp
mov rcx, r15
call fcn.140171580
mov r14, rax
test rax, rax
jne 0x14016cd63
test rbp, rbp
je 0x14016cd63
mov rdx, rbp
mov rcx, r15
call fcn.1401a2e60
mov r15, qword [rsp + 0xd0]
mov qword [r15 + 0x48], r14
mov dword [r15 + 0x40], edi
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
test r13, r13
je 0x14016cce3
test rcx, rcx
je 0x14016d053
cmp qword [rcx + 0x2e0], rdi
je 0x14016d00a
mov rdx, r13
call fcn.140182360
mov ebp, dword [rsp + 0xe8]
mov r12d, 0x400
mov rcx, qword [r15 + 0x50]
test dword [rcx + 0x28], 0x200000
je 0x14016cd0c
mov eax, 0x800
test word [rbx + 0x14], ax
jne 0x14016d0fc
test byte [rbx + 0x12], 4
jne 0x14016d0fc
mov edx, 0x200
nop dword [rax + rax]
cmp dword [r15], 0
je 0x14016cd33
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x14016d0fc
mov rax, qword [rbx + 0x30]
test qword [r15 + 0x58], rax
jne 0x14016d0fc
test edi, edi
je 0x14016d0d1
movzx eax, word [rbx + 0x12]
test r12w, ax
je 0x14016d0d1
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x14016d0d6
mov r15, qword [rsp + 0xd0]
mov qword [r15 + 0x48], r14
test r14, r14
je 0x14016ccb1
mov rdx, qword [rsp + 0x48]
lea rcx, [r12 + r12*4]
movsxd r12, dword [rsp + 0xd8]
movzx eax, word [rdx + 0x2c]
cmp r12d, eax
jge 0x14016cf93
mov r15d, dword [rsp + 0x38]
lea r14, [r14 + rcx*4]
mov ecx, dword [rsp + 0xe8]
lea r9, [r12*8]
mov rbx, qword [rsp + 0x50]
mov r8d, ecx
sub r8d, r12d
mov qword [rsp + 0x60], r9
add r14, 0x10
mov dword [rsp + 0x30], r8d
mov eax, r12d
mov qword [rsp + 0x58], r13
sub eax, ecx
mov r10, r13
mov dword [rsp + 0x40], eax
mov ebp, ecx
nop word [rax + rax]
mov rax, qword [rdx + 0x38]
mov rcx, qword [r9 + rax]
cmp qword [rcx], rbx
jne 0x14016cf5e
cmp dword [rsp + 0x3c], 1
jne 0x14016ce4a
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x14016ce25
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov edx, 0x83
mov rcx, rsi
call fcn.14017e5d0
mov edx, eax
jmp 0x14016ceb8
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x83
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x14016ceae
test r13, r13
je 0x14016ce5d
mov r8d, dword [r10]
add r10, 4
mov qword [rsp + 0x58], r10
jmp 0x14016ce60
mov r8d, edi
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x14016ce8a
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov edx, 0x5b
mov rcx, rsi
call fcn.14017e5d0
mov edx, eax
jmp 0x14016ceb8
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x5b
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], r15d
mov dword [r14 - 0xc], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14016cee3
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.14017e5d0
jmp 0x14016cf0c
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], getprotobynumber
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x40]
add ecx, ebp
cmp ecx, r12d
jne 0x14016cf42
cmp dword [rsp + 0x34], edi
mov dword [r14 - 0x10], r15d
sete al
add al, 4
mov byte [r14], al
test r12d, r12d
jle 0x14016cf3a
mov eax, dword [rsp + 0x30]
mov dword [r14 - 8], eax
mov dword [r14 - 4], ecx
jmp 0x14016cf46
mov ecx, edi
mov dword [r14 - 4], ecx
jmp 0x14016cf46
mov byte [r14], 0xb1
mov rdx, qword [rsp + 0x48]
add r14, 0x14
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x40]
inc ebp
movzx eax, word [rdx + 0x2c]
dec r8d
add r9, 8
mov dword [rsp + 0x30], r8d
add ecx, ebp
mov qword [rsp + 0x60], r9
cmp ecx, eax
jl 0x14016cde0
mov rbx, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xd0]
test r12d, r12d
jle 0x14016ccb5
test dword [rdx + 0x28], 0x100400
jne 0x14016ccb5
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r15 + 8]
cmp dword [rsi + 0x94], ecx
jg 0x14016cfd8
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x79]
call fcn.14017e5d0
jmp 0x14016ccb5
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x79
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x14016ccb5
cmp r13, qword [rcx + 0x1d0]
jae 0x14016d053
cmp r13, qword [rcx + 0x1c0]
jb 0x14016d033
mov rax, qword [rcx + 0x1b8]
mov qword [r13], rax
mov qword [rcx + 0x1b8], r13
jmp 0x14016cce3
cmp r13, qword [rcx + 0x1c8]
jb 0x14016d053
mov rax, qword [rcx + 0x1a8]
mov qword [r13], rax
mov qword [rcx + 0x1a8], r13
jmp 0x14016cce3
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x14016d0ab
mov rcx, qword [0x1403e0e40]
test rcx, rcx
je 0x14016d06d
call qword [0x1403cb550]
mov rcx, r13
call qword [0x1403cb508]
dec qword [0x1403e0dd8]
movsxd rcx, eax
sub qword [0x1403e0d90], rcx
mov rcx, r13
call qword [0x1403cb4f8]
mov rcx, qword [0x1403e0e40]
test rcx, rcx
je 0x14016cce3
call qword [0x1403cb560]
jmp 0x14016cce3
mov rcx, r13
call qword [0x1403cb4f8]
jmp 0x14016cce3
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [r10 + 0x18]
call fcn.1401a8990
mov ebp, eax
jmp 0x14016ccf0
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x14016d0fc
mov rcx, qword [rbx + 8]
imul rbx, rax, 0x38
add rbx, qword [rcx + 0x20]
add byte [rbx + 0x16], 0xff
jne 0x14016d0fc
inc edi
test byte [rbx + 0x12], 4
je 0x14016cd20
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret