Function at 0x4025ea
Capabilities:
Check mutex on windows
Create thread

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ecx, str.SHARED_MEMORY
mov dword [esp + 0x10], edx
call fcn.004028a3
mov ebx, eax
mov ecx, str.SYNCHRONIZE
mov dword [esp + 0x2c], ebx
call fcn.004028a3
push eax
xor ebp, ebp
mov dword [esp + 0x34], eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x800
push ebp
push 0x18000004
push ebp
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x4063a0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4027bc
push ebp
push ebp
push ebp
push 2
push dword [0x4063a0]
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x40278e
mov ecx, str.SHARED_MEMORY_READ
call fcn.004028a3
push eax
xor edi, edi
mov dword [esp + 0x2c], eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
xor ebx, ebx
mov eax, dword [ebp]
inc ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], edi
jle 0x4026d0
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
push dword [ebp + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc ebx
add ebx, eax
inc edi
cmp edi, esi
jl 0x4026b6
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x10], edi
jle 0x402716
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
push dword [ebp + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4044b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc edi
cmp edi, esi
jl 0x4026f2
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push ebp
push ebp
push 0x8702
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebx, dword [esp + 0x24]
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x2c]
jmp 0x402790
xor ebp, ebp
push dword [0x4063a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4063a0], ebp
test edi, edi
jne 0x40262d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebp
jmp 0x4027e2
push 0x4063a4
push ebp
push ebp
push 0x4027fe
push ebp
push ebp
mov dword [0x408324], 0x40221a
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x40639c], eax
push dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret