Function at 0x40c240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x49c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x104
call fcn.00464c74
add esp, 8
mov dword [0x49e5ec], eax
test eax, eax
je 0x40c409
push 0x104
push eax
push dword [0x49e5a0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x49e5ec]
mov edx, str..dat
call fcn.0045f150
push 2
push 0x208
call fcn.00464c74
mov edx, dword [0x49e5ec]
add esp, 8
mov dword [0x49e544], eax
nop
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40c2b0
push 0x5c
push dword [0x49e544]
call fcn.004626c5
add esp, 8
xor ecx, ecx
test eax, eax
je 0x40c2dd
mov word [eax + 2], cx
jmp 0x40c2e5
mov eax, dword [0x49e544]
mov word [eax], cx
mov edx, dword [0x49e544]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2f0
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
sub ecx, esi
sar ecx, 1
mov eax, 0x207
sub eax, ecx
push eax
lea eax, [edx + ecx*2]
push eax
push 0xa0
push dword [0x49e5a0]
call ebx
cmp dword [0x49e3b8], 0
jne 0x40c41c
mov ecx, dword [0x49e544]
lea edx, [ebp - 0x20c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c340
lea ecx, [ebp - 0x20c]
call fcn.0045f1d0
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c364
mov eax, dword [str.mmfs2.dll]
mov dword [ecx], eax
mov eax, dword [0x48df78]
mov dword [ecx + 4], eax
mov eax, dword [0x48df7c]
mov dword [ecx + 8], eax
mov eax, dword [0x48df80]
mov dword [ecx + 0xc], eax
mov eax, dword [0x48df84]
push 0
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x49e3b8], eax
test eax, eax
jne 0x40c41c
push 2
push 0x204
call fcn.00464c74
mov edi, eax
add esp, 8
test edi, edi
je 0x40c409
push 0x80
lea esi, [edi + 0x308]
push esi
push 0xc6
push dword [0x49e5a0]
call ebx
push str.mmfs2.dll
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
push 0
push edi
push dword [0x49e5b0]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00464c8a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461195
mov esp, ebp
pop ebp
ret
push str.cf25appsync
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [0x49e7cc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040b9c0
push dword [0x49e7cc]
test eax, eax
je 0x40c461
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461195
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x49e544]
test ecx, ecx
je 0x40c4c4
lea edx, [ebp - 0x20c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c480
lea ecx, [ebp - 0x20c]
call fcn.0045f1d0
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c4a4
mov ecx, 9
mov esi, str.FormattedText.dll
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x20c]
jmp 0x40c4c9
mov esi, str.FormattedText.dll
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x49e548], eax
test eax, eax
je 0x40c5be
push str.getRunInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40c5be
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00462b10
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push 0x49e5a0
call esi
test eax, eax
jne 0x40c5be
mov eax, dword [ebp - 0x238]
mov dword [0x49e7a4], eax
mov eax, dword [ebp - 0x240]
mov dword [0x49e7a8], eax
mov eax, dword [ebp - 0x23c]
mov dword [0x49e7ac], eax
mov eax, dword [ebp - 0x234]
mov dword [0x49e7b0], eax
mov eax, dword [ebp - 0x230]
mov dword [fcn.00421db0], eax
mov eax, dword [ebp - 0x22c]
mov dword [fcn.00421db0], eax
mov eax, dword [ebp - 0x228]
mov dword [fcn.00421be0], eax
mov eax, dword [ebp - 0x220]
mov dword [0x49d0bc], eax
mov eax, dword [ebp - 0x224]
mov dword [fcn.00421db0], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x49d02c], eax
mov eax, dword [ebp - 0x218]
mov dword [0x49cdec], eax
mov eax, dword [ebp - 0x214]
mov dword [0x49cbcc], eax
mov eax, dword [ebp - 0x210]
mov dword [0x49c9ac], eax
push ebx
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461195
mov esp, ebp
pop ebp
ret