Function at 0x47b1c0
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 0x4b8d28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x47b1ff
cmp dword [esi], 0
je 0x47b1ff
cmp dword [esi + 8], 0
jne 0x47b715
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Cameyo.VirtAppsMutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 0x18], esp
test eax, eax
jne 0x47b3b6
mov edi, esp
mov dword [ebp - 0x10], edi
call fcn.0048f565
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47b26c
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, str.Initialize:_Creating_new_VirtAppMutex__Server_
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x47b373
mov edx, ecx
movzx edi, dx
push edi
call fcn.00497482
mov ebx, eax
test ebx, ebx
je 0x47b38d
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47b38d
push edi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47b38d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x47b2fe
push edi
mov ecx, edx
call fcn.00421527
mov edx, dword [ebp - 0x10]
movzx eax, word [ebx]
mov edx, dword [edx]
add ebx, 2
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x47b318
push ebx
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x47b4c4.1
movzx edx, byte [eax + 0x47b73c]
jmp dword [edx*4 + 0x47b72c]
call fcn.0048facd
test edi, edi
jl 0x47b369
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp edi, dword [ecx - 8]
jg 0x47b369
mov edx, dword [ebp - 0x18]
mov dword [ecx - 0xc], edi
mov eax, dword [eax]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47b38d
push 0x80070057
call fcn.00421000
push str.Initialize:_Creating_new_VirtAppMutex__Server_
call fcn.0049db0a
add esp, 4
push eax
push str.Initialize:_Creating_new_VirtAppMutex__Server_
mov ecx, edi
call fcn.00423f19
mov dword [ebp - 4], 0xffffffff
call fcn.0047af00
add esp, 4
push str.Cameyo.VirtAppsMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov dword [esi + 0xc], eax
call fcn.0047b0c0
jmp 0x47b3cb
mov eax, esp
push str.Initialize:_Using_existing_VirtAppMutex__Client_
push eax
call fcn.00461d60
add esp, 8
call fcn.0047af00
add esp, 4
cmp dword [esi + 0xc], 0
jne 0x47b530
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x10], ebx
call fcn.0048f565
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47b3fb
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str._Initialize:_can_neither_open_nor_create_Mutex_Cameyo.VirtAppsMutex
mov dword [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47b4f3
mov edx, ecx
movzx esi, dx
push esi
call fcn.00497482
mov edi, eax
test edi, edi
je 0x47b50d
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47b50d
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47b50d
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47b487
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x47b4a1
push edi
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x47b4c4.1
movzx edx, byte [eax + 0x47b7a0]
jmp dword [edx*4 + 0x47b790]
call fcn.0048fb05
test esi, esi
jl 0x47b369
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47b369
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47b50d
push str._Initialize:_can_neither_open_nor_create_Mutex_Cameyo.VirtAppsMutex
call fcn.0049db0a
add esp, 4
push eax
push str._Initialize:_can_neither_open_nor_create_Mutex_Cameyo.VirtAppsMutex
mov ecx, ebx
call fcn.00423f19
mov dword [ebp - 4], 0xffffffff
call fcn.0047af00
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cameyo.VirtAppsList
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call edi
push ecx
mov ecx, dword [esi]
mov ebx, eax
mov eax, esp
mov dword [ebp - 0x18], esp
push ebx
push ecx
push str.Initialize:_OpenFileMapping_returned_0x_x__LE_d_
push eax
call fcn.00461d60
add esp, 0x10
call fcn.0047af00
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x47b5a0
push 0x947008
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x47b715
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cameyo.VirtAppsList
push 0x947008
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ecx
mov dword [esi], eax
mov eax, esp
mov dword [ebp - 0x18], esp
push ebx
mov dword [ebp - 0x18], eax
call edi
push eax
mov eax, dword [ebp - 0x18]
push str.Initialize:_CreateFileMapping_FAILED:__d__OpenErr_d_
push eax
call fcn.00461d60
add esp, 0x10
call fcn.0047af00
add esp, 4
call edi
push ecx
mov edx, esp
mov dword [ebp - 0x18], esp
push eax
push str.Initialize:_CreateFileMapping_returned__d
push edx
call fcn.00461d60
add esp, 0xc
call fcn.0047af00
add esp, 4
cmp dword [esi], 0
jne 0x47b633
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str._Initialize:_CreateFileMapping_Cameyo.VirtAppsList__failed._LonelyMode:_creating_a_local__unnamed_one_as_failover.
call fcn.00423442
call fcn.0047af00
add esp, 4
push 0
push 0x947008
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
mov eax, dword [esi]
push eax
call fcn.0047b0c0
add esp, 4
test al, al
jne 0x47b661
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
push str.Cannot_share_VirtAppsList:__d__normal_on_XP__
push ecx
call fcn.00461d60
add esp, 0xc
call fcn.0047af00
add esp, 4
mov edx, dword [esi]
push 0
push 0
push 0
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x47b715
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x1c]
push str.Fatal__PID__d_
push eax
call fcn.00461d60
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 2
call edi
push eax
lea ecx, [ebp - 0x14]
push str.Cannot_map_VirtAppsList:__d
push ecx
call fcn.00461d60
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b6e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b70a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
pop ebx
mov esp, ebp
pop ebp
ret