Function at 0x140002070
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14004e008]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15, rcx
cmp byte [rcx + 0x38], 0
jne 0x1400027a7
xor r12d, r12d
lea r13, [0x140000000]
nop
mov rax, qword [r15 + 0x48]
mov rdi, qword [rax + 8]
mov rsi, qword [rdi + 0x10]
mov ebx, r12d
nop
mov r8d, 8
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140002795
add ebx, eax
cmp ebx, 8
jb 0x1400020d0
cmp rsi, 0xffffffffffffffff
je 0x140002795
cmp ebx, 8
jne 0x140002795
mov rax, qword [rsp + 0x28]
lea ecx, [rax - 2]
cmp ecx, 0x19
ja case.0x140002136.8
movsxd rcx, ecx
mov edx, dword [r13 + rcx*4 + 0x27ec]
add rdx, r13
jmp rdx
mov rbx, qword [r15 + 0x48]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], shutdown
mov byte [rbp - 0x60], 0
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140002b30
test eax, eax
jne 0x14000218d
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.ImgCoreDll.dll_IC_LoadConfigFile]
test eax, eax
jne 0x14000218d
mov edx, 4
mov ecx, edx
lea r8d, [rax + 2]
call qword [sym.imp.ImgCoreDll.dll_IC_SetCacheSizes]
mov dword [rsp + 0x40], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x44], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400021be
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400021c4
call fcn.140004e30
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400021ff
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400027e6
call fcn.140006530
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], shutdown
mov byte [rbp - 0x60], 0
jmp 0x140002789
mov rsi, qword [r15 + 0x48]
mov dword [rsp + 0x30], 1
mov rcx, rsi
call fcn.140002960
test eax, eax
jns 0x14000223b
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400022ac
cmp eax, 4
jle 0x14000224f
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x1400022ac
jne 0x1400022ac
mov rdi, qword [rsi + 8]
mov r14, qword [rdi + 0x10]
mov ebx, r12d
nop dword [rax]
mov r8d, 4
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rsp + 0x30]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400022a7
add ebx, eax
cmp ebx, 4
jb 0x140002260
cmp r14, 0xffffffffffffffff
je 0x1400022a7
cmp ebx, 4
jne 0x1400022a7
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ImgCoreDll.dll_IC_CustomDebugFunc]
jmp 0x1400022b1
call fcn.140004e30
mov eax, 1
mov dword [rsp + 0x48], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x4c], eax
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400022e6
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
mov rsi, qword [r15 + 0x48]
mov rcx, rsi
call fcn.140002960
test eax, eax
jns 0x14000230f
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x14000237b
cmp eax, 8
jle 0x140002323
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x14000237b
jne 0x14000237b
mov rdi, qword [rsi + 8]
mov r14, qword [rdi + 0x10]
mov ebx, r12d
mov r8d, 8
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x70]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140002376
add ebx, eax
cmp ebx, 8
jb 0x140002330
cmp r14, 0xffffffffffffffff
je 0x140002376
cmp ebx, 8
jne 0x140002376
lea rcx, [rbp - 0x70]
call qword [sym.imp.ImgCoreDll.dll_IC_SetPreferences]
jmp 0x140002380
call fcn.140004e30
mov eax, 1
mov dword [rsp + 0x50], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x54], eax
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400023b5
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.140002d60
jmp 0x140002789
mov rbx, qword [r15 + 0x48]
mov dword [rsp + 0x58], reloc.WS2_32.dll_inet_addr
mov ecx, dword [rbx + 0x18]
call qword [sym.imp.ImgCoreDll.dll_ICP_ClearFileDestinations]
mov dword [rsp + 0x5c], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14000240f
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.140002f20
jmp 0x140002789
lea rdx, [rsp + 0x28]
mov rcx, qword [r15 + 0x48]
call fcn.140003130
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.1400033a0
jmp 0x140002789
mov rbx, qword [r15 + 0x48]
lea rdx, [rbx + 0x80]
mov rcx, rbx
call fcn.140002c90
mov dword [rsp + 0x60], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x64], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140002490
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
lea rdx, [rsp + 0x28]
mov rcx, qword [r15 + 0x48]
call fcn.140003db0
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.140004460
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.140003680
jmp 0x140002789
mov rsi, qword [r15 + 0x48]
mov qword [rsp + 0x30], r12
mov rcx, rsi
call fcn.140002960
test eax, eax
jns 0x1400024ed
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x14000255d
cmp eax, 8
jle 0x140002501
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x14000255d
jne 0x14000255d
mov rdi, qword [rsi + 8]
mov r14, qword [rdi + 0x10]
mov ebx, r12d
nop
mov r8d, 8
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rsp + 0x30]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140002558
add ebx, eax
cmp ebx, 8
jb 0x140002510
cmp r14, 0xffffffffffffffff
je 0x140002558
cmp ebx, 8
jne 0x140002558
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ImgCoreDll.dll_IC_MaskFree]
jmp 0x140002562
call fcn.140004e30
mov eax, 1
mov dword [rsp + 0x68], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x6c], eax
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140002597
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
mov rcx, qword [r15 + 0x48]
call fcn.140003960
jmp 0x140002789
mov rbx, qword [r15 + 0x48]
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rbx + 0x1c]
call qword [sym.imp.ImgCoreDll.dll_ICP_SetThreadPriority]
mov dword [rsp + 0x70], reloc.WS2_32.dll_inet_addr
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rbx + 0x18]
call qword [sym.imp.ImgCoreDll.dll_ICP_SetThreadPriority]
mov dword [rsp + 0x74], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140002602
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002789
call fcn.140004e30
jmp 0x140002789
mov qword [rsp + 0x78], reloc.WS2_32.dll_inet_addr
mov rax, qword [r15 + 0x48]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14000263e
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002643
call fcn.140004e30
mov byte [r15 + 0x38], 1
jmp 0x140002789
mov rdi, qword [r15 + 0x48]
mov qword [rbp - 0x80], reloc.WS2_32.dll_inet_addr
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x140002671
call fcn.140004e30
jmp 0x140002789
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
jne 0x140002697
call fcn.140004e30
test bl, bl
je 0x140002789
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ImgCoreDll.dll_IC_UserAnalyticsExtract]
mov dword [rbp - 0x78], 0x19
mov eax, dword [rsp + 0x20]
mov dword [rbp - 0x74], eax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400026e3
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400026e8
call fcn.140004e30
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x1400026ff
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140002a70
mov rdi, qword [rdi + 8]
mov rsi, qword [rdi + 0x10]
mov ebx, r12d
nop word [rax + rax]
mov r8d, 8
sub r8d, ebx
movsxd rax, ebx
lea rdx, [rbp - 0x68]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14000274a
add ebx, eax
cmp ebx, 8
jb 0x140002710
cmp rsi, 0xffffffffffffffff
je 0x14000274a
cmp ebx, 8
je 0x14000274f
call fcn.140004e30
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ImgCoreDll.dll_ICS_Release]
jmp 0x140002789
lea rdx, [rsp + 0x28]
mov rcx, qword [r15 + 0x48]
call fcn.140004880
jmp 0x140002789
mov r8d, eax
lea rdx, str.Unexpected_IPC_message:__d
lea rcx, [rbp - 0x40]
call fcn.140001c40
lea rcx, [rbp - 0x40]
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
cmp byte [r15 + 0x38], 0
jne 0x1400027a7
jmp 0x1400020c0
call fcn.140004e30
lea rcx, str.Connection_failed.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
lea rcx, str.Exiting
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov al, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400064d0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002a32c
int3