Function at 0x4a7d60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x686eb4
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 0x4a7e0b
mov esi, 2
jmp 0x4a8140
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], 0x775a1c
movups xmmword [ebp - 0x45c], xmm0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 3
mov edi, dword [0x7aa574]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x7aa7a0]
push 4
mov dword [ebp - 0x428], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.0065e37f
add esp, 0xc
test eax, eax
je 0x4a7ef1
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.0065e37f
add esp, 0xc
test eax, eax
je 0x4a7ef1
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4a7ee2
mov eax, dword [ebp - 0x428]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x4a7eee
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 0x4a7f14
call fcn.00480340
cmp eax, 0xb
je 0x4a7f14
xor esi, esi
jmp 0x4a80cc
push ebx
lea ecx, [ebp - 0x420]
call fcn.0049f890
mov byte [ebp - 4], 4
cmp dword [ebp - 0x3fc], 0
jne 0x4a7f38
lea ecx, [ebp - 0x420]
call fcn.004acd60
mov eax, dword [ebp - 0x40c]
test eax, eax
jne 0x4a7f60
call fcn.006202a1
mov dword [ebp - 0x40c], eax
test eax, eax
jne 0x4a7f60
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4a80c1
push 0
push 0
push eax
call fcn.006203a3
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 0x4a3dc0
push 0
push dword [ebp - 0x3fc]
push dword [0x7a98c8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
jne 0x4a7fd0
xor esi, esi
jmp 0x4a80c1
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 0x4a8020
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x444]
push eax
call edi
test eax, eax
jne 0x4a8020
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x4a7ff4
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 0x4a7ff0
test eax, eax
je 0x4a80b6
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
call dword [eax]
test eax, eax
jne 0x4a806f
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 0x4a808a
je 0x4a80a6
cmp eax, 0xf
je 0x4a80a6
cmp eax, 0xa0
jmp 0x4a808f
cmp eax, 0x200
je 0x4a80a6
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4a7ff0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4a7ff0
mov esi, dword [ebp - 0x43c]
call fcn.004b6730
lea ecx, [ebp - 0x420]
call fcn.0049fec0
mov eax, dword [ebp - 0x450]
test eax, eax
je 0x4a80e9
push eax
call fcn.00658ebd
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 0x4a811a
push eax
call fcn.00658ebd
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.00611399
mov esp, ebp
pop ebp
ret