Function at 0x1003c550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0xe0], 0
push 0x7f
push 0
lea eax, [ebp - 0xdf]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x144], 0
mov ecx, 7
mov esi, str.SOFTWAREAspenTechMESCluster
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 5
mov esi, str.AdsaClusterNetworkName
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [str.AdsaDirectoryHost]
mov dword [ebp - 0x28], ecx
mov edx, dword [0x1006b69c]
mov dword [ebp - 0x24], edx
mov eax, dword [0x1006b6a0]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x1006b6a4]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x1006b6a8]
mov word [ebp - 0x18], dx
mov eax, dword [str.AdsaSharedDisk]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x1006b6b0]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x1006b6b4]
mov dword [ebp - 0xc], edx
mov ax, word [0x1006b6b8]
mov word [ebp - 8], ax
mov cl, byte [0x1006b6ba]
mov byte [ebp - 6], cl
cmp dword [0x1006b65c], 0
je 0x1003c7ca
lea edx, [ebp - 0x130]
push edx
call sym.CIMIO_NO_WRITE.dll_CIMIO_CLIENT_INITBLK
add esp, 4
mov dword [0x1006b65c], 0
call sym.CIMIO_NO_WRITE.dll_is64BitApp
test eax, eax
je 0x1003c64a
mov dword [ebp - 0x144], 0x200
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x144]
or ecx, 0x20019
push ecx
push 0
lea edx, [ebp - 0x60]
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x1003c7ca
mov dword [0x1059c3bc], 1
mov dword [ebp - 0x13c], 0x104
lea eax, [ebp - 0x13c]
push eax
push 0x1059c3c0
lea ecx, [ebp - 0x140]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xea
je 0x1003c696
lea ecx, [ebp - 0x13c]
push ecx
push 0x1059c4c8
lea edx, [ebp - 0x140]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xea
je 0x1003c6ce
lea edx, [ebp - 0x13c]
push edx
push 0x1059c5d0
lea eax, [ebp - 0x140]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xea
je 0x1003c706
push 0x1006b6bc
push 0
push 0
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.MSVCR120.dll_getenv_s]
add esp, 0x10
cmp dword [ebp - 0x148], 0
jne 0x1003c7ca
push 0x1059c3c0
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x1003c7b5
push 0x1059c3c0
push 0x1006b6d4
call dword [sym.imp.MSVCR120.dll__putenv_s]
add esp, 8
push 0x1059c3c0
push str.Node_in_cluster___CLUSTER_NETWORK_NAME__assigned_cluster_network_name_in_registry__s_n
lea ecx, [ebp - 0xe0]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xe0]
push edx
push 0x1006b6ec
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
jmp 0x1003c7ca
lea eax, [ebp - 0xe0]
push eax
push 0x1006b748
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
push 0x1059c3c0
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x1003c7ec
push 0x1059c3c0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR120.dll_strcpy
add esp, 8
push 0x1059c4c8
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x1003c80e
push 0x1059c4c8
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR120.dll_strcpy
add esp, 8
push 0x1059c5d0
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x1003c830
push 0x1059c5d0
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCR120.dll_strcpy
add esp, 8
mov eax, dword [0x1059c3bc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret