Function at 0x10076db
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x10093b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x82c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x83c], 0x10
je 0x10077ee
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007728
sub eax, edx
sar eax, 1
mov dword [ebp - 0x840], eax
add eax, 0xfffffffd
cmp eax, 0x3fc
ja 0x10077ee
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x8a0]
test eax, eax
je 0x1007764
cmp dword [eax], 1
je 0x1007907
push 0x5c
pop ebx
cmp word [esi], bx
jne 0x1007787
inc dword [ebp - 0x82c]
mov eax, dword [ebp - 0x82c]
cmp word [esi + eax*2], bx
je 0x100776c
cmp eax, 2
jae 0x1007835
mov ecx, dword [ebp - 0x838]
test ecx, ecx
jne 0x10077bc
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10077b5
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10077f3
lea ecx, [ebp - 0x28]
jmp 0x10077bc
inc ecx
inc ecx
cmp word [ecx], bx
je 0x10077ba
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10077c6
mov edx, dword [ebp - 0x840]
sub eax, ebx
sar eax, 1
lea edx, [eax + edx + 4]
mov eax, 0x400
cmp edx, eax
jb 0x1007804
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xc0000bbd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007ed1
leave
ret 0xc
cmp dword [ebp - 0x82c], 1
mov edx, 0x1001234
je 0x1007817
mov edx, 0x10019c4
push esi
push edx
push ecx
push 0x10019b0
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.010025d0
add esp, 0x18
lea esi, [ebp - 0x828]
mov eax, dword [edi + 0x8a0]
xor ecx, ecx
inc ecx
xor ebx, ebx
cmp eax, ebx
mov dword [edi + 0x8c], ecx
je 0x1007852
cmp dword [eax], ecx
je 0x1007907
cmp dword [edi + 0x8a4], ebx
je 0x10078d2
push esi
mov ecx, edi
call fcn.01007426
mov ecx, dword [edi + 0x8a0]
cmp ecx, ebx
je 0x1007875
cmp dword [ecx], 1
je 0x1007907
cmp eax, ebx
jne 0x1007907
mov esi, dword [edi + 0x6c]
jmp 0x10078cb
lea eax, [ebp - 0x834]
push eax
push ebx
push esi
push dword [edi + 0x2c]
call sub.pdh.dll_PdhAddCounterW
mov ecx, dword [edi + 0x8a0]
cmp ecx, ebx
je 0x10078a2
cmp dword [ecx], 1
je 0x1007907
cmp eax, ebx
jne 0x10078e7
push esi
push dword [ebp - 0x834]
mov ecx, edi
call fcn.0100762a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10078b9
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x1007882
jmp 0x1007907
lea eax, [ebp - 0x834]
push eax
push ebx
push esi
push dword [edi + 0x2c]
call sub.pdh.dll_PdhAddCounterW
cmp eax, ebx
je 0x10078f9
cmp dword [ebp - 0x830], ebx
je 0x1007907
push eax
push esi
call dword [ebp - 0x830]
jmp 0x1007907
push esi
push dword [ebp - 0x834]
mov ecx, edi
call fcn.0100762a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x10077f3