Function at 0x10045070
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c3c
call fcn.10059d80
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c34], 0
mov dword [ebp - 0x2c30], 0xfffffffe
mov byte [ebp - 0xa8], 0
push 0x7f
push 0
lea eax, [ebp - 0xa7]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c38], 0
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [edx + 0x1059f370]
test eax, eax
je 0x10045116
push 0x1059f370
call sub.MSVCR120.dll_strlen
add esp, 4
cmp dword [ebp + 0xc], eax
jge 0x100450f0
mov dword [ebp - 0x2c30], 0xffffffff
jmp 0x1004510b
push 0x1059f370
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR120.dll_strcpy
add esp, 8
mov dword [ebp - 0x2c30], 0
mov eax, dword [ebp - 0x2c30]
jmp 0x1004558e
call fcn.100469d0
test eax, eax
je 0x1004516a
push str.CIMIO_GETHOSTNAME:_ERROR_CALLING_cimio_init_winsock_n
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 8
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0xa8]
push ecx
push 0x402
push 0x1006c4f0
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
push 0x1006c4f8
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
or eax, 0xffffffff
jmp 0x1004558e
lea edx, [ebp - 0x820]
push edx
call sym.CIMIO_NO_WRITE.dll_CIMIO_CLIENT_INITBLK
add esp, 4
lea eax, [ebp - 0x2c2c]
push eax
call sym.CIMIO_NO_WRITE.dll_CIMIO_CLIENT_ENVIRONMENT
add esp, 4
push str.cimio_nodename.txt
lea ecx, [ebp - 0x242a]
push ecx
push 0x1006c510
lea edx, [ebp - 0x7d0]
push edx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
push 0x1006c518
lea eax, [ebp - 0x7d0]
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [ebp - 0x2c38], eax
cmp dword [ebp - 0x2c38], 0
je 0x100452dc
mov ecx, dword [ebp - 0x2c38]
push ecx
push 0x104
lea edx, [ebp - 0x1ac]
push edx
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x10045286
lea eax, [ebp - 0x1ac]
push eax
call sub.MSVCR120.dll_strlen
add esp, 4
sub eax, 1
mov dword [ebp - 0x2c3c], eax
cmp dword [ebp - 0x2c3c], 0x104
jae 0x1004521b
jmp 0x10045220
call fcn.10059a86
mov ecx, dword [ebp - 0x2c3c]
mov byte [ebp + ecx - 0x1ac], 0
mov dword [ebp - 0x2c30], 0
lea edx, [ebp - 0x1ac]
push edx
call fcn.100551b0
add esp, 4
push eax
lea eax, [ebp - 0x7d0]
push eax
push str.CIMIO_GETHOSTNAME:_Using_nodename_in_file__s:__s_n
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x401
push 0x1006c550
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
jmp 0x100452cc
mov dword [ebp - 0x2c30], 0xffffffff
lea ecx, [ebp - 0x7d0]
push ecx
push str.CIMIO_GETHOSTNAME:_file__s_is_empty__Please_delete_or_fill_n
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0xa8]
push ecx
push 0x400
push 0x1006c594
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
mov edx, dword [ebp - 0x2c38]
push edx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
cmp dword [ebp - 0x2c30], 0
jge 0x100454bd
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 0x3bc], 0
push 0x104
push 0
lea ecx, [ebp - 0x3bb]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov byte [ebp - 0x2b4], 0
push 0x104
push 0
lea edx, [ebp - 0x2b3]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x28]
push edx
call sym.CIMIO_NO_WRITE.dll_isNodeInCluster
add esp, 0xc
test eax, eax
jne 0x100453c7
push 0x104
lea eax, [ebp - 0x1ac]
push eax
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 0x2c30], eax
mov ecx, dword [ebp - 0x2c30]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call fcn.100551b0
add esp, 4
push eax
push str.CIMIO_GETHOSTNAME:_Using_gethostname__s_ret_d_n
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0xa8]
push edx
push 0x3fd
push 0x1006c5cc
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
jmp 0x100454bd
push str._CLUSTER_NETWORK_NAME_
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov dword [ebp - 0x2c34], eax
cmp dword [ebp - 0x2c34], 0
je 0x1004545e
mov eax, dword [ebp - 0x2c34]
push eax
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x1004545e
mov dword [ebp - 0x2c30], 0
mov ecx, dword [ebp - 0x2c34]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call sub.MSVCR120.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x2c34]
push eax
call fcn.100551b0
add esp, 4
push eax
push str.CIMIO_GETHOSTNAME:_Using_cluster_nodename__s_n
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x3fe
push 0x1006c61c
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
jmp 0x100454bd
mov dword [ebp - 0x2c30], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call sub.MSVCR120.dll_strcpy
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.100551b0
add esp, 4
push eax
push str.CIMIO_GETHOSTNAME_failed_to_translate__CLUSTER_NETWORK_NAME_:_Using_cluster_nodename_from_isNodeInCluster__s_n
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x3ff
push 0x1006c6a0
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
cmp dword [ebp - 0x2c30], 0
jne 0x10045588
lea ecx, [ebp - 0x1ac]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
cmp eax, 0x1f
ja 0x10045506
lea edx, [ebp - 0x1ac]
push edx
call sub.MSVCR120.dll_strlen
add esp, 4
cmp eax, 0x1f
ja 0x10045552
lea eax, [ebp - 0x1ac]
push eax
call sub.MSVCR120.dll_strlen
add esp, 4
cmp dword [ebp + 0xc], eax
jge 0x10045552
mov dword [ebp - 0x2c30], 0xffffffff
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1ac]
push edx
push str.CIMIO_GETHOSTNAME_ERROR_INSUFFICIENT_BUFFER_Length_of___s____buffer_length__d_n
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0xa8]
push edx
push 0x403
push 0x1006c6f8
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
jmp 0x10045588
lea eax, [ebp - 0x1ac]
push eax
call fcn.100551b0
add esp, 4
lea ecx, [ebp - 0x1ac]
push ecx
push 0x1059f370
call sub.MSVCR120.dll_strcpy
add esp, 8
lea edx, [ebp - 0x1ac]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR120.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret