Function at 0x409710
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0xa070
call fcn.00410d50
mov eax, dword [0x41a4a4]
push esi
push edi
xor edi, edi
push str.AAAAAA
push eax
mov dword [esp + 0x2c], edi
call fcn.00404e40
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [esp + 0x28], esi
jne 0x40974d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xa070
ret 0x10
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push 0x2000000
push edi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
cmp eax, edi
je 0x40976f
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [0x41a4a4], edi
je 0x4097bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x30]
push str.GlobalUUPP__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x28], eax
call fcn.00404f10
mov eax, dword [0x41a4a4]
push str.DDDDDD
push eax
call fcn.00404e40
add esp, 0xc
push ebx
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x68]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0x50
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call fcn.00401b50
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
test al, al
je 0x409840
cmp al, 3
je 0x409840
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x1f0003
call ebx
mov esi, eax
test esi, esi
jne 0x409830
push 0x3c
call ebp
inc edi
cmp edi, 0x7d0
jl 0x40980d
jmp 0x409840
lea ecx, [esp + 0x68]
call fcn.00402500
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
add edx, 6
push ecx
push edx
call fcn.00408f00
add esp, 4
push eax
call fcn.00409070
add esp, 0x1c
test al, al
jne 0x409885
mov byte [esp + 0x13], 1
jmp 0x4097ff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4098a1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
push 5
jmp 0x4098ae
push 0
push 0
push 0x438
push 0
push 0
lea ecx, [esp + 0x7c]
call fcn.004027c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.00401d10
test al, al
jne 0x4098e0
mov byte [esp + 0x13], 2
jmp 0x4097ff
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, esi
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x128]
push ecx
push edx
call fcn.00409470
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x130]
push 0
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x23c]
call fcn.00413650
lea edx, [esp + 0x224]
lea ecx, [esp + 0x68]
push edx
call fcn.004027b0
xor esi, esi
lea ecx, [esp + 0x224]
call fcn.00413bc0
test al, al
jne 0x40995a
push 0x3e8
call ebp
inc esi
cmp esi, 0xa
jl 0x40993d
lea ecx, [esp + 0x224]
call fcn.00413bc0
test al, al
jne 0x40997b
lea ecx, [esp + 0x224]
call fcn.00413750
jmp 0x4097ff
call edi
lea eax, [esp + 0x34]
push eax
push 0
push 0x1f0003
call ebx
push 0x64
mov esi, eax
mov ecx, dword [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
mov edi, eax
call ebp
test esi, esi
jne 0x4099bf
test edi, edi
jne 0x40997d
lea ecx, [esp + 0x224]
call fcn.00413750
jmp 0x4097ff
lea ecx, [esp + 0x68]
call fcn.00402500
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x224]
call fcn.00413750
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call esi
lea ecx, [esp + 0x68]
call fcn.00401c50
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xa070
ret 0x10