Function at 0x1008357
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100dd30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x21c]
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x220], edi
call fcn.0100751c
push 0x101fdec
mov ebx, eax
call fcn.010068b2
xor ecx, ecx
push 4
lea esi, [ebx + 3]
pop edx
mov eax, esi
mul edx
seto cl
mov dword [0x101fdec], edi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [0x101fdf0], eax
cmp eax, edi
je 0x1008685
mov ecx, esi
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, edi
jle 0x10084af
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10084af
jmp 0x100849a
push ebx
call dword [sym.imp.msvcrt.dll__wcsupr]
pop ecx
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1008417
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [0x101fdec]
pop ecx
mov ecx, dword [0x101fdf0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x101fdec]
mov ecx, dword [0x101fdf0]
lea eax, [ecx + eax*4]
cmp dword [eax], edi
je 0x1008675
lea ecx, [esi + esi]
push ecx
push edi
push dword [eax]
mov dword [ebp - 0x224], ecx
call sub.msvcrt.dll_memset
mov eax, dword [0x101fdec]
mov ecx, dword [0x101fdf0]
push ebx
push esi
push dword [ecx + eax*4]
call sub.msvcrt.dll_wcscpy_s
add ebx, dword [ebp - 0x224]
add esp, 0x18
inc dword [0x101fdec]
cmp word [ebx], di
jne 0x100840a
push dword [ebp - 0x21c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x214]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
je 0x1008590
cmp word [eax], di
je 0x1008590
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
xor esi, esi
pop ecx
mov dword [ebp - 0x214], eax
cmp dword [0x101fdec], edi
jbe 0x1008503
mov eax, dword [0x101fdf0]
push dword [eax + esi*4]
push dword [ebp - 0x214]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1008503
inc esi
cmp esi, dword [0x101fdec]
jb 0x10084e4
cmp esi, dword [0x101fdec]
jne 0x1008590
mov eax, dword [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1008518
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [0x101fdec]
pop ecx
mov ecx, dword [0x101fdf0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x101fdec]
mov ecx, dword [0x101fdf0]
lea eax, [ecx + eax*4]
cmp dword [eax], edi
je 0x1008590
lea ecx, [esi + esi]
push ecx
push edi
push dword [eax]
call sub.msvcrt.dll_memset
push dword [ebp - 0x214]
mov eax, dword [0x101fdec]
mov ecx, dword [0x101fdf0]
push esi
push dword [ecx + eax*4]
call sub.msvcrt.dll_wcscpy_s
add esp, 0x18
inc dword [0x101fdec]
lea eax, [ebp - 0x220]
push eax
push 0x65
mov esi, 0x1002e00
push esi
push dword [ebp - 0x218]
call ebx
neg eax
pop ecx
sbb eax, eax
and eax, dword [ebp - 0x218]
pop ecx
push eax
call sub.NETAPI32.dll_NetServerGetInfo
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x10085cd
test byte [eax + 0x10], 0x18
jne 0x1008759
push 0x20c
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_memset
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x224], 0x104
call ebx
add esp, 0x14
test eax, eax
je 0x10086aa
mov eax, dword [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1008606
sub eax, edx
sar eax, 1
cmp eax, 0x102
ja 0x1008759
push 2
mov esi, 0x1002df8
push esi
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
mov ebx, 0x106
test eax, eax
je 0x1008650
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.msvcrt.dll_wcscat_s
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
add esp, 0x10
jmp 0x10086d7
push 0x101fdec
call fcn.010068b2
mov dword [0x101fdec], edi
push 0x4de
call fcn.01005b14
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], 0x8007000e
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x1008759
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1008759
push 0x5c
pop eax
mov word [ebp - 0x210], ax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10086e0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [0x101fdec]
pop ecx
mov ecx, dword [0x101fdf0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x101fdec]
mov ecx, dword [0x101fdf0]
lea eax, [ecx + eax*4]
cmp dword [eax], edi
je 0x1008759
lea ecx, [esi + esi]
push ecx
push edi
push dword [eax]
call sub.msvcrt.dll_memset
mov ecx, dword [0x101fdf0]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x101fdec]
push esi
push dword [ecx + eax*4]
call sub.msvcrt.dll_wcscpy_s
add esp, 0x18
inc dword [0x101fdec]
cmp dword [ebp - 0x220], edi
je 0x100876c
push dword [ebp - 0x220]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x214], edi
pop edi
pop esi
pop ebx
je 0x1008783
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
call fcn.0100b427
leave
ret 4