Function at 0x10001d60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bfc5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10041008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [0x10041ed8]
test al, 1
jne 0x10001dea
or eax, 1
mov dword [0x10041ed8], eax
mov byte [ebp - 4], 1
xor eax, eax
push 0x2f
push str.GlobalRCAV956808AE_AA59_4CA9_BEE3_EC5BD83F72F4
mov ecx, 0x10041ea8
mov dword [0x10041eb8], 0
mov dword [0x10041ebc], 7
mov word [0x10041ea8], ax
call fcn.10002920
push 0x10030970
call fcn.1002a9fa
add esp, 4
mov byte [ebp - 4], 0
push 0x10041ea8
lea ecx, [ebp - 0x28]
call fcn.100027e0
sub esp, 8
mov dword [ebp - 0x10], 1
lea ecx, [esi + 4]
push eax
call fcn.10012ad0
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10001e5b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001e51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001e51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
mov eax, dword [0x10041ea4]
test al, 1
jne 0x10001ec9
or eax, 1
mov dword [0x10041ea4], eax
mov byte [ebp - 4], 3
xor eax, eax
push 0x2f
push str.GlobalRCAVAC4A5AFE_1E23_408B_85BB_334341CD2E51
mov ecx, 0x10041ec0
mov dword [0x10041ed0], 0
mov dword [0x10041ed4], 7
mov word [0x10041ec0], ax
call fcn.10002920
push 0x10030910
call fcn.1002a9fa
add esp, 4
mov byte [ebp - 4], 2
push 0x10041ec0
lea ecx, [ebp - 0x28]
call fcn.100027e0
sub esp, 8
mov dword [ebp - 0x10], 2
lea ecx, [esi + 0x24]
push eax
call fcn.10012ad0
mov eax, 2
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10001f3a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001f30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001f30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
mov eax, dword [0x10041edc]
test al, 1
jne 0x10001fa8
or eax, 1
mov dword [0x10041edc], eax
mov byte [ebp - 4], 5
xor eax, eax
push 0x2f
push str.GlobalRCAV48F483DC_E03F_400D_A161_90F75666896A
mov ecx, 0x10041e70
mov dword [0x10041e80], 0
mov dword [0x10041e84], 7
mov word [0x10041e70], ax
call fcn.10002920
push 0x100309d0
call fcn.1002a9fa
add esp, 4
mov byte [ebp - 4], 4
push 0x10041e70
lea ecx, [ebp - 0x28]
call fcn.100027e0
mov dword [ebp - 0x10], 4
cmp dword [eax + 0x14], 8
jb 0x10001fc4
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
mov eax, 4
mov dword [ebp - 0x10], eax
and eax, 0xfffffffb
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10002023
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002019
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [esi + 0x44], eax
je 0x1000205c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000205c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000206a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000207f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret