Function at 0x14000cd30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
or r15, 0xffffffffffffffff
mov edi, r8d
mov r14, rdx
mov dword [rsp + 0x40], r15d
mov rax, r15
mov rbx, rcx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14000cd60
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x14000ce41
movzx r9d, word [rdx]
test r9w, r9w
je 0x14000ce41
lea rdi, [0x14027d0b0]
mov rax, rcx
mov r8, rdi
sub r8, rcx
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000cdb3
inc rax
test ecx, ecx
jne 0x14000cda0
test edx, edx
jne 0x14000cdc8
cmp r9w, word [0x14027d0a4]
jne 0x14000cdc8
xor eax, eax
jmp 0x14000cfa5
lea rcx, [rsp + 0x40]
movzx r8d, r9w
mov rdx, rbx
call fcn.14000c570
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000cdeb
mov eax, dword [rsp + 0x40]
jmp 0x14000cfa5
mov rcx, rax
mov qword [rsp + 0xa0], rbp
call fcn.14000a190
mov ebp, dword [rsp + 0x40]
test eax, eax
cmove ebp, r15d
sub rdi, rbx
nop dword [rax + rax]
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rdi + rbx - 1], cl
test cl, cl
jne 0x14000ce10
movzx ecx, word [r14]
mov word [0x14027d0a4], cx
mov rcx, rsi
call fcn.14000cba0
mov eax, ebp
mov rbp, qword [rsp + 0xa0]
jmp 0x14000cfa5
mov byte [rcx], 0
lea rcx, [rsp + 0x40]
call fcn.14000ca00
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000cde2
movzx ecx, word [r14]
movabs rax, 0x6d75696c6c697254
mov qword [rsp + 0x50], rax
test cx, cx
je 0x14000ce74
inc cx
jmp 0x14000ce9c
lea rcx, str.TrilliumDirector
xor edx, edx
call qword [sym.imp.WS2_32.dll_getservbyname]
test rax, rax
jne 0x14000ce8f
mov ecx, 0x115d
jmp 0x14000ce9c
movzx ecx, word [rax + 0x18]
call qword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x40]
or r9d, 0xffffffff
mov rdx, rsi
mov word [rsp + 0x20], ax
call fcn.14000a610
cmp eax, 0xffffffff
je 0x14000cf5e
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.14000a320
cmp eax, 0xffffffff
je 0x14000cf5e
mov rax, qword [rsp + 0x50]
cmp rax, qword [str.Director]
jne 0x14000cf5e
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rbx
sub rdx, rax
nop
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rdx + rax - 1], cl
test cl, cl
jne 0x14000cf10
movzx ecx, word [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdi, [0x14027d0b0]
dec ax
sub rdi, rbx
mov word [r14], ax
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rdi + rbx - 1], al
test al, al
jne 0x14000cf40
movzx eax, word [r14]
xor ebx, ebx
mov word [0x14027d0a4], ax
jmp 0x14000cf62
mov ebx, dword [rsp + 0x40]
test rsi, rsi
je 0x14000cfa3
mov edx, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_shutdown]
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x44]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
je 0x14000cf80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbx
ret