Function at 0x40f535
Capabilities:
Get hostname

Disassembly:
mov eax, 0x411694
call fcn.00408d00
mov eax, 0x17c4
call fcn.00408e30
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x228]
xor ebx, ebx
cmp eax, ebx
jne 0x40f571
push 0x405fc8
push 0x405f68
push edi
call fcn.00408f88
add esp, 0xc
jmp 0x40f930
push dword [0x4140c8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
call fcn.0040dd9a
test eax, eax
jne 0x40f5b0
push 0x405f30
push 0x405f68
push edi
call fcn.00408f88
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040cbed
jmp 0x40f930
push esi
mov esi, 0x404bc4
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
push ebx
call sub.CLUSAPI.dll_OpenCluster
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dde9
cmp dword [ebp - 0x10], ebx
jne 0x40f5ec
push 0x405ee0
push 0x405f68
push edi
call fcn.00408f88
add esp, 0xc
jmp 0x40f914
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40f624
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405e88
push 0x405f68
push edi
call fcn.00408f6d
add esp, 0x10
jmp 0x40f914
mov dword [ebp - 0x30], 0x404bc8
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
call sub.CLUSAPI.dll_OpenClusterNode
push eax
lea ecx, [ebp - 0x30]
call fcn.0040de04
cmp dword [ebp - 0x2c], ebx
jne 0x40f66f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x405e30
push 0x405f68
push edi
call fcn.00408f6d
add esp, 0x14
jmp 0x40f900
cmp dword [ebp + 8], ebx
jne 0x40f84e
mov dword [ebp - 0x28], 0x404bcc
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
push 4
push dword [ebp - 0x10]
call sub.CLUSAPI.dll_ClusterOpenEnum
push eax
lea ecx, [ebp - 0x28]
call fcn.0040de1f
cmp dword [ebp - 0x24], ebx
jne 0x40f6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405de0
push 0x405f68
push edi
call fcn.00408f6d
add esp, 0x10
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x404bcc
call fcn.0040de1f
jmp 0x40f900
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp + 8], 0x3e8
mov dword [ebp - 0x34], ebx
push ebx
jmp 0x40f828
mov dword [ebp - 0x1c], 0x404bd0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x830]
push eax
push dword [ebp - 0x10]
call sub.CLUSAPI.dll_OpenClusterResource
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de3a
cmp dword [ebp - 0x18], ebx
jne 0x40f741
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x405700
push 0x405f68
push edi
call fcn.00408f6d
add esp, 0x14
jmp 0x40f7f8
push ebx
push 0x3e8
lea eax, [ebp - 0x1000]
push eax
push ebx
push ebx
push 0x100002d
push ebx
push dword [ebp - 0x18]
call sub.CLUSAPI.dll_ClusterResourceControl
cmp eax, ebx
je 0x40f771
push eax
lea eax, [ebp - 0x830]
push eax
push 0x405d68
jmp 0x40f72e
lea eax, [ebp - 0x1000]
push 0x405d20
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40f7f8
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x17d0]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x38], 0x3e8
call sub.CLUSAPI.dll_GetClusterResourceState
cmp eax, 2
je 0x40f7b1
cmp eax, 0x81
jne 0x40f7de
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x17d0]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40f7de
lea eax, [ebp - 0x830]
push eax
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0040ef66
jmp 0x40f7f8
lea eax, [ebp - 0x830]
push eax
push 0x405ca0
push 0x405f68
push edi
call fcn.00408f88
add esp, 0x10
inc dword [ebp - 0x34]
mov dword [ebp + 8], 0x3e8
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x404bd0
call fcn.0040de3a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call sub.CLUSAPI.dll_ClusterEnum
cmp eax, ebx
je 0x40f6f0
cmp eax, 0x103
je 0x40f6b8
push eax
push 0x405c38
jmp 0x40f6aa
mov eax, dword [edi + 0x13cc]
dec eax
mov dword [ebp + 8], eax
js 0x40f900
jmp 0x40f863
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0x404bd0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
mov esi, eax
mov eax, dword [edi + 0x13d0]
shl esi, 2
push dword [esi + eax]
push dword [ebp - 0x10]
call sub.CLUSAPI.dll_OpenClusterResource
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de3a
cmp dword [ebp - 0x18], ebx
jne 0x40f8ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 0x13d0]
push dword [esi + eax]
push 0x405700
push 0x405f68
push edi
call fcn.00408f6d
add esp, 0x14
jmp 0x40f8cf
mov eax, dword [edi + 0x13d0]
push 1
push dword [esi + eax]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0040c9db
mov eax, dword [edi + 0x13d0]
push dword [esi + eax]
call fcn.00408d06
pop ecx
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x404bd0
call fcn.0040de3a
dec dword [ebp + 8]
jns 0x40f860
mov esi, 0x404bc4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
push ebx
mov dword [ebp - 0x30], 0x404bc8
call fcn.0040de04
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
push ebx
mov dword [ebp - 0x14], esi
call fcn.0040dde9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040cbed
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4