Function at 0x10006090
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x100eaaac], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10006123
call fcn.10003b60
mov dword [ebp - 8], eax
mov ecx, edx
sub eax, dword [0x100eaf78]
mov bl, 1
mov dword [ebp - 0xc], ecx
sbb ecx, dword [0x100eaf7c]
cmp ecx, 1
jb 0x10006105
ja 0x100060d7
cmp eax, 0x2a05f200
jbe 0x10006105
push 0x100eabb8
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne bl
test eax, eax
je 0x100060f5
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [0x100eaf78], eax
mov eax, dword [ebp - 0xc]
mov dword [0x100eaf7c], eax
push 0
push dword [0x100ea98c]
call esi
test eax, eax
je 0x10006117
test bl, bl
jne 0x1000611c
call fcn.10006380
cmp byte [0x100eaaac], 0
mov ebx, dword [ebp + 8]
jne 0x10006179
push 0
push dword [0x100ea988]
call esi
test eax, eax
jne 0x10006179
push 0x100eabb8
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
je 0x10006159
push eax
call edi
mov cl, byte [ebp - 1]
test cl, cl
je 0x10006179
mov eax, dword [0x100ea984]
test eax, eax
je 0x1000616b
cmp eax, 0xffffffff
jne 0x10006170
call fcn.100038e0
push ebx
call fcn.100064a0
add esp, 4
cmp byte [0x100eaaac], 0
je 0x1000636f
mov eax, dword [0x100ea980]
mov esi, dword [eax + 0x38]
mov edi, dword [eax + 0x3c]
mov eax, esi
or eax, edi
je 0x10006201
call fcn.10003b60
mov ebx, dword [0x100eaf74]
mov ecx, eax
sub eax, dword [0x100eaf70]
mov dword [ebp - 8], edx
sbb dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], edi
jb 0x1000636f
ja 0x100061c6
cmp eax, esi
jb 0x1000636f
mov eax, edi
mov ebx, esi
shld eax, ebx, 1
add ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 8], eax
jb 0x100061e5
ja 0x100061f5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
ja 0x100061f5
mov ecx, dword [0x100eaf70]
mov edx, dword [0x100eaf74]
add ecx, esi
adc edx, edi
mov dword [0x100eaf70], ecx
mov dword [0x100eaf74], edx
mov ecx, dword [0x100eb09c]
cmp ecx, ebx
je 0x10006217
call fcn.10006380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x100eb0b0], 0
je 0x10006253
mov eax, dword [ecx]
push 0
push 0
push dword [0x100eb0b4]
push 0
push dword [ebp + 0xc]
push ecx
call dword [eax + 0x88]
test eax, eax
jns 0x1000634b
push eax
push str.d3d9_shtex_capture:_StretchRect_failed
call fcn.100037f0
add esp, 8
jmp 0x1000634b
mov eax, dword [0x100eb0f8]
mov ecx, 3
inc eax
cdq
idiv ecx
mov esi, edx
cmp byte [esi + 0x100eb0ef], 0
mov edi, dword [esi*4 + 0x100eb0d0]
je 0x100062b5
mov ecx, dword [esi*4 + 0x100eb0dc]
push 0
push 0
push 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
test eax, eax
jne 0x100062b5
push 0x10
push 0
mov byte [esi + 0x100eb0ef], al
lea ecx, [ebp - 0x18]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x34]
test eax, eax
js 0x100062b5
push dword [ebp - 0x14]
mov byte [esi + 0x100eb0ec], 1
push esi
call fcn.10003bd0
add esp, 8
mov eax, dword [0x100eb0fc]
cmp eax, 2
jge 0x100062c7
inc eax
mov dword [0x100eb0fc], eax
jmp 0x10006345
mov eax, dword [0x100eb0f8]
push eax
mov edi, dword [eax*4 + 0x100eb0d0]
call fcn.10003c10
add esp, 4
test al, al
je 0x10006300
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
mov eax, dword [0x100eb0f8]
mov byte [eax + 0x100eb0ec], 0
push dword [0x100eb0f8]
call fcn.10003c60
add esp, 4
mov ecx, dword [0x100eb09c]
push edi
push dword [ebp + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x80]
test eax, eax
jns 0x10006325
push eax
push str.d3d9_shmem_capture:_GetRenderTargetData_failed
call fcn.100037f0
add esp, 8
mov eax, dword [0x100eb0f8]
push 1
mov eax, dword [eax*4 + 0x100eb0dc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [0x100eb0f8]
mov byte [eax + 0x100eb0ef], 1
mov dword [0x100eb0f8], esi
push dword [0x100ea994]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1000636f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.d3d9_capture:_Failed_to_signal_frame_ready:__d
call fcn.10003740
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret