Function at 0x1400033a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14004e008]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp - 0x21]
call fcn.140004c10
nop
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], shutdown
mov byte [rbp + 0x17], r15b
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 7], r15
mov qword [rbp + shutdown], 0xf
mov byte [rbp - 9], r15b
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.140002b30
test eax, eax
jne 0x140003556
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.140002b30
test eax, eax
jne 0x140003556
mov rbx, qword [rbp - 0x21]
mov rcx, rdi
call fcn.140002960
test eax, eax
jns 0x140003458
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003551
cmp eax, 0xff9c
jle 0x140003471
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003551
jne 0x140003551
mov r8d, 0xff9c
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.140004f80
test al, al
je 0x140003551
mov rcx, rdi
call fcn.140002960
test eax, eax
jns 0x1400034af
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003551
cmp eax, 4
jle 0x1400034c6
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003551
jne 0x140003551
mov rsi, qword [rdi + 8]
mov r14, qword [rsi + 0x10]
mov ebx, r15d
nop word [rax + rax]
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x29]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14000354c
add ebx, eax
cmp ebx, 4
jb 0x1400034e0
cmp r14, 0xffffffffffffffff
je 0x14000354c
cmp ebx, 4
jne 0x14000354c
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae r8, qword [rbp - 9]
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x21]
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.ImgCoreDll.dll_ICP_Preload]
jmp 0x140003556
call fcn.140004e30
mov eax, 1
mov dword [rbp - 0x19], reloc.WS2_32.dll_inet_addr
mov dword [rbp - 0x15], eax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x140003572
xor bl, bl
jmp 0x14000358b
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
jne 0x140003590
call fcn.140004e30
movzx ebx, bl
xor ebx, 1
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400035d1
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000366c
call fcn.140006530
mov qword [rbp + 7], r15
mov qword [rbp + shutdown], 0xf
mov byte [rbp - 9], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x140003618
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003666
call fcn.140006530
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], shutdown
mov byte [rbp + 0x17], 0
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14000363b
mov edx, 0xff9c
call fcn.140006530
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400064d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14002a32c
nop
call fcn.14002a32c
int3