Function at 0x4026a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5349d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 7
push esi
xor ebx, ebx
xor eax, eax
push str.Global_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
call fcn.00401dd0
xor ecx, ecx
push 6
mov word [ebp - 0x48], cx
push str.Local_
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
call fcn.00401dd0
push 0xe
xor edx, edx
push str.ScanGear_Mutex
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00401dd0
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
push 0xa
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0042ae29
push str.InUseTwainSource__________________________________IN_n
push 4
mov byte [ebp - 4], 4
call fcn.00403750
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00402120
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401fc0
cmp dword [ebp - 0x6c], 8
mov byte [ebp - 4], 4
jb 0x40279c
mov eax, dword [ebp - 0x80]
push eax
call fcn.00429e6f
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00402610
mov edi, dword [ebp - 0x94]
mov esi, edi
cmp edi, dword [ebp - 0x90]
je 0x40282f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
jb 0x4027cc
mov eax, dword [esi]
jmp 0x4027ce
mov eax, esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
cmp edi, ebx
jne 0x4027f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4027f5
add esi, 0x1c
cmp esi, dword [ebp - 0x90]
jne 0x4027bb
jmp 0x402829
cmp dword [esi + 0x14], 8
jb 0x4027fd
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.InUseTwainSource____HIT__OpenMutex__1_s___Success_or_ErrorCode__0x_1_d__n
push 5
call fcn.00403750
add esp, 0x10
mov dword [ebp - 0x84], 1
cmp edi, ebx
je 0x402829
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x94]
push str.InUseTwainSource__________________________________OUT_n
push 4
call fcn.00403750
add esp, 8
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0042af57
cmp edi, ebx
je 0x402884
mov esi, edi
cmp edi, dword [ebp - 0x90]
je 0x40287b
jmp 0x402860
lea edx, [ebp - 0x88]
push esi
push edx
call fcn.004020a0
add esi, 0x1c
add esp, 8
cmp esi, dword [ebp - 0x90]
jne 0x402860
push edi
call fcn.00429e6f
add esp, 4
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x40289a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x4028bc
mov edx, dword [ebp - 0x48]
push edx
call fcn.00429e6f
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x4028d9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00429e6f
add esp, 4
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret