Function at 0x140080670
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, pe_nt_image_headers64
call fcn.1400033e1
xor r13d, r13d
lea rcx, [rbp + 0xb0]
xor edx, edx
mov r8d, 0x250
mov r14d, r13d
call fcn.1400033e1
xor eax, eax
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x44], rax
lea ebx, [r13 + 0x64]
mov qword [rsp + 0x4c], rax
mov r15d, r13d
call fcn.14000384b
test eax, eax
jne 0x14008073c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140080721
cmp eax, 5
je 0x140080721
mov r8d, eax
lea rdx, str.Aborting:_Unable_to_Obtain_Instance_Lock__Error__d_n
lea ecx, [rbx - 0x61]
call fcn.1400049c1
mov eax, 0x3ec
jmp 0x140080bb1
lea rdx, str.Aborting:_Another_Instance_is_already_running_n
mov ecx, 3
call fcn.1400049c1
mov eax, 0x3ec
jmp 0x140080bb1
lea r8, [rbp - 0x70]
mov rdx, rsi
mov ecx, edi
call fcn.1400815c0
mov edi, eax
mov esi, 1
test eax, eax
jne 0x140080b3e
mov ecx, dword [rbp - 0x68]
mov dword [0x140183238], ecx
mov ecx, dword [rbp - 0x64]
mov dword [0x1401683ac], ecx
mov ecx, dword [rbp - 0x60]
mov dword [0x140183278], ecx
cmp dword [rbp - 0x58], r13d
je 0x140080819
lea rax, [rbp + 0xb0]
mov dword [rsp + 0x30], 0x40008
mov qword [rsp + 0x28], rax
lea rdx, str..pipe14579667_532A_42C2_9200_FD0544E09B90
lea rax, [0x140003b34]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0xb0]
call fcn.1400029b9
test eax, eax
jne 0x1400807cb
mov edi, 0x3eb
mov dword [0x14016d9b4], esi
jmp 0x140080b73
lea rcx, [rbp + 0xb0]
call fcn.1400024b4
test eax, eax
jne 0x14008080b
nop dword [rax + rax]
mov eax, ebx
dec ebx
test eax, eax
jle 0x140080803
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0xb0]
call fcn.1400024b4
test eax, eax
je 0x1400807e0
test ebx, ebx
jle 0x140080b3e
lea rax, [rbp + 0xb0]
mov qword [0x1401838b8], rax
call fcn.140002db0
xor r9d, r9d
mov qword [rsp + 0x28], r13
lea r8, [0x14000399a]
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
mov r15d, esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
jne 0x140080866
lea rdx, str.Unable_to_create_worker_thread._n
lea ecx, [rax + 3]
call fcn.1400049c1
mov edi, 0x3eb
mov dword [0x14016d9b4], esi
jmp 0x140080b73
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140001cad
cmp dword [rbp - 0x58], r13d
je 0x1400808b2
mov r8d, 8
mov dword [rbp + 0x300], 5
lea rdx, [rbp + 0x300]
lea rcx, [rbp + 0xb0]
call fcn.140004be7
or edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140080b3e
mov eax, dword [0x14016d9b8]
test eax, eax
jne 0x140080942
cmp dword [0x14018323c], r13d
je 0x140080942
cmp byte [rbp - 0x54], r13b
je 0x140080942
mov edx, 0x101
lea rcx, [rbp - 0x54]
call fcn.140004e71
lea r8, [rbp - 0x54]
lea rdx, [0x1401243b8]
lea rcx, [rsp + 0x58]
call fcn.140001974
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x44], r13
je 0x140080921
lea rcx, [rsp + 0x40]
call fcn.140002af9
mov rcx, qword [rsp + 0x44]
test rcx, rcx
je 0x140080921
call fcn.140002d65
lea rcx, [rbp - 0x54]
call fcn.140001b36
call fcn.140081900
mov eax, dword [0x14016d9b8]
cmp dword [rbp - 0x5c], r13d
cmovne eax, esi
mov dword [0x14016d9b8], eax
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x560], r12
test rcx, rcx
je 0x140080a55
test eax, eax
jne 0x140080b36
movabs r12, 0x100000601
nop dword [rax]
mov r9d, 0x101
lea r8, [rbp + 0x310]
lea rdx, str.____n_s
call fcn.140001df7
cmp eax, esi
jne 0x140080a4f
mov edx, 0x101
lea rcx, [rbp + 0x310]
call fcn.140004e71
mov ebx, r13d
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400809dd
mov r8d, 3
lea rdx, [0x14012ac84]
lea rcx, [rbp + 0x310]
call fcn.140001ae6
test eax, eax
jne 0x1400809dd
movzx eax, byte [rbp + 0x313]
cmp al, 0x20
ja 0x1400809dd
bt r12, rax
jae 0x1400809dd
mov ebx, esi
test ebx, ebx
jne 0x140080a39
lea r8, [rbp + 0x310]
lea rdx, [0x1401243b8]
lea rcx, [rsp + 0x58]
call fcn.140001974
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x44], r13
je 0x140080a28
lea rcx, [rsp + 0x40]
call fcn.140002af9
mov rcx, qword [rsp + 0x44]
test rcx, rcx
je 0x140080a28
call fcn.140002d65
lea rcx, [rbp + 0x310]
call fcn.140001b36
call fcn.140081900
cmp dword [0x14016d9b8], r13d
jne 0x140080b36
mov rcx, qword [rbp - 0x70]
jmp 0x140080970
mov eax, dword [0x14016d9b8]
test eax, eax
jne 0x140080b36
nop dword [rax]
cmp dword [0x14018323c], r13d
je 0x140080b1f
lea rdx, [0x14016db90]
lea rcx, [rsp + 0x70]
call fcn.140001181
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
mov rbx, qword [rsp + 0x5c]
test rbx, rbx
je 0x140080aa5
mov rdx, rbx
mov ecx, 3
call fcn.1400049c1
mov rcx, rbx
call fcn.140002d65
xor ecx, ecx
call fcn.140001b3b
mov r8, rax
lea rcx, [rbp + 0x310]
mov edx, 0x100
call fcn.140004688
test rax, rax
je 0x140080b36
mov edx, 0x100
lea rcx, [rbp + 0x310]
call fcn.140004e71
lea r8, [rbp + 0x310]
mov ecx, 2
lea rdx, [0x140127f70]
call fcn.1400049c1
mov edx, 0x101
lea rcx, [rbp + 0x310]
call fcn.140004e71
lea rcx, [rbp + 0x310]
call fcn.140001b36
call fcn.140081900
cmp dword [0x14016d9b8], r13d
je 0x140080a60
jmp 0x140080b36
lea rdx, str.Exiting..._n
mov ecx, 3
call fcn.1400049c1
mov dword [0x14016d9b8], esi
mov r12, qword [rsp + 0x560]
mov dword [0x14016d9b4], esi
test r14, r14
je 0x140080b73
lea rdx, str.Waiting_For_EVENT_Thread_To_Exit..._n
lea rcx, [rbp + 0xb0]
call fcn.1400039ef
mov edx, 0x1388
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0xb0]
call fcn.140003c1a
lea rcx, [rbp + 0xb0]
mov qword [0x1401838b8], r13
call fcn.140002996
test r15d, r15d
je 0x140080b9c
call fcn.140005394
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140080baa
call fcn.140003cfb
call fcn.1400022a2
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret