Function at 0x6fa833f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x60], eax
test eax, eax
je 0x6fa83548
mov esi, eax
jmp 0x6fa83417
mov esi, dword [esi + 4]
test esi, esi
je 0x6fa8341c
cmp dword [esi], 0x32
jne 0x6fa83410
mov edi, dword [ebp - 0x60]
jmp 0x6fa83433
mov edi, dword [edi + 4]
test edi, edi
je 0x6fa83540
cmp dword [edi], 0x3b9bdf5c
jne 0x6fa83428
mov eax, dword [section..bss]
test eax, eax
je 0x6fa836d0
mov dword [esp + 8], str.display_device_init
lea ebx, [esi + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov dword [ebp - 0x68], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6fa9b080
mov dword [esp], 0x6fa9bb40
call sub.setupapi.dll_SetupDiGetClassDevsW
mov dword [ebp - 0x34], 0x1c
mov ecx, eax
mov dword [ebp - 0x64], eax
sub esp, 0x10
lea eax, [edi + 8]
test edi, edi
mov dword [ebp - 0x70], edi
cmove eax, ebx
mov dword [ebp - 0x6c], esi
lea ebx, [ebp - 0x34]
mov esi, ecx
mov dword [ebp - 0x5c], eax
xor eax, eax
lea esi, [esi]
mov dword [esp + 8], ebx
lea edi, [eax + 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.setupapi.dll_SetupDiEnumDeviceInfo
sub esp, 0xc
test eax, eax
je 0x6fa83620
lea eax, [ebp - 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6fa9b608
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
sub esp, 0x20
test eax, eax
je 0x6fa83539
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
je 0x6fa83550
mov eax, edi
jmp 0x6fa834d0
test esi, esi
jne 0x6fa8343b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x40], eax
jne 0x6fa83539
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x3c], eax
jne 0x6fa83539
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x38], eax
jne 0x6fa83539
lea eax, [ebp - 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6fa9b61c
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
sub esp, 0x20
test eax, eax
je 0x6fa83539
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
mov dword [esp], eax
call sub.setupapi.dll_SetupDiDestroyDeviceInfoList
mov ebx, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x6fa83713
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [edi + 0x34], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
test esi, esi
je 0x6fa83709
mov dword [esi + 0x28], eax
mov eax, 1
mov dword [esi + 0x2c], edx
jmp 0x6fa83667
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
mov dword [esp], eax
call sub.setupapi.dll_SetupDiDestroyDeviceInfoList
mov ebx, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x6fa83661
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
xor eax, eax
test esi, esi
je 0x6fa8366d
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
test byte [0x6fa99018], 8
je 0x6fa83548
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x48]
add eax, 0x1c
mov dword [esp + 0xc], str.deviceName:_s_deviceLUIDValid:_d_LUID:_08lx:_08lx_deviceNodeMask:_x._n
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fill_luid_property
mov dword [esp + 4], 0x6fa99018
mov dword [esp], 3
call fcn.6fa833a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [section..bss], 1
sub esp, 0x10
jmp 0x6fa83448
mov eax, 1
jmp 0x6fa8366d
test esi, esi
je 0x6fa83709
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x6fa8360b