Function at 0x10001220
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10064008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.10001870
test edi, edi
jne 0x10001257
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e779
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, 0x103
jg 0x1000145b
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 0x44
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebx*2 + 2]
cmp eax, 0x20a
jae 0x100014c1
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
push ecx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x1000145b
mov eax, 0x45
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x10001454
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, 0x46
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0003
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x10001454
mov eax, 0x41
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1000145b
mov eax, 0x42
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x10001454
mov eax, 0x43
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0003
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x10001454
mov eax, 0x47
mov word [ebp + ebx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0003
call edi
mov dword [esi + 0x38], eax
test eax, eax
je 0x10001454
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 6
push dword [esi]
call edi
mov ecx, eax
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x10001454
lea eax, [ecx + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ecx + 0xc]
mov dword [esi + 0xc], eax
cmp dword [ecx], 5
jb 0x10001454
push 0
push 0
push 0
push 6
push dword [esi + 0x1c]
call edi
mov ecx, eax
mov dword [esi + 0x28], ecx
test ecx, ecx
je 0x10001454
lea eax, [ecx + 4]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
lea eax, [ecx + 0xc]
mov dword [esi + 0x28], eax
cmp dword [ecx], 5
jb 0x10001454
mov eax, dword [esi + 0xc]
push dword [eax - 4]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x10001454
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10001454
mov eax, dword [esi + 0x28]
cmp dword [eax - 4], 0xffffffff
je 0x10001470
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, esi
call fcn.10001870
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e779
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x28]
mov dword [ecx - 4], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x14]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1002e779
mov esp, ebp
pop ebp
ret 4
call fcn.1002e8ad
int3