Function at 0x1003fd50
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x1003fd8e
cmp dword [esi], 0
je 0x1003fd8e
cmp dword [esi + 8], 0
jne 0x10040119
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Cameyo.VirtAppsMutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1003fe2f
push str.Initialize:_Creating_new_VirtAppMutex__Server_
lea ecx, [ebp - 0x10]
call fcn.10022bb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003fe14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Cameyo.VirtAppsMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, eax
mov dword [esi + 0xc], eax
call fcn.10021fd0
jmp 0x1003fe75
lea eax, [ebp - 0x10]
push str.Initialize:_using_existing_VirtAppMutex__Client_
push eax
call fcn.1003a800
add esp, 8
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003fe75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0xc], 0
jne 0x1003fecb
push str._Initialize:_can_neither_open_nor_create_Mutex_Cameyo.VirtAppsMutex
lea ecx, [ebp - 0x10]
call fcn.10022bb0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1003feb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Cameyo.VirtAppsList
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push str.Initialize:_OpenFileMapping_returned_0x_x__LE_d_
push eax
call fcn.1003a800
add esp, 0x10
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ff2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x1003ff5f
push 0x145008
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x10040119
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Cameyo.VirtAppsList
push 0x145008
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp - 0x14]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Initialize:_CreateFileMapping_FAILED:__d__OpenErr_d_
push eax
call fcn.1003a800
add esp, 0x10
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ffc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Initialize:_CreateFileMapping_returned__d
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040010
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi], 0
jne 0x10040041
push ecx
mov ecx, esp
push str._Initialize:_CreateFileMapping_Cameyo.VirtAppsList__failed._LonelyMode:_creating_a_local__unnamed_one_as_failover.
call fcn.10022bb0
call fcn.10021810
add esp, 4
push 0
push 0x145008
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
mov ecx, dword [esi]
call fcn.10021fd0
test eax, eax
jne 0x1004006c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
push eax
push str.Cannot_share_VirtAppsList:__d__normal_on_XP__
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
push 0
push 0
push 0
push 0xf001f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x10040119
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x1c]
push str.Fatal__PID__d_
push eax
call fcn.1003a800
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.Cannot_map_VirtAppsList:__d
push eax
call fcn.1003a800
add esp, 0xc
push 0
push dword [esi]
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100400ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1004010e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret