Function at 0x10006120
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ec
call fcn.10028a90
mov eax, dword [0x101165dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x58], 0
mov dword [ebp - 0x10ec], ebx
je 0x1000614c
cmp dword [ebx + 0x74], 0
jne 0x1000615d
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027de5
mov esp, ebp
pop ebp
ret
push 0xcdd
lea eax, [ebp - 0x10e4]
push 0
push eax
call fcn.10027e50
mov ecx, dword [ebx + 0x80]
mov eax, 0x10624dd3
mul dword [ecx + 0x1c]
shr edx, 6
imul edx, edx, 0x3e8
mov dword [ebp - 0x10de], edx
mov ecx, dword [ecx + 0x1c]
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov dword [ebp - 0x10da], ecx
mov dword [ebp - 0x1041], 1
mov byte [ebp - 0x404], 0
call fcn.10027e50
lea eax, [ebx + 0xc]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x100061c8
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.100197f4
lea edx, [ebp - 0x404]
add esp, 0xc
test edx, edx
jne 0x100061eb
xor eax, eax
jmp 0x100061fd
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100061f4
sub eax, edx
push esi
lea esi, [eax + 1]
cmp esi, 0xc00
jbe 0x1000621b
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027de5
mov esp, ebp
pop ebp
ret
push edi
push esi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x1009]
push ecx
call fcn.100286c0
lea edi, [esi + 1]
add esp, 0xc
mov dword [ebp - 0x1025], esi
cmp edi, 0xc00
ja 0x10006308
mov dl, byte [0x1003f388]
mov byte [ebp + esi - 0x1009], dl
shl esi, 0x10
inc esi
cmp dword [ebx + 0x5c], 8
lea eax, [ebx + 0x48]
mov dword [ebp - 0x1029], esi
jb 0x1000626a
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.100197f4
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006288
sub eax, edx
lea esi, [eax + 1]
lea ebx, [esi + edi]
cmp ebx, 0xc00
ja 0x10006308
push esi
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp + edi - 0x1009]
push eax
call fcn.100286c0
mov eax, dword [ebp - 0x10ec]
shl edi, 0x10
add edi, esi
add eax, 0x64
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x102d], edi
jb 0x100062d3
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.100197f4
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100062f1
sub eax, edx
lea esi, [eax + 1]
lea edx, [esi + ebx]
cmp edx, 0xc00
jbe 0x1000631b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027de5
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp + ebx - 0x1009]
push ecx
call fcn.100286c0
mov edx, ebx
shl edx, 0x10
add edx, esi
lea esi, [esi + ebx + 0xdd]
push 0
mov dword [ebp - 0x1031], edx
mov word [ebp - 0x10e4], si
mov word [ebp - 0x409], si
mov byte [ebp - 0x10b6], 1
call fcn.10028c7f
add esp, 0x10
mov dword [ebp - 0x10e2], eax
lea eax, [ebp - 0x10e8]
push eax
lea ecx, [ebp - 0x105d]
push ecx
mov dword [ebp - 0x10c3], 0
mov dword [ebp - 0x10e8], 0x13
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x10e4]
push edx
call fcn.10005a20
mov ecx, eax
call fcn.100053e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027de5
mov esp, ebp
pop ebp
ret