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

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0xc8
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x110]
mov rdi, rcx
mov qword [rsp + 0x70], rax
xor ebx, ebx
xor eax, eax
mov qword [r11 + 0x10], rbp
mov qword [r11 - 0x18], rsi
mov esi, r8d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], eax
mov qword [r11 - 0x20], r12
mov r12, qword [rsp + 0x100]
mov qword [rsp + 0x68], rdx
movzx edx, word [rcx + 0x56]
mov eax, edx
mov qword [r11 - 0x28], r13
and eax, 1
mov qword [r11 - 0x30], r14
shl eax, 0x10
and edx, 0xfe00
add eax, edx
mov qword [r11 - 0x38], r15
mov dword [rsp + 0x20], eax
mov r15, r9
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x58], r12
call fcn.1400d7dd0
mov rax, qword [rdi + 0x30]
mov r13d, dword [rdi + 0x58]
mov dword [rsp + 0x24], r13d
mov rbp, qword [rax]
mov eax, dword [rbp + 0x60]
add rbp, 0x60
mov qword [rsp + 0x30], rbp
cmp eax, r13d
jae 0x14013fd6b
mov eax, dword [rdi + 0x5c]
lea r14, [rbp + 8]
mov dword [rsp + 0x3c], eax
mov esi, 4
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [r14]
mov rax, qword [0x140199c20]
test rax, rax
je 0x14013f886
mov ecx, 0x28a
call rax
test eax, eax
je 0x14013f8c1
cdqe
lea r9, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x88], rax
mov ecx, 0xc0000006
mov qword [rsp + 0x78], 0
mov r8d, 3
mov qword [rsp + 0x80], 0
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp r13d, ebp
jbe 0x14013f986
nop word [rax + rax]
cmp byte [rdi + 0x3f], 0
je 0x14013f8da
xor ebx, ebx
jmp 0x14013f908
mov rcx, qword [rdi + 8]
mov r9d, 0xa
mov r8d, 1
mov edx, esi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov ebx, eax
test eax, eax
jne 0x14013f908
lea ecx, [rsi + 8]
mov eax, 1
shl eax, cl
or dword [rdi + 0x8c], eax
test r15, r15
je 0x14013f91c
cmp ebx, 5
jne 0x14013f91c
mov rcx, r12
call r15
test eax, eax
jne 0x14013f8d0
test ebx, ebx
jne 0x14013f973
mov rbp, qword [rsp + 0x30]
lea eax, [rsi - 3]
cmp eax, 1
mov ecx, 0xffffffff
cdqe
cmove ecx, r13d
mov dword [rbp + rax*4 + 4], ecx
mov rcx, rdi
call fcn.1400d7dd0
cmp byte [rdi + 0x3f], bl
jne 0x14013f98b
mov rcx, qword [rdi + 8]
mov r9d, 9
mov r8d, 1
mov edx, esi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
lea ecx, [rsi + 8]
mov eax, 1
shl eax, cl
not eax
and dword [rdi + 0x8c], eax
jmp 0x14013f98b
cmp ebx, 5
jne 0x14013fe1e
mov r13d, ebp
mov dword [rsp + 0x24], ebp
xor r15d, r15d
mov rbp, qword [rsp + 0x30]
inc esi
add r14, 4
lea eax, [rsi - 3]
cmp eax, 5
jl 0x14013f870
mov eax, dword [rbp]
cmp eax, r13d
jae 0x14013fd56
mov edx, dword [rbp]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.140141c40
cmp qword [rsp + 0x48], 0
mov ebx, eax
je 0x14013fd56
cmp byte [rdi + 0x3f], 0
je 0x14013f9d1
xor ebx, ebx
jmp 0x14013f9fc
mov rcx, qword [rdi + 8]
mov edx, 3
mov r9d, 0xa
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov ebx, eax
test eax, eax
jne 0x14013f9fc
or dword [rdi + 0x8c], 0x800
test r15, r15
je 0x14013fa10
cmp ebx, 5
jne 0x14013fa10
mov rcx, r12
call r15
test eax, eax
jne 0x14013f9c7
test ebx, ebx
jne 0x14013fd56
mov eax, dword [rbp]
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov dword [rbp + 0x20], r13d
call fcn.1400d7dd0
mov r12d, dword [rsp + 0x108]
mov edx, r12d
mov rcx, qword [rdi + 0x10]
sar edx, 2
and edx, 3
je 0x14013fa52
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
jne 0x14013fad3
mov r14d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x3c]
mov esi, r14d
mov rcx, qword [rdi + 8]
imul rax, r14
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
test rax, rax
je 0x14013fa7e
xor r8d, r8d
mov edx, 0x27
call qword [rax + 0x50]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x14013fad3
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
cmp rcx, rdx
jge 0x14013fb71
mov eax, dword [rdi + 0x58]
imul rax, rsi
add rax, 0x10000
add rax, rcx
cmp rax, rdx
jge 0x14013fb58
mov ecx, 0x106c2
call fcn.1400e8560
mov ebx, eax
test eax, eax
je 0x14013fb71
mov esi, dword [rsp + 0x20]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
test rax, rax
je 0x14013faee
xor r8d, r8d
mov edx, 0x25
call qword [rax + 0x50]
test ebx, ebx
jne 0x14013fd26
mov rcx, rdi
call fcn.1400d7dd0
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x10]
cmp r13d, eax
jne 0x14013fd1a
mov edx, dword [rdi + 0x5c]
mov rcx, qword [rdi + 8]
mov eax, esi
imul rdx, rax
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
jne 0x14013fd26
mov rcx, qword [rdi + 8]
sar r12d, 2
and r12d, 3
je 0x14013fd18
mov rax, qword [rcx]
mov edx, r12d
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
jne 0x14013fd26
jmp 0x14013fd1a
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
test rax, rax
je 0x14013fb71
lea r8, [rsp + 0x50]
mov edx, 5
call qword [rax + 0x50]
mov r13, r14
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov r14d, 0xffffffff
mov eax, dword [rcx + 4]
mov ebp, dword [rcx]
sub eax, 1
movsxd rsi, eax
js 0x14013fc07
lea rdx, [rsi + 1]
shl rdx, 5
add rdx, rcx
mov eax, dword [rdx - 0x18]
mov r9d, dword [rdx]
cmp eax, r9d
jge 0x14013fbf0
mov r10, qword [rdx - 8]
mov r11, qword [rdx - 0x10]
nop word [rax + rax]
movsxd rcx, eax
movzx r8d, word [r11 + rcx*2]
mov ecx, dword [r10 + r8*4]
cmp ecx, ebp
ja 0x14013fbdc
inc eax
mov dword [rdx - 0x18], eax
cmp eax, r9d
jl 0x14013fbc0
jmp 0x14013fbf0
cmp ecx, r14d
jae 0x14013fbf0
mov r12d, r8d
mov r14d, ecx
add r12d, dword [rdx + 4]
mov dword [rsp + 0x38], r12d
sub rdx, 0x20
sub rsi, 1
jns 0x14013fba3
mov r12d, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], r14d
cmp r14d, 0xffffffff
je 0x14013fd09
mov rax, qword [0x140199c20]
test rax, rax
je 0x14013fc27
mov ecx, 0x28a
call rax
test eax, eax
je 0x14013fc62
cdqe
lea r9, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x88], rax
mov ecx, 0xc0000006
mov qword [rsp + 0x78], 0
mov r8d, 3
mov qword [rsp + 0x80], 0
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + 0x198]
test eax, eax
jne 0x14013fcf8
mov edx, dword [rsp + 0x38]
cmp edx, dword [rsp + 0x28]
jbe 0x14013fb80
cmp edx, dword [rsp + 0x24]
ja 0x14013fb80
cmp r14d, dword [rsp + 0x3c]
ja 0x14013fb80
mov esi, dword [rsp + 0x20]
dec edx
mov rcx, qword [rdi + 0x10]
mov r8d, esi
mov rbp, qword [rsp + 0x70]
lea r9d, [rsi + 0x18]
mov r10, qword [rcx]
imul r9, rdx
mov rdx, rbp
add r9, 0x38
call qword [r10 + reloc.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jne 0x14013fce9
mov rcx, qword [rdi + 8]
lea r9d, [r14 - 1]
imul r9, r13
mov r10, qword [rcx]
mov r8d, esi
mov rdx, rbp
call qword [r10 + 0x18]
mov ebx, eax
test eax, eax
je 0x14013fb80
mov r13d, dword [rsp + 0x24]
mov rbp, qword [rsp + 0x30]
jmp 0x14013fad7
cmp byte [rcx + 0x67], 0
mov ebx, 9
mov eax, 7
cmovne ebx, eax
mov r13d, dword [rsp + 0x24]
mov rbp, qword [rsp + 0x30]
jmp 0x14013fad3
xor ebx, ebx
mov rcx, rdi
mov dword [rbp], r13d
call fcn.1400d7dd0
cmp byte [rdi + 0x3f], 0
jne 0x14013fd51
mov rcx, qword [rdi + 8]
mov edx, 3
mov r9d, 9
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
and dword [rdi + 0x8c], 0xfffff7ff
mov r12, qword [rsp + 0x58]
cmp ebx, 5
jne 0x14013fd5f
xor ebx, ebx
jmp 0x14013fd67
test ebx, ebx
jne 0x14013fe1e
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x14013fe1e
mov rcx, rdi
call fcn.1400d7dd0
mov eax, dword [rbp]
cmp eax, dword [rdi + 0x58]
jae 0x14013fd8d
mov ebx, 5
jmp 0x14013fe1e
cmp esi, 2
jl 0x14013fe1e
lea rdx, [rsp + 0x28]
mov ecx, 4
call fcn.140098970
cmp byte [rdi + 0x3f], 0
je 0x14013fdaf
xor ebx, ebx
jmp 0x14013fdd7
mov rcx, qword [rdi + 8]
mov edx, 4
mov r9d, 0xa
mov r8d, edx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov ebx, eax
test eax, eax
jne 0x14013fdd7
or dword [rdi + 0x8c], 0xf000
test r15, r15
je 0x14013fdeb
cmp ebx, 5
jne 0x14013fdeb
mov rcx, r12
call r15
test eax, eax
jne 0x14013fda5
test ebx, ebx
jne 0x14013fe1e
cmp esi, 3
jne 0x14013fe0e
mov edx, dword [rsp + 0x28]
mov rcx, rdi
call fcn.140142370
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, eax
mov edx, 4
mov rcx, rdi
mov r8d, edx
call fcn.140142a80
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xe8]
mov qword [rdi + 0x90], 0
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14013febe
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x14013feb5
mov rcx, qword [0x14019de10]
test rcx, rcx
je 0x14013fe7e
call qword [0x140199b10]
mov rcx, rdi
call qword [0x140199ac8]
dec qword [0x14019dd98]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x14019dd50], rdx
call qword [0x140199ab8]
mov rcx, qword [0x14019de10]
test rcx, rcx
je 0x14013febe
call qword [0x140199b20]
jmp 0x14013febe
mov rcx, rdi
call qword [0x140199ab8]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140157800
add rsp, 0xc8
pop rdi
pop rbx
ret