Function at 0x4962f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5c1a18]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
jle 0x4964a4
lea esi, [esp + 0x38]
call fcn.004b1130
mov eax, dword [esp + 0x38]
cmp eax, 0x52425078
jne 0x49642f
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov dword [esp + 0x18], 0
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x496340
sub eax, esi
sar eax, 1
lea edx, [esp + 0x18]
call fcn.004ab9d0
mov esi, dword [esp + 0x18]
test esi, esi
push 0
push 0
push 0
push ecx
mov eax, esp
mov dword [eax], esi
je 0x49636e
add dword [esi], 1
lea eax, [esp + 0x34]
push eax
call fcn.0044dcc0
lea ecx, [esp + 0x24]
call fcn.0044df80
test al, al
je 0x496393
push 0
lea eax, [esp + 0x28]
call fcn.00495d40
add esp, 4
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4963de
cmp byte [0x5f49d5], 0
jne 0x4963b6
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4963d3
add dword [edi], 0xffffffff
jne 0x4963d3
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
mov dword [esp + 0x24], 0x5835c8
je 0x49648f
cmp byte [0x5f49d5], 0
jne 0x496409
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [esi], 0xffffffff
jne 0x496422
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x49648f
cmp eax, 0x5242506c
jne 0x49648f
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
movsx edi, byte [esi]
push 0x10
call fcn.005662c8
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x49645a
mov dword [eax + 8], ecx
mov dword [esp + 0x14], eax
jmp 0x496460
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esp + 0x44]
sub ecx, edi
mov dword [eax + 0xc], ebx
lea edx, [edi + esi + 1]
sub ecx, 1
lea ebx, [eax + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esi, 1
mov eax, ebx
call fcn.004ab970
mov ebx, dword [ebx]
test ebx, ebx
je 0x49648f
mov dword [ebx + 0x10], 0x8000100
mov edi, dword [esp + 0x1c]
add edi, 1
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jl 0x496317
cmp byte [0x5f49d5], 0
push 0
push 0
push 1
push ecx
mov ebx, esp
mov dword [ebx], 0
jne 0x4964ce
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor edi, edi
call fcn.004ab8c0
mov eax, dword [ebx]
test eax, eax
je 0x4964fe
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push ecx
add eax, 1
push 0x57e81c
push eax
call fcn.00566500
add esp, 0xc
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebx, dword [ebx]
test ebx, ebx
je 0x496516
mov dword [ebx + 0x10], 0x600
lea eax, [esp + 0x5c]
push eax
call fcn.0044dcc0
call fcn.0041a360
test al, al
mov esi, dword [esp + 0x14]
jne 0x4966da
test esi, esi
je 0x49654a
push 8
call fcn.005662c8
add esp, 4
test eax, eax
je 0x49654a
mov ebx, eax
call fcn.004967f0
push str.REALBASIC_MUTEX
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x496578
push 0xfa0
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00495fe0
test esi, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], 1
je 0x49669a
jmp 0x496596
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
test eax, eax
push 0x40
push ecx
mov ecx, esp
mov byte [esp + 0x24], 1
mov dword [ecx], eax
je 0x4965ac
add dword [eax], 1
lea ecx, [esp + 0x54]
call fcn.004502e0
mov edi, eax
test edi, edi
je 0x496613
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
test al, al
jne 0x49660e
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [esi + 8]
test eax, eax
push 0x40
push ecx
mov ecx, esp
mov dword [ecx], eax
je 0x4965e3
add dword [eax], 1
mov edx, dword [ebx]
mov eax, dword [edx + 0xd0]
mov ecx, ebx
call eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
mov edi, eax
call fcn.004960f0
add esp, 8
test al, al
mov byte [esp + 0x13], al
je 0x496696
jmp 0x496613
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push eax
mov eax, edi
call fcn.00495d40
add esp, 4
test edi, edi
je 0x496630
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edi, dword [esi + 8]
test edi, edi
mov ebx, dword [esi + 0xc]
je 0x49667d
cmp byte [0x5f49d5], 0
jne 0x496655
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x496672
add dword [edi], 0xffffffff
jne 0x496672
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push esi
call fcn.0056612f
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebx, dword [esp + 0x18]
jne 0x496592
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x4966a8
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
cmp byte [esp + 0x13], 0
jne 0x49679d
push 0x10
push 0
push str.The_application_cannot_continue_because_a_needed_file_cannot_be_installed._You_dont_have_appropriate_permission_to_install_the_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
test esi, esi
je 0x49679d
jmp 0x4966e8
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
push 0x40
push ecx
xor bl, bl
test eax, eax
mov ecx, esp
mov dword [ecx], eax
je 0x4966fb
add dword [eax], 1
lea ecx, [esp + 0x54]
call fcn.004502e0
mov edi, eax
test edi, edi
je 0x496733
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
test al, al
je 0x496725
push 0
mov eax, edi
call fcn.00495d40
add esp, 4
mov bl, 1
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
test bl, bl
jne 0x49673b
mov eax, dword [esi + 4]
call fcn.00495ef0
mov edi, dword [esi + 8]
test edi, edi
mov ebx, dword [esi + 0xc]
je 0x496788
cmp byte [0x5f49d5], 0
jne 0x496760
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x49677d
add dword [edi], 0xffffffff
jne 0x49677d
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push esi
call fcn.0056612f
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x4966e4
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4967e8
cmp byte [0x5f49d5], 0
jne 0x4967c0
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test esi, esi
je 0x4967dd
add dword [esi], 0xffffffff
jne 0x4967dd
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret