Function at 0x1000a830
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
push edi
push str.__G65DDCAPI_MUTEX__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x100da820
push 0x10
call fcn.1009c903
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000a923
push ebx
mov dword [ebx], vtable.g65ddc_device_enumerator.0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 1
call fcn.100328e0
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
call fcn.1009c348
mov dword [esi + 0xc], 0
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1000a8f4
mov dword [ebx], vtable.g65ddc_device_enumerator.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0xc]
mov esi, eax
call fcn.1009c348
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push ebx
call fcn.1009c777
add esp, 4
push 0
call esi
mov ebx, 1
jmp 0x1000a92d
xor ecx, ecx
mov eax, esi
mov edx, 0x154
mul edx
push 0x100da820
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009c33f
mov edx, eax
add esp, 8
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x1000a95c
push ebx
call fcn.100328a0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1000a951
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x1000aa4a
xor ecx, ecx
add edx, 0x14c
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], edx
lea esp, [esp]
cmp eax, dword [ebx + 8]
jae 0x1000a9a8
mov esi, dword [ebx + 0xc]
lea edi, [ebp - 0x16c]
add esi, ecx
mov ecx, 0x51
rep movsd dword es:[edi], dword [esi]
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
jmp 0x1000a9b0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [ebp - 0x31], 4
je 0x1000aa2f
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x1000aa2f
mov cl, byte [ebp - 0x68]
test cl, cl
je 0x1000a9f2
dec cl
cmp cl, 1
ja 0x1000a9f2
mov ecx, eax
call fcn.10025fd0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
lea esi, [ebp - 0x16c]
mov ecx, 0x51
lea edi, [edx - 0x148]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x18]
inc edi
mov dword [edx - 0x14c], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 0x154
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x145
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
cmp eax, esi
jb 0x1000a980
mov dword [ebx], vtable.g65ddc_device_enumerator.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0xc]
mov esi, eax
call fcn.1009c348
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push ebx
call fcn.1009c777
add esp, 4
test edi, edi
jne 0x1000aa92
push dword [ebp - 0x10]
call fcn.1009c380
add esp, 4
push 0
call esi
mov ebx, 1
jmp 0x1000a92d
mov ebx, dword [ebp - 0x10]
push edi
push ebx
call fcn.1000abf0
mov eax, dword [ebp - 4]
xor edi, edi
test eax, eax
je 0x1000abe4
mov esi, ebx
mov ebx, eax
lea ecx, [ecx]
mov al, byte [esi + 0x108]
test al, al
je 0x1000aae8
dec al
cmp al, 1
ja 0x1000aae8
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xc], 0xd2
push eax
push 0
push 0
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xb], 0x501
push eax
push 0x222891
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x150], 0
jne 0x1000aafa
inc edi
add esi, 0x154
dec ebx
jne 0x1000aab0
test edi, edi
je 0x1000abdb
imul eax, dword [ebp - 4], 0x145
lea eax, [eax + edi*8]
push eax
call fcn.1009c863
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1000ab38
push dword [ebp - 0x10]
call fcn.1009c380
add esp, 4
jmp 0x1000a923
mov edx, dword [ebp - 4]
lea eax, [eax + edi*4]
mov dword [esi + 8], eax
lea ebx, [eax + edi*4]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
nop
cmp dword [eax + 0x150], 0
jne 0x1000abad
mov edx, eax
shl ecx, 2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], ecx
mov dword [ecx + eax], ebx
mov edi, edi
lea esi, [edx + 4]
mov edi, ebx
mov ecx, 0x51
add ebx, 0x145
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
movsb byte es:[edi], byte [esi]
mov edx, dword [edx + 0x14c]
test edx, edx
jne 0x1000ab70
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
mov dword [edx + eax], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
add eax, 0x154
dec edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edx
jne 0x1000ab50
push dword [ebp - 0x10]
mov dword [esi + 4], ecx
call fcn.1009c380
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 1
jmp 0x1000a92d
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x10]
push ebx
jmp 0x1000aa7c