Function at 0x1009de8c
Capabilities:
Check mutex on windows
Create process on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x10148250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
mov dword [ebp - 0x238], ecx
lea eax, [ebp - 0x20c]
xor edi, edi
push esi
push eax
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0xc
xor eax, eax
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], eax
push eax
push 0x9c9c
push eax
push 4
lea eax, [ebp - 0x230]
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x1005eb1b
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1005eaee
push 0x9c9c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.kernel32.dll_CreateEventA]
lea eax, [ebp - 0x230]
add esp, 0xc
push ebx
push ebx
push ebx
push eax
call esi
push ebx
push ebx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x230]
push ebx
push eax
call esi
push ebx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x230]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebp - 0x218], eax
call esi
mov ebx, eax
call esi
mov edi, eax
call esi
mov ecx, dword [ebp - 0x210]
push 0
push 1
push 0x120410
add ecx, 0x28
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0x234], ecx
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov edi, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
test eax, eax
je 0x1005eabe
cmp dword [ebp - 0x21c], 0
je 0x1005eabe
test edi, edi
je 0x1005eabe
test esi, esi
je 0x1005eabe
mov ebx, dword [ebp - 0x234]
cmp dword [ebx], 0
je 0x1005eabe
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov ebx, dword [ebp - 0x210]
mov dword [ebx + 8], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x238]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x24], esi
mov dword [ebx], 0x9c9c
mov dword [ebx + 4], 0x20000
mov dword [ebx + 0x14], eax
test eax, eax
je 0x1005e911
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x10], eax
push 0x12
pop ecx
xor eax, eax
mov dword [ebx + 0x2c], 0x6e
inc eax
lea edi, [ebx + 0x7a4]
xor edx, edx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], eax
mov esi, 0x100f0118
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x258]
push 0x18
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0xa
lea edi, [ebx + 0x50]
mov esi, str.Windows_SharePoint_Services_3.0_Error_Reporting
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [ebx + 0x21ac]
mov esi, str.Microsoft_SharePoint
rep movsd dword es:[edi], dword [esi]
push 0x104
push eax
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x28c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x224]
lea edi, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x28c], esi
stosd dword es:[edi], eax
lea edx, [ebp - 0x20c]
add esp, 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100aa27c
test eax, eax
je 0x1005eac6
lea eax, [ebp - 0x248]
xor esi, esi
push eax
lea eax, [ebp - 0x28c]
xor edi, edi
push eax
push esi
push esi
push 0x4000020
inc edi
lea eax, [ebp - 0x20c]
push edi
push esi
push esi
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x1005eac6
push dword [ebp - 0x244]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x248]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x210], edi
mov edi, dword [ebp - 0x21c]
push 0x4e20
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x1005ea52
mov edi, dword [ebp - 0x214]
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x1005ea3b
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x220], 1
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x210], 0
je 0x1005ead2
xor esi, esi
jmp 0x1005ea02
mov esi, dword [ebp - 0x218]
push 0x4e20
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1005eacc
cmp eax, 0x80
je 0x1005eab5
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x214]
test eax, eax
je 0x1005ea8e
push edi
call dword [sym.imp.kernel32.dll_SetEvent]
jmp 0x1005eaa5
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x1005eaac
mov dword [ebp - 0x220], 1
and dword [ebp - 0x210], 0
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
jmp 0x1005ea41
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
jmp 0x1005eacc
mov ebx, dword [ebp - 0x210]
jmp 0x1005ead2
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
cmp dword [ebx + 0x28], 0
je 0x1005eae1
push dword [ebx + 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x21c]
push dword [ebp - 0x224]
call dword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
je 0x1005eb05
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test edi, edi
je 0x1005eb10
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1005eb1b
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100013a8
leave
ret
mov eax, dword [ecx]
cmp dword [eax], 0x80000003
je 0x1009dea2
cmp dword [eax], 0x80000004
jne 0x1005e76d
xor eax, eax
ret