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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
or dword [esi + 0x208], 0xffffffff
xor edi, edi
push esi
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x218], edi
call ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x234]
push eax
call ebx
push str.Count
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call ebx
push str.LmSmMutexName
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
inc ebx
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x130]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push edi
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push dword [ebp - 4]
mov dword [esi + 0x208], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push edi
push edi
push 0xf001f
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x14
push 0x40
mov dword [esi + 0x210], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push edi
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push dword [ebp + 8]
mov dword [esi + 0x20c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push edi
push edi
push 0xf001f
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp dword [ebp - 8], edi
mov dword [esi + 0x21c], eax
je 0x4011eb
push dword [ebp + 0xc]
push 0x40
push dword [esi + 0x210]
call fcn.00405a90
mov eax, dword [esi + 0x21c]
add esp, 0xc
mov dword [eax], ebx
push dword [esi + 0x218]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8