Function at 0x4a8030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x687244
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0x24
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.EB73A3BC_D90F_4935_9FD9_62B371BF0A82
mov word [ecx], ax
call fcn.00459550
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0046d780
add esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - method.Mutex.virtual_0], vtable.Mutex.0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x464], edi
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a80db
mov esi, 2
jmp 0x4a8410
push 0
lea eax, [ebp - 0x478]
mov dword [ebp - 0x478], 1
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x474], 0
push eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0x77596c
movups xmmword [ebp - 0x45c], xmm0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 3
mov edi, dword [0x7aa594]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x7aa7c0]
push 4
mov dword [ebp - 0x428], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.0065e6cf
add esp, 0xc
test eax, eax
je 0x4a81c1
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.0065e6cf
add esp, 0xc
test eax, eax
je 0x4a81c1
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4a81b2
mov eax, dword [ebp - 0x428]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x4a81be
lea ecx, [ebp - 0x460]
mov dword [eax], ecx
inc dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
call fcn.0047fd10
cmp al, 1
jne 0x4a81e4
call fcn.00480340
cmp eax, 0xb
je 0x4a81e4
xor esi, esi
jmp 0x4a839c
push ebx
lea ecx, [ebp - 0x420]
call fcn.0049fb60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x3fc], 0
jne 0x4a8208
lea ecx, [ebp - 0x420]
call fcn.004ad040
mov eax, dword [ebp - 0x40c]
test eax, eax
jne 0x4a8230
call fcn.006205f1
mov dword [ebp - 0x40c], eax
test eax, eax
jne 0x4a8230
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4a8391
push 0
push 0
push eax
call fcn.006206f3
lea eax, [ebp - 0x420]
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x79dd0c
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x79dd24]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x418]
push 0x79dd0c
mov dword [0x79dd24], eax
call esi
push 0
push 0x4a4090
push 0
push dword [ebp - 0x3fc]
push dword [0x7a98e8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
jne 0x4a82a0
xor esi, esi
jmp 0x4a8391
push 5
push dword [ebp - 0x41c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax + eax]
test ebx, ebx
je 0x4a82f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x444]
push eax
call edi
test eax, eax
jne 0x4a82f0
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x4a82c4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4a82c0
test eax, eax
je 0x4a8386
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
call dword [eax]
test eax, eax
jne 0x4a833f
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x440]
cmp eax, 0x118
ja 0x4a835a
je 0x4a8376
cmp eax, 0xf
je 0x4a8376
cmp eax, 0xa0
jmp 0x4a835f
cmp eax, 0x200
je 0x4a8376
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4a82c0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4a82c0
mov esi, dword [ebp - 0x43c]
call fcn.004b6a10
lea ecx, [ebp - 0x420]
call fcn.004a0190
mov eax, dword [ebp - 0x450]
test eax, eax
je 0x4a83b9
push eax
call fcn.00659210
add esp, 4
mov dword [ebp - 0x450], 0
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
test eax, eax
je 0x4a83ea
push eax
call fcn.00659210
add esp, 4
mov dword [ebp - 0x45c], 0
push dword [ebp - 0x424]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov edi, dword [ebp - 0x464]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00453390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret