Function at 0x405760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424526
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x439010]
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 ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x219]
push eax
push str.CHBAAPIInt::GetAdapterHandle
mov byte [ebp - 0x219], 0
call fcn.00408740
push str.GlobalCHBAAPINTMUT
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x228], esi
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 1
test esi, esi
je 0x4057ff
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405857
push esi
call edi
push str.GetAdapterHandle_Failure_to_get_Mutex
push 0x43bf64
call sym.Prounstl.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov bl, byte [ebp - 0x219]
test esi, esi
je 0x40581e
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
call fcn.00408830
mov al, bl
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.00413026
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0xe1], 0
je 0x405968
cmp dword [ebx], 0
je 0x405968
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00413c30
push 0
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push str.INTEL_GetFCoEControllerHandle
push 0
push 0
call sym.Prounstl.exe_public:_static_int___cdecl_CNcsString::NcsWideCharToMultiByte_unsigned_int__unsigned_long_int__wchar_t_const___int__char___int__char_const___int__
add esp, 0x2c
test eax, eax
jg 0x4058ce
push str.CHBAAPIInt::GetAdapterHandle_ConvertTCHARToChar_failed
push 0x43bf64
call sym.Prounstl.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 8
mov byte [ebp - 0x219], 0
push esi
call edi
jmp 0x405811
lea eax, [ebp - 0x218]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40594f
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00413c30
push 0
push 0
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 0
push 0
call sym.Prounstl.exe_public:_static_int___cdecl_CNcsString::NcsWideCharToMultiByte_unsigned_int__unsigned_long_int__wchar_t_const___int__char___int__char_const___int__
add esp, 0x2c
test eax, eax
jle 0x4058a7
lea eax, [ebp - 0x114]
push eax
call edi
add esp, 4
test eax, eax
jne 0x405938
push str.Error_Getting_Handle
jmp 0x4058ac
mov ecx, dword [ebp - 0x220]
push eax
mov byte [ebp - 0x219], 1
push str.Succeeded_getting_Adapter_Handle____d
mov dword [ecx], eax
jmp 0x40595b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_INTEL_GetControllerHandle_failed_with_error__d
push 0x43bf64
call sym.Prounstl.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
jmp 0x405811