Function at 0x1000cef0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10225c68
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1029912c]
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
mov dword [ebp - 0x4c], ebx
mov edi, dword [ebp + 8]
push str.AP_Run
mov dword [ebp - 0x48], 0
call fcn.1000bbb0
add esp, 4
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push 0
push eax
push 1
push str.D:P_A_OICI_GA___SY__A_OICI_GA___BA__A_OICI_GWGR___IU__A_OICI_GA___AU_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
push str.Global_Guid__499D40B1_D0D6_4336_9AAF_DD7A5B535923___
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000cf8a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x3ea
jmp 0x1000d091
push edi
mov ecx, ebx
call fcn.1000ccd0
test al, al
jne 0x1000cfa0
mov ebx, 0x3e9
jmp 0x1000d091
cmp dword [ebx + 0xbc], 0
jne 0x1000cfb3
mov ebx, 0x3ef
jmp 0x1000d091
lea ecx, [ebx + 0x4c]
xor edx, edx
call fcn.10003b40
movzx eax, al
push eax
push str.ReportStart:_d
call fcn.1000bbb0
mov edi, dword [ebx + 0xc4]
add esp, 8
mov esi, dword [edi]
cmp esi, edi
je 0x1000cffa
nop word [eax + eax]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x1000d091
mov esi, dword [esi]
cmp esi, edi
jne 0x1000cfe0
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x44]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x1000d08e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [ebp - 0x40]
cmp edx, 0x104
jne 0x1000d02d
cmp dword [ebp - 0x3c], 0x73
je 0x1000d07e
jmp 0x1000d074
cmp edx, 0x100
jne 0x1000d074
mov ebx, dword [ebp - 0x3c]
cmp ebx, 0x1b
jne 0x1000d06e
mov eax, dword [ebp - 0x4c]
mov edi, dword [eax + 0xc4]
mov esi, dword [edi]
cmp esi, edi
je 0x1000d06e
nop dword [eax]
mov ecx, dword [esi + 8]
push ebx
push dword [ebp - 0x38]
mov eax, dword [ecx]
push edx
push dword [ebp - 0x44]
call dword [eax + 8]
mov esi, dword [esi]
cmp esi, edi
je 0x1000d06e
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
jmp 0x1000d050
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call ebx
test eax, eax
jne 0x1000d010
mov ebx, dword [ebp - 0x48]
push ebx
push str.err_code:_d
call fcn.1000bbb0
add esp, 8
cmp ebx, 0x3ea
jne 0x1000d0bd
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, ebx
jmp 0x1000d164
test ebx, ebx
je 0x1000d155
jns 0x1000d0de
mov eax, ebx
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10008480
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x1000d0ea
lea eax, [ebp - 0x13]
push ebx
push eax
call fcn.10008480
mov ecx, eax
lea eax, [ebp - 0x13]
mov dword [ebp - 0x30], 0
add esp, 8
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, eax
je 0x1000d112
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.100025c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10004130
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1000d151
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d147
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d182
push edx
push ecx
call fcn.101d50ac
add esp, 8
mov eax, ebx
jmp 0x1000d164
push str.AP_Stop
call fcn.1000bbb0
add esp, 4
xor eax, eax
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.101d506b
mov esp, ebp
pop ebp
ret 4
call fcn.101f0b28
int3