Function at 0x10003da0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100e5dd4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100eae63], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1000412e
cmp byte [0x100eae61], 0
jne 0x10003dee
call fcn.10005070
mov byte [0x100eae61], al
test al, al
jne 0x10003dee
mov byte [0x100eae63], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
call dword [0x100ead04]
call fcn.10003d10
test al, al
je 0x10003e02
call fcn.100042c0
cmp byte [0x100eaaac], 0
push ebx
push edi
jne 0x10003f55
push 0
push dword [0x100ea988]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003f48
push 0x100eabb8
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne bl
test eax, eax
je 0x10003e48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x10003f48
mov eax, dword [0x100ea984]
test eax, eax
je 0x10003e5e
cmp eax, 0xffffffff
jne 0x10003e63
call fcn.100038e0
push esi
call dword [sym.imp.USER32.dll_WindowFromDC]
cmp byte [0x100eae60], 0
xorps xmm0, xmm0
mov edi, eax
movups xmmword [ebp - 0x14], xmm0
je 0x10003e95
mov dword [0x100eae6c], 0x780
mov dword [0x100eae70], 0x438
jmp 0x10003f1f
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp eax, 1
jne 0x10003ec0
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x10003ec0
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x10003ec0
mov dword [0x100eae6c], eax
mov dword [0x100eae70], ecx
jmp 0x10003f1f
push 2
push edi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push ecx
push eax
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
mov dword [0x100eae6c], ecx
sub eax, edx
push eax
push ecx
push str.gl_init:_WARNING__Window_client_rect_is_null._Using_monitor_resolution_for_texture:__dx_d
mov dword [0x100eae70], eax
call fcn.10003740
add esp, 0xc
push edi
mov dword [0x100eae68], esi
mov dword [0x100eae74], 0x57
mov byte [0x100eae7c], 1
call fcn.100046a0
add esp, 4
test al, al
jne 0x10003f48
call fcn.100042c0
cmp byte [0x100eaaac], 0
je 0x1000412c
mov eax, dword [0x100ea980]
mov ebx, dword [eax + 0x3c]
mov edi, dword [eax + 0x38]
mov eax, edi
or eax, ebx
mov dword [ebp - 0x54], ebx
je 0x10003fcf
call fcn.10003b60
mov ebx, dword [0x100ead74]
mov ecx, eax
sub eax, dword [0x100ead70]
mov dword [ebp - 0x50], edx
sbb dword [ebp - 0x50], ebx
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x50], ebx
jb 0x1000412c
ja 0x10003f9b
cmp eax, edi
jb 0x1000412c
mov eax, dword [ebp - 0x54]
mov ebx, edi
shld eax, ebx, 1
add ebx, ebx
cmp dword [ebp - 0x50], eax
jb 0x10003fb2
ja 0x10003fc3
cmp dword [ebp - 0x58], ebx
ja 0x10003fc3
mov ecx, dword [0x100ead70]
mov edx, dword [0x100ead74]
add ecx, edi
adc edx, dword [ebp - 0x54]
mov dword [0x100ead70], ecx
mov dword [0x100ead74], edx
cmp esi, dword [0x100eae68]
jne 0x1000412c
push esi
call dword [sym.imp.USER32.dll_WindowFromDC]
cmp byte [0x100eae60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
je 0x10003ffe
mov ecx, 0x780
mov eax, 0x438
jmp 0x1000400f
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp ecx, dword [0x100eae6c]
jne 0x1000411f
cmp eax, dword [0x100eae70]
jne 0x1000411f
cmp byte [0x100eae7c], 0
je 0x10004109
push 0x100eae98
push 1
push dword [0x100eae94]
call dword [0x100ead68]
lea eax, [ebp - 0x60]
push eax
push 0x8ca6
call dword [0x100ead00]
call dword [0x100ead04]
test eax, eax
je 0x10004068
push eax
push str.failed_to_get_last_fbo
jmp 0x10004087
lea eax, [ebp - 0x5c]
push eax
push 0x8069
call dword [0x100ead00]
call dword [0x100ead04]
test eax, eax
je 0x100040aa
push eax
push str.failed_to_get_last_texture
push str.gl_shtex_capture
push str._s:__s:__lu
call fcn.10003740
add esp, 0x10
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
push dword [0x100eaea4]
call fcn.10004140
add esp, 4
push dword [ebp - 0x5c]
push 0xde1
call dword [0x100ead38]
push dword [ebp - 0x60]
push 0x8ca9
call dword [0x100ead44]
push 0x100eae98
push 1
push dword [0x100eae94]
call dword [0x100ead6c]
mov eax, dword [0x100eae90]
push 0
push 0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
call eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
call fcn.10004460
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x1000412c
test eax, eax
je 0x1000412c
call fcn.100042c0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10077d23
mov esp, ebp
pop ebp
ret