Function at 0x100328e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x28], 0x413fbbec
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], 0x432dd827
mov dword [esp + 0x30], 0x86ff2485
mov dword [esp + 0x34], 0x7d48dd16
test eax, eax
je 0x10032929
push eax
call fcn.1009c348
add esp, 4
mov dword [ebx + 0xc], 0
push str.__G65DDCAPI_MUTEX__
push 0
push 0
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
je 0x1003298a
push 0x28a0
call fcn.1009c863
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100329b8
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test esi, esi
je 0x100329ad
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
lea eax, [esp + 0x54]
mov dword [esp + 0x38], 0
push eax
xor edi, edi
mov dword [esp + 0x58], 0x1c
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], edi
push eax
push edi
push ebx
mov byte [esp + 0x27], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x10032bf1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp edi, 0x20
jae 0x10032bf1
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea eax, [esp + 0x64]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10032bcc
mov edi, dword [esp + 0x18]
inc edi
push edi
mov dword [esp + 0x1c], edi
call fcn.1009c863
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10032c2a
push edi
push 0
push ebx
call fcn.100a1230
add esp, 0xc
mov dword [ebx], 5
lea eax, [esp + 0x18]
push 0
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x60]
push ebx
push eax
push dword [esp + 0x34]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x10032bbb
push 0
push 0
push 3
push 0
push 0
lea eax, [ebx + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10032bbb
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
lea eax, [esp + 0x40]
push eax
push 0x13
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push 0x222804
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10032bb4
mov al, byte [esp + 0x42]
dec al
cmp al, 1
ja 0x10032bb4
mov eax, 0x14e0
cmp word [esp + 0x43], ax
jne 0x10032bb4
mov eax, 0x1305
cmp word [esp + 0x45], ax
jne 0x10032bb4
cmp word [esp + 0x40], 5
je 0x10032b29
cmp byte [esp + 0x13], 0
je 0x10032b1f
push 0x42030
push str.G65DDCAPI
push str.Mismatched_G65DDC_device_driver_detected._nPlease_be_sure_both_driver_and_API_are_from_the_same_release.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x13], 0
jmp 0x10032bb4
lea eax, [esp + 0x70]
mov ecx, edi
push eax
lea edx, [esp + 0x44]
call fcn.100234a0
add esp, 4
test al, al
je 0x10032bb4
mov ecx, dword [esp + 0x14]
call fcn.1001f0f0
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x42]
push 0x104
mov byte [ecx + 0x104], al
lea eax, [ebx + 4]
push eax
push ecx
call fcn.1009d5e0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
push dword [eax + 4]
lea eax, [esp + 0x5b]
push eax
call fcn.100209a0
mov al, byte [esp + 0x56]
add esp, 0x14
inc dword [esp + 0x24]
add dword [esp + 0x14], 0x145
cmp al, 1
je 0x10032b99
cmp al, 2
jne 0x10032bb4
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0x2228b4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1009c348
mov ebx, dword [esp + 0x24]
add esp, 4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
inc eax
push eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100329f6
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test edi, edi
je 0x10032c45
imul eax, edi, 0x145
push eax
push dword [esp + 0x20]
call fcn.1009d704
mov ecx, dword [ebp + 8]
add esp, 8
push 0
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 1
jmp 0x1003298c
push dword [esp + 0x20]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push dword [esp + 0x1c]
call fcn.1009c348
add esp, 4
jmp 0x10032982
push dword [esp + 0x1c]
call fcn.1009c348
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 1
jmp 0x1003298c