Function at 0x401390
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x118
mov eax, dword [0x4204c4]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esp + 0x124], eax
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]
push str.CLUSAPI.DLL
push 1
mov dword [esi], ebx
call fcn.0040c950
push str.resutils.DLL
push 1
mov dword [esi + 8], eax
call fcn.0040c950
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, ebx
je 0x4016f8
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 0x401740
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]
push ecx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40176b
cmp dword [esp + 0x1c], 2
jne 0x40176b
cmp dword [esp + 0x10], 4
jbe 0x40176b
mov dword [esi], 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
call fcn.0040d00b
add esp, 0x118
ret