Function at 0x102ff76
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x103d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
push edi
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
push 0x101ccc8
mov ebx, 0x10004
push ebx
mov edi, 0x1000000
push edi
push edx
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1b4], esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
push eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], edx
call esi
mov eax, dword [0x103d0a8]
add esp, 0x14
test eax, eax
jne 0x103001e
push 0x101cca8
mov dword [ebp - 0x1a0], 6
push 0x10002
jmp 0x103065a
push 0x101cc90
push eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov dword [ebp - 0x1bc], eax
test eax, eax
jne 0x1030062
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101cc54
push 0x10002
push edi
push dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
push dword [ebp - 0x19c]
call esi
add esp, 0x18
jmp 0x1030344
lea eax, [ebp - 0x1d4]
push eax
mov dword [ebp - 0x1d4], 0x28
call fcn.0102e017
push 0
push 0xc8
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x10300ab
mov dword [ebp - 0x1a0], 0xe0000205
jmp 0x103066c
push dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1a4]
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x194]
mov dword [eax], 0x28
mov dword [eax + 4], ecx
call fcn.0102d8d4
test eax, eax
je 0x10300e2
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x20], 1
cmp dword [0x103d0ac], 0
jne 0x1030310
push 0x101cbe0
push 1
push 0
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateMutexW]
mov dword [ebp - 0x1a8], eax
test eax, eax
jne 0x1030133
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101cbac
push 1
push edi
push dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
push dword [ebp - 0x19c]
call esi
add esp, 0x18
jmp 0x103031a
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x10301f1
push 0x1007ea8
push 0
push 0x100000
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_OpenEventW]
mov dword [ebp - 0x1b4], eax
test eax, eax
jne 0x103018d
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101cb84
jmp 0x1030114
cmp eax, 0x80
je 0x10301e5
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x103030a
cmp dword [0x103d0ac], 0
jne 0x1030310
push 0x101cb58
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
add esp, 0x14
push dword [0x103d09c]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov eax, dword [ebp - 0x1a8]
push 0
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1b4]
push 0xea60
mov dword [ebp - 0x1c8], eax
push 0
lea eax, [ebp - 0x1cc]
push eax
push 2
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x103016e
push dword [0x103d09c]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
push 0x101cb30
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
add esp, 0x14
cmp dword [0x103d0ac], 0
jne 0x103036b
cmp dword [0x103d08c], 0
je 0x103026d
mov al, byte [0x103d090]
cmp al, 4
jae 0x103022c
test al, al
jne 0x103026d
mov ecx, dword [0x103d07c]
mov edx, 0x10010000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x103026d
mov ecx, dword [0x103d084]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x103d080]
jne 0x103026d
cmp eax, ecx
jne 0x103026d
push 0x1007d68
push dword [0x103d064]
push dword [0x103d060]
call fcn.0102d202
push dword [ebp - 0x1a4]
mov dword [0x103d0b0], 1
call dword [ebp - 0x1bc]
test eax, eax
je 0x1030291
mov dword [ebp - 0x1b8], 1
and dword [0x103d0b0], 0
cmp dword [0x103d08c], 0
je 0x10302ef
mov al, byte [0x103d090]
cmp al, 4
jae 0x10302ae
test al, al
jne 0x10302ef
mov ecx, dword [0x103d07c]
mov edx, 0x10010000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x10302ef
mov ecx, dword [0x103d084]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x103d080]
jne 0x10302ef
cmp eax, ecx
jne 0x10302ef
push 0x1007d78
push dword [0x103d064]
push dword [0x103d060]
call fcn.0102d202
cmp dword [0x103d0b4], 0
je 0x103036b
and dword [0x103d0b4], 0
push 0x5b4
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitThread]
mov dword [0x103d0ac], ecx
mov dword [ebp - 0x1a0], 0xe0000228
cmp dword [ebp - 0x1a8], 0
je 0x103032f
push dword [ebp - 0x1a8]
call dword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x1b4], 0
je 0x1030344
push dword [ebp - 0x1b4]
call dword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x1a0], 0xe0000228
jne 0x103066c
cmp dword [0x103d0ac], 0
je 0x1030654
push 0x101cb08
jmp 0x1030659
push 0x101cad8
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
add esp, 0x14
push dword [ebp - 0x1a8]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_ReleaseMutex]
cmp dword [0x103d0ac], 0
jne 0x1030310
cmp dword [ebp - 0x1b8], 0
je 0x1030310
push 0x101cac0
push dword [0x103d0a8]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
push 0x101caa8
push dword [0x103d0a8]
mov dword [ebp - 0x1b8], eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov dword [ebp - 0x1d8], eax
test eax, eax
je 0x103063e
cmp dword [ebp - 0x1b8], 0
je 0x103063e
mov eax, dword [ebp - 0x1a4]
push 0
push 0x2710
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.01034c10
and dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], edx
and dword [ebp - 0x1bc], 0x80000000
and edx, 0x7fffffff
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
fild qword [ebp - 0x1e0]
push ecx
fild qword [ebp - 0x1c0]
push ecx
fchs
faddp st(1)
fdiv qword [0x101caa0]
fstp qword [esp]
push 0x101ca64
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
mov eax, dword [ebp - 0x1a4]
add esp, 0x1c
push 0
push 0x2710
push dword [eax + 0x1c]
mov dword [ebp - 0x1d4], 0x1f
push dword [eax + 0x18]
call fcn.01034c10
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.0102e017
mov eax, dword [ebp - 0x1a4]
and dword [eax + 0xc], 0
mov dword [eax + 8], 0x102ff50
cmp dword [0x103d08c], 0
je 0x1030509
mov cl, byte [0x103d090]
cmp cl, 4
jae 0x10304bd
test cl, cl
jne 0x1030509
mov edx, dword [0x103d07c]
and edx, 0x10010000
xor ecx, ecx
or ecx, edx
je 0x1030509
mov ecx, dword [0x103d084]
xor edx, edx
and ecx, 0x10010000
cmp edx, dword [0x103d080]
jne 0x1030509
cmp ecx, dword [0x103d084]
jne 0x1030509
push 0x1007d88
push dword [0x103d064]
push dword [0x103d060]
call fcn.0102d202
mov eax, dword [ebp - 0x1a4]
push eax
call dword [ebp - 0x1b8]
cmp dword [0x103d08c], 0
mov dword [ebp - 0x1bc], eax
je 0x103056d
mov al, byte [0x103d090]
cmp al, 4
jae 0x103052c
test al, al
jne 0x103056d
mov ecx, dword [0x103d07c]
mov edx, 0x10010000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x103056d
mov ecx, dword [0x103d084]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x103d080]
jne 0x103056d
cmp eax, ecx
jne 0x103056d
push 0x1007d98
push dword [0x103d064]
push dword [0x103d060]
call fcn.0102d202
cmp dword [0x103d0ac], 0
jne 0x1030310
cmp dword [ebp - 0x1bc], 0
je 0x103031a
push 0x104
push dword [ebp - 0x1c4]
push dword [ebp - 0x1a4]
call dword [ebp - 0x1d8]
test eax, eax
je 0x103062c
push dword [ebp - 0x1c4]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call fcn.0102fec3
test eax, eax
je 0x103062c
push 2
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x10305e7
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101ca2c
jmp 0x103064a
push 0x101ca00
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
add esp, 0x14
push dword [ebp + 0x10]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call fcn.0102d5a8
test eax, eax
jne 0x103031a
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 0x1a0], eax
jmp 0x103031a
cmp dword [0x103d0ac], 0
je 0x103031a
jmp 0x1030310
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101c9c4
push 0x10002
jmp 0x1030116
push 0x101c9a0
push ebx
push edi
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call esi
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01034b90
leave
ret 0x14