Function at 0x11067960
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dce91
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x26c], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x270]
push eax
xor edx, edx
push edi
mov word [ebp - 0x250], dx
mov dword [ebp - 0x270], 0xffffffff
call fcn.1114e010
add esp, 8
mov dword [ebp - 0x264], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp word [eax], bx
je 0x11067a33
push edi
call fcn.1114e270
add esp, 4
cmp eax, ebx
je 0x11067a25
cmp word [eax], bx
je 0x11067a25
lea esi, [ebp - 0x250]
mov ecx, eax
sub esi, eax
lea ebx, [ebx]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x11067a10
mov esi, dword [ebp - 0x260]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x11067b6f
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
push str.WTSQuerySessionInformationW
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x280], eax
cmp eax, ebx
je 0x11067b37
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x25c]
push ecx
push 6
push edi
push ebx
call eax
cmp eax, ebx
je 0x11067afe
mov edx, dword [ebp - 0x25c]
push 0xa
push str.hydrapark
push edx
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x11067afe
mov eax, dword [ebp - 0x25c]
add eax, 0x14
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x11067b5b
mov edi, eax
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x14], ebx
lea esi, [eax + 0x14]
jne 0x11067b2c
mov ecx, dword [eax]
push str.WTSFreeMemory
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
mov esi, dword [esi]
cmp esi, ebx
je 0x11067b41
push edi
call esi
jmp 0x11067b49
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x11067afe
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x260]
mov dword [ebp - 0x25c], ebx
mov eax, dword [ebp - 0x2a0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x11067b6f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [0x1127b8a8], bx
jne 0x11067b8b
push ebx
push 0x11247f3c
push 0x1127b8a8
call fcn.110a6a10
add esp, 0xc
cmp word [ebp - 0x250], bx
je 0x11067c0c
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x11067c0c
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [0x1127b220]
push edi
call fcn.11161a50
test eax, eax
lea eax, [ebp - 0x250]
je 0x11067be8
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x11067bd0
mov edx, dword [ebp - 0x264]
push edx
jmp 0x11067c5f
lea edx, [eax + 2]
jmp 0x11067bf0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11067bf0
sub eax, edx
sar eax, 1
cmp eax, 0xc
ja 0x11067c29
lea eax, [ebp - 0x250]
jmp 0x11067c2e
lea eax, [ebp - 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11067c12
sub eax, edx
sar eax, 1
cmp eax, 0xc
lea eax, [ebp - 0x50]
jbe 0x11067c2e
mov eax, 0x1127b8a8
push edi
cmp edi, 0x63
jg 0x11067c48
push 0x2e
push eax
push str._s_c_02d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x11067c58
push eax
push str._s_03d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp - 0x264]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, 1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret