Function at 0x4012a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x114
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CLUSAPI.DLL
mov dword [esi], ebx
call edi
push str.resutils.DLL
mov dword [esi + 8], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4015f5
push str.OpenCluster
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.ClusterOpenEnum
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterEnum
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterCloseEnum
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
push str.CloseCluster
push eax
call edi
mov ecx, dword [esi + 8]
push str.OpenClusterResource
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 8]
push str.CloseClusterResource
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 8]
push str.ClusterResourceControl
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetClusterResourceState
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterGroupEnum
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
push str.ClusterGroupCloseEnum
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterGroupOpenEnum
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 8]
push str.OpenClusterGroup
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 8]
push str.CloseClusterGroup
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterResourceEnum
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterResourceCloseEnum
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
push str.ClusterResourceOpenEnum
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterRegQueryValue
push ecx
mov dword [esi + 0x50], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterRegCloseKey
push edx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 8]
push str.ClusterRegOpenKey
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetClusterResourceKey
push ecx
mov dword [esi + 0x5c], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterRegEnumKey
push edx
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
push str.GetClusterKey
push eax
call edi
mov ecx, dword [esi + 8]
push str.OfflineClusterResource
push ecx
mov dword [esi + 0x68], eax
call edi
mov edx, dword [esi + 8]
push str.OnlineClusterResource
push edx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x70], eax
mov eax, dword [esi + 8]
push str.OpenClusterNode
push eax
call edi
mov ecx, dword [esi + 8]
push str.CloseClusterNode
push ecx
mov dword [esi + 0x74], eax
call edi
mov edx, dword [esi + 8]
push str.RemoveClusterResourceNode
push edx
mov dword [esi + 0x78], eax
call edi
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 8]
push str.GetClusterNodeState
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterGroupControl
push ecx
mov dword [esi + 0x80], eax
call edi
mov edx, dword [esi + 8]
push str.GetClusterQuorumResource
push edx
mov dword [esi + 0x84], eax
call edi
mov dword [esi + 0x88], eax
mov eax, dword [esi + 8]
push str.OpenClusterNetwork
push eax
call edi
mov ecx, dword [esi + 8]
push str.CloseClusterNetwork
mov dword [esi + 0x98], eax
push ecx
call edi
mov edx, dword [esi + 8]
push str.GetClusterNetworkId
push edx
mov dword [esi + 0x9c], eax
call edi
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 8]
push str.ClusterNetworkControl
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterResourceTypeOpenEnum
push ecx
mov dword [esi + 0xac], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterResourceTypeCloseEnum
push edx
mov dword [esi + 0x8c], eax
call edi
mov dword [esi + 0x94], eax
mov eax, dword [esi + 8]
push str.ClusterResourceTypeEnum
push eax
call edi
mov ecx, dword [esi + 8]
push str.ClusterControl
push ecx
mov dword [esi + 0x90], eax
call edi
mov edx, dword [esi + 8]
push str.ClusterRegSetValue
push edx
mov dword [esi + 0xb8], eax
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 8]
push str.GetClusterGroupState
push eax
call edi
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40163d
push str.ResUtilFindSzProperty
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.ResUtilFindDwordProperty
push ecx
mov dword [esi + 0xa4], eax
call edi
mov edx, dword [esi + 0xc]
push str.ResUtilFindBinaryProperty
push edx
mov dword [esi + 0xa8], eax
call edi
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 0xc]
push str.ResUtilGetBinaryValue
push eax
call edi
mov dword [esi + 0xb4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401668
cmp dword [esp + 0x1c], 2
jne 0x401668
cmp dword [esp + 0x10], 4
jbe 0x401668
mov dword [esi], 1
pop edi
pop esi
pop ebx
add esp, 0x114
ret