Function at 0x40bf50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x49b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x104
call fcn.00464304
add esp, 8
mov dword [0x49d5e4], eax
test eax, eax
je 0x40c119
push 0x104
push eax
push dword [0x49d598]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov ecx, dword [0x49d5e4]
mov edx, str..dat
call fcn.0045e7f0
push 2
push 0x208
call fcn.00464304
mov edx, dword [0x49d5e4]
add esp, 8
mov dword [0x49d53c], eax
nop
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40bfc0
push 0x5c
push dword [0x49d53c]
call fcn.00461d55
add esp, 8
xor ecx, ecx
test eax, eax
je 0x40bfed
mov word [eax + 2], cx
jmp 0x40bff5
mov eax, dword [0x49d53c]
mov word [eax], cx
mov edx, dword [0x49d53c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c000
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 [0x49d598]
call ebx
cmp dword [0x49d3b0], 0
jne 0x40c12c
mov ecx, dword [0x49d53c]
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 0x40c050
lea ecx, [ebp - 0x20c]
call fcn.0045e870
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c074
mov eax, dword [str.mmfs2.dll]
mov dword [ecx], eax
mov eax, dword [0x48cf70]
mov dword [ecx + 4], eax
mov eax, dword [0x48cf74]
mov dword [ecx + 8], eax
mov eax, dword [0x48cf78]
mov dword [ecx + 0xc], eax
mov eax, dword [0x48cf7c]
push 0
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [0x49d3b0], eax
test eax, eax
jne 0x40c12c
push 2
push 0x204
call fcn.00464304
mov edi, eax
add esp, 8
test edi, edi
je 0x40c119
push 0x80
lea esi, [edi + 0x308]
push esi
push 0xc6
push dword [0x49d598]
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 [0x49d5a8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.0046431a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046082b
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 [0x49d7bc], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
call fcn.0040b6c0
push dword [0x49d7bc]
test eax, eax
je 0x40c171
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.0046082b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov ecx, dword [0x49d53c]
test ecx, ecx
je 0x40c1d4
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 0x40c190
lea ecx, [ebp - 0x20c]
call fcn.0045e870
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c1b4
mov ecx, 9
mov esi, str.FormattedText.dll
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x20c]
jmp 0x40c1d9
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 [0x49d540], eax
test eax, eax
je 0x40c2ce
push str.getRunInfo
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40c2ce
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004621a0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push 0x49d598
call esi
test eax, eax
jne 0x40c2ce
mov eax, dword [ebp - 0x238]
mov dword [0x49d794], eax
mov eax, dword [ebp - 0x240]
mov dword [0x49d798], eax
mov eax, dword [ebp - 0x23c]
mov dword [0x49d79c], eax
mov eax, dword [ebp - 0x234]
mov dword [0x49d7a0], eax
mov eax, dword [ebp - 0x230]
mov dword [fcn.00421830], eax
mov eax, dword [ebp - 0x22c]
mov dword [fcn.00421830], eax
mov eax, dword [ebp - 0x228]
mov dword [fcn.00421660], eax
mov eax, dword [ebp - 0x220]
mov dword [0x49c0bc], eax
mov eax, dword [ebp - 0x224]
mov dword [fcn.00421830], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x49c02c], eax
mov eax, dword [ebp - 0x218]
mov dword [0x49bdec], eax
mov eax, dword [ebp - 0x214]
mov dword [0x49bbcc], eax
mov eax, dword [ebp - 0x210]
mov dword [0x49b9ac], eax
push ebx
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046082b
mov esp, ebp
pop ebp
ret