Function at 0x100c87e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc078
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x50], 0xb7
je 0x100c8a54
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100c8a54
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x100c883d
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 0x100c8a54
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
lea ecx, [ebp - 0x40]
call fcn.10003bb0
mov dword [ebp - 4], 0
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x58]
push eax
call fcn.1009ab80
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push eax
call fcn.10003b20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10003b10
lea ecx, [ebp - 0x40]
call fcn.10003ce0
cmp eax, 0x100
jae 0x100c894e
mov eax, dword [esi]
test eax, eax
je 0x100c8903
push eax
call ebx
mov dword [esi], 0
lea ecx, [ebp - 0x40]
mov word [esi + 4], 0
call fcn.10003ac0
test al, al
jne 0x100c891f
lea ecx, [ebp - 0x40]
call fcn.10003ad0
jmp 0x100c8921
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100c8943
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100c8943
mov byte [esi + 5], 1
cmp dword [esi], 0
je 0x100c894e
cmp byte [esi + 5], 0
je 0x100c8970
inc edi
cmp edi, 0x20
jb 0x100c88c0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10003b10
mov al, bl
jmp 0x100c8a56
lea ecx, [ebp - 0x40]
call fcn.10003ce0
add eax, eax
lea ecx, [ebp - 0x40]
push eax
call fcn.10003ad0
push eax
mov eax, dword [esi + 0x58]
add eax, 0x20
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10003bb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea edi, [esi + 8]
push edi
call fcn.100c8660
test al, al
je 0x100c8a42
mov eax, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x100c89c3
push eax
call edi
lea ecx, [ebp - 0x28]
call fcn.10003ce0
add eax, eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10003ad0
push eax
mov eax, dword [esi + 0x58]
add eax, 0x220
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.1000d230
lea eax, [ebp - 0x28]
push eax
lea ebx, [esi + 0x28]
push ebx
call fcn.100c8660
test al, al
je 0x100c8a42
mov eax, dword [ebx]
test eax, eax
je 0x100c8a0a
push eax
call edi
lea ecx, [ebp - 0x28]
call fcn.10003ce0
add eax, eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10003ad0
push eax
mov eax, dword [esi + 0x58]
add eax, 0x420
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003b10
jmp 0x100c895a
xor bl, bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.10003b10
jmp 0x100c895a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 4