Function at 0x1004b470
Capabilities:
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101218b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x1004b4ae
cmp dword [edi], 0
je 0x1004b4ae
cmp dword [edi + 8], 0
jne 0x1004b7fc
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 [edi + 0xc], eax
test eax, eax
jne 0x1004b554
push str.Initialize:_Creating_new_VirtAppMutex__Server_
lea ecx, [ebp - 0x10]
call fcn.10023fc0
mov dword [ebp - 4], 0
mov ecx, str.CActiveVirtApp
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004b539
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 [edi + 0xc], eax
call fcn.100260c0
jmp 0x1004b59f
lea eax, [ebp - 0x10]
push str.Initialize:_using_existing_VirtAppMutex__Client_
push eax
call fcn.10044f30
add esp, 8
mov dword [ebp - 4], 1
mov ecx, str.CActiveVirtApp
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004b59f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0xc], 0
jne 0x1004b5fa
push str._Initialize:_can_neither_open_nor_create_Mutex_Cameyo.VirtAppsMutex
lea ecx, [ebp - 0x10]
call fcn.10023fc0
mov dword [ebp - 4], 2
mov ecx, str.CActiveVirtApp
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1004b5e7
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 [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push str.Initialize:_OpenFileMapping_returned_0x_x__LE_d_
push eax
call fcn.10044f30
add esp, 0x10
mov dword [ebp - 4], 3
mov ecx, str.CActiveVirtApp
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004b65f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
test eax, eax
je 0x1004b693
push 0x145008
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x1004b7fc
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 ecx
mov esi, esp
mov dword [edi], eax
push dword [ebp - 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Initialize:_CreateFileMapping_FAILED:__d__OpenErr_d_
push esi
call fcn.10044f30
add esp, 0x10
call fcn.1004b380
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
call esi
push ecx
mov ecx, esp
push eax
push str.Initialize:_CreateFileMapping_returned__d
push ecx
call fcn.10044f30
add esp, 0xc
call fcn.1004b380
add esp, 4
cmp dword [edi], 0
jne 0x1004b724
push ecx
mov ecx, esp
push str._Initialize:_CreateFileMapping_Cameyo.VirtAppsList__failed._LonelyMode:_creating_a_local__unnamed_one_as_failover.
call fcn.10023fc0
call fcn.1004b380
add esp, 4
push 0
push 0x145008
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
mov ecx, dword [edi]
call fcn.100260c0
test eax, eax
jne 0x1004b74b
call esi
push ecx
mov ecx, esp
push eax
push str.Cannot_share_VirtAppsList:__d__normal_on_XP__
push ecx
call fcn.10044f30
add esp, 0xc
call fcn.1004b380
add esp, 4
push 0
push 0
push 0
push 0xf001f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x1004b7fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x1c]
push str.Fatal__PID__d_
push eax
call fcn.10044f30
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
lea eax, [ebp - 0x18]
push str.Cannot_map_VirtAppsList:__d
push eax
call fcn.10044f30
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]
or esi, 0xffffffff
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004b7d0
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], esi
dec esi
test esi, esi
jg 0x1004b7f1
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