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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x14004e008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rcx
xor esi, esi
mov eax, dword [rdx + 4]
mov dword [rbp - 0x21], eax
lea rcx, [rbp - 0x41]
call fcn.140004c10
nop
mov rbx, qword [rbp - 0x41]
mov rcx, r15
call fcn.140002960
test eax, eax
jns 0x140003e18
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov edi, 1
mov ebx, edi
jmp 0x140003ffc
cmp eax, 0xff9c
jle 0x140003e38
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov edi, 1
mov ebx, edi
jmp 0x140003ffc
je 0x140003e46
mov edi, 1
mov ebx, edi
jmp 0x140003ffc
mov r8d, 0xff9c
mov rdx, rbx
mov rcx, qword [r15 + 8]
call fcn.140004f80
test al, al
jne 0x140003e68
mov edi, 1
mov ebx, edi
jmp 0x140003ffc
mov dword [rbp - 0x49], esi
mov rcx, r15
call fcn.140002960
mov edi, 1
test eax, eax
jns 0x140003e8b
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003ef2
cmp eax, 4
jle 0x140003e9f
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140003ef2
jne 0x140003ef2
mov r14, qword [r15 + 8]
mov r12, qword [r14 + 0x10]
mov ebx, esi
nop dword [rax + rax]
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x49]
add rdx, rax
xor r9d, r9d
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, edi
jbe 0x140003eed
add ebx, eax
cmp ebx, 4
jb 0x140003eb0
cmp r12, 0xffffffffffffffff
je 0x140003eed
cmp ebx, 4
jne 0x140003eed
mov ebx, esi
jmp 0x140003ef4
call fcn.140004e30
mov ebx, edi
mov eax, dword [rbp - 0x49]
test eax, eax
je 0x140003ffc
mov ecx, eax
call fcn.14002a3ac
mov r14, rax
test rax, rax
jne 0x140003f15
mov ebx, edi
jmp 0x140003ffc
test ebx, ebx
jne 0x140003ff4
mov r8d, dword [rbp - 0x49]
mov rdx, r14
mov rcx, r15
call fcn.1400029f0
mov ebx, eax
test eax, eax
jne 0x140003ff4
mov rdx, qword [rbp - 0x41]
add rdx, 0xef60
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + shutdown], 0xf
mov byte [rbp - 9], al
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140003f60
lea rcx, [rbp - 9]
call fcn.140001910
nop
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.ImgCoreDll.dll_IC_ColorProfileAlreadyCached]
test eax, eax
jne 0x140003fa9
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rcx, qword [rbp - 9]
mov r8d, dword [rbp - 0x49]
mov rdx, r14
call qword [sym.imp.ImgCoreDll.dll_IC_CacheColorProfile]
mov ebx, eax
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x140003fe4
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000445a
call fcn.140006530
mov qword [rbp + 7], rsi
mov qword [rbp + shutdown], 0xf
mov byte [rbp - 9], 0
mov rcx, r14
call fcn.14002a3a4
mov r13d, esi
mov rax, qword [rbp - 0x41]
cmp dword [rax + 0x210], esi
jle 0x14000426c
mov qword [rbp - 0x39], rsi
nop dword [rax]
nop word [rax + rax]
mov dword [rbp - 0x31], 0x64
mov dword [rbp - 0x49], 0x64
mov dword [rbp - 0x2d], esi
test ebx, ebx
jne 0x1400041d5
mov rcx, r15
call fcn.140002960
test eax, eax
jns 0x140004057
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
cmp eax, 4
jle 0x14000406e
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
jne 0x1400041d3
mov r14, qword [r15 + 8]
mov r12, qword [r14 + 0x10]
mov ebx, esi
nop
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x31]
add rdx, rax
xor r9d, r9d
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400041ce
add ebx, eax
cmp ebx, 4
jb 0x140004080
cmp r12, 0xffffffffffffffff
je 0x1400041ce
cmp ebx, 4
jne 0x1400041ce
mov rcx, r15
call fcn.140002960
test eax, eax
jns 0x1400040e4
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
cmp eax, 4
jle 0x1400040fb
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
jne 0x1400041d3
mov r14, qword [r15 + 8]
mov r12, qword [r14 + 0x10]
mov ebx, esi
nop dword [rax + rax]
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x49]
add rdx, rax
xor r9d, r9d
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400041ce
add ebx, eax
cmp ebx, 4
jb 0x140004110
cmp r12, 0xffffffffffffffff
je 0x1400041ce
cmp ebx, 4
jne 0x1400041ce
mov rcx, r15
call fcn.140002960
test eax, eax
jns 0x14000416d
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
cmp eax, 4
jle 0x140004181
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400041d3
jne 0x1400041d3
mov r14, qword [r15 + 8]
mov r12, qword [r14 + 0x10]
mov ebx, esi
nop dword [rax]
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x2d]
add rdx, rax
xor r9d, r9d
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400041ce
add ebx, eax
cmp ebx, 4
jb 0x140004190
cmp r12, 0xffffffffffffffff
je 0x1400041ce
cmp ebx, 4
jne 0x1400041ce
mov ebx, esi
jmp 0x1400041d5
call fcn.140004e30
mov ebx, edi
mov edx, dword [rbp - 0x49]
mov ecx, dword [rbp - 0x31]
call qword [sym.imp.ImgCoreDll.dll_ICB_CreateARGB8]
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x39]
mov qword [rdx + rcx + 0x10], rax
mov rcx, rax
call qword [sym.imp.ImgCoreDll.dll_ICB_GetData]
mov r14, rax
test ebx, ebx
jne 0x140004253
mov ebx, dword [rbp - 0x2d]
imul ebx, dword [rbp - 0x49]
mov rcx, r15
call fcn.140002960
test eax, eax
jns 0x140004222
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov ebx, edi
jmp 0x140004253
cmp eax, ebx
jle 0x140004237
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov ebx, edi
jmp 0x140004253
je 0x14000423d
mov ebx, edi
jmp 0x140004253
mov r8d, eax
mov rdx, r14
mov rcx, qword [r15 + 8]
call fcn.140004f80
mov ebx, esi
test al, al
sete bl
inc r13d
add qword [rbp - 0x39], 0x20
mov rax, qword [rbp - 0x41]
cmp r13d, dword [rax + 0x210]
jl 0x140004020
mov dword [rbp - 0x39], reloc.WS2_32.dll_inet_addr
mov dword [rbp - 0x35], ebx
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140004418
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp - 0x39]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
jne 0x1400042ae
call fcn.140004e30
test bl, bl
je 0x14000441e
mov qword [rbp - 0x29], rsi
mov rcx, qword [r15 + 0x80]
mov rax, qword [r15 + 0x88]
cmp rcx, rax
je 0x140004301
sub eax, ecx
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, eax
mov edx, eax
call qword [sym.imp.ImgCoreDll.dll_IC_OpenLCCBuffer]
cmp eax, 0x2c
jne 0x140004301
mov ecx, dword [r15 + 0x18]
call qword [sym.imp.ImgCoreDll.dll_ICP_GetSource]
lea r8, [0x140044925]
mov rdx, qword [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.ImgCoreDll.dll_IC_UpgradeLCC]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rbp - 0x29]
mov qword [rcx + 0x25c], rax
mov byte [r15 + 0x78], 0
xor r8d, r8d
lea rdx, [0x140003c50]
mov ecx, dword [r15 + 0x18]
call qword [sym.imp.ImgCoreDll.dll_ICP_SetStatusCallback]
mov r8d, dword [rbp - 0x21]
mov rdx, qword [rbp - 0x41]
mov ecx, dword [r15 + 0x18]
call qword [sym.imp.ImgCoreDll.dll_ICP_ProcessToFiles]
mov r12d, eax
mov r14d, esi
mov rcx, qword [rbp - 0x41]
cmp dword [rcx + 0x210], esi
jle 0x14000436f
mov rbx, rsi
mov rcx, qword [rbx + rcx + 0x10]
call qword [sym.imp.ImgCoreDll.dll_ICB_Release]
inc r14d
lea rbx, [rbx + 0x20]
mov rcx, qword [rbp - 0x41]
cmp r14d, dword [rcx + 0x210]
jl 0x140004350
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14000437e
call qword [sym.imp.ImgCoreDll.dll_IC_CloseLCC]
mov dword [rbp - 0x19], 8
mov dword [rbp - 0x15], r12d
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140004418
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 0x1400043bd
call fcn.140004e30
test bl, bl
je 0x14000441e
mov rbx, qword [r15 + 8]
mov r14, qword [rbx + 0x10]
nop word [rax + rax]
mov r8d, 8
sub r8d, esi
movsxd rax, esi
lea rdx, [rbp - 0x39]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140004418
add esi, eax
cmp esi, 8
jb 0x1400043d0
cmp r14, 0xffffffffffffffff
je 0x140004418
cmp esi, 8
jne 0x140004418
mov eax, dword [rbp - 0x35]
cmp dword [rbp - 0x39], 0xb
cmovne eax, edi
mov edi, eax
jmp 0x14000441e
call fcn.140004e30
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140004431
mov edx, 0xff9c
call fcn.140006530
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400064d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002a32c
nop