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

Disassembly:
mov r11, rsp
push rbx
push rbp
sub rsp, 0x68
mov eax, 0x46
lea r8, [r11 + 0x10]
mov dl, 2
mov word [r11 + 0x10], ax
mov rbx, rcx
mov bpl, 0x20
call fcn.1400844d0
test eax, eax
jne 0x14009f02d
test byte [rbx + 0x4e4], 0x10
movzx eax, word [rsp + 0x88]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
je 0x14009eb07
mov ecx, 0xffe0
add ax, cx
xor bpl, bpl
mov edi, 0x80
movzx r12d, ax
and di, word [rbx + 0x4e6]
mov r15d, 0x19
mov r14d, r15d
mov r13d, 9
cmove r14d, r13d
add r14d, r12d
cmp byte [rbx + 0x4d8], 0
je 0x14009eb43
cmp byte [rbx + 0x141], 0
je 0x14009eb43
add r14d, 0x66
mov eax, 0x8000
mov edx, r14d
or word [rbx + 0x4ea], ax
mov rcx, rbx
call fcn.14008bfa0
test eax, eax
jne 0x14009f00e
mov eax, dword [rbx + 0x1a0]
mov r9, rbx
mov qword [rsp + 0x80], rsi
mov r8b, 2
mov esi, dword [rbx + 0x1a4]
mov edx, r12d
add rsi, rax
add rsi, qword [rbx + 0x198]
mov rcx, rsi
call fcn.14008b330
movzx eax, byte [rbx + 0x316]
test di, di
mov ecx, 0x1a
cmove r15, r13
mov byte [r15 + rsi], al
mov eax, 0xa
cmove ecx, eax
movzx eax, byte [rbx + 0x317]
mov byte [rcx + rsi], al
mov eax, 0x1b
mov ecx, reloc.WS2_32.dll_inet_addr
cmove eax, ecx
xor r12d, r12d
mov edi, eax
lea r15, [rax + rsi]
cmp word [rbx + 0x4e4], r12w
jl 0x14009ed37
mov rcx, qword [rbx + 0x98]
mov rdx, r15
movzx r8d, bpl
add r8d, 0x21
call fcn.1400df7a0
test eax, eax
jne 0x14009f006
mov rax, qword [rbx]
mov r9, qword [rax]
movzx eax, word [r9]
movzx edx, ax
movzx r8d, al
shr dx, 8
cmp al, 3
jne 0x14009ec1b
cmp dl, 4
jae 0x14009ec27
mov ecx, r12d
cmp al, 0xfe
jne 0x14009ec2c
cmp dl, 0xfc
ja 0x14009ec2c
mov ecx, 1
mov eax, dword [rbx + 0x4e0]
bt eax, 0x1d
jb 0x14009ec9b
test ecx, ecx
je 0x14009ec9b
mov eax, dword [str.DOWNGRD]
mov dword [r15 + 0x18], eax
movzx eax, word [0x14052b0fc]
mov word [r15 + 0x1c], ax
movzx eax, byte [0x14052b0fe]
mov byte [r15 + 0x1e], al
movzx eax, byte [rbx + 0x316]
cmp al, 3
jne 0x14009ec7a
cmp byte [rbx + 0x317], al
jb 0x14009ec91
mov dl, 1
lea eax, [rdi + 0x1f]
mov byte [rax + rsi], dl
jmp 0x14009ecf9
cmp al, 0xfe
jne 0x14009ec91
cmp byte [rbx + 0x317], 0xfd
ja 0x14009ec91
mov dl, 1
lea eax, [rdi + 0x1f]
mov byte [rax + rsi], dl
jmp 0x14009ecf9
xor dl, dl
lea eax, [rdi + 0x1f]
mov byte [rax + rsi], dl
jmp 0x14009ecf9
cmp r8b, 3
jne 0x14009ecf9
cmp byte [r9 + 1], r8b
jne 0x14009ecf9
bt eax, 0x1b
jb 0x14009ecf9
movzx eax, byte [rbx + 0x316]
cmp al, r8b
jne 0x14009ecc4
cmp byte [rbx + 0x317], r8b
jb 0x14009ecd1
jmp 0x14009ecf9
cmp al, 0xfe
jne 0x14009ecd1
cmp byte [rbx + 0x317], 0xfd
jbe 0x14009ecf9
mov eax, dword [str.DOWNGRD]
mov dword [rdi + rsi + 0x18], eax
movzx eax, word [0x14052b0fc]
mov word [rdi + rsi + 0x1c], ax
movzx eax, byte [0x14052b0fe]
mov byte [rdi + rsi + 0x1e], al
lea eax, [rdi + 0x1f]
mov byte [rax + rsi], r12b
movups xmm0, xmmword [rdi + rsi]
mov rcx, qword [rbx + 0x18]
movzx r8d, bpl
movups xmmword [rcx + 0x3c], xmm0
movups xmm1, xmmword [rdi + rsi + 0x10]
add edi, 0x20
movups xmmword [rcx + 0x4c], xmm1
mov byte [rdi + rsi], bpl
inc edi
mov rcx, qword [rbx + 0x18]
mov edx, edi
add rcx, 0x5c
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x18]
mov byte [rax + 0x7c], bpl
jmp 0x14009ed6c
mov rax, qword [rbx + 0x18]
movzx r8d, bpl
movups xmm0, xmmword [rax + 0x3c]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rax + 0x4c]
lea eax, [rdi + 0x20]
add edi, 0x21
mov ecx, edi
movups xmmword [r15 + 0x10], xmm1
mov byte [rax + rsi], bpl
add rcx, rsi
mov rdx, qword [rbx + 0x18]
add rdx, 0x5c
call sub.VCRUNTIME140.dll_memcpy
movzx eax, bpl
lea r9, [rsp + 0x88]
add edi, eax
mov ecx, 0x4000
movzx eax, byte [rbx + 0x4ef]
mov r8b, 2
mov byte [rdi + rsi], al
inc edi
movzx eax, byte [rbx + 0x4f0]
mov byte [rdi + rsi], al
lea edx, [rdi + 1]
movzx eax, word [rbx + 0x4e6]
lea edi, [rdx + 1]
and ax, cx
neg ax
sbb cl, cl
and cl, 0xdd
mov byte [rdx + rsi], cl
mov rcx, rbx
mov edx, edi
add rdx, rsi
mov word [rsp + 0x88], r12w
call fcn.140084700
test eax, eax
jne 0x14009f006
movzx eax, word [rsp + 0x88]
lea ecx, [rax + rdi]
cmp byte [rbx + 0x4d8], r12b
je 0x14009eeef
cmp byte [rbx + 0x141], r12b
je 0x14009eeef
movzx eax, word [rbx + 0x4e6]
mov r15d, ecx
and eax, 0x80
mov ebp, ecx
or eax, 0x50
shr eax, 4
mov r13d, eax
sub r15d, eax
mov rax, qword [0x140706608]
sub rbp, r13
mov rcx, rbp
test rax, rax
je 0x14009ee29
call rax
jmp 0x14009ee2f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14009ee3f
lea eax, [rdi - 0x7d]
jmp 0x14009f006
lea rdx, [rsi + r13]
mov r8, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
test byte [rbx + 0x4e6], 0x80
je 0x14009ee96
mov r9d, 2
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.14008ab60
mov ebp, eax
test eax, eax
je 0x14009ee96
mov rdx, qword [0x1407065f8]
mov rcx, rdi
test rdx, rdx
je 0x14009ee89
call rdx
mov eax, ebp
jmp 0x14009f006
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebp
jmp 0x14009f006
mov dword [rsp + 0x48], r12d
mov r9, rdi
mov dword [rsp + 0x38], r12d
mov r8d, r14d
mov dword [rsp + 0x30], 1
mov rdx, rsi
mov dword [rsp + 0x28], socket
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.140096b20
mov r14d, eax
mov rcx, rdi
mov rax, qword [0x1407065f8]
test rax, rax
je 0x14009eedc
call rax
jmp 0x14009eee2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14d, r14d
jns 0x14009ef50
mov eax, r14d
jmp 0x14009f006
test byte [rbx + 0x4e6], 0x80
je 0x14009ef37
mov r9d, 2
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14008ab60
test eax, eax
jne 0x14009f006
test byte [rbx + 0x4e6], 0x80
je 0x14009ef37
mov ecx, dword [rbx + 0x4c0]
lea eax, [rcx + 1]
mov dword [rbx + 0x4c0], eax
cmp ecx, eax
jbe 0x14009ef37
inc word [rbx + 0x4be]
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14008b180
test eax, eax
jne 0x14009f006
cmp byte [rbx + 0xa99], r12b
je 0x14009efd0
mov rdi, qword [rbx + 0xa88]
test rdi, rdi
je 0x14009efd0
test r14d, r14d
jle 0x14009efd0
cmp byte [rbx + 0x4d8], 1
je 0x14009efd0
movzx eax, byte [rbx + 0x316]
mov ecx, 1
movzx r10d, byte [rbx + 0x317]
mov edx, eax
and edx, 0xf0
movsxd r11, r14d
shl edx, 4
and eax, 0xf
add edx, eax
lea r8d, [rcx + 0x15]
mov eax, r10d
shl edx, 4
and eax, 0xf0
and r10d, 0xf
add edx, eax
mov r9, rsi
mov rax, qword [rbx + 0xa90]
mov qword [rsp + 0x30], rax
shl edx, 4
add edx, r10d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r11
call rdi
add dword [rbx + 0x1a0], r14d
mov ecx, 0x7fff
and word [rbx + 0x4ea], cx
mov eax, 0x2000
mov byte [rbx + 0x4f3], 3
test word [rbx + 0x4e8], ax
jne 0x14009f003
mov rcx, rbx
call fcn.14008bc60
mov r12d, eax
mov eax, r12d
mov rsi, qword [rsp + 0x80]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop rbp
pop rbx
ret