Function at 0x140001d80
Capabilities:
Connect socket
Get common file path
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x14004e008]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, r8
mov r15d, edx
mov rbp, rcx
mov qword [rsp + 0x28], rbx
xor r14b, r14b
mov edi, 0x202
mov ecx, edi
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r12d, r12d
cmp word [rsp + 0x40], di
je 0x140001ddb
call fcn.140004e30
jmp 0x140001fd6
mov ecx, 0xe8
call fcn.1400064f4
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rax, vtable.CImgCoreProcessProtocol.0
mov qword [rdi], rax
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x20], rcx
mov edx, 0x102
call fcn.140005d04
nop
mov qword [rdi + 0x80], r12
mov qword [rdi + 0x88], r12
mov qword [rdi + 0x90], r12
lea rcx, [rdi + 0x98]
mov qword [rsp + 0x20], rcx
mov edx, 0x102
call fcn.140005d04
nop
cmp qword [0x140051868], 0
jne 0x140002041
mov qword [0x140051868], rdi
mov qword [rbp + 0x48], rdi
lea rsi, [rbp + 8]
mov qword [rdi + 8], rsi
xor r8d, r8d
lea edx, [r8 + 1]
mov edi, 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x140001e80
call fcn.140004e30
jmp 0x140001fd6
mov qword [rsp + 0x38], r12
mov word [rsp + 0x30], di
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
setne dil
jne 0x140001ed6
call fcn.140004e30
test dil, dil
je 0x140001fd6
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140001eff
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140001f04
call fcn.140004e30
cmp qword [rbx + 0x10], 0
jne 0x140001f4a
xor edx, edx
mov r8d, 0xc8
lea rcx, [rsp + 0x40]
call fcn.140024570
lea rdx, [rsp + 0x40]
mov ecx, 0xc7
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r8, [rsp + 0x40]
lea rdx, str._s_ImgCoreProcessExternal.log
lea rcx, [rsp + 0x40]
call fcn.140001c40
lea rcx, [rsp + 0x40]
jmp 0x140001f57
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001f57
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.ImgCoreDll.dll_IC_InitializeLogging]
lea rcx, str.IC_External
call qword [sym.imp.ImgCoreDll.dll_ICP_Create]
mov dword [rbp + 0x3c], eax
xor edx, edx
mov ecx, eax
call qword [sym.imp.ImgCoreDll.dll_ICP_SetThreadPriority]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rbp + 0x3c]
mov dword [rcx + 0x18], eax
lea rcx, str.PRELOADASYNC_External
call qword [sym.imp.ImgCoreDll.dll_ICP_Create]
mov dword [rbp + 0x40], eax
xor edx, edx
mov ecx, eax
call qword [sym.imp.ImgCoreDll.dll_ICP_SetThreadPriority]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rbp + 0x40]
mov dword [rcx + 0x1c], eax
lea rcx, str.IC_ExternalProxy
call qword [sym.imp.ImgCoreDll.dll_ICP_Create]
mov dword [rbp + 0x44], eax
mov edx, 1
mov ecx, eax
call qword [sym.imp.ImgCoreDll.dll_ICP_SetThreadPriority]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rbp + 0x44]
mov dword [rcx + 0x20], eax
mov r14b, 1
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000200c
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002007
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000205f
mov rcx, r8
call fcn.140006530
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], shutdown
mov byte [rbx], 0
movzx eax, r14b
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400064d0
add rsp, 0x1f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rax, str.Only_one_instance_of_CImgCoreProcessProtocol_allowed
mov qword [rsp + 0x20], rax
lea rdx, [0x14004c468]
lea rcx, [rsp + 0x20]
call fcn.14002408c
nop
call fcn.14002a32c
int3