Function at 0x49c4e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x5a0
push edi
mov eax, 0xcccccccc
lea edi, [esp + 4]
mov ecx, 0x168
rep stosd dword es:[edi], eax
pop edi
mov dword [ebp - 0x5a4], 0
mov eax, dword [0x4efd18]
mov dword [ebp - 0x5a0], eax
jmp 0x49c5e2
mov eax, dword [ebp - 0x5a4]
mov dword [ebp - 0x59c], eax
push 0x10
call fcn.004496d0
pop ecx
cmp eax, 0
je 0x49c539
mov dword [eax + 8], 0
mov eax, eax
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x59c]
mov eax, dword [ebp - 0x5a4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x5a0]
mov eax, dword [ecx]
mov dword [ebp - 0x598], eax
mov eax, dword [ebp - 0x5a0]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x5a4]
mov dword [eax], edx
mov edx, dword [ebp - 0x5a0]
add edx, 8
mov eax, dword [ebp - 0x5a4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x5a4]
mov edx, dword [eax + 4]
movsx edx, byte [edx + 4]
mov dword [ebp - 0x594], edx
push dword [ebp - 0x594]
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax + 4]
add eax, 5
push eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 8
call fcn.0040bb00
mov edx, dword [ebp - 0x594]
add edx, 5
mov eax, dword [ebp - 0x5a4]
add dword [eax + 4], edx
mov edx, dword [ebp - 0x594]
add edx, 5
mov eax, dword [ebp - 0x5a4]
sub dword [eax], edx
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x5a0], eax
cmp dword [ebp - 0x5a0], 0
jne 0x49c517
cmp dword [ebp - 0x5a4], 0
je 0x49c666
push 8
call fcn.004496d0
pop ecx
cmp eax, 0
je 0x49c660
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0x4d44cb
call fcn.0040ca30
pop ecx
push eax
push 0x4d44cb
lea ecx, [ebp - 0x10]
call fcn.0040bb00
cmp dword [ebp - 0x10], 0
je 0x49c63a
mov ebx, dword [ebp - 0x10]
mov edx, dword [0x4bf2dc]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00416d00
cmp dword [ebp - 0x10], 0
je 0x49c654
mov ecx, dword [ebp - 0x10]
call fcn.0040b9e0
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x4cc500
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x590], eax
push str.REALBASIC_MUTEX
push 1
push 0
call dword [0x4ea814]
mov dword [ebp - 0x58c], eax
call dword [0x4ea810]
cmp eax, 0xb7
jne 0x49cb56
push 0xfa0
push dword [ebp - 0x58c]
call dword [0x4ea7ac]
jmp 0x49cb56
mov byte [ebp - 0x570], 0
mov dword [ebp - 0x170], 0
lea eax, [ebp - 0x16c]
push eax
call dword [0x4ea888]
cmp eax, 0
jl 0x49c758
mov byte [ebp - 0x584], 0
lea eax, [ebp - 0x170]
push eax
push 0x1a
push 0
call dword [0x4ea890]
cmp eax, 0
jne 0x49c713
lea eax, [ebp - 0x570]
push eax
mov eax, dword [ebp - 0x170]
push eax
call dword [0x4ea884]
mov byte [ebp - 0x584], al
mov eax, dword [ebp - 0x170]
push eax
mov edx, dword [ebp - 0x16c]
push edx
mov esi, dword [edx]
call dword [esi + 0x14]
mov edx, dword [ebp - 0x16c]
push edx
mov esi, dword [edx]
call dword [esi + 8]
cmp byte [ebp - 0x584], 0
je 0x49c758
push 0x4d455c
lea eax, [ebp - 0x570]
push eax
call fcn.004aa210
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5a4]
add ecx, 8
call fcn.0040bb90
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.004aa210
pop ecx
pop ecx
mov dword [ebp - 0x28], 0
push 0x4d44cb
call fcn.0040ca30
pop ecx
push eax
push 0x4d44cb
lea ecx, [ebp - 0x28]
call fcn.0040bb00
cmp dword [ebp - 0x28], 0
je 0x49c78a
mov ebx, dword [ebp - 0x28]
mov edx, dword [0x4bf2dc]
mov dword [ebx + 0x10], edx
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x570]
lea eax, [ebp - 0x570]
push eax
call fcn.0040ca30
pop ecx
push eax
lea eax, [ebp - 0x570]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040bb00
cmp dword [ebp - 0x24], 0
je 0x49c7c6
mov ebx, dword [ebp - 0x24]
mov edx, dword [0x4bf2dc]
mov dword [ebx + 0x10], edx
cmp dword [ebp - 0x24], 0
je 0x49c7d4
mov edx, dword [ebp - 0x24]
mov esi, dword [edx + 0xc]
jmp 0x49c7d9
mov esi, 0
cmp dword [ebp - 0x28], 0
je 0x49c7e7
mov edx, dword [ebp - 0x28]
mov ebx, dword [edx + 0xc]
jmp 0x49c7ec
mov ebx, 0
push esi
lea ecx, [ebp - 0x24]
call fcn.0040bbb0
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040bbb0
push eax
call fcn.0040cb30
add esp, 0x10
cmp eax, 0
jne 0x49c811
mov bl, 1
jmp 0x49c813
mov bl, 0
cmp dword [ebp - 0x24], 0
je 0x49c821
mov ecx, dword [ebp - 0x24]
call fcn.0040b9e0
cmp dword [ebp - 0x28], 0
je 0x49c82f
mov ecx, dword [ebp - 0x28]
call fcn.0040b9e0
cmp bl, 0
jne 0x49c869
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.0049c440
add esp, 0xc
mov byte [ebp - 0x588], al
cmp byte [ebp - 0x588], 0
jne 0x49ca96
push 0x400
lea eax, [ebp - 0x570]
push eax
mov eax, dword [0x4f5eb4]
push eax
call dword [0x4ea760]
mov dword [ebp - 0x580], eax
mov eax, dword [ebp - 0x580]
mov dword [ebp - 0x57c], eax
jmp 0x49c8bc
mov eax, dword [ebp - 0x57c]
cmp byte [ebp + eax - 0x570], 0x5c
jne 0x49c8b6
mov edx, dword [ebp - 0x57c]
inc edx
mov byte [ebp + edx - 0x570], 0
jmp 0x49c8c5
dec dword [ebp - 0x57c]
cmp dword [ebp - 0x57c], 0
jg 0x49c895
mov ecx, dword [ebp - 0x5a4]
add ecx, 8
call fcn.0040bb90
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.004aa210
pop ecx
pop ecx
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.0049c440
add esp, 0xc
mov byte [ebp - 0x588], al
cmp byte [ebp - 0x588], 0
jne 0x49ca96
push 0x400
lea eax, [ebp - 0x570]
push eax
call dword [0x4ea808]
mov dword [ebp - 0x20], 0
push 0x4d455c
call fcn.0040ca30
pop ecx
push eax
push 0x4d455c
lea ecx, [ebp - 0x20]
call fcn.0040bb00
cmp dword [ebp - 0x20], 0
je 0x49c95b
mov ebx, dword [ebp - 0x20]
mov edx, dword [0x4bf2dc]
mov dword [ebx + 0x10], edx
mov eax, dword [ebp - 0x5a4]
add eax, 8
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c300
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.0040bb90
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.004aa210
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x49c99a
mov ecx, dword [ebp - 0x1c]
call fcn.0040b9e0
cmp dword [ebp - 0x20], 0
je 0x49c9a8
mov ecx, dword [ebp - 0x20]
call fcn.0040b9e0
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.0049c440
add esp, 0xc
mov byte [ebp - 0x588], al
cmp byte [ebp - 0x588], 0
jne 0x49ca96
push 0x400
lea eax, [ebp - 0x570]
push eax
call dword [0x4ea804]
mov dword [ebp - 0x18], 0
push 0x4d455c
call fcn.0040ca30
pop ecx
push eax
push 0x4d455c
lea ecx, [ebp - 0x18]
call fcn.0040bb00
cmp dword [ebp - 0x18], 0
je 0x49ca21
mov ebx, dword [ebp - 0x18]
mov edx, dword [0x4bf2dc]
mov dword [ebx + 0x10], edx
mov eax, dword [ebp - 0x5a4]
add eax, 8
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c300
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040bb90
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.004aa210
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
je 0x49ca60
mov ecx, dword [ebp - 0x14]
call fcn.0040b9e0
cmp dword [ebp - 0x18], 0
je 0x49ca6e
mov ecx, dword [ebp - 0x18]
call fcn.0040b9e0
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5a4]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.0049c440
add esp, 0xc
mov byte [ebp - 0x588], al
cmp byte [ebp - 0x588], 0
jne 0x49caff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x570]
push eax
call dword [0x4ea818]
mov dword [ebp - 0x578], eax
cmp dword [ebp - 0x578], 0xffffffff
jne 0x49caf3
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._Running_the_application_once_with_Standard_User_or_Administrator_privileges_will_solve_the_problem.
push 0
call dword [0x4ea998]
push dword [ebp - 0x58c]
call dword [0x4ea81c]
push dword [ebp - 0x58c]
call dword [0x4ea71c]
push 0
call dword [0x4ea744]
push dword [ebp - 0x578]
call dword [0x4ea820]
lea eax, [ebp - 0x570]
push eax
call fcn.0049c2b0
pop ecx
mov ecx, dword [ebp - 0x5a4]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x574], eax
cmp dword [ebp - 0x5a4], 0
je 0x49cb4a
mov eax, dword [ebp - 0x5a4]
cmp dword [eax + 8], 0
je 0x49cb3e
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [eax + 8]
call fcn.0040b9e0
push dword [ebp - 0x5a4]
call fcn.004496f0
pop ecx
mov eax, dword [ebp - 0x574]
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x49c6a2
push 0
call fcn.0049c240
pop ecx
push dword [ebp - 0x58c]
call dword [0x4ea81c]
push dword [ebp - 0x58c]
call dword [0x4ea71c]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret