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

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
mov rax, qword [rax]
or rax, rcx
not rax
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x54], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
jmp 0x14023b1fe
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x38], 0
jle 0x14023b3a8
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x12]
and eax, 2
test eax, eax
je 0x14023b21e
jmp 0x14023b3a8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
jne 0x14023b23d
jmp 0x14023b1e6
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
je 0x14023b255
jmp 0x14023b1e6
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x2c]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x14023b273
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x14023b2db
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14023b29e
jmp 0x14023b269
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jne 0x14023b2ac
jmp 0x14023b2db
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x18], 0
jl 0x14023b2d9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x18]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x20]
cmp rax, qword [rsp + 0x20]
jne 0x14023b2d9
jmp 0x14023b2db
jmp 0x14023b269
cmp dword [rsp + 0x3c], 0
jge 0x14023b3a3
mov rax, qword [rsp + 0x20]
movsx eax, word [rax + 0x10]
test eax, eax
jg 0x14023b31d
mov rax, qword [rsp + 0x20]
movsx eax, word [rax + 0x10]
mov rcx, qword [rsp + 0x88]
movsx ecx, word [rcx + 0x16]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
jmp 0x14023b3a3
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x16]
dec ax
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
and eax, 0x82
test eax, eax
je 0x14023b3a3
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
call fcn.1401e5200
test eax, eax
je 0x14023b386
cmp dword [rsp + 0x44], 0xffffffff
jl 0x14023b386
cmp dword [rsp + 0x44], 1
jg 0x14023b386
mov dword [rsp + 0x44], 0xa
jmp 0x14023b38e
mov dword [rsp + 0x44], SafeArrayGetElement
movsx eax, word [rsp + 0x54]
cmp eax, dword [rsp + 0x44]
jge 0x14023b3a3
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x54], ax
jmp 0x14023b1e6
mov rax, qword [rsp + 0x88]
movsx eax, word [rax + 0x16]
movsx ecx, word [rsp + 0x90]
movsx edx, word [rsp + 0x54]
sub ecx, edx
cmp eax, ecx
jle 0x14023b3e2
movsx eax, word [rsp + 0x90]
movsx ecx, word [rsp + 0x54]
sub eax, ecx
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1402629dc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b1670
add rsp, 0x70
pop rdi
ret