Function at 0x401a60
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 0xffffffffffffffff
push 0x415cba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1484
call fcn.00415900
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.OnlyOneInstanceExamplek
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401aad
push 0
call dword [sym.imp.MSVCRT.dll_exit]
call fcn.00401100
test eax, eax
je 0x401b97
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x8d3]
mov byte [ebp - 0x8d4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x8d4]
push eax
call fcn.004126e0
add esp, 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x8d4]
lea edx, [ebp - 0x14]
push ecx
push 0x41a408
push edx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push str.lib.rar
push eax
push ecx
call sub.MFC42.DLL_operator
mov ebx, 1
lea edx, [ebp - 0x14]
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], bl
call fcn.004018b0
add esp, 0xc
mov byte [ebp - 4], 0
test al, al
lea ecx, [ebp - 0x1c]
jne 0x401b83
call fcn.00415882
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00415882
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00415882
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00415882
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
lea ecx, [ebp - 0x4d4]
push ecx
call fcn.004126e0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x3cf]
mov byte [ebp - 0x3d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x2cf]
mov byte [ebp - 0x2d0], 0
rep stosd dword es:[edi], eax
add esp, 4
lea edx, [ebp - 0x3d0]
stosw word es:[edi], ax
push edx
push 0x100
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x18]
call fcn.00411340
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x18]
push eax
push str.NIMS_update_sub.exe
mov dword [ebp - 4], 3
call fcn.004113f0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x2d0]
lea edx, [ebp - 0x2d0]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x3d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x2d0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NIMS_update_sub.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x2d0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
call fcn.00411380
push ecx
lea edx, [ebp - 0x4d4]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push 0
push str.SearchCard.exe
call fcn.00401fe0
add esp, 0xc
test eax, eax
je 0x401cbb
push 0x457
call ebx
call fcn.00402160
lea ecx, [ebp - 0x1494]
call fcn.004022d0
lea ecx, [ebp - 0x1494]
mov byte [ebp - 4], 4
call fcn.00407cc0
lea ecx, [ebp - 0x1d0]
call fcn.00410240
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 5
call fcn.00413d20
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 6
call fcn.004143c0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004133e0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 8
call fcn.004150e0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
call fcn.00414a70
lea ecx, [ebp - 0x1494]
mov byte [ebp - 4], 0xb
call fcn.00402790
lea ecx, [ebp - 0x1d0]
call fcn.00411bb0
jmp 0x401d67
push 0x3e8
mov dword [ebp - 4], 0xa
call ebx
lea ecx, [ebp - 0x164]
call fcn.00411bb0
lea ecx, [ebp - 0xe4]
call fcn.00411bb0
lea ecx, [ebp - 0x64]
call fcn.00411bb0
lea ecx, [ebp - 0x124]
call fcn.00411bb0
lea ecx, [ebp - 0xa4]
call fcn.00411bb0
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1d0]
call fcn.00411bf0
lea ecx, [ebp - 0x1494]
call fcn.004028e0
lea ecx, [ebp - 0x164]
call fcn.00411bf0
lea ecx, [ebp - 0xe4]
call fcn.00411bf0
lea ecx, [ebp - 0x64]
call fcn.00411bf0
lea ecx, [ebp - 0x124]
call fcn.00411bf0
lea ecx, [ebp - 0xa4]
call fcn.00411bf0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
call fcn.00414ab0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 8
call fcn.00415120
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.00413420
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 6
call fcn.00414400
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 5
call fcn.00413d60
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 4
call fcn.004102b0
lea ecx, [ebp - 0x1494]
mov byte [ebp - 4], 3
call fcn.00402400
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00411370
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret