Function at 0x4029e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x42132b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x160]
mov ebx, 1
mov edi, ecx
mov dword [esp + 0x1c], edi
test byte [0x42ce00], bl
jne 0x402a6a
or dword [0x42ce00], ebx
push 0
push 0
push 0
mov byte [0x42cdfc], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x42cdf8], eax
test eax, eax
je 0x402a5d
mov byte [0x42cdfc], bl
push 0x421b30
call fcn.004138f4
add esp, 4
cmp byte [0x42cdfc], 0
je 0x402a81
mov eax, dword [0x42cdf8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
push 0
push 0
push 0x42c09c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x402ac6
push str.FindDevForHardID___SetupDiGetClassDevs_return_INVALID_HANDLE_VALUE.
call fcn.004124a0
add esp, 4
cmp byte [0x42cdfc], 0
je 0x402abe
mov ecx, dword [0x42cdf8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
jmp 0x402c93
push 0x104
lea edx, [esp + 0x48]
push 0
push edx
call fcn.004183e0
mov dword [ebp], 0x1c
mov esi, dword [edi + 0x70]
add esp, 0xc
cmp esi, dword [edi + 0x74]
jbe 0x402aee
call fcn.00413a68
mov edi, dword [edi + 0x64]
mov ebx, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
jmp 0x402b00
push 0xd
xor esi, esi
push str.vid_12d1pid_
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
call fcn.00401c30
mov dword [esp + 0x158], esi
cmp edi, esi
jne 0x402cbd
call fcn.00413a68
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x402b43
call fcn.00413a68
push esi
push ebx
or eax, 0xffffffff
lea esi, [esp + 0x30]
call fcn.00401b40
mov eax, dword [esp + 0x18]
push ebp
xor esi, esi
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x402bd2
mov ebx, dword [esp + 0x18]
mov edi, ebp
call fcn.00402940
test eax, eax
je 0x402bb8
push 0x103
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00413040
mov edi, dword [esp + 0x38]
mov ebx, 0x10
add esp, 0xc
cmp dword [esp + 0x40], ebx
jae 0x402b99
lea edi, [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
call fcn.00412c85
add esp, 4
push edi
push eax
call fcn.00413540
add esp, 8
test eax, eax
jne 0x402ccb
mov eax, dword [esp + 0x18]
push ebp
inc esi
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x402b64
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x402cc4
call fcn.00413a68
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x402beb
call fcn.00413a68
add ebx, 0x38
mov dword [esp + 0x158], 0xffffffff
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x24], ebx
jb 0x402c11
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041288e
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp dword [eax + 0x70], esi
jbe 0x402c3b
call fcn.00413a68
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x64]
test edi, edi
je 0x402c46
cmp edi, eax
je 0x402c4b
call fcn.00413a68
cmp ebx, esi
jne 0x402b00
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x1c]
push 0
push 0x423d93
add ecx, 0x28
call fcn.00401c30
mov dword [esp + 0x18], 0xffffffff
cmp byte [0x42cdfc], 0
je 0x402c8f
mov ecx, dword [0x42cdf8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00412899
add esp, 0x148
ret 8
mov eax, dword [edi]
jmp 0x402b39
mov eax, dword [edi]
jmp 0x402be1
cmp byte [esp + 0x164], 0
jne 0x402ce8
mov edi, dword [esp + 0x1c]
add edi, 0xc8
mov ecx, 7
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x402d32
call fcn.00413a68
xor eax, eax
mov esi, dword [esp + 0x24]
cmp esi, dword [eax + 0x10]
jb 0x402d05
call fcn.00413a68
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
push esi
add ecx, 0x28
call fcn.00401850
cmp dword [esp + 0x40], ebx
jb 0x402c79
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041288e
add esp, 4
jmp 0x402c79
mov eax, dword [eax]
jmp 0x402cf7