Function at 0x1017a540
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10296908
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x50], 0xb7
je 0x1017a81a
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1017a81a
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x1017a59c
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], 0
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x1017a81a
mov edi, dword [ebp + 8]
push edi
push 0
push eax
mov dword [esi + 0x58], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x58]
add esp, 0xc
mov dword [eax], edi
mov eax, dword [esi + 0x58]
mov dword [eax + 0x10], 0x100
mov eax, dword [esi + 0x58]
mov dword [eax + 0x18], 0x100
mov eax, dword [esi + 0x58]
mov dword [eax + 4], 0x620
mov ecx, dword [esi + 0x58]
imul eax, dword [ecx + 0x10], 0x16
add eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x58]
imul eax, dword [ecx + 0x10], 0x16
add eax, dword [ecx + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x60]
call fcn.1010ca50
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x1017a670
mov ecx, eax
call fcn.10004cc0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10004cc0
mov eax, dword [ebp - 0x30]
cmp eax, 0x100
jae 0x1017a6e2
mov ecx, dword [esi]
test ecx, ecx
je 0x1017a69c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
mov dword [esi], 0
mov word [esi + 4], 0
test eax, eax
je 0x1017a6b3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x1017a6b5
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1017a6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1017a6d7
mov byte [esi + 5], 1
cmp dword [esi], 0
je 0x1017a6e2
cmp byte [esi + 5], 0
je 0x1017a70d
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, 0x20
jb 0x1017a630
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
mov al, byte [ebp - 0x41]
jmp 0x1017a81c
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
add eax, eax
push eax
mov eax, dword [esi + 0x58]
push ecx
add eax, 0x20
push eax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea edi, [esi + 8]
push edi
call fcn.1017a3a0
test al, al
je 0x1017a805
mov eax, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1017a778
push eax
call edi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
mov eax, dword [esi + 0x58]
push ecx
add eax, 0x220
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x28]
push ecx
push eax
call fcn.1017a3a0
test al, al
je 0x1017a805
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1017a7cd
push eax
call edi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
mov eax, dword [esi + 0x58]
push ecx
add eax, 0x420
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x41], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
jmp 0x1017a6f6
mov byte [ebp - 0x41], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
jmp 0x1017a6f6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 4