Function at 0x140086760
Capabilities:
Check mutex on windows
Get file version info
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x828]
sub rsp, 0x910
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rdi, rdx
mov ebx, ecx
lea rcx, [0x140086310]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0x202
lea rdx, [0x140183060]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140086802
mov eax, 0xfffffffb
jmp 0x140086ba9
mov rdx, rdi
mov ecx, ebx
call fcn.140085980
test eax, eax
jne 0x1400868cb
lea r8, str.AGENT_5211BC49_3208_44d3_B387_0EE2FD5CD88A
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete dil
test rbx, rbx
je 0x14008684f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
jne 0x140086ba7
lea r8, str.AGENT_5211BC49_3208_44d3_B387_0EE2FD5CD88A
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140183818], rax
lea rcx, [rbp - 0x70]
call fcn.14004fd10
nop
mov rax, qword [rbp - 0x20]
cmp dword [rax - 8], 1
jle 0x140086894
mov edx, dword [rax - 0x10]
lea rcx, [rbp - 0x20]
call fcn.140001fb0
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x68], rax
lea rax, [0x140051c50]
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop
lea rcx, [rbp - 0x70]
call fcn.140050020
jmp 0x140086ba7
cmp eax, 3
jne 0x140086977
lea rcx, [rsp + 0x58]
call fcn.140085530
nop
lea r8, [0x14012a8f8]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400162e0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140086916
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea rcx, [rbp + 0x250]
call fcn.14004fd10
nop
xor edx, edx
lea rcx, [rbp + 0x250]
call fcn.140050180
test eax, eax
je 0x140086944
xor edx, edx
lea rcx, [rbp + 0x250]
call fcn.140051d60
nop
lea rcx, [rbp + 0x250]
call fcn.140050020
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140086ba7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x140086ba7
cmp eax, 4
jne 0x140086ba7
xor r12d, r12d
mov word [rbp + 0x5f0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x5f2]
call fcn.1400dd9f0
mov r8d, 0x104
lea rdx, [rbp + 0x5f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140086ba7
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test eax, eax
je 0x140086a39
mov byte [rsp + 0x20], r12b
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov edx, ebx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001b1c0
nop
mov r13, qword [rsp + 0x30]
mov r9, r13
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140086a43
test r13, r13
je 0x140086a2a
mov rcx, r13
call fcn.1400d4d78
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov eax, 1
jmp 0x140086ba9
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x50]
lea rdx, [0x14012ed28]
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140086ba2
cmp dword [rsp + 0x24], 0x34
jne 0x140086ba2
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140086ba2
movzx ebx, word [rax + 0xa]
movzx edi, word [rax + 0x10]
movzx esi, word [rax + 0xe]
mov word [rbp + 0x520], r12w
xor edx, edx
mov r8d, SetErrorInfo
lea rcx, [rbp + 0x522]
call fcn.1400dd9f0
mov ecx, ebx
mov r9d, 0xa
lea r8d, [r9 - 4]
lea rdx, [rbp + 0x510]
call fcn.1400db28c
lea r8, [rbp + 0x510]
mov edx, 0x64
lea rcx, [rbp + 0x520]
call fcn.1400d9a0c
lea r8, [0x14012ffcc]
mov edx, 0x64
lea rcx, [rbp + 0x520]
call fcn.1400d9a0c
mov ecx, edi
mov r9d, 0xa
lea r8d, [r9 - 4]
lea rdx, [rbp + 0x510]
call fcn.1400db28c
lea r8, [rbp + 0x510]
mov edx, 0x64
lea rcx, [rbp + 0x520]
call fcn.1400d9a0c
lea r8, [0x14012ffcc]
mov edx, 0x64
lea rcx, [rbp + 0x520]
call fcn.1400d9a0c
mov ecx, esi
mov r9d, 0xa
lea r8d, [r9 - 4]
lea rdx, [rbp + 0x510]
call fcn.1400db28c
lea r8, [rbp + 0x510]
mov edx, 0x64
lea rcx, [rbp + 0x520]
call fcn.1400d9a0c
lea rdx, [rbp + 0x520]
lea rcx, [0x14012f6a8]
call fcn.1400d9d84
nop
test r13, r13
je 0x140086b91
mov rcx, r13
call fcn.1400d4d78
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
jmp 0x140086ba7
jmp 0x140086a1d
xor eax, eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret