Function at 0x440eb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559796
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5d7b20]
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.004021b0
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.004021b0
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.004021b0
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.0045900d
push str.InUseTwainSource__________________________________IN_n
push 4
mov byte [ebp - 4], 4
call fcn.00403ab0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00440df0
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00405ca0
cmp dword [ebp - 0x6c], 8
mov byte [ebp - 4], 4
jb 0x440fac
mov eax, dword [ebp - 0x80]
push eax
call fcn.00449b7c
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00423c70
mov edi, dword [ebp - 0x94]
mov esi, edi
cmp edi, dword [ebp - 0x90]
je 0x44103f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
jb 0x440fdc
mov eax, dword [esi]
jmp 0x440fde
mov eax, esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
cmp edi, ebx
jne 0x441005
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x441005
add esi, 0x1c
cmp esi, dword [ebp - 0x90]
jne 0x440fcb
jmp 0x441039
cmp dword [esi + 0x14], 8
jb 0x44100d
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.00403ab0
add esp, 0x10
mov dword [ebp - 0x84], 1
cmp edi, ebx
je 0x441039
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x94]
push str.InUseTwainSource__________________________________OUT_n
push 4
call fcn.00403ab0
add esp, 8
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0045913b
cmp edi, ebx
je 0x441094
mov esi, edi
cmp edi, dword [ebp - 0x90]
je 0x44108b
jmp 0x441070
lea edx, [ebp - 0x88]
push esi
push edx
call fcn.00405d20
add esi, 0x1c
add esp, 8
cmp esi, dword [ebp - 0x90]
jne 0x441070
push edi
call fcn.00449b7c
add esp, 4
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x4410aa
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00449b7c
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 0x4410cc
mov edx, dword [ebp - 0x48]
push edx
call fcn.00449b7c
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 0x4410e9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00449b7c
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.0053e1ad
mov esp, ebp
pop ebp
ret