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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x532e3a
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov eax, dword [0x58c3bc]
push str.TLFVRV2014INSTALL
push 1
push 0
mov edi, ecx
mov dword [0x58c320], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x58c340], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406ed2
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call fcn.0041968e
add esp, 4
call fcn.00405c20
push 0x55f140
mov ecx, edi
call fcn.00419b61
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x14e]
push eax
mov word [esp + 0x150], dx
call fcn.0050c890
add esp, 0xc
lea ecx, [esp + 0x144]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x144]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406be4
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0x16c]
lea eax, [esp + 0x148]
call fcn.00402350
push str._vrv_install.dll
lea edx, [esp + 0x148]
push 0x104
push edx
call fcn.0050b517
sub esp, 0x10
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea eax, [esp + 0x160]
mov ebx, 0x55f184
mov dword [esp + 0x2c], esp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x164]
call fcn.00402350
mov ecx, ebx
call fcn.0040b630
add esp, 0x1c
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x406f2f
push 0x55f18c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406f2f
push 3
call eax
mov dword [edi + 0x168], eax
test eax, eax
je 0x406f2f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push 1
call eax
mov ecx, dword [edi + 0x168]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 0
call eax
lea eax, [edi + 0x16c]
push eax
mov ebx, str.DirectUI.dll
lea esi, [esp + 0x20]
call fcn.00404800
add esp, 4
mov dword [esp + 0x360], 0
cmp dword [eax + 0x18], 8
jb 0x406cfa
mov eax, dword [eax + 4]
jmp 0x406cfd
add eax, 4
lea ecx, [edi + 0x104]
push ecx
call fcn.00402400
lea esi, [esp + 0x1c]
mov dword [esp + 0x360], 0xffffffff
call fcn.00402440
lea eax, [edi + 0x16c]
push eax
mov ebx, str.lua_skin_setup.dui
lea esi, [esp + 0x20]
call fcn.00404800
add esp, 4
mov dword [esp + 0x360], 1
cmp dword [eax + 0x18], 8
jb 0x406d4b
mov eax, dword [eax + 4]
jmp 0x406d4e
add eax, 4
lea edx, [edi + 0x120]
push edx
call fcn.00402400
lea esi, [esp + 0x1c]
mov dword [esp + 0x360], 0xffffffff
call fcn.00402440
lea eax, [edi + 0x16c]
push eax
mov ebx, str.lua_skin_setup.skn
lea esi, [esp + 0x3c]
call fcn.00404800
add esp, 4
mov dword [esp + 0x360], 2
cmp dword [eax + 0x18], 8
jb 0x406d9c
mov eax, dword [eax + 4]
jmp 0x406d9f
add eax, 4
lea ecx, [edi + 0x13c]
push ecx
call fcn.00402400
or ebx, 0xffffffff
lea esi, [esp + 0x38]
mov dword [esp + 0x360], ebx
call fcn.00402440
mov ecx, edi
mov dword [edi + 0x158], 1
call fcn.00402880
cmp dword [0x58c33c], 0
jne 0x406e0e
push 0x8c
call fcn.0040cd3c
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x360], 3
test eax, eax
je 0x406e00
push eax
call fcn.0040bf20
jmp 0x406e02
xor eax, eax
mov dword [esp + 0x360], ebx
mov dword [0x58c33c], eax
push 0x55f340
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.IsUserAnAdmin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x406e52
lea ecx, [eax + 1]
mov edi, 0x55f208
call fcn.0040c060
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x406e4b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call fcn.0050b177
call fcn.0040c310
test eax, eax
jne 0x406e75
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x406e6e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call fcn.0050b177
cmp dword [0x58b6e8], 2
jl 0x406ed9
mov edx, dword [0x58b6f0]
mov eax, dword [edx + 4]
push 0x55f22c
push eax
call fcn.0050b72c
add esp, 8
test eax, eax
jne 0x406ed9
mov ecx, dword [edi + 0x168]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 2
je 0x406ed2
mov ecx, dword [edi + 0x168]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 1
call eax
test eax, eax
je 0x406ecd
mov edi, dword [edi + 0x168]
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
call fcn.0040c5c0
mov eax, 1
jmp 0x406f31
lea ecx, [esp + 0x54]
push ecx
call fcn.004070f0
lea edx, [esp + 0x54]
mov dword [esp + 0x360], 4
mov ecx, edx
mov dword [edi + 0x20], edx
call fcn.0040d52d
mov eax, dword [0x58c33c]
mov esi, eax
test eax, eax
je 0x406f15
call fcn.0040bfa0
push esi
call fcn.0040cd6b
add esp, 4
lea ecx, [esp + 0x54]
mov dword [0x58c33c], 0
mov dword [esp + 0x360], ebx
call fcn.00402d20
xor eax, eax
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0050ab27
mov esp, ebp
pop ebp
ret